diff --git a/packages/google-cloud-aiplatform/.gitignore b/packages/google-cloud-aiplatform/.gitignore index 5d32b23782f..d4f03a0df2e 100644 --- a/packages/google-cloud-aiplatform/.gitignore +++ b/packages/google-cloud-aiplatform/.gitignore @@ -1,11 +1,11 @@ **/*.log **/node_modules -.coverage -coverage -.nyc_output -docs/ -out/ -build/ +/.coverage +/coverage +/.nyc_output +/docs/ +/out/ +/build/ system-test/secrets.js system-test/*key.json *.lock diff --git a/packages/google-cloud-aiplatform/README.md b/packages/google-cloud-aiplatform/README.md index 5b9c044a581..2864235ad9a 100644 --- a/packages/google-cloud-aiplatform/README.md +++ b/packages/google-cloud-aiplatform/README.md @@ -163,26 +163,33 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Job_service.cancel_custom_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_custom_job.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/job_service.cancel_custom_job.js,samples/README.md) | | Job_service.cancel_data_labeling_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_data_labeling_job.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/job_service.cancel_data_labeling_job.js,samples/README.md) | | Job_service.cancel_hyperparameter_tuning_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_hyperparameter_tuning_job.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/job_service.cancel_hyperparameter_tuning_job.js,samples/README.md) | +| Job_service.cancel_nas_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_nas_job.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/job_service.cancel_nas_job.js,samples/README.md) | | Job_service.create_batch_prediction_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_batch_prediction_job.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/job_service.create_batch_prediction_job.js,samples/README.md) | | Job_service.create_custom_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_custom_job.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/job_service.create_custom_job.js,samples/README.md) | | Job_service.create_data_labeling_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_data_labeling_job.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/job_service.create_data_labeling_job.js,samples/README.md) | | Job_service.create_hyperparameter_tuning_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_hyperparameter_tuning_job.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/job_service.create_hyperparameter_tuning_job.js,samples/README.md) | | Job_service.create_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_model_deployment_monitoring_job.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/job_service.create_model_deployment_monitoring_job.js,samples/README.md) | +| Job_service.create_nas_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_nas_job.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/job_service.create_nas_job.js,samples/README.md) | | Job_service.delete_batch_prediction_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_batch_prediction_job.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/job_service.delete_batch_prediction_job.js,samples/README.md) | | Job_service.delete_custom_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_custom_job.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/job_service.delete_custom_job.js,samples/README.md) | | Job_service.delete_data_labeling_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_data_labeling_job.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/job_service.delete_data_labeling_job.js,samples/README.md) | | Job_service.delete_hyperparameter_tuning_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_hyperparameter_tuning_job.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/job_service.delete_hyperparameter_tuning_job.js,samples/README.md) | | Job_service.delete_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_model_deployment_monitoring_job.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/job_service.delete_model_deployment_monitoring_job.js,samples/README.md) | +| Job_service.delete_nas_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_nas_job.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/job_service.delete_nas_job.js,samples/README.md) | | Job_service.get_batch_prediction_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_batch_prediction_job.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/job_service.get_batch_prediction_job.js,samples/README.md) | | Job_service.get_custom_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_custom_job.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/job_service.get_custom_job.js,samples/README.md) | | Job_service.get_data_labeling_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_data_labeling_job.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/job_service.get_data_labeling_job.js,samples/README.md) | | Job_service.get_hyperparameter_tuning_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_hyperparameter_tuning_job.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/job_service.get_hyperparameter_tuning_job.js,samples/README.md) | | Job_service.get_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_model_deployment_monitoring_job.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/job_service.get_model_deployment_monitoring_job.js,samples/README.md) | +| Job_service.get_nas_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_job.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/job_service.get_nas_job.js,samples/README.md) | +| Job_service.get_nas_trial_detail | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_trial_detail.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/job_service.get_nas_trial_detail.js,samples/README.md) | | Job_service.list_batch_prediction_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_batch_prediction_jobs.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/job_service.list_batch_prediction_jobs.js,samples/README.md) | | Job_service.list_custom_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_custom_jobs.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/job_service.list_custom_jobs.js,samples/README.md) | | Job_service.list_data_labeling_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_data_labeling_jobs.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/job_service.list_data_labeling_jobs.js,samples/README.md) | | Job_service.list_hyperparameter_tuning_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.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/job_service.list_hyperparameter_tuning_jobs.js,samples/README.md) | | Job_service.list_model_deployment_monitoring_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.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/job_service.list_model_deployment_monitoring_jobs.js,samples/README.md) | +| Job_service.list_nas_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_jobs.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/job_service.list_nas_jobs.js,samples/README.md) | +| Job_service.list_nas_trial_details | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_trial_details.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/job_service.list_nas_trial_details.js,samples/README.md) | | Job_service.pause_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.pause_model_deployment_monitoring_job.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/job_service.pause_model_deployment_monitoring_job.js,samples/README.md) | | Job_service.resume_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.resume_model_deployment_monitoring_job.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/job_service.resume_model_deployment_monitoring_job.js,samples/README.md) | | Job_service.search_model_deployment_monitoring_stats_anomalies | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.search_model_deployment_monitoring_stats_anomalies.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/job_service.search_model_deployment_monitoring_stats_anomalies.js,samples/README.md) | @@ -222,6 +229,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | 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_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) | | Model_service.delete_model_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/model_service.delete_model_version.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_version.js,samples/README.md) | | Model_service.export_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/model_service.export_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.export_model.js,samples/README.md) | @@ -365,26 +373,33 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Job_service.cancel_custom_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_custom_job.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/job_service.cancel_custom_job.js,samples/README.md) | | Job_service.cancel_data_labeling_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_data_labeling_job.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/job_service.cancel_data_labeling_job.js,samples/README.md) | | Job_service.cancel_hyperparameter_tuning_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_hyperparameter_tuning_job.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/job_service.cancel_hyperparameter_tuning_job.js,samples/README.md) | +| Job_service.cancel_nas_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_nas_job.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/job_service.cancel_nas_job.js,samples/README.md) | | Job_service.create_batch_prediction_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_batch_prediction_job.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/job_service.create_batch_prediction_job.js,samples/README.md) | | Job_service.create_custom_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_custom_job.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/job_service.create_custom_job.js,samples/README.md) | | Job_service.create_data_labeling_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_data_labeling_job.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/job_service.create_data_labeling_job.js,samples/README.md) | | Job_service.create_hyperparameter_tuning_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_hyperparameter_tuning_job.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/job_service.create_hyperparameter_tuning_job.js,samples/README.md) | | Job_service.create_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_model_deployment_monitoring_job.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/job_service.create_model_deployment_monitoring_job.js,samples/README.md) | +| Job_service.create_nas_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_nas_job.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/job_service.create_nas_job.js,samples/README.md) | | Job_service.delete_batch_prediction_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_batch_prediction_job.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/job_service.delete_batch_prediction_job.js,samples/README.md) | | Job_service.delete_custom_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_custom_job.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/job_service.delete_custom_job.js,samples/README.md) | | Job_service.delete_data_labeling_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_data_labeling_job.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/job_service.delete_data_labeling_job.js,samples/README.md) | | Job_service.delete_hyperparameter_tuning_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.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/job_service.delete_hyperparameter_tuning_job.js,samples/README.md) | | Job_service.delete_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_model_deployment_monitoring_job.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/job_service.delete_model_deployment_monitoring_job.js,samples/README.md) | +| Job_service.delete_nas_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_nas_job.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/job_service.delete_nas_job.js,samples/README.md) | | Job_service.get_batch_prediction_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_batch_prediction_job.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/job_service.get_batch_prediction_job.js,samples/README.md) | | Job_service.get_custom_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_custom_job.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/job_service.get_custom_job.js,samples/README.md) | | Job_service.get_data_labeling_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_data_labeling_job.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/job_service.get_data_labeling_job.js,samples/README.md) | | Job_service.get_hyperparameter_tuning_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_hyperparameter_tuning_job.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/job_service.get_hyperparameter_tuning_job.js,samples/README.md) | | Job_service.get_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_model_deployment_monitoring_job.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/job_service.get_model_deployment_monitoring_job.js,samples/README.md) | +| Job_service.get_nas_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_job.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/job_service.get_nas_job.js,samples/README.md) | +| Job_service.get_nas_trial_detail | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_trial_detail.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/job_service.get_nas_trial_detail.js,samples/README.md) | | Job_service.list_batch_prediction_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_batch_prediction_jobs.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/job_service.list_batch_prediction_jobs.js,samples/README.md) | | Job_service.list_custom_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_custom_jobs.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/job_service.list_custom_jobs.js,samples/README.md) | | Job_service.list_data_labeling_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_data_labeling_jobs.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/job_service.list_data_labeling_jobs.js,samples/README.md) | | Job_service.list_hyperparameter_tuning_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.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/job_service.list_hyperparameter_tuning_jobs.js,samples/README.md) | | Job_service.list_model_deployment_monitoring_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.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/job_service.list_model_deployment_monitoring_jobs.js,samples/README.md) | +| Job_service.list_nas_jobs | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_jobs.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/job_service.list_nas_jobs.js,samples/README.md) | +| Job_service.list_nas_trial_details | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_trial_details.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/job_service.list_nas_trial_details.js,samples/README.md) | | Job_service.pause_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.pause_model_deployment_monitoring_job.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/job_service.pause_model_deployment_monitoring_job.js,samples/README.md) | | Job_service.resume_model_deployment_monitoring_job | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.resume_model_deployment_monitoring_job.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/job_service.resume_model_deployment_monitoring_job.js,samples/README.md) | | Job_service.search_model_deployment_monitoring_stats_anomalies | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.search_model_deployment_monitoring_stats_anomalies.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/job_service.search_model_deployment_monitoring_stats_anomalies.js,samples/README.md) | @@ -424,6 +439,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | 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_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) | | Model_service.delete_model_version | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.delete_model_version.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_version.js,samples/README.md) | | Model_service.export_model | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.export_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.export_model.js,samples/README.md) | 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 1f3a5a19069..edbfc0cbe4e 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 @@ -96,7 +96,7 @@ message Endpoint { // this key. EncryptionSpec encryption_spec = 10; - // The full name of the Google Compute Engine + // Optional. The full name of the Google Compute Engine // [network](https://cloud.google.com//compute/docs/networks-and-firewalls#networks) // to which the Endpoint should be peered. // @@ -113,6 +113,7 @@ message Endpoint { // Where `{project}` is a project number, as in `12345`, and `{network}` is // network name. string network = 13 [ + (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; @@ -224,6 +225,8 @@ message DeployedModel { // User can disable container logging by setting this flag to true. bool disable_container_logging = 15; + // If true, online prediction access logs are sent to StackDriver + // Logging. // These logs are like standard server access logs, containing // information like timestamp and latency for each prediction request. // diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto index 8f699671d33..6fbbb8817e0 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/index_endpoint.proto @@ -19,6 +19,7 @@ package google.cloud.aiplatform.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1/machine_resources.proto"; +import "google/cloud/aiplatform/v1/service_networking.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; @@ -102,6 +103,14 @@ message IndexEndpoint { // can be set. bool enable_private_service_connect = 10 [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for private service connect. + // + // [network][google.cloud.aiplatform.v1.IndexEndpoint.network] and + // [private_service_connect_config][google.cloud.aiplatform.v1.IndexEndpoint.private_service_connect_config] + // are mutually exclusive. + PrivateServiceConnectConfig private_service_connect_config = 12 + [(google.api.field_behavior) = OPTIONAL]; } // A deployment of an Index. IndexEndpoints contain one or more DeployedIndexes. @@ -177,10 +186,10 @@ message DeployedIndex { // e2-standard-16 and all machine types available for LARGE shard. // // Available machine types for LARGE shard: - // e2-standard-32, e2-highmem-16, n2d-standard-32. + // e2-highmem-16, n2d-standard-32. // // n1-standard-16 and n1-standard-32 are still available, but we recommend - // e2-standard-16 and e2-standard-32 for cost efficiency. + // e2-standard-16 and e2-highmem-16 for cost efficiency. DedicatedResources dedicated_resources = 16 [(google.api.field_behavior) = OPTIONAL]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_service.proto index bac4eb93b79..ce8d664a379 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/job_service.proto @@ -25,6 +25,7 @@ import "google/cloud/aiplatform/v1/custom_job.proto"; import "google/cloud/aiplatform/v1/data_labeling_job.proto"; import "google/cloud/aiplatform/v1/hyperparameter_tuning_job.proto"; import "google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto"; +import "google/cloud/aiplatform/v1/nas_job.proto"; import "google/cloud/aiplatform/v1/operation.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; @@ -43,7 +44,8 @@ option ruby_package = "Google::Cloud::AIPlatform::V1"; service JobService { option (google.api.default_host) = "aiplatform.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/cloud-platform.read-only"; // Creates a CustomJob. A created CustomJob right away // will be attempted to be run. @@ -219,6 +221,81 @@ service JobService { option (google.api.method_signature) = "name"; } + // Creates a NasJob + rpc CreateNasJob(CreateNasJobRequest) returns (NasJob) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/nasJobs" + body: "nas_job" + }; + option (google.api.method_signature) = "parent,nas_job"; + } + + // Gets a NasJob + rpc GetNasJob(GetNasJobRequest) returns (NasJob) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/nasJobs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists NasJobs in a Location. + rpc ListNasJobs(ListNasJobsRequest) returns (ListNasJobsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/nasJobs" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a NasJob. + rpc DeleteNasJob(DeleteNasJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/nasJobs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Cancels a NasJob. + // Starts asynchronous cancellation on the NasJob. The server + // makes a best effort to cancel the job, but success is not + // guaranteed. Clients can use + // [JobService.GetNasJob][google.cloud.aiplatform.v1.JobService.GetNasJob] or + // other methods to check whether the cancellation succeeded or whether the + // job completed despite cancellation. On successful cancellation, + // the NasJob is not deleted; instead it becomes a job with + // a [NasJob.error][google.cloud.aiplatform.v1.NasJob.error] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`, and + // [NasJob.state][google.cloud.aiplatform.v1.NasJob.state] is set to + // `CANCELLED`. + rpc CancelNasJob(CancelNasJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/nasJobs/*}:cancel" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Gets a NasTrialDetail. + rpc GetNasTrialDetail(GetNasTrialDetailRequest) returns (NasTrialDetail) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/nasJobs/*/nasTrialDetails/*}" + }; + option (google.api.method_signature) = "name"; + } + + // List top NasTrialDetails of a NasJob. + rpc ListNasTrialDetails(ListNasTrialDetailsRequest) + returns (ListNasTrialDetailsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/nasJobs/*}/nasTrialDetails" + }; + option (google.api.method_signature) = "parent"; + } + // Creates a BatchPredictionJob. A BatchPredictionJob once created will // right away be attempted to start. rpc CreateBatchPredictionJob(CreateBatchPredictionJobRequest) @@ -752,6 +829,180 @@ message CancelHyperparameterTuningJobRequest { ]; } +// Request message for +// [JobService.CreateNasJob][google.cloud.aiplatform.v1.JobService.CreateNasJob]. +message CreateNasJobRequest { + // Required. The resource name of the Location to create the NasJob in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The NasJob to create. + NasJob nas_job = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [JobService.GetNasJob][google.cloud.aiplatform.v1.JobService.GetNasJob]. +message GetNasJobRequest { + // Required. The name of the NasJob resource. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasJob" + } + ]; +} + +// Request message for +// [JobService.ListNasJobs][google.cloud.aiplatform.v1.JobService.ListNasJobs]. +message ListNasJobsRequest { + // Required. The resource name of the Location to list the NasJobs + // from. Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The standard list filter. + // + // Supported fields: + // + // * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + // * `state` supports `=`, `!=` comparisons. + // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + // `create_time` must be in RFC 3339 format. + // * `labels` supports general map functions that is: + // `labels.key=value` - key:value equality + // `labels.key:* - key existence + // + // Some examples of using the filter are: + // + // * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + // * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + // * `NOT display_name="my_job"` + // * `create_time>"2021-05-18T00:00:00Z"` + // * `labels.keyA=valueA` + // * `labels.keyB:*` + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + // Typically obtained via + // [ListNasJobsResponse.next_page_token][google.cloud.aiplatform.v1.ListNasJobsResponse.next_page_token] + // of the previous + // [JobService.ListNasJobs][google.cloud.aiplatform.v1.JobService.ListNasJobs] + // call. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; +} + +// Response message for +// [JobService.ListNasJobs][google.cloud.aiplatform.v1.JobService.ListNasJobs] +message ListNasJobsResponse { + // List of NasJobs in the requested page. + // [NasJob.nas_job_output][google.cloud.aiplatform.v1.NasJob.nas_job_output] + // of the jobs will not be returned. + repeated NasJob nas_jobs = 1; + + // A token to retrieve the next page of results. + // Pass to + // [ListNasJobsRequest.page_token][google.cloud.aiplatform.v1.ListNasJobsRequest.page_token] + // to obtain that page. + string next_page_token = 2; +} + +// Request message for +// [JobService.DeleteNasJob][google.cloud.aiplatform.v1.JobService.DeleteNasJob]. +message DeleteNasJobRequest { + // Required. The name of the NasJob resource to be deleted. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasJob" + } + ]; +} + +// Request message for +// [JobService.CancelNasJob][google.cloud.aiplatform.v1.JobService.CancelNasJob]. +message CancelNasJobRequest { + // Required. The name of the NasJob to cancel. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasJob" + } + ]; +} + +// Request message for +// [JobService.GetNasTrialDetail][google.cloud.aiplatform.v1.JobService.GetNasTrialDetail]. +message GetNasTrialDetailRequest { + // Required. The name of the NasTrialDetail resource. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasTrialDetail" + } + ]; +} + +// Request message for +// [JobService.ListNasTrialDetails][google.cloud.aiplatform.v1.JobService.ListNasTrialDetails]. +message ListNasTrialDetailsRequest { + // Required. The name of the NasJob resource. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasJob" + } + ]; + + // The standard list page size. + int32 page_size = 2; + + // The standard list page token. + // Typically obtained via + // [ListNasTrialDetailsResponse.next_page_token][google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.next_page_token] + // of the previous + // [JobService.ListNasTrialDetails][google.cloud.aiplatform.v1.JobService.ListNasTrialDetails] + // call. + string page_token = 3; +} + +// Response message for +// [JobService.ListNasTrialDetails][google.cloud.aiplatform.v1.JobService.ListNasTrialDetails] +message ListNasTrialDetailsResponse { + // List of top NasTrials in the requested page. + repeated NasTrialDetail nas_trial_details = 1; + + // A token to retrieve the next page of results. + // Pass to + // [ListNasTrialDetailsRequest.page_token][google.cloud.aiplatform.v1.ListNasTrialDetailsRequest.page_token] + // to obtain that page. + string next_page_token = 2; +} + // Request message for // [JobService.CreateBatchPredictionJob][google.cloud.aiplatform.v1.JobService.CreateBatchPredictionJob]. message CreateBatchPredictionJobRequest { 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 33f27c73f80..8ca72f5260b 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 @@ -90,6 +90,19 @@ message Model { [(google.api.field_behavior) = OUTPUT_ONLY]; } + // Contains information about the original Model if this Model is a copy. + message OriginalModelInfo { + // Output only. The resource name of the Model this Model is a copy of, + // including the revision. Format: + // `projects/{project}/locations/{location}/models/{model_id}@{version_id}` + string model = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + } + // Identifies a type of Model's prediction resources. enum DeploymentResourcesType { // Should not be used. @@ -376,6 +389,11 @@ message Model { ModelSourceInfo model_source_info = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. If this Model is a copy of another Model, this contains info + // about the original. + OriginalModelInfo original_model_info = 34 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The resource name of the Artifact that was created in // MetadataStore when creating the Model. The Artifact resource name pattern // is 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 b2132ed39d0..4afe6afcac5 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 @@ -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/encryption_spec.proto"; import "google/cloud/aiplatform/v1/io.proto"; import "google/cloud/aiplatform/v1/model.proto"; import "google/cloud/aiplatform/v1/model_evaluation.proto"; @@ -151,6 +152,24 @@ service ModelService { }; } + // Copies an already existing Vertex AI Model into the specified Location. + // The source Model must exist in the same Project. + // When copying custom Models, the users themselves are responsible for + // [Model.metadata][google.cloud.aiplatform.v1.Model.metadata] content to be + // region-agnostic, as well as making sure that any resources (e.g. files) it + // depends on remain accessible. + rpc CopyModel(CopyModelRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/models:copy" + body: "*" + }; + option (google.api.method_signature) = "parent,source_model"; + option (google.longrunning.operation_info) = { + response_type: "CopyModelResponse" + metadata_type: "CopyModelOperationMetadata" + }; + } + // Imports an externally generated ModelEvaluation. rpc ImportModelEvaluation(ImportModelEvaluationRequest) returns (ModelEvaluation) { @@ -580,6 +599,75 @@ message ExportModelOperationMetadata { // operation. message ExportModelResponse {} +// Request message for +// [ModelService.CopyModel][google.cloud.aiplatform.v1.ModelService.CopyModel]. +message CopyModelRequest { + // If both fields are unset, a new Model will be created with a generated ID. + oneof destination_model { + // Optional. Copy source_model into a new Model with this ID. The ID will + // become the final component of the model resource name. + // + // This value may be up to 63 characters, and valid characters are + // `[a-z0-9_-]`. The first character cannot be a number or hyphen. + string model_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specify this field to copy source_model into this existing + // Model as a new version. Format: + // `projects/{project}/locations/{location}/models/{model}` + string parent_model = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + } + + // Required. The resource name of the Location into which to copy the Model. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The resource name of the Model to copy. That Model must be in the + // same Project. Format: + // `projects/{project}/locations/{location}/models/{model}` + string source_model = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // Customer-managed encryption key options. If this is set, + // then the Model copy will be encrypted with the provided encryption key. + EncryptionSpec encryption_spec = 3; +} + +// Details of +// [ModelService.CopyModel][google.cloud.aiplatform.v1.ModelService.CopyModel] +// operation. +message CopyModelOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Response message of +// [ModelService.CopyModel][google.cloud.aiplatform.v1.ModelService.CopyModel] +// operation. +message CopyModelResponse { + // The name of the copied Model resource. + // Format: `projects/{project}/locations/{location}/models/{model}` + string model = 1 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + }]; + + // Output only. The version ID of the model that is copied. + string model_version_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Request message for // [ModelService.ImportModelEvaluation][google.cloud.aiplatform.v1.ModelService.ImportModelEvaluation] message ImportModelEvaluationRequest { 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 new file mode 100644 index 00000000000..f763b655f9f --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/nas_job.proto @@ -0,0 +1,306 @@ +// 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/api/resource.proto"; +import "google/cloud/aiplatform/v1/custom_job.proto"; +import "google/cloud/aiplatform/v1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1/job_state.proto"; +import "google/cloud/aiplatform/v1/study.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.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 = "NasJobProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Represents a Neural Architecture Search (NAS) job. +message NasJob { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/NasJob" + pattern: "projects/{project}/locations/{location}/nasJobs/{nas_job}" + }; + + // Output only. Resource name of the NasJob. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The display name of the NasJob. + // The name can be up to 128 characters long and can consist of any UTF-8 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The specification of a NasJob. + NasJobSpec nas_job_spec = 4 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Output of the NasJob. + NasJobOutput nas_job_output = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The detailed state of the job. + JobState state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasJob was created. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasJob for the first time entered the + // `JOB_STATE_RUNNING` state. + google.protobuf.Timestamp start_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasJob entered any of the following states: + // `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + google.protobuf.Timestamp end_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasJob was most recently updated. + google.protobuf.Timestamp update_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Only populated when job's state is JOB_STATE_FAILED or + // JOB_STATE_CANCELLED. + google.rpc.Status error = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The labels with user-defined metadata to organize NasJobs. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + map labels = 12; + + // Customer-managed encryption key options for a NasJob. + // If this is set, then all resources created by the NasJob + // will be encrypted with the provided encryption key. + EncryptionSpec encryption_spec = 13; + + // 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]; +} + +// Represents a NasTrial details along with it's parameters. If there is a +// corresponding train NasTrial, the train NasTrial is also returned. +message NasTrialDetail { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/NasTrialDetail" + pattern: "projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}" + }; + + // Output only. Resource name of the NasTrialDetail. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The parameters for the NasJob NasTrial. + string parameters = 2; + + // The requested search NasTrial. + NasTrial search_trial = 3; + + // The train NasTrial corresponding to + // [search_trial][google.cloud.aiplatform.v1.NasTrialDetail.search_trial]. + // Only populated if + // [search_trial][google.cloud.aiplatform.v1.NasTrialDetail.search_trial] is + // used for training. + NasTrial train_trial = 4; +} + +// Represents the spec of a NasJob. +message NasJobSpec { + // The spec of multi-trial Neural Architecture Search (NAS). + message MultiTrialAlgorithmSpec { + // Represents a metric to optimize. + message MetricSpec { + // The available types of optimization goals. + enum GoalType { + // Goal Type will default to maximize. + GOAL_TYPE_UNSPECIFIED = 0; + + // Maximize the goal metric. + MAXIMIZE = 1; + + // Minimize the goal metric. + MINIMIZE = 2; + } + + // Required. The ID of the metric. Must not contain whitespaces. + string metric_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The optimization goal of the metric. + GoalType goal = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Represent spec for search trials. + message SearchTrialSpec { + // Required. The spec of a search trial job. The same spec applies to + // all search trials. + CustomJobSpec search_trial_job_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The maximum number of Neural Architecture Search (NAS) trials + // to run. + int32 max_trial_count = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The maximum number of trials to run in parallel. + int32 max_parallel_trial_count = 3 + [(google.api.field_behavior) = REQUIRED]; + + // The number of failed trials that need to be seen before failing + // the NasJob. + // + // If set to 0, Vertex AI decides how many trials must fail + // before the whole job fails. + int32 max_failed_trial_count = 4; + } + + // Represent spec for train trials. + message TrainTrialSpec { + // Required. The spec of a train trial job. The same spec applies to + // all train trials. + CustomJobSpec train_trial_job_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The maximum number of trials to run in parallel. + int32 max_parallel_trial_count = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Frequency of search trials to start train stage. Top N + // [TrainTrialSpec.max_parallel_trial_count] + // search trials will be trained for every M + // [TrainTrialSpec.frequency] trials searched. + int32 frequency = 3 [(google.api.field_behavior) = REQUIRED]; + } + + // The available types of multi-trial algorithms. + enum MultiTrialAlgorithm { + // Defaults to `REINFORCEMENT_LEARNING`. + MULTI_TRIAL_ALGORITHM_UNSPECIFIED = 0; + + // The Reinforcement Learning Algorithm for Multi-trial Neural + // Architecture Search (NAS). + REINFORCEMENT_LEARNING = 1; + + // The Grid Search Algorithm for Multi-trial Neural + // Architecture Search (NAS). + GRID_SEARCH = 2; + } + + // The multi-trial Neural Architecture Search (NAS) algorithm + // type. Defaults to `REINFORCEMENT_LEARNING`. + MultiTrialAlgorithm multi_trial_algorithm = 1; + + // Metric specs for the NAS job. + // Validation for this field is done at `multi_trial_algorithm_spec` field. + MetricSpec metric = 2; + + // Required. Spec for search trials. + SearchTrialSpec search_trial_spec = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Spec for train trials. Top N [TrainTrialSpec.max_parallel_trial_count] + // search trials will be trained for every M + // [TrainTrialSpec.frequency] trials searched. + TrainTrialSpec train_trial_spec = 4; + } + + // The Neural Architecture Search (NAS) algorithm specification. + oneof nas_algorithm_spec { + // The spec of multi-trial algorithms. + MultiTrialAlgorithmSpec multi_trial_algorithm_spec = 2; + } + + // The ID of the existing NasJob in the same Project and Location + // which will be used to resume search. search_space_spec and + // nas_algorithm_spec are obtained from previous NasJob hence should not + // provide them again for this NasJob. + string resume_nas_job_id = 3; + + // It defines the search space for Neural Architecture Search (NAS). + string search_space_spec = 1; +} + +// Represents a uCAIP NasJob output. +message NasJobOutput { + // The output of a multi-trial Neural Architecture Search (NAS) jobs. + message MultiTrialJobOutput { + // Output only. List of NasTrials that were started as part of search stage. + repeated NasTrial search_trials = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of NasTrials that were started as part of train stage. + repeated NasTrial train_trials = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The output of this Neural Architecture Search (NAS) job. + oneof output { + // Output only. The output of this multi-trial Neural Architecture Search + // (NAS) job. + MultiTrialJobOutput multi_trial_job_output = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} + +// Represents a uCAIP NasJob trial. +message NasTrial { + // Describes a NasTrial state. + enum State { + // The NasTrial state is unspecified. + STATE_UNSPECIFIED = 0; + + // Indicates that a specific NasTrial has been requested, but it has not yet + // been suggested by the service. + REQUESTED = 1; + + // Indicates that the NasTrial has been suggested. + ACTIVE = 2; + + // Indicates that the NasTrial should stop according to the service. + STOPPING = 3; + + // Indicates that the NasTrial is completed successfully. + SUCCEEDED = 4; + + // Indicates that the NasTrial should not be attempted again. + // The service will set a NasTrial to INFEASIBLE when it's done but missing + // the final_measurement. + INFEASIBLE = 5; + } + + // Output only. The identifier of the NasTrial assigned by the service. + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The detailed state of the NasTrial. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The final measurement containing the objective value. + Measurement final_measurement = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasTrial was started. + google.protobuf.Timestamp start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasTrial's status changed to `SUCCEEDED` or + // `INFEASIBLE`. + google.protobuf.Timestamp end_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto index 1b951f3b7fa..f0f6d2bb6a0 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/pipeline_job.proto @@ -381,8 +381,6 @@ message PipelineTaskExecutorDetail { // The detailed info for a custom job executor. message CustomJobDetail { - option deprecated = true; - // Output only. The name of the // [CustomJob][google.cloud.aiplatform.v1.CustomJob]. string job = 1 [ @@ -391,6 +389,11 @@ message PipelineTaskExecutorDetail { type: "aiplatform.googleapis.com/CustomJob" } ]; + + // Output only. The names of the previously failed + // [CustomJob][google.cloud.aiplatform.v1.CustomJob]. The list includes the + // all attempts in chronological order. + repeated string failed_jobs = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } oneof details { @@ -400,6 +403,6 @@ message PipelineTaskExecutorDetail { // Output only. The detailed info for a custom job executor. CustomJobDetail custom_job_detail = 2 - [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + [(google.api.field_behavior) = OUTPUT_ONLY]; } } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/service_networking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/service_networking.proto new file mode 100644 index 00000000000..e8ae11b7a82 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/service_networking.proto @@ -0,0 +1,38 @@ +// 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"; + +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 = "ServiceNetworkingProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// Represents configuration for private service connect. +message PrivateServiceConnectConfig { + // Required. If true, expose the IndexEndpoint via private service connect. + bool enable_private_service_connect = 1 + [(google.api.field_behavior) = REQUIRED]; + + // A list of Projects from which the forwarding rule will target the service + // attachment. + repeated string project_allowlist = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto index cbdacda2d12..4ef70dbeb24 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1/study.proto @@ -199,6 +199,21 @@ message Trial { message StudySpec { // Represents a metric to optimize. message MetricSpec { + // Used in safe optimization to specify threshold levels and risk tolerance. + message SafetyMetricConfig { + // Safety threshold (boundary value between safe and unsafe). NOTE that if + // you leave SafetyMetricConfig unset, a default value of 0 will be used. + double safety_threshold = 1; + + // Desired minimum fraction of safe trials (over total number of trials) + // that should be targeted by the algorithm at any time during the + // study (best effort). This should be between 0.0 and 1.0 and a value of + // 0.0 means that there is no minimum and an algorithm proceeds without + // targeting any specific fraction. A value of 1.0 means that the + // algorithm attempts to only Suggest safe Trials. + optional double desired_min_safe_trials_fraction = 2; + } + // The available types of optimization goals. enum GoalType { // Goal Type will default to maximize. @@ -217,6 +232,10 @@ message StudySpec { // Required. The optimization goal of the metric. GoalType goal = 2 [(google.api.field_behavior) = REQUIRED]; + + // Used for safe search. In the case, the metric will be a safety + // metric. You must provide a separate metric for objective metric. + optional SafetyMetricConfig safety_config = 3; } // Represents a single parameter to optimize. 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 ad084fce505..e5528607bf1 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 @@ -96,7 +96,7 @@ message Endpoint { // this key. EncryptionSpec encryption_spec = 10; - // The full name of the Google Compute Engine + // Optional. The full name of the Google Compute Engine // [network](https://cloud.google.com//compute/docs/networks-and-firewalls#networks) // to which the Endpoint should be peered. // @@ -113,6 +113,7 @@ message Endpoint { // Where `{project}` is a project number, as in `12345`, and `{network}` is // network name. string network = 13 [ + (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; @@ -213,6 +214,13 @@ message DeployedModel { // will be used for the explanation configuration. ExplanationSpec explanation_spec = 9; + // If true, deploy the model without explainable feature, regardless the + // existence of + // [Model.explanation_spec][google.cloud.aiplatform.v1beta1.Model.explanation_spec] + // or + // [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec]. + bool disable_explanations = 19; + // The service account that the DeployedModel's container runs as. Specify the // email address of the service account. If this service account is not // specified, the container runs as a service account that doesn't have access @@ -228,6 +236,8 @@ message DeployedModel { // Only supported for custom-trained Models and AutoML Tabular Models. bool enable_container_logging = 12; + // If true, online prediction access logs are sent to StackDriver + // Logging. // These logs are like standard server access logs, containing // information like timestamp and latency for each prediction request. // diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto index 59a3f7afa72..fc387c80b1b 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/index_endpoint.proto @@ -19,6 +19,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; +import "google/cloud/aiplatform/v1beta1/service_networking.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -102,6 +103,14 @@ message IndexEndpoint { // can be set. bool enable_private_service_connect = 10 [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for private service connect. + // + // [network][google.cloud.aiplatform.v1beta1.IndexEndpoint.network] and + // [private_service_connect_config][google.cloud.aiplatform.v1beta1.IndexEndpoint.private_service_connect_config] + // are mutually exclusive. + PrivateServiceConnectConfig private_service_connect_config = 12 + [(google.api.field_behavior) = OPTIONAL]; } // A deployment of an Index. IndexEndpoints contain one or more DeployedIndexes. @@ -178,10 +187,10 @@ message DeployedIndex { // e2-standard-16 and all machine types available for LARGE shard. // // Available machine types for LARGE shard: - // e2-standard-32, e2-highmem-16, n2d-standard-32. + // e2-highmem-16, n2d-standard-32. // // n1-standard-16 and n1-standard-32 are still available, but we recommend - // e2-standard-16 and e2-standard-32 for cost efficiency. + // e2-standard-16 and e2-highmem-16 for cost efficiency. DedicatedResources dedicated_resources = 16 [(google.api.field_behavior) = OPTIONAL]; diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_service.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_service.proto index e3416ee783b..abde6266bf8 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_service.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/job_service.proto @@ -25,6 +25,7 @@ import "google/cloud/aiplatform/v1beta1/custom_job.proto"; import "google/cloud/aiplatform/v1beta1/data_labeling_job.proto"; import "google/cloud/aiplatform/v1beta1/hyperparameter_tuning_job.proto"; import "google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto"; +import "google/cloud/aiplatform/v1beta1/nas_job.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; @@ -43,7 +44,8 @@ option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; service JobService { option (google.api.default_host) = "aiplatform.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/cloud-platform.read-only"; // Creates a CustomJob. A created CustomJob right away // will be attempted to be run. @@ -219,6 +221,81 @@ service JobService { option (google.api.method_signature) = "name"; } + // Creates a NasJob + rpc CreateNasJob(CreateNasJobRequest) returns (NasJob) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/nasJobs" + body: "nas_job" + }; + option (google.api.method_signature) = "parent,nas_job"; + } + + // Gets a NasJob + rpc GetNasJob(GetNasJobRequest) returns (NasJob) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/nasJobs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists NasJobs in a Location. + rpc ListNasJobs(ListNasJobsRequest) returns (ListNasJobsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/nasJobs" + }; + option (google.api.method_signature) = "parent"; + } + + // Deletes a NasJob. + rpc DeleteNasJob(DeleteNasJobRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/nasJobs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Cancels a NasJob. + // Starts asynchronous cancellation on the NasJob. The server + // makes a best effort to cancel the job, but success is not + // guaranteed. Clients can use + // [JobService.GetNasJob][google.cloud.aiplatform.v1beta1.JobService.GetNasJob] + // or other methods to check whether the cancellation succeeded or whether the + // job completed despite cancellation. On successful cancellation, + // the NasJob is not deleted; instead it becomes a job with + // a [NasJob.error][google.cloud.aiplatform.v1beta1.NasJob.error] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`, and + // [NasJob.state][google.cloud.aiplatform.v1beta1.NasJob.state] is set to + // `CANCELLED`. + rpc CancelNasJob(CancelNasJobRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/nasJobs/*}:cancel" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Gets a NasTrialDetail. + rpc GetNasTrialDetail(GetNasTrialDetailRequest) returns (NasTrialDetail) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/nasJobs/*/nasTrialDetails/*}" + }; + option (google.api.method_signature) = "name"; + } + + // List top NasTrialDetails of a NasJob. + rpc ListNasTrialDetails(ListNasTrialDetailsRequest) + returns (ListNasTrialDetailsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/nasJobs/*}/nasTrialDetails" + }; + option (google.api.method_signature) = "parent"; + } + // Creates a BatchPredictionJob. A BatchPredictionJob once created will // right away be attempted to start. rpc CreateBatchPredictionJob(CreateBatchPredictionJobRequest) @@ -752,6 +829,180 @@ message CancelHyperparameterTuningJobRequest { ]; } +// Request message for +// [JobService.CreateNasJob][google.cloud.aiplatform.v1beta1.JobService.CreateNasJob]. +message CreateNasJobRequest { + // Required. The resource name of the Location to create the NasJob in. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The NasJob to create. + NasJob nas_job = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [JobService.GetNasJob][google.cloud.aiplatform.v1beta1.JobService.GetNasJob]. +message GetNasJobRequest { + // Required. The name of the NasJob resource. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasJob" + } + ]; +} + +// Request message for +// [JobService.ListNasJobs][google.cloud.aiplatform.v1beta1.JobService.ListNasJobs]. +message ListNasJobsRequest { + // Required. The resource name of the Location to list the NasJobs + // from. Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // The standard list filter. + // + // Supported fields: + // + // * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + // * `state` supports `=`, `!=` comparisons. + // * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + // `create_time` must be in RFC 3339 format. + // * `labels` supports general map functions that is: + // `labels.key=value` - key:value equality + // `labels.key:* - key existence + // + // Some examples of using the filter are: + // + // * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + // * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + // * `NOT display_name="my_job"` + // * `create_time>"2021-05-18T00:00:00Z"` + // * `labels.keyA=valueA` + // * `labels.keyB:*` + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + // Typically obtained via + // [ListNasJobsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListNasJobsResponse.next_page_token] + // of the previous + // [JobService.ListNasJobs][google.cloud.aiplatform.v1beta1.JobService.ListNasJobs] + // call. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; +} + +// Response message for +// [JobService.ListNasJobs][google.cloud.aiplatform.v1beta1.JobService.ListNasJobs] +message ListNasJobsResponse { + // List of NasJobs in the requested page. + // [NasJob.nas_job_output][google.cloud.aiplatform.v1beta1.NasJob.nas_job_output] + // of the jobs will not be returned. + repeated NasJob nas_jobs = 1; + + // A token to retrieve the next page of results. + // Pass to + // [ListNasJobsRequest.page_token][google.cloud.aiplatform.v1beta1.ListNasJobsRequest.page_token] + // to obtain that page. + string next_page_token = 2; +} + +// Request message for +// [JobService.DeleteNasJob][google.cloud.aiplatform.v1beta1.JobService.DeleteNasJob]. +message DeleteNasJobRequest { + // Required. The name of the NasJob resource to be deleted. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasJob" + } + ]; +} + +// Request message for +// [JobService.CancelNasJob][google.cloud.aiplatform.v1beta1.JobService.CancelNasJob]. +message CancelNasJobRequest { + // Required. The name of the NasJob to cancel. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasJob" + } + ]; +} + +// Request message for +// [JobService.GetNasTrialDetail][google.cloud.aiplatform.v1beta1.JobService.GetNasTrialDetail]. +message GetNasTrialDetailRequest { + // Required. The name of the NasTrialDetail resource. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasTrialDetail" + } + ]; +} + +// Request message for +// [JobService.ListNasTrialDetails][google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails]. +message ListNasTrialDetailsRequest { + // Required. The name of the NasJob resource. + // Format: + // `projects/{project}/locations/{location}/nasJobs/{nas_job}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/NasJob" + } + ]; + + // The standard list page size. + int32 page_size = 2; + + // The standard list page token. + // Typically obtained via + // [ListNasTrialDetailsResponse.next_page_token][google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.next_page_token] + // of the previous + // [JobService.ListNasTrialDetails][google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails] + // call. + string page_token = 3; +} + +// Response message for +// [JobService.ListNasTrialDetails][google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails] +message ListNasTrialDetailsResponse { + // List of top NasTrials in the requested page. + repeated NasTrialDetail nas_trial_details = 1; + + // A token to retrieve the next page of results. + // Pass to + // [ListNasTrialDetailsRequest.page_token][google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest.page_token] + // to obtain that page. + string next_page_token = 2; +} + // Request message for // [JobService.CreateBatchPredictionJob][google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJob]. message CreateBatchPredictionJobRequest { 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 b76ec7d78f7..ed2b51e1848 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 @@ -90,6 +90,19 @@ message Model { [(google.api.field_behavior) = OUTPUT_ONLY]; } + // Contains information about the original Model if this Model is a copy. + message OriginalModelInfo { + // Output only. The resource name of the Model this Model is a copy of, + // including the revision. Format: + // `projects/{project}/locations/{location}/models/{model_id}@{version_id}` + string model = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + } + // Identifies a type of Model's prediction resources. enum DeploymentResourcesType { // Should not be used. @@ -380,6 +393,11 @@ message Model { ModelSourceInfo model_source_info = 38 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. If this Model is a copy of another Model, this contains info + // about the original. + OriginalModelInfo original_model_info = 34 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The resource name of the Artifact that was created in // MetadataStore when creating the Model. The Artifact resource name pattern // is 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 08ce8bcd95f..c1a68c12c52 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 @@ -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/encryption_spec.proto"; import "google/cloud/aiplatform/v1beta1/explanation.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/model.proto"; @@ -166,6 +167,24 @@ service ModelService { }; } + // Copies an already existing Vertex AI Model into the specified Location. + // The source Model must exist in the same Project. + // When copying custom Models, the users themselves are responsible for + // [Model.metadata][google.cloud.aiplatform.v1beta1.Model.metadata] content to + // be region-agnostic, as well as making sure that any resources (e.g. files) + // it depends on remain accessible. + rpc CopyModel(CopyModelRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/models:copy" + body: "*" + }; + option (google.api.method_signature) = "parent,source_model"; + option (google.longrunning.operation_info) = { + response_type: "CopyModelResponse" + metadata_type: "CopyModelOperationMetadata" + }; + } + // Imports an externally generated ModelEvaluation. rpc ImportModelEvaluation(ImportModelEvaluationRequest) returns (ModelEvaluation) { @@ -612,6 +631,75 @@ message UpdateExplanationDatasetResponse {} // operation. message ExportModelResponse {} +// Request message for +// [ModelService.CopyModel][google.cloud.aiplatform.v1beta1.ModelService.CopyModel]. +message CopyModelRequest { + // If both fields are unset, a new Model will be created with a generated ID. + oneof destination_model { + // Optional. Copy source_model into a new Model with this ID. The ID will + // become the final component of the model resource name. + // + // This value may be up to 63 characters, and valid characters are + // `[a-z0-9_-]`. The first character cannot be a number or hyphen. + string model_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specify this field to copy source_model into this existing + // Model as a new version. Format: + // `projects/{project}/locations/{location}/models/{model}` + string parent_model = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + } + + // Required. The resource name of the Location into which to copy the Model. + // Format: `projects/{project}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The resource name of the Model to copy. That Model must be in the + // same Project. Format: + // `projects/{project}/locations/{location}/models/{model}` + string source_model = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // Customer-managed encryption key options. If this is set, + // then the Model copy will be encrypted with the provided encryption key. + EncryptionSpec encryption_spec = 3; +} + +// Details of +// [ModelService.CopyModel][google.cloud.aiplatform.v1beta1.ModelService.CopyModel] +// operation. +message CopyModelOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Response message of +// [ModelService.CopyModel][google.cloud.aiplatform.v1beta1.ModelService.CopyModel] +// operation. +message CopyModelResponse { + // The name of the copied Model resource. + // Format: `projects/{project}/locations/{location}/models/{model}` + string model = 1 [(google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + }]; + + // Output only. The version ID of the model that is copied. + string model_version_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Request message for // [ModelService.ImportModelEvaluation][google.cloud.aiplatform.v1beta1.ModelService.ImportModelEvaluation] message ImportModelEvaluationRequest { 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 new file mode 100644 index 00000000000..383d3c5aca2 --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/nas_job.proto @@ -0,0 +1,306 @@ +// 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/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/custom_job.proto"; +import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1beta1/job_state.proto"; +import "google/cloud/aiplatform/v1beta1/study.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.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 = "NasJobProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// Represents a Neural Architecture Search (NAS) job. +message NasJob { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/NasJob" + pattern: "projects/{project}/locations/{location}/nasJobs/{nas_job}" + }; + + // Output only. Resource name of the NasJob. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The display name of the NasJob. + // The name can be up to 128 characters long and can consist of any UTF-8 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The specification of a NasJob. + NasJobSpec nas_job_spec = 4 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Output of the NasJob. + NasJobOutput nas_job_output = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The detailed state of the job. + JobState state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasJob was created. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasJob for the first time entered the + // `JOB_STATE_RUNNING` state. + google.protobuf.Timestamp start_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasJob entered any of the following states: + // `JOB_STATE_SUCCEEDED`, `JOB_STATE_FAILED`, `JOB_STATE_CANCELLED`. + google.protobuf.Timestamp end_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasJob was most recently updated. + google.protobuf.Timestamp update_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Only populated when job's state is JOB_STATE_FAILED or + // JOB_STATE_CANCELLED. + google.rpc.Status error = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The labels with user-defined metadata to organize NasJobs. + // + // Label keys and values can be no longer than 64 characters + // (Unicode codepoints), can only contain lowercase letters, numeric + // characters, underscores and dashes. International characters are allowed. + // + // See https://goo.gl/xmQnxf for more information and examples of labels. + map labels = 12; + + // Customer-managed encryption key options for a NasJob. + // If this is set, then all resources created by the NasJob + // will be encrypted with the provided encryption key. + EncryptionSpec encryption_spec = 13; + + // 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]; +} + +// Represents a NasTrial details along with it's parameters. If there is a +// corresponding train NasTrial, the train NasTrial is also returned. +message NasTrialDetail { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/NasTrialDetail" + pattern: "projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}" + }; + + // Output only. Resource name of the NasTrialDetail. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The parameters for the NasJob NasTrial. + string parameters = 2; + + // The requested search NasTrial. + NasTrial search_trial = 3; + + // The train NasTrial corresponding to + // [search_trial][google.cloud.aiplatform.v1beta1.NasTrialDetail.search_trial]. + // Only populated if + // [search_trial][google.cloud.aiplatform.v1beta1.NasTrialDetail.search_trial] + // is used for training. + NasTrial train_trial = 4; +} + +// Represents the spec of a NasJob. +message NasJobSpec { + // The spec of multi-trial Neural Architecture Search (NAS). + message MultiTrialAlgorithmSpec { + // Represents a metric to optimize. + message MetricSpec { + // The available types of optimization goals. + enum GoalType { + // Goal Type will default to maximize. + GOAL_TYPE_UNSPECIFIED = 0; + + // Maximize the goal metric. + MAXIMIZE = 1; + + // Minimize the goal metric. + MINIMIZE = 2; + } + + // Required. The ID of the metric. Must not contain whitespaces. + string metric_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The optimization goal of the metric. + GoalType goal = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Represent spec for search trials. + message SearchTrialSpec { + // Required. The spec of a search trial job. The same spec applies to + // all search trials. + CustomJobSpec search_trial_job_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The maximum number of Neural Architecture Search (NAS) trials + // to run. + int32 max_trial_count = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The maximum number of trials to run in parallel. + int32 max_parallel_trial_count = 3 + [(google.api.field_behavior) = REQUIRED]; + + // The number of failed trials that need to be seen before failing + // the NasJob. + // + // If set to 0, Vertex AI decides how many trials must fail + // before the whole job fails. + int32 max_failed_trial_count = 4; + } + + // Represent spec for train trials. + message TrainTrialSpec { + // Required. The spec of a train trial job. The same spec applies to + // all train trials. + CustomJobSpec train_trial_job_spec = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The maximum number of trials to run in parallel. + int32 max_parallel_trial_count = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Frequency of search trials to start train stage. Top N + // [TrainTrialSpec.max_parallel_trial_count] + // search trials will be trained for every M + // [TrainTrialSpec.frequency] trials searched. + int32 frequency = 3 [(google.api.field_behavior) = REQUIRED]; + } + + // The available types of multi-trial algorithms. + enum MultiTrialAlgorithm { + // Defaults to `REINFORCEMENT_LEARNING`. + MULTI_TRIAL_ALGORITHM_UNSPECIFIED = 0; + + // The Reinforcement Learning Algorithm for Multi-trial Neural + // Architecture Search (NAS). + REINFORCEMENT_LEARNING = 1; + + // The Grid Search Algorithm for Multi-trial Neural + // Architecture Search (NAS). + GRID_SEARCH = 2; + } + + // The multi-trial Neural Architecture Search (NAS) algorithm + // type. Defaults to `REINFORCEMENT_LEARNING`. + MultiTrialAlgorithm multi_trial_algorithm = 1; + + // Metric specs for the NAS job. + // Validation for this field is done at `multi_trial_algorithm_spec` field. + MetricSpec metric = 2; + + // Required. Spec for search trials. + SearchTrialSpec search_trial_spec = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Spec for train trials. Top N [TrainTrialSpec.max_parallel_trial_count] + // search trials will be trained for every M + // [TrainTrialSpec.frequency] trials searched. + TrainTrialSpec train_trial_spec = 4; + } + + // The Neural Architecture Search (NAS) algorithm specification. + oneof nas_algorithm_spec { + // The spec of multi-trial algorithms. + MultiTrialAlgorithmSpec multi_trial_algorithm_spec = 2; + } + + // The ID of the existing NasJob in the same Project and Location + // which will be used to resume search. search_space_spec and + // nas_algorithm_spec are obtained from previous NasJob hence should not + // provide them again for this NasJob. + string resume_nas_job_id = 3; + + // It defines the search space for Neural Architecture Search (NAS). + string search_space_spec = 1; +} + +// Represents a uCAIP NasJob output. +message NasJobOutput { + // The output of a multi-trial Neural Architecture Search (NAS) jobs. + message MultiTrialJobOutput { + // Output only. List of NasTrials that were started as part of search stage. + repeated NasTrial search_trials = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of NasTrials that were started as part of train stage. + repeated NasTrial train_trials = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The output of this Neural Architecture Search (NAS) job. + oneof output { + // Output only. The output of this multi-trial Neural Architecture Search + // (NAS) job. + MultiTrialJobOutput multi_trial_job_output = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} + +// Represents a uCAIP NasJob trial. +message NasTrial { + // Describes a NasTrial state. + enum State { + // The NasTrial state is unspecified. + STATE_UNSPECIFIED = 0; + + // Indicates that a specific NasTrial has been requested, but it has not yet + // been suggested by the service. + REQUESTED = 1; + + // Indicates that the NasTrial has been suggested. + ACTIVE = 2; + + // Indicates that the NasTrial should stop according to the service. + STOPPING = 3; + + // Indicates that the NasTrial is completed successfully. + SUCCEEDED = 4; + + // Indicates that the NasTrial should not be attempted again. + // The service will set a NasTrial to INFEASIBLE when it's done but missing + // the final_measurement. + INFEASIBLE = 5; + } + + // Output only. The identifier of the NasTrial assigned by the service. + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The detailed state of the NasTrial. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The final measurement containing the objective value. + Measurement final_measurement = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasTrial was started. + google.protobuf.Timestamp start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time when the NasTrial's status changed to `SUCCEEDED` or + // `INFEASIBLE`. + google.protobuf.Timestamp end_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto index 93edfbdf9f1..88d66b17647 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto @@ -382,8 +382,6 @@ message PipelineTaskExecutorDetail { // The detailed info for a custom job executor. message CustomJobDetail { - option deprecated = true; - // Output only. The name of the // [CustomJob][google.cloud.aiplatform.v1beta1.CustomJob]. string job = 1 [ @@ -392,6 +390,11 @@ message PipelineTaskExecutorDetail { type: "aiplatform.googleapis.com/CustomJob" } ]; + + // Output only. The names of the previously failed + // [CustomJob][google.cloud.aiplatform.v1beta1.CustomJob]. The list includes + // the all attempts in chronological order. + repeated string failed_jobs = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } oneof details { @@ -401,6 +404,6 @@ message PipelineTaskExecutorDetail { // Output only. The detailed info for a custom job executor. CustomJobDetail custom_job_detail = 2 - [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; + [(google.api.field_behavior) = OUTPUT_ONLY]; } } diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/service_networking.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/service_networking.proto new file mode 100644 index 00000000000..3c3052633ec --- /dev/null +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/service_networking.proto @@ -0,0 +1,38 @@ +// 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"; + +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 = "ServiceNetworkingProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// Represents configuration for private service connect. +message PrivateServiceConnectConfig { + // Required. If true, expose the IndexEndpoint via private service connect. + bool enable_private_service_connect = 1 + [(google.api.field_behavior) = REQUIRED]; + + // A list of Projects from which the forwarding rule will target the service + // attachment. + repeated string project_allowlist = 2; +} diff --git a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto index 8337e964362..03a9cfb72ea 100644 --- a/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto +++ b/packages/google-cloud-aiplatform/protos/google/cloud/aiplatform/v1beta1/study.proto @@ -199,6 +199,21 @@ message Trial { message StudySpec { // Represents a metric to optimize. message MetricSpec { + // Used in safe optimization to specify threshold levels and risk tolerance. + message SafetyMetricConfig { + // Safety threshold (boundary value between safe and unsafe). NOTE that if + // you leave SafetyMetricConfig unset, a default value of 0 will be used. + double safety_threshold = 1; + + // Desired minimum fraction of safe trials (over total number of trials) + // that should be targeted by the algorithm at any time during the + // study (best effort). This should be between 0.0 and 1.0 and a value of + // 0.0 means that there is no minimum and an algorithm proceeds without + // targeting any specific fraction. A value of 1.0 means that the + // algorithm attempts to only Suggest safe Trials. + optional double desired_min_safe_trials_fraction = 2; + } + // The available types of optimization goals. enum GoalType { // Goal Type will default to maximize. @@ -217,6 +232,10 @@ message StudySpec { // Required. The optimization goal of the metric. GoalType goal = 2 [(google.api.field_behavior) = REQUIRED]; + + // Used for safe search. In the case, the metric will be a safety + // metric. You must provide a separate metric for objective metric. + optional SafetyMetricConfig safety_config = 3; } // Represents a single parameter to optimize. diff --git a/packages/google-cloud-aiplatform/protos/protos.d.ts b/packages/google-cloud-aiplatform/protos/protos.d.ts index 6f816ce8cda..6bd2b72a98e 100644 --- a/packages/google-cloud-aiplatform/protos/protos.d.ts +++ b/packages/google-cloud-aiplatform/protos/protos.d.ts @@ -6143,6 +6143,9 @@ export namespace google { /** Model modelSourceInfo */ modelSourceInfo?: (google.cloud.aiplatform.v1.IModelSourceInfo|null); + /** Model originalModelInfo */ + originalModelInfo?: (google.cloud.aiplatform.v1.Model.IOriginalModelInfo|null); + /** Model metadataArtifact */ metadataArtifact?: (string|null); } @@ -6234,6 +6237,9 @@ export namespace google { /** Model modelSourceInfo. */ public modelSourceInfo?: (google.cloud.aiplatform.v1.IModelSourceInfo|null); + /** Model originalModelInfo. */ + public originalModelInfo?: (google.cloud.aiplatform.v1.Model.IOriginalModelInfo|null); + /** Model metadataArtifact. */ public metadataArtifact: string; @@ -6430,6 +6436,103 @@ export namespace google { } } + /** Properties of an OriginalModelInfo. */ + interface IOriginalModelInfo { + + /** OriginalModelInfo model */ + model?: (string|null); + } + + /** Represents an OriginalModelInfo. */ + class OriginalModelInfo implements IOriginalModelInfo { + + /** + * Constructs a new OriginalModelInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.Model.IOriginalModelInfo); + + /** OriginalModelInfo model. */ + public model: string; + + /** + * Creates a new OriginalModelInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns OriginalModelInfo instance + */ + public static create(properties?: google.cloud.aiplatform.v1.Model.IOriginalModelInfo): google.cloud.aiplatform.v1.Model.OriginalModelInfo; + + /** + * Encodes the specified OriginalModelInfo message. Does not implicitly {@link google.cloud.aiplatform.v1.Model.OriginalModelInfo.verify|verify} messages. + * @param message OriginalModelInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.Model.IOriginalModelInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OriginalModelInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Model.OriginalModelInfo.verify|verify} messages. + * @param message OriginalModelInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.Model.IOriginalModelInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OriginalModelInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OriginalModelInfo + * @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.Model.OriginalModelInfo; + + /** + * Decodes an OriginalModelInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OriginalModelInfo + * @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.Model.OriginalModelInfo; + + /** + * Verifies an OriginalModelInfo 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 OriginalModelInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OriginalModelInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Model.OriginalModelInfo; + + /** + * Creates a plain object from an OriginalModelInfo message. Also converts values to other types if specified. + * @param message OriginalModelInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.Model.OriginalModelInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OriginalModelInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OriginalModelInfo + * @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, @@ -24011,6 +24114,9 @@ export namespace google { /** MetricSpec goal */ goal?: (google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType|null); + + /** MetricSpec safetyConfig */ + safetyConfig?: (google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig|null); } /** Represents a MetricSpec. */ @@ -24028,6 +24134,12 @@ export namespace google { /** MetricSpec goal. */ public goal: (google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType); + /** MetricSpec safetyConfig. */ + public safetyConfig?: (google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig|null); + + /** MetricSpec _safetyConfig. */ + public _safetyConfig?: "safetyConfig"; + /** * Creates a new MetricSpec instance using the specified properties. * @param [properties] Properties to set @@ -24108,6 +24220,112 @@ export namespace google { namespace MetricSpec { + /** Properties of a SafetyMetricConfig. */ + interface ISafetyMetricConfig { + + /** SafetyMetricConfig safetyThreshold */ + safetyThreshold?: (number|null); + + /** SafetyMetricConfig desiredMinSafeTrialsFraction */ + desiredMinSafeTrialsFraction?: (number|null); + } + + /** Represents a SafetyMetricConfig. */ + class SafetyMetricConfig implements ISafetyMetricConfig { + + /** + * Constructs a new SafetyMetricConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig); + + /** SafetyMetricConfig safetyThreshold. */ + public safetyThreshold: number; + + /** SafetyMetricConfig desiredMinSafeTrialsFraction. */ + public desiredMinSafeTrialsFraction?: (number|null); + + /** SafetyMetricConfig _desiredMinSafeTrialsFraction. */ + public _desiredMinSafeTrialsFraction?: "desiredMinSafeTrialsFraction"; + + /** + * Creates a new SafetyMetricConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SafetyMetricConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig): google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig; + + /** + * Encodes the specified SafetyMetricConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @param message SafetyMetricConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SafetyMetricConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @param message SafetyMetricConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SafetyMetricConfig + * @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.StudySpec.MetricSpec.SafetyMetricConfig; + + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SafetyMetricConfig + * @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.StudySpec.MetricSpec.SafetyMetricConfig; + + /** + * Verifies a SafetyMetricConfig 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 SafetyMetricConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SafetyMetricConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig; + + /** + * Creates a plain object from a SafetyMetricConfig message. Also converts values to other types if specified. + * @param message SafetyMetricConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SafetyMetricConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SafetyMetricConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** GoalType enum. */ enum GoalType { GOAL_TYPE_UNSPECIFIED = 0, @@ -26304,6 +26522,9 @@ export namespace google { /** IndexEndpoint enablePrivateServiceConnect */ enablePrivateServiceConnect?: (boolean|null); + + /** IndexEndpoint privateServiceConnectConfig */ + privateServiceConnectConfig?: (google.cloud.aiplatform.v1.IPrivateServiceConnectConfig|null); } /** Represents an IndexEndpoint. */ @@ -26345,6 +26566,9 @@ export namespace google { /** IndexEndpoint enablePrivateServiceConnect. */ public enablePrivateServiceConnect: boolean; + /** IndexEndpoint privateServiceConnectConfig. */ + public privateServiceConnectConfig?: (google.cloud.aiplatform.v1.IPrivateServiceConnectConfig|null); + /** * Creates a new IndexEndpoint instance using the specified properties. * @param [properties] Properties to set @@ -26892,6 +27116,109 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a PrivateServiceConnectConfig. */ + interface IPrivateServiceConnectConfig { + + /** PrivateServiceConnectConfig enablePrivateServiceConnect */ + enablePrivateServiceConnect?: (boolean|null); + + /** PrivateServiceConnectConfig projectAllowlist */ + projectAllowlist?: (string[]|null); + } + + /** Represents a PrivateServiceConnectConfig. */ + class PrivateServiceConnectConfig implements IPrivateServiceConnectConfig { + + /** + * Constructs a new PrivateServiceConnectConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPrivateServiceConnectConfig); + + /** PrivateServiceConnectConfig enablePrivateServiceConnect. */ + public enablePrivateServiceConnect: boolean; + + /** PrivateServiceConnectConfig projectAllowlist. */ + public projectAllowlist: string[]; + + /** + * Creates a new PrivateServiceConnectConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PrivateServiceConnectConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPrivateServiceConnectConfig): google.cloud.aiplatform.v1.PrivateServiceConnectConfig; + + /** + * Encodes the specified PrivateServiceConnectConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PrivateServiceConnectConfig.verify|verify} messages. + * @param message PrivateServiceConnectConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPrivateServiceConnectConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PrivateServiceConnectConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PrivateServiceConnectConfig.verify|verify} messages. + * @param message PrivateServiceConnectConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPrivateServiceConnectConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PrivateServiceConnectConfig + * @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.PrivateServiceConnectConfig; + + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PrivateServiceConnectConfig + * @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.PrivateServiceConnectConfig; + + /** + * Verifies a PrivateServiceConnectConfig 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 PrivateServiceConnectConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PrivateServiceConnectConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PrivateServiceConnectConfig; + + /** + * Creates a plain object from a PrivateServiceConnectConfig message. Also converts values to other types if specified. + * @param message PrivateServiceConnectConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PrivateServiceConnectConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PrivateServiceConnectConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PrivateServiceConnectConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Represents an IndexEndpointService */ class IndexEndpointService extends $protobuf.rpc.Service { @@ -30678,6 +31005,104 @@ export namespace google { */ public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1.ICancelHyperparameterTuningJobRequest): Promise; + /** + * Calls CreateNasJob. + * @param request CreateNasJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NasJob + */ + public createNasJob(request: google.cloud.aiplatform.v1.ICreateNasJobRequest, callback: google.cloud.aiplatform.v1.JobService.CreateNasJobCallback): void; + + /** + * Calls CreateNasJob. + * @param request CreateNasJobRequest message or plain object + * @returns Promise + */ + public createNasJob(request: google.cloud.aiplatform.v1.ICreateNasJobRequest): Promise; + + /** + * Calls GetNasJob. + * @param request GetNasJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NasJob + */ + public getNasJob(request: google.cloud.aiplatform.v1.IGetNasJobRequest, callback: google.cloud.aiplatform.v1.JobService.GetNasJobCallback): void; + + /** + * Calls GetNasJob. + * @param request GetNasJobRequest message or plain object + * @returns Promise + */ + public getNasJob(request: google.cloud.aiplatform.v1.IGetNasJobRequest): Promise; + + /** + * Calls ListNasJobs. + * @param request ListNasJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListNasJobsResponse + */ + public listNasJobs(request: google.cloud.aiplatform.v1.IListNasJobsRequest, callback: google.cloud.aiplatform.v1.JobService.ListNasJobsCallback): void; + + /** + * Calls ListNasJobs. + * @param request ListNasJobsRequest message or plain object + * @returns Promise + */ + public listNasJobs(request: google.cloud.aiplatform.v1.IListNasJobsRequest): Promise; + + /** + * Calls DeleteNasJob. + * @param request DeleteNasJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteNasJob(request: google.cloud.aiplatform.v1.IDeleteNasJobRequest, callback: google.cloud.aiplatform.v1.JobService.DeleteNasJobCallback): void; + + /** + * Calls DeleteNasJob. + * @param request DeleteNasJobRequest message or plain object + * @returns Promise + */ + public deleteNasJob(request: google.cloud.aiplatform.v1.IDeleteNasJobRequest): Promise; + + /** + * Calls CancelNasJob. + * @param request CancelNasJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public cancelNasJob(request: google.cloud.aiplatform.v1.ICancelNasJobRequest, callback: google.cloud.aiplatform.v1.JobService.CancelNasJobCallback): void; + + /** + * Calls CancelNasJob. + * @param request CancelNasJobRequest message or plain object + * @returns Promise + */ + public cancelNasJob(request: google.cloud.aiplatform.v1.ICancelNasJobRequest): Promise; + + /** + * Calls GetNasTrialDetail. + * @param request GetNasTrialDetailRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NasTrialDetail + */ + public getNasTrialDetail(request: google.cloud.aiplatform.v1.IGetNasTrialDetailRequest, callback: google.cloud.aiplatform.v1.JobService.GetNasTrialDetailCallback): void; + + /** + * Calls GetNasTrialDetail. + * @param request GetNasTrialDetailRequest message or plain object + * @returns Promise + */ + public getNasTrialDetail(request: google.cloud.aiplatform.v1.IGetNasTrialDetailRequest): Promise; + + /** + * Calls ListNasTrialDetails. + * @param request ListNasTrialDetailsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListNasTrialDetailsResponse + */ + public listNasTrialDetails(request: google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, callback: google.cloud.aiplatform.v1.JobService.ListNasTrialDetailsCallback): void; + + /** + * Calls ListNasTrialDetails. + * @param request ListNasTrialDetailsRequest message or plain object + * @returns Promise + */ + public listNasTrialDetails(request: google.cloud.aiplatform.v1.IListNasTrialDetailsRequest): Promise; + /** * Calls CreateBatchPredictionJob. * @param request CreateBatchPredictionJobRequest message or plain object @@ -30968,6 +31393,55 @@ export namespace google { */ type CancelHyperparameterTuningJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createNasJob}. + * @param error Error, if any + * @param [response] NasJob + */ + type CreateNasJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.NasJob) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getNasJob}. + * @param error Error, if any + * @param [response] NasJob + */ + type GetNasJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.NasJob) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listNasJobs}. + * @param error Error, if any + * @param [response] ListNasJobsResponse + */ + type ListNasJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListNasJobsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|deleteNasJob}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteNasJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|cancelNasJob}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelNasJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getNasTrialDetail}. + * @param error Error, if any + * @param [response] NasTrialDetail + */ + type GetNasTrialDetailCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.NasTrialDetail) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listNasTrialDetails}. + * @param error Error, if any + * @param [response] ListNasTrialDetailsResponse + */ + type ListNasTrialDetailsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListNasTrialDetailsResponse) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createBatchPredictionJob}. * @param error Error, if any @@ -32920,17282 +33394,16840 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateBatchPredictionJobRequest. */ - interface ICreateBatchPredictionJobRequest { + /** Properties of a CreateNasJobRequest. */ + interface ICreateNasJobRequest { - /** CreateBatchPredictionJobRequest parent */ + /** CreateNasJobRequest parent */ parent?: (string|null); - /** CreateBatchPredictionJobRequest batchPredictionJob */ - batchPredictionJob?: (google.cloud.aiplatform.v1.IBatchPredictionJob|null); + /** CreateNasJobRequest nasJob */ + nasJob?: (google.cloud.aiplatform.v1.INasJob|null); } - /** Represents a CreateBatchPredictionJobRequest. */ - class CreateBatchPredictionJobRequest implements ICreateBatchPredictionJobRequest { + /** Represents a CreateNasJobRequest. */ + class CreateNasJobRequest implements ICreateNasJobRequest { /** - * Constructs a new CreateBatchPredictionJobRequest. + * Constructs a new CreateNasJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateNasJobRequest); - /** CreateBatchPredictionJobRequest parent. */ + /** CreateNasJobRequest parent. */ public parent: string; - /** CreateBatchPredictionJobRequest batchPredictionJob. */ - public batchPredictionJob?: (google.cloud.aiplatform.v1.IBatchPredictionJob|null); + /** CreateNasJobRequest nasJob. */ + public nasJob?: (google.cloud.aiplatform.v1.INasJob|null); /** - * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. + * Creates a new CreateNasJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateBatchPredictionJobRequest instance + * @returns CreateNasJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest): google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateNasJobRequest): google.cloud.aiplatform.v1.CreateNasJobRequest; /** - * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. - * @param message CreateBatchPredictionJobRequest message or plain object to encode + * Encodes the specified CreateNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateNasJobRequest.verify|verify} messages. + * @param message CreateNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. - * @param message CreateBatchPredictionJobRequest message or plain object to encode + * Encodes the specified CreateNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateNasJobRequest.verify|verify} messages. + * @param message CreateNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a CreateNasJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateBatchPredictionJobRequest + * @returns CreateNasJobRequest * @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.CreateBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateNasJobRequest; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateNasJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateBatchPredictionJobRequest + * @returns CreateNasJobRequest * @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.CreateBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateNasJobRequest; /** - * Verifies a CreateBatchPredictionJobRequest message. + * Verifies a CreateNasJobRequest 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 CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateNasJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateBatchPredictionJobRequest + * @returns CreateNasJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateNasJobRequest; /** - * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message CreateBatchPredictionJobRequest + * Creates a plain object from a CreateNasJobRequest message. Also converts values to other types if specified. + * @param message CreateNasJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateNasJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateBatchPredictionJobRequest to JSON. + * Converts this CreateNasJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateBatchPredictionJobRequest + * Gets the default type url for CreateNasJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetBatchPredictionJobRequest. */ - interface IGetBatchPredictionJobRequest { + /** Properties of a GetNasJobRequest. */ + interface IGetNasJobRequest { - /** GetBatchPredictionJobRequest name */ + /** GetNasJobRequest name */ name?: (string|null); } - /** Represents a GetBatchPredictionJobRequest. */ - class GetBatchPredictionJobRequest implements IGetBatchPredictionJobRequest { + /** Represents a GetNasJobRequest. */ + class GetNasJobRequest implements IGetNasJobRequest { /** - * Constructs a new GetBatchPredictionJobRequest. + * Constructs a new GetNasJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IGetNasJobRequest); - /** GetBatchPredictionJobRequest name. */ + /** GetNasJobRequest name. */ public name: string; /** - * Creates a new GetBatchPredictionJobRequest instance using the specified properties. + * Creates a new GetNasJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetBatchPredictionJobRequest instance + * @returns GetNasJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest): google.cloud.aiplatform.v1.GetBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IGetNasJobRequest): google.cloud.aiplatform.v1.GetNasJobRequest; /** - * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. - * @param message GetBatchPredictionJobRequest message or plain object to encode + * Encodes the specified GetNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasJobRequest.verify|verify} messages. + * @param message GetNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. - * @param message GetBatchPredictionJobRequest message or plain object to encode + * Encodes the specified GetNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasJobRequest.verify|verify} messages. + * @param message GetNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a GetNasJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetBatchPredictionJobRequest + * @returns GetNasJobRequest * @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.GetBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetNasJobRequest; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNasJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetBatchPredictionJobRequest + * @returns GetNasJobRequest * @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.GetBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetNasJobRequest; /** - * Verifies a GetBatchPredictionJobRequest message. + * Verifies a GetNasJobRequest 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 GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetBatchPredictionJobRequest + * @returns GetNasJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetNasJobRequest; /** - * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message GetBatchPredictionJobRequest + * Creates a plain object from a GetNasJobRequest message. Also converts values to other types if specified. + * @param message GetNasJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetNasJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetBatchPredictionJobRequest to JSON. + * Converts this GetNasJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetBatchPredictionJobRequest + * Gets the default type url for GetNasJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListBatchPredictionJobsRequest. */ - interface IListBatchPredictionJobsRequest { + /** Properties of a ListNasJobsRequest. */ + interface IListNasJobsRequest { - /** ListBatchPredictionJobsRequest parent */ + /** ListNasJobsRequest parent */ parent?: (string|null); - /** ListBatchPredictionJobsRequest filter */ + /** ListNasJobsRequest filter */ filter?: (string|null); - /** ListBatchPredictionJobsRequest pageSize */ + /** ListNasJobsRequest pageSize */ pageSize?: (number|null); - /** ListBatchPredictionJobsRequest pageToken */ + /** ListNasJobsRequest pageToken */ pageToken?: (string|null); - /** ListBatchPredictionJobsRequest readMask */ + /** ListNasJobsRequest readMask */ readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListBatchPredictionJobsRequest. */ - class ListBatchPredictionJobsRequest implements IListBatchPredictionJobsRequest { + /** Represents a ListNasJobsRequest. */ + class ListNasJobsRequest implements IListNasJobsRequest { /** - * Constructs a new ListBatchPredictionJobsRequest. + * Constructs a new ListNasJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListNasJobsRequest); - /** ListBatchPredictionJobsRequest parent. */ + /** ListNasJobsRequest parent. */ public parent: string; - /** ListBatchPredictionJobsRequest filter. */ + /** ListNasJobsRequest filter. */ public filter: string; - /** ListBatchPredictionJobsRequest pageSize. */ + /** ListNasJobsRequest pageSize. */ public pageSize: number; - /** ListBatchPredictionJobsRequest pageToken. */ + /** ListNasJobsRequest pageToken. */ public pageToken: string; - /** ListBatchPredictionJobsRequest readMask. */ + /** ListNasJobsRequest readMask. */ public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. + * Creates a new ListNasJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListBatchPredictionJobsRequest instance + * @returns ListNasJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest): google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListNasJobsRequest): google.cloud.aiplatform.v1.ListNasJobsRequest; /** - * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. - * @param message ListBatchPredictionJobsRequest message or plain object to encode + * Encodes the specified ListNasJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsRequest.verify|verify} messages. + * @param message ListNasJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListNasJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. - * @param message ListBatchPredictionJobsRequest message or plain object to encode + * Encodes the specified ListNasJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsRequest.verify|verify} messages. + * @param message ListNasJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListNasJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. + * Decodes a ListNasJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListBatchPredictionJobsRequest + * @returns ListNasJobsRequest * @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.ListBatchPredictionJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListNasJobsRequest; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListBatchPredictionJobsRequest + * @returns ListNasJobsRequest * @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.ListBatchPredictionJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListNasJobsRequest; /** - * Verifies a ListBatchPredictionJobsRequest message. + * Verifies a ListNasJobsRequest 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 ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListBatchPredictionJobsRequest + * @returns ListNasJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListNasJobsRequest; /** - * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. - * @param message ListBatchPredictionJobsRequest + * Creates a plain object from a ListNasJobsRequest message. Also converts values to other types if specified. + * @param message ListNasJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListNasJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListBatchPredictionJobsRequest to JSON. + * Converts this ListNasJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListBatchPredictionJobsRequest + * Gets the default type url for ListNasJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListBatchPredictionJobsResponse. */ - interface IListBatchPredictionJobsResponse { + /** Properties of a ListNasJobsResponse. */ + interface IListNasJobsResponse { - /** ListBatchPredictionJobsResponse batchPredictionJobs */ - batchPredictionJobs?: (google.cloud.aiplatform.v1.IBatchPredictionJob[]|null); + /** ListNasJobsResponse nasJobs */ + nasJobs?: (google.cloud.aiplatform.v1.INasJob[]|null); - /** ListBatchPredictionJobsResponse nextPageToken */ + /** ListNasJobsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListBatchPredictionJobsResponse. */ - class ListBatchPredictionJobsResponse implements IListBatchPredictionJobsResponse { + /** Represents a ListNasJobsResponse. */ + class ListNasJobsResponse implements IListNasJobsResponse { /** - * Constructs a new ListBatchPredictionJobsResponse. + * Constructs a new ListNasJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListNasJobsResponse); - /** ListBatchPredictionJobsResponse batchPredictionJobs. */ - public batchPredictionJobs: google.cloud.aiplatform.v1.IBatchPredictionJob[]; + /** ListNasJobsResponse nasJobs. */ + public nasJobs: google.cloud.aiplatform.v1.INasJob[]; - /** ListBatchPredictionJobsResponse nextPageToken. */ + /** ListNasJobsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. + * Creates a new ListNasJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListBatchPredictionJobsResponse instance + * @returns ListNasJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse): google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListNasJobsResponse): google.cloud.aiplatform.v1.ListNasJobsResponse; /** - * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. - * @param message ListBatchPredictionJobsResponse message or plain object to encode + * Encodes the specified ListNasJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsResponse.verify|verify} messages. + * @param message ListNasJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListNasJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. - * @param message ListBatchPredictionJobsResponse message or plain object to encode + * Encodes the specified ListNasJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsResponse.verify|verify} messages. + * @param message ListNasJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListNasJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. + * Decodes a ListNasJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListBatchPredictionJobsResponse + * @returns ListNasJobsResponse * @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.ListBatchPredictionJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListNasJobsResponse; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListBatchPredictionJobsResponse + * @returns ListNasJobsResponse * @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.ListBatchPredictionJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListNasJobsResponse; /** - * Verifies a ListBatchPredictionJobsResponse message. + * Verifies a ListNasJobsResponse 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 ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListBatchPredictionJobsResponse + * @returns ListNasJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListNasJobsResponse; /** - * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. - * @param message ListBatchPredictionJobsResponse + * Creates a plain object from a ListNasJobsResponse message. Also converts values to other types if specified. + * @param message ListNasJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListNasJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListBatchPredictionJobsResponse to JSON. + * Converts this ListNasJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListBatchPredictionJobsResponse + * Gets the default type url for ListNasJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteBatchPredictionJobRequest. */ - interface IDeleteBatchPredictionJobRequest { + /** Properties of a DeleteNasJobRequest. */ + interface IDeleteNasJobRequest { - /** DeleteBatchPredictionJobRequest name */ + /** DeleteNasJobRequest name */ name?: (string|null); } - /** Represents a DeleteBatchPredictionJobRequest. */ - class DeleteBatchPredictionJobRequest implements IDeleteBatchPredictionJobRequest { + /** Represents a DeleteNasJobRequest. */ + class DeleteNasJobRequest implements IDeleteNasJobRequest { /** - * Constructs a new DeleteBatchPredictionJobRequest. + * Constructs a new DeleteNasJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteNasJobRequest); - /** DeleteBatchPredictionJobRequest name. */ + /** DeleteNasJobRequest name. */ public name: string; /** - * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. + * Creates a new DeleteNasJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteBatchPredictionJobRequest instance + * @returns DeleteNasJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest): google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteNasJobRequest): google.cloud.aiplatform.v1.DeleteNasJobRequest; /** - * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. - * @param message DeleteBatchPredictionJobRequest message or plain object to encode + * Encodes the specified DeleteNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteNasJobRequest.verify|verify} messages. + * @param message DeleteNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. - * @param message DeleteBatchPredictionJobRequest message or plain object to encode + * Encodes the specified DeleteNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteNasJobRequest.verify|verify} messages. + * @param message DeleteNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteBatchPredictionJobRequest + * @returns DeleteNasJobRequest * @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.DeleteBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteNasJobRequest; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteBatchPredictionJobRequest + * @returns DeleteNasJobRequest * @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.DeleteBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteNasJobRequest; /** - * Verifies a DeleteBatchPredictionJobRequest message. + * Verifies a DeleteNasJobRequest 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 DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteNasJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteBatchPredictionJobRequest + * @returns DeleteNasJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteNasJobRequest; /** - * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message DeleteBatchPredictionJobRequest + * Creates a plain object from a DeleteNasJobRequest message. Also converts values to other types if specified. + * @param message DeleteNasJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteNasJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteBatchPredictionJobRequest to JSON. + * Converts this DeleteNasJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteBatchPredictionJobRequest + * Gets the default type url for DeleteNasJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelBatchPredictionJobRequest. */ - interface ICancelBatchPredictionJobRequest { + /** Properties of a CancelNasJobRequest. */ + interface ICancelNasJobRequest { - /** CancelBatchPredictionJobRequest name */ + /** CancelNasJobRequest name */ name?: (string|null); } - /** Represents a CancelBatchPredictionJobRequest. */ - class CancelBatchPredictionJobRequest implements ICancelBatchPredictionJobRequest { + /** Represents a CancelNasJobRequest. */ + class CancelNasJobRequest implements ICancelNasJobRequest { /** - * Constructs a new CancelBatchPredictionJobRequest. + * Constructs a new CancelNasJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICancelNasJobRequest); - /** CancelBatchPredictionJobRequest name. */ + /** CancelNasJobRequest name. */ public name: string; /** - * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. + * Creates a new CancelNasJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CancelBatchPredictionJobRequest instance + * @returns CancelNasJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest): google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICancelNasJobRequest): google.cloud.aiplatform.v1.CancelNasJobRequest; /** - * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. - * @param message CancelBatchPredictionJobRequest message or plain object to encode + * Encodes the specified CancelNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelNasJobRequest.verify|verify} messages. + * @param message CancelNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICancelNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. - * @param message CancelBatchPredictionJobRequest message or plain object to encode + * Encodes the specified CancelNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelNasJobRequest.verify|verify} messages. + * @param message CancelNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICancelNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a CancelNasJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelBatchPredictionJobRequest + * @returns CancelNasJobRequest * @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.CancelBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CancelNasJobRequest; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelNasJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelBatchPredictionJobRequest + * @returns CancelNasJobRequest * @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.CancelBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CancelNasJobRequest; /** - * Verifies a CancelBatchPredictionJobRequest message. + * Verifies a CancelNasJobRequest 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 CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelNasJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelBatchPredictionJobRequest + * @returns CancelNasJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CancelNasJobRequest; /** - * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message CancelBatchPredictionJobRequest + * Creates a plain object from a CancelNasJobRequest message. Also converts values to other types if specified. + * @param message CancelNasJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CancelNasJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelBatchPredictionJobRequest to JSON. + * Converts this CancelNasJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelBatchPredictionJobRequest + * Gets the default type url for CancelNasJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateModelDeploymentMonitoringJobRequest. */ - interface ICreateModelDeploymentMonitoringJobRequest { - - /** CreateModelDeploymentMonitoringJobRequest parent */ - parent?: (string|null); + /** Properties of a GetNasTrialDetailRequest. */ + interface IGetNasTrialDetailRequest { - /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); + /** GetNasTrialDetailRequest name */ + name?: (string|null); } - /** Represents a CreateModelDeploymentMonitoringJobRequest. */ - class CreateModelDeploymentMonitoringJobRequest implements ICreateModelDeploymentMonitoringJobRequest { + /** Represents a GetNasTrialDetailRequest. */ + class GetNasTrialDetailRequest implements IGetNasTrialDetailRequest { /** - * Constructs a new CreateModelDeploymentMonitoringJobRequest. + * Constructs a new GetNasTrialDetailRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IGetNasTrialDetailRequest); - /** CreateModelDeploymentMonitoringJobRequest parent. */ - public parent: string; - - /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); + /** GetNasTrialDetailRequest name. */ + public name: string; /** - * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new GetNasTrialDetailRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateModelDeploymentMonitoringJobRequest instance + * @returns GetNasTrialDetailRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IGetNasTrialDetailRequest): google.cloud.aiplatform.v1.GetNasTrialDetailRequest; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified GetNasTrialDetailRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasTrialDetailRequest.verify|verify} messages. + * @param message GetNasTrialDetailRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetNasTrialDetailRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified GetNasTrialDetailRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasTrialDetailRequest.verify|verify} messages. + * @param message GetNasTrialDetailRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetNasTrialDetailRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns GetNasTrialDetailRequest * @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.CreateModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetNasTrialDetailRequest; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns GetNasTrialDetailRequest * @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.CreateModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetNasTrialDetailRequest; /** - * Verifies a CreateModelDeploymentMonitoringJobRequest message. + * Verifies a GetNasTrialDetailRequest 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 CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasTrialDetailRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns GetNasTrialDetailRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetNasTrialDetailRequest; /** - * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message CreateModelDeploymentMonitoringJobRequest + * Creates a plain object from a GetNasTrialDetailRequest message. Also converts values to other types if specified. + * @param message GetNasTrialDetailRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetNasTrialDetailRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. + * Converts this GetNasTrialDetailRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateModelDeploymentMonitoringJobRequest + * Gets the default type url for GetNasTrialDetailRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ - interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest { - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId */ - deployedModelId?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName */ - featureDisplayName?: (string|null); + /** Properties of a ListNasTrialDetailsRequest. */ + interface IListNasTrialDetailsRequest { - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives */ - objectives?: (google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]|null); + /** ListNasTrialDetailsRequest parent */ + parent?: (string|null); - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize */ + /** ListNasTrialDetailsRequest pageSize */ pageSize?: (number|null); - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken */ + /** ListNasTrialDetailsRequest pageToken */ pageToken?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ - endTime?: (google.protobuf.ITimestamp|null); } - /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ - class SearchModelDeploymentMonitoringStatsAnomaliesRequest implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest { + /** Represents a ListNasTrialDetailsRequest. */ + class ListNasTrialDetailsRequest implements IListNasTrialDetailsRequest { /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * Constructs a new ListNasTrialDetailsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. */ - public deployedModelId: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. */ - public featureDisplayName: string; + constructor(properties?: google.cloud.aiplatform.v1.IListNasTrialDetailsRequest); - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. */ - public objectives: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]; + /** ListNasTrialDetailsRequest parent. */ + public parent: string; - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. */ + /** ListNasTrialDetailsRequest pageSize. */ public pageSize: number; - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. */ + /** ListNasTrialDetailsRequest pageToken. */ public pageToken: string; - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. + * Creates a new ListNasTrialDetailsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest instance + * @returns ListNasTrialDetailsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListNasTrialDetailsRequest): google.cloud.aiplatform.v1.ListNasTrialDetailsRequest; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * Encodes the specified ListNasTrialDetailsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsRequest.verify|verify} messages. + * @param message ListNasTrialDetailsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * Encodes the specified ListNasTrialDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsRequest.verify|verify} messages. + * @param message ListNasTrialDetailsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns ListNasTrialDetailsRequest * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListNasTrialDetailsRequest; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns ListNasTrialDetailsRequest * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListNasTrialDetailsRequest; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. + * Verifies a ListNasTrialDetailsRequest 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 SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasTrialDetailsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns ListNasTrialDetailsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListNasTrialDetailsRequest; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Creates a plain object from a ListNasTrialDetailsRequest message. Also converts values to other types if specified. + * @param message ListNasTrialDetailsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListNasTrialDetailsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. + * Converts this ListNasTrialDetailsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Gets the default type url for ListNasTrialDetailsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace SearchModelDeploymentMonitoringStatsAnomaliesRequest { - - /** Properties of a StatsAnomaliesObjective. */ - interface IStatsAnomaliesObjective { - - /** StatsAnomaliesObjective type */ - type?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null); - - /** StatsAnomaliesObjective topFeatureCount */ - topFeatureCount?: (number|null); - } - - /** Represents a StatsAnomaliesObjective. */ - class StatsAnomaliesObjective implements IStatsAnomaliesObjective { - - /** - * Constructs a new StatsAnomaliesObjective. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective); - - /** StatsAnomaliesObjective type. */ - public type: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType); - - /** StatsAnomaliesObjective topFeatureCount. */ - public topFeatureCount: number; - - /** - * Creates a new StatsAnomaliesObjective instance using the specified properties. - * @param [properties] Properties to set - * @returns StatsAnomaliesObjective instance - */ - public static create(properties?: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @param message StatsAnomaliesObjective message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @param message StatsAnomaliesObjective message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StatsAnomaliesObjective - * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StatsAnomaliesObjective - * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Verifies a StatsAnomaliesObjective 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 StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StatsAnomaliesObjective - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. - * @param message StatsAnomaliesObjective - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StatsAnomaliesObjective to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StatsAnomaliesObjective - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ - interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse { + /** Properties of a ListNasTrialDetailsResponse. */ + interface IListNasTrialDetailsResponse { - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats */ - monitoringStats?: (google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies[]|null); + /** ListNasTrialDetailsResponse nasTrialDetails */ + nasTrialDetails?: (google.cloud.aiplatform.v1.INasTrialDetail[]|null); - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ + /** ListNasTrialDetailsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ - class SearchModelDeploymentMonitoringStatsAnomaliesResponse implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse { + /** Represents a ListNasTrialDetailsResponse. */ + class ListNasTrialDetailsResponse implements IListNasTrialDetailsResponse { /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Constructs a new ListNasTrialDetailsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListNasTrialDetailsResponse); - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. */ - public monitoringStats: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies[]; + /** ListNasTrialDetailsResponse nasTrialDetails. */ + public nasTrialDetails: google.cloud.aiplatform.v1.INasTrialDetail[]; - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. */ + /** ListNasTrialDetailsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. + * Creates a new ListNasTrialDetailsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse instance + * @returns ListNasTrialDetailsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListNasTrialDetailsResponse): google.cloud.aiplatform.v1.ListNasTrialDetailsResponse; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * Encodes the specified ListNasTrialDetailsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.verify|verify} messages. + * @param message ListNasTrialDetailsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListNasTrialDetailsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * Encodes the specified ListNasTrialDetailsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.verify|verify} messages. + * @param message ListNasTrialDetailsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListNasTrialDetailsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns ListNasTrialDetailsResponse * @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.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListNasTrialDetailsResponse; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns ListNasTrialDetailsResponse * @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.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListNasTrialDetailsResponse; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. + * Verifies a ListNasTrialDetailsResponse 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 SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasTrialDetailsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns ListNasTrialDetailsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListNasTrialDetailsResponse; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Creates a plain object from a ListNasTrialDetailsResponse message. Also converts values to other types if specified. + * @param message ListNasTrialDetailsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListNasTrialDetailsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. + * Converts this ListNasTrialDetailsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Gets the default type url for ListNasTrialDetailsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetModelDeploymentMonitoringJobRequest. */ - interface IGetModelDeploymentMonitoringJobRequest { + /** Properties of a CreateBatchPredictionJobRequest. */ + interface ICreateBatchPredictionJobRequest { - /** GetModelDeploymentMonitoringJobRequest name */ - name?: (string|null); + /** CreateBatchPredictionJobRequest parent */ + parent?: (string|null); + + /** CreateBatchPredictionJobRequest batchPredictionJob */ + batchPredictionJob?: (google.cloud.aiplatform.v1.IBatchPredictionJob|null); } - /** Represents a GetModelDeploymentMonitoringJobRequest. */ - class GetModelDeploymentMonitoringJobRequest implements IGetModelDeploymentMonitoringJobRequest { + /** Represents a CreateBatchPredictionJobRequest. */ + class CreateBatchPredictionJobRequest implements ICreateBatchPredictionJobRequest { /** - * Constructs a new GetModelDeploymentMonitoringJobRequest. + * Constructs a new CreateBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest); - /** GetModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** CreateBatchPredictionJobRequest parent. */ + public parent: string; + + /** CreateBatchPredictionJobRequest batchPredictionJob. */ + public batchPredictionJob?: (google.cloud.aiplatform.v1.IBatchPredictionJob|null); /** - * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetModelDeploymentMonitoringJobRequest instance + * @returns CreateBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest): google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. + * @param message CreateBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. + * @param message CreateBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetModelDeploymentMonitoringJobRequest + * @returns CreateBatchPredictionJobRequest * @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.GetModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetModelDeploymentMonitoringJobRequest + * @returns CreateBatchPredictionJobRequest * @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.GetModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest; /** - * Verifies a GetModelDeploymentMonitoringJobRequest message. + * Verifies a CreateBatchPredictionJobRequest 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 GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetModelDeploymentMonitoringJobRequest + * @returns CreateBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest; /** - * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message GetModelDeploymentMonitoringJobRequest + * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message CreateBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * Converts this CreateBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetModelDeploymentMonitoringJobRequest + * Gets the default type url for CreateBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelDeploymentMonitoringJobsRequest. */ - interface IListModelDeploymentMonitoringJobsRequest { - - /** ListModelDeploymentMonitoringJobsRequest parent */ - parent?: (string|null); - - /** ListModelDeploymentMonitoringJobsRequest filter */ - filter?: (string|null); - - /** ListModelDeploymentMonitoringJobsRequest pageSize */ - pageSize?: (number|null); - - /** ListModelDeploymentMonitoringJobsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a GetBatchPredictionJobRequest. */ + interface IGetBatchPredictionJobRequest { - /** ListModelDeploymentMonitoringJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** GetBatchPredictionJobRequest name */ + name?: (string|null); } - /** Represents a ListModelDeploymentMonitoringJobsRequest. */ - class ListModelDeploymentMonitoringJobsRequest implements IListModelDeploymentMonitoringJobsRequest { + /** Represents a GetBatchPredictionJobRequest. */ + class GetBatchPredictionJobRequest implements IGetBatchPredictionJobRequest { /** - * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * Constructs a new GetBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest); - - /** ListModelDeploymentMonitoringJobsRequest parent. */ - public parent: string; - - /** ListModelDeploymentMonitoringJobsRequest filter. */ - public filter: string; - - /** ListModelDeploymentMonitoringJobsRequest pageSize. */ - public pageSize: number; - - /** ListModelDeploymentMonitoringJobsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest); - /** ListModelDeploymentMonitoringJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** GetBatchPredictionJobRequest name. */ + public name: string; /** - * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. + * Creates a new GetBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelDeploymentMonitoringJobsRequest instance + * @returns GetBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest): google.cloud.aiplatform.v1.GetBatchPredictionJobRequest; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. + * @param message GetBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. + * @param message GetBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns GetBatchPredictionJobRequest * @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.ListModelDeploymentMonitoringJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetBatchPredictionJobRequest; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns GetBatchPredictionJobRequest * @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.ListModelDeploymentMonitoringJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetBatchPredictionJobRequest; /** - * Verifies a ListModelDeploymentMonitoringJobsRequest message. + * Verifies a GetBatchPredictionJobRequest 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 ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns GetBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetBatchPredictionJobRequest; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. - * @param message ListModelDeploymentMonitoringJobsRequest + * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message GetBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. + * Converts this GetBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsRequest + * Gets the default type url for GetBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelDeploymentMonitoringJobsResponse. */ - interface IListModelDeploymentMonitoringJobsResponse { + /** Properties of a ListBatchPredictionJobsRequest. */ + interface IListBatchPredictionJobsRequest { - /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs */ - modelDeploymentMonitoringJobs?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob[]|null); + /** ListBatchPredictionJobsRequest parent */ + parent?: (string|null); - /** ListModelDeploymentMonitoringJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListBatchPredictionJobsRequest filter */ + filter?: (string|null); + + /** ListBatchPredictionJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListBatchPredictionJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListBatchPredictionJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListModelDeploymentMonitoringJobsResponse. */ - class ListModelDeploymentMonitoringJobsResponse implements IListModelDeploymentMonitoringJobsResponse { + /** Represents a ListBatchPredictionJobsRequest. */ + class ListBatchPredictionJobsRequest implements IListBatchPredictionJobsRequest { /** - * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * Constructs a new ListBatchPredictionJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest); - /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. */ - public modelDeploymentMonitoringJobs: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob[]; + /** ListBatchPredictionJobsRequest parent. */ + public parent: string; - /** ListModelDeploymentMonitoringJobsResponse nextPageToken. */ - public nextPageToken: string; + /** ListBatchPredictionJobsRequest filter. */ + public filter: string; + + /** ListBatchPredictionJobsRequest pageSize. */ + public pageSize: number; + + /** ListBatchPredictionJobsRequest pageToken. */ + public pageToken: string; + + /** ListBatchPredictionJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelDeploymentMonitoringJobsResponse instance + * @returns ListBatchPredictionJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest): google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. + * @param message ListBatchPredictionJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. + * @param message ListBatchPredictionJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns ListBatchPredictionJobsRequest * @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.ListModelDeploymentMonitoringJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns ListBatchPredictionJobsRequest * @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.ListModelDeploymentMonitoringJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest; /** - * Verifies a ListModelDeploymentMonitoringJobsResponse message. + * Verifies a ListBatchPredictionJobsRequest 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 ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns ListBatchPredictionJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. - * @param message ListModelDeploymentMonitoringJobsResponse + * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. + * @param message ListBatchPredictionJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. + * Converts this ListBatchPredictionJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsResponse + * Gets the default type url for ListBatchPredictionJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateModelDeploymentMonitoringJobRequest. */ - interface IUpdateModelDeploymentMonitoringJobRequest { + /** Properties of a ListBatchPredictionJobsResponse. */ + interface IListBatchPredictionJobsResponse { - /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); + /** ListBatchPredictionJobsResponse batchPredictionJobs */ + batchPredictionJobs?: (google.cloud.aiplatform.v1.IBatchPredictionJob[]|null); - /** UpdateModelDeploymentMonitoringJobRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListBatchPredictionJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an UpdateModelDeploymentMonitoringJobRequest. */ - class UpdateModelDeploymentMonitoringJobRequest implements IUpdateModelDeploymentMonitoringJobRequest { + /** Represents a ListBatchPredictionJobsResponse. */ + class ListBatchPredictionJobsResponse implements IListBatchPredictionJobsResponse { /** - * Constructs a new UpdateModelDeploymentMonitoringJobRequest. + * Constructs a new ListBatchPredictionJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse); - /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); + /** ListBatchPredictionJobsResponse batchPredictionJobs. */ + public batchPredictionJobs: google.cloud.aiplatform.v1.IBatchPredictionJob[]; - /** UpdateModelDeploymentMonitoringJobRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListBatchPredictionJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateModelDeploymentMonitoringJobRequest instance + * @returns ListBatchPredictionJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse): google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. + * @param message ListBatchPredictionJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. + * @param message ListBatchPredictionJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns ListBatchPredictionJobsResponse * @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.UpdateModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns ListBatchPredictionJobsResponse * @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.UpdateModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse; /** - * Verifies an UpdateModelDeploymentMonitoringJobRequest message. + * Verifies a ListBatchPredictionJobsResponse 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 UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns ListBatchPredictionJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message UpdateModelDeploymentMonitoringJobRequest + * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. + * @param message ListBatchPredictionJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. + * Converts this ListBatchPredictionJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest + * Gets the default type url for ListBatchPredictionJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteModelDeploymentMonitoringJobRequest. */ - interface IDeleteModelDeploymentMonitoringJobRequest { + /** Properties of a DeleteBatchPredictionJobRequest. */ + interface IDeleteBatchPredictionJobRequest { - /** DeleteModelDeploymentMonitoringJobRequest name */ + /** DeleteBatchPredictionJobRequest name */ name?: (string|null); } - /** Represents a DeleteModelDeploymentMonitoringJobRequest. */ - class DeleteModelDeploymentMonitoringJobRequest implements IDeleteModelDeploymentMonitoringJobRequest { + /** Represents a DeleteBatchPredictionJobRequest. */ + class DeleteBatchPredictionJobRequest implements IDeleteBatchPredictionJobRequest { /** - * Constructs a new DeleteModelDeploymentMonitoringJobRequest. + * Constructs a new DeleteBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest); - /** DeleteModelDeploymentMonitoringJobRequest name. */ + /** DeleteBatchPredictionJobRequest name. */ public name: string; /** - * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteModelDeploymentMonitoringJobRequest instance + * @returns DeleteBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest): google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * @param message DeleteBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * @param message DeleteBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteModelDeploymentMonitoringJobRequest + * @returns DeleteBatchPredictionJobRequest * @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.DeleteModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteModelDeploymentMonitoringJobRequest + * @returns DeleteBatchPredictionJobRequest * @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.DeleteModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest; /** - * Verifies a DeleteModelDeploymentMonitoringJobRequest message. + * Verifies a DeleteBatchPredictionJobRequest 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 DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteModelDeploymentMonitoringJobRequest + * @returns DeleteBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest; /** - * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message DeleteModelDeploymentMonitoringJobRequest + * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message DeleteBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. + * Converts this DeleteBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest + * Gets the default type url for DeleteBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PauseModelDeploymentMonitoringJobRequest. */ - interface IPauseModelDeploymentMonitoringJobRequest { + /** Properties of a CancelBatchPredictionJobRequest. */ + interface ICancelBatchPredictionJobRequest { - /** PauseModelDeploymentMonitoringJobRequest name */ + /** CancelBatchPredictionJobRequest name */ name?: (string|null); } - /** Represents a PauseModelDeploymentMonitoringJobRequest. */ - class PauseModelDeploymentMonitoringJobRequest implements IPauseModelDeploymentMonitoringJobRequest { + /** Represents a CancelBatchPredictionJobRequest. */ + class CancelBatchPredictionJobRequest implements ICancelBatchPredictionJobRequest { /** - * Constructs a new PauseModelDeploymentMonitoringJobRequest. + * Constructs a new CancelBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest); - /** PauseModelDeploymentMonitoringJobRequest name. */ + /** CancelBatchPredictionJobRequest name. */ public name: string; /** - * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PauseModelDeploymentMonitoringJobRequest instance + * @returns CancelBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest): google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. + * @param message CancelBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. + * @param message CancelBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns CancelBatchPredictionJobRequest * @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.PauseModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns CancelBatchPredictionJobRequest * @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.PauseModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest; /** - * Verifies a PauseModelDeploymentMonitoringJobRequest message. + * Verifies a CancelBatchPredictionJobRequest 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 PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns CancelBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest; /** - * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message PauseModelDeploymentMonitoringJobRequest + * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message CancelBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. + * Converts this CancelBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PauseModelDeploymentMonitoringJobRequest + * Gets the default type url for CancelBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResumeModelDeploymentMonitoringJobRequest. */ - interface IResumeModelDeploymentMonitoringJobRequest { + /** Properties of a CreateModelDeploymentMonitoringJobRequest. */ + interface ICreateModelDeploymentMonitoringJobRequest { - /** ResumeModelDeploymentMonitoringJobRequest name */ - name?: (string|null); + /** CreateModelDeploymentMonitoringJobRequest parent */ + parent?: (string|null); + + /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); } - /** Represents a ResumeModelDeploymentMonitoringJobRequest. */ - class ResumeModelDeploymentMonitoringJobRequest implements IResumeModelDeploymentMonitoringJobRequest { + /** Represents a CreateModelDeploymentMonitoringJobRequest. */ + class CreateModelDeploymentMonitoringJobRequest implements ICreateModelDeploymentMonitoringJobRequest { /** - * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * Constructs a new CreateModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest); - /** ResumeModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** CreateModelDeploymentMonitoringJobRequest parent. */ + public parent: string; + + /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); /** - * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ResumeModelDeploymentMonitoringJobRequest instance + * @returns CreateModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest; /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResumeModelDeploymentMonitoringJobRequest + * @returns CreateModelDeploymentMonitoringJobRequest * @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.ResumeModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResumeModelDeploymentMonitoringJobRequest + * @returns CreateModelDeploymentMonitoringJobRequest * @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.ResumeModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest; /** - * Verifies a ResumeModelDeploymentMonitoringJobRequest message. + * Verifies a CreateModelDeploymentMonitoringJobRequest 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 ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResumeModelDeploymentMonitoringJobRequest + * @returns CreateModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message ResumeModelDeploymentMonitoringJobRequest + * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message CreateModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. + * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest + * Gets the default type url for CreateModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. */ - interface IUpdateModelDeploymentMonitoringJobOperationMetadata { + /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ + interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest { - /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - } + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (string|null); - /** Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. */ - class UpdateModelDeploymentMonitoringJobOperationMetadata implements IUpdateModelDeploymentMonitoringJobOperationMetadata { + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId */ + deployedModelId?: (string|null); - /** - * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName */ + featureDisplayName?: (string|null); - /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives */ + objectives?: (google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]|null); - /** - * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; - - /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata - * @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.UpdateModelDeploymentMonitoringJobOperationMetadata; - - /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata - * @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.UpdateModelDeploymentMonitoringJobOperationMetadata; - - /** - * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata 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 UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; - - /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** ModelDeploymentMonitoringObjectiveType enum. */ - enum ModelDeploymentMonitoringObjectiveType { - MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0, - RAW_FEATURE_SKEW = 1, - RAW_FEATURE_DRIFT = 2, - FEATURE_ATTRIBUTION_SKEW = 3, - FEATURE_ATTRIBUTION_DRIFT = 4 - } - - /** Properties of a ModelDeploymentMonitoringJob. */ - interface IModelDeploymentMonitoringJob { - - /** ModelDeploymentMonitoringJob name */ - name?: (string|null); - - /** ModelDeploymentMonitoringJob displayName */ - displayName?: (string|null); - - /** ModelDeploymentMonitoringJob endpoint */ - endpoint?: (string|null); - - /** ModelDeploymentMonitoringJob state */ - state?: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState|null); - - /** ModelDeploymentMonitoringJob scheduleState */ - scheduleState?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null); - - /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata */ - latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs */ - modelDeploymentMonitoringObjectiveConfigs?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig[]|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig */ - modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null); - - /** ModelDeploymentMonitoringJob loggingSamplingStrategy */ - loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); - - /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig */ - modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null); - - /** ModelDeploymentMonitoringJob predictInstanceSchemaUri */ - predictInstanceSchemaUri?: (string|null); - - /** ModelDeploymentMonitoringJob samplePredictInstance */ - samplePredictInstance?: (google.protobuf.IValue|null); - - /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri */ - analysisInstanceSchemaUri?: (string|null); - - /** ModelDeploymentMonitoringJob bigqueryTables */ - bigqueryTables?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable[]|null); - - /** ModelDeploymentMonitoringJob logTtl */ - logTtl?: (google.protobuf.IDuration|null); - - /** ModelDeploymentMonitoringJob labels */ - labels?: ({ [k: string]: string }|null); - - /** ModelDeploymentMonitoringJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** ModelDeploymentMonitoringJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** ModelDeploymentMonitoringJob nextScheduleTime */ - nextScheduleTime?: (google.protobuf.ITimestamp|null); - - /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory */ - statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize */ + pageSize?: (number|null); - /** ModelDeploymentMonitoringJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken */ + pageToken?: (string|null); - /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs */ - enableMonitoringPipelineLogs?: (boolean|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** ModelDeploymentMonitoringJob error */ - error?: (google.rpc.IStatus|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ + endTime?: (google.protobuf.ITimestamp|null); } - /** Represents a ModelDeploymentMonitoringJob. */ - class ModelDeploymentMonitoringJob implements IModelDeploymentMonitoringJob { + /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ + class SearchModelDeploymentMonitoringStatsAnomaliesRequest implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest { /** - * Constructs a new ModelDeploymentMonitoringJob. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob); - - /** ModelDeploymentMonitoringJob name. */ - public name: string; - - /** ModelDeploymentMonitoringJob displayName. */ - public displayName: string; - - /** ModelDeploymentMonitoringJob endpoint. */ - public endpoint: string; - - /** ModelDeploymentMonitoringJob state. */ - public state: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState); - - /** ModelDeploymentMonitoringJob scheduleState. */ - public scheduleState: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState); - - /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. */ - public latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. */ - public modelDeploymentMonitoringObjectiveConfigs: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig[]; - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. */ - public modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null); - - /** ModelDeploymentMonitoringJob loggingSamplingStrategy. */ - public loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); - - /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig. */ - public modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null); - - /** ModelDeploymentMonitoringJob predictInstanceSchemaUri. */ - public predictInstanceSchemaUri: string; - - /** ModelDeploymentMonitoringJob samplePredictInstance. */ - public samplePredictInstance?: (google.protobuf.IValue|null); - - /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri. */ - public analysisInstanceSchemaUri: string; - - /** ModelDeploymentMonitoringJob bigqueryTables. */ - public bigqueryTables: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable[]; - - /** ModelDeploymentMonitoringJob logTtl. */ - public logTtl?: (google.protobuf.IDuration|null); + constructor(properties?: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest); - /** ModelDeploymentMonitoringJob labels. */ - public labels: { [k: string]: string }; + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob: string; - /** ModelDeploymentMonitoringJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. */ + public deployedModelId: string; - /** ModelDeploymentMonitoringJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. */ + public featureDisplayName: string; - /** ModelDeploymentMonitoringJob nextScheduleTime. */ - public nextScheduleTime?: (google.protobuf.ITimestamp|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. */ + public objectives: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]; - /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. */ - public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. */ + public pageSize: number; - /** ModelDeploymentMonitoringJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. */ + public pageToken: string; - /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. */ - public enableMonitoringPipelineLogs: boolean; + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** ModelDeploymentMonitoringJob error. */ - public error?: (google.rpc.IStatus|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringJob instance + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; + public static create(properties?: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. - * @param message ModelDeploymentMonitoringJob message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. - * @param message ModelDeploymentMonitoringJob message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringJob + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest * @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.ModelDeploymentMonitoringJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringJob + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest * @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.ModelDeploymentMonitoringJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Verifies a ModelDeploymentMonitoringJob message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest 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 ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringJob + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringJob + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringJob to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringJob + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelDeploymentMonitoringJob { + namespace SearchModelDeploymentMonitoringStatsAnomaliesRequest { - /** Properties of a LatestMonitoringPipelineMetadata. */ - interface ILatestMonitoringPipelineMetadata { + /** Properties of a StatsAnomaliesObjective. */ + interface IStatsAnomaliesObjective { - /** LatestMonitoringPipelineMetadata runTime */ - runTime?: (google.protobuf.ITimestamp|null); + /** StatsAnomaliesObjective type */ + type?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null); - /** LatestMonitoringPipelineMetadata status */ - status?: (google.rpc.IStatus|null); + /** StatsAnomaliesObjective topFeatureCount */ + topFeatureCount?: (number|null); } - /** Represents a LatestMonitoringPipelineMetadata. */ - class LatestMonitoringPipelineMetadata implements ILatestMonitoringPipelineMetadata { + /** Represents a StatsAnomaliesObjective. */ + class StatsAnomaliesObjective implements IStatsAnomaliesObjective { /** - * Constructs a new LatestMonitoringPipelineMetadata. + * Constructs a new StatsAnomaliesObjective. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata); + constructor(properties?: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective); - /** LatestMonitoringPipelineMetadata runTime. */ - public runTime?: (google.protobuf.ITimestamp|null); + /** StatsAnomaliesObjective type. */ + public type: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType); - /** LatestMonitoringPipelineMetadata status. */ - public status?: (google.rpc.IStatus|null); + /** StatsAnomaliesObjective topFeatureCount. */ + public topFeatureCount: number; /** - * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. + * Creates a new StatsAnomaliesObjective instance using the specified properties. * @param [properties] Properties to set - * @returns LatestMonitoringPipelineMetadata instance + * @returns StatsAnomaliesObjective instance */ - public static create(properties?: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + public static create(properties?: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; /** - * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @param message LatestMonitoringPipelineMetadata message or plain object to encode + * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @param message StatsAnomaliesObjective message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @param message LatestMonitoringPipelineMetadata message or plain object to encode + * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @param message StatsAnomaliesObjective message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LatestMonitoringPipelineMetadata + * @returns StatsAnomaliesObjective * @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.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LatestMonitoringPipelineMetadata + * @returns StatsAnomaliesObjective * @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.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; /** - * Verifies a LatestMonitoringPipelineMetadata message. + * Verifies a StatsAnomaliesObjective 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 LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LatestMonitoringPipelineMetadata + * @returns StatsAnomaliesObjective */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; /** - * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. - * @param message LatestMonitoringPipelineMetadata + * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. + * @param message StatsAnomaliesObjective * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LatestMonitoringPipelineMetadata to JSON. + * Converts this StatsAnomaliesObjective to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LatestMonitoringPipelineMetadata + * Gets the default type url for StatsAnomaliesObjective * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - - /** MonitoringScheduleState enum. */ - enum MonitoringScheduleState { - MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0, - PENDING = 1, - OFFLINE = 2, - RUNNING = 3 - } } - /** Properties of a ModelDeploymentMonitoringBigQueryTable. */ - interface IModelDeploymentMonitoringBigQueryTable { - - /** ModelDeploymentMonitoringBigQueryTable logSource */ - logSource?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|null); + /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ + interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse { - /** ModelDeploymentMonitoringBigQueryTable logType */ - logType?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats */ + monitoringStats?: (google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies[]|null); - /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ - bigqueryTablePath?: (string|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ModelDeploymentMonitoringBigQueryTable. */ - class ModelDeploymentMonitoringBigQueryTable implements IModelDeploymentMonitoringBigQueryTable { + /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ + class SearchModelDeploymentMonitoringStatsAnomaliesResponse implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse { /** - * Constructs a new ModelDeploymentMonitoringBigQueryTable. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable); - - /** ModelDeploymentMonitoringBigQueryTable logSource. */ - public logSource: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource); + constructor(properties?: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse); - /** ModelDeploymentMonitoringBigQueryTable logType. */ - public logType: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType); + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. */ + public monitoringStats: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies[]; - /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ - public bigqueryTablePath: string; + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringBigQueryTable instance + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; + public static create(properties?: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. - * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. - * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse * @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.ModelDeploymentMonitoringBigQueryTable; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse * @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.ModelDeploymentMonitoringBigQueryTable; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse 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 ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringBigQueryTable + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringBigQueryTable + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelDeploymentMonitoringBigQueryTable { - - /** LogSource enum. */ - enum LogSource { - LOG_SOURCE_UNSPECIFIED = 0, - TRAINING = 1, - SERVING = 2 - } - - /** LogType enum. */ - enum LogType { - LOG_TYPE_UNSPECIFIED = 0, - PREDICT = 1, - EXPLAIN = 2 - } - } - - /** Properties of a ModelDeploymentMonitoringObjectiveConfig. */ - interface IModelDeploymentMonitoringObjectiveConfig { - - /** ModelDeploymentMonitoringObjectiveConfig deployedModelId */ - deployedModelId?: (string|null); + /** Properties of a GetModelDeploymentMonitoringJobRequest. */ + interface IGetModelDeploymentMonitoringJobRequest { - /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ - objectiveConfig?: (google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null); + /** GetModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a ModelDeploymentMonitoringObjectiveConfig. */ - class ModelDeploymentMonitoringObjectiveConfig implements IModelDeploymentMonitoringObjectiveConfig { + /** Represents a GetModelDeploymentMonitoringJobRequest. */ + class GetModelDeploymentMonitoringJobRequest implements IGetModelDeploymentMonitoringJobRequest { /** - * Constructs a new ModelDeploymentMonitoringObjectiveConfig. + * Constructs a new GetModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig); - - /** ModelDeploymentMonitoringObjectiveConfig deployedModelId. */ - public deployedModelId: string; + constructor(properties?: google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest); - /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig. */ - public objectiveConfig?: (google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null); + /** GetModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. + * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringObjectiveConfig instance + * @returns GetModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; + public static create(properties?: google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns GetModelDeploymentMonitoringJobRequest * @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.ModelDeploymentMonitoringObjectiveConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns GetModelDeploymentMonitoringJobRequest * @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.ModelDeploymentMonitoringObjectiveConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest; /** - * Verifies a ModelDeploymentMonitoringObjectiveConfig message. + * Verifies a GetModelDeploymentMonitoringJobRequest 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 ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns GetModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringObjectiveConfig + * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message GetModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. + * Converts this GetModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig + * Gets the default type url for GetModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelDeploymentMonitoringScheduleConfig. */ - interface IModelDeploymentMonitoringScheduleConfig { + /** Properties of a ListModelDeploymentMonitoringJobsRequest. */ + interface IListModelDeploymentMonitoringJobsRequest { - /** ModelDeploymentMonitoringScheduleConfig monitorInterval */ - monitorInterval?: (google.protobuf.IDuration|null); + /** ListModelDeploymentMonitoringJobsRequest parent */ + parent?: (string|null); - /** ModelDeploymentMonitoringScheduleConfig monitorWindow */ - monitorWindow?: (google.protobuf.IDuration|null); + /** ListModelDeploymentMonitoringJobsRequest filter */ + filter?: (string|null); + + /** ListModelDeploymentMonitoringJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListModelDeploymentMonitoringJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListModelDeploymentMonitoringJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ModelDeploymentMonitoringScheduleConfig. */ - class ModelDeploymentMonitoringScheduleConfig implements IModelDeploymentMonitoringScheduleConfig { + /** Represents a ListModelDeploymentMonitoringJobsRequest. */ + class ListModelDeploymentMonitoringJobsRequest implements IListModelDeploymentMonitoringJobsRequest { /** - * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * Constructs a new ListModelDeploymentMonitoringJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig); + constructor(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest); - /** ModelDeploymentMonitoringScheduleConfig monitorInterval. */ - public monitorInterval?: (google.protobuf.IDuration|null); + /** ListModelDeploymentMonitoringJobsRequest parent. */ + public parent: string; - /** ModelDeploymentMonitoringScheduleConfig monitorWindow. */ - public monitorWindow?: (google.protobuf.IDuration|null); + /** ListModelDeploymentMonitoringJobsRequest filter. */ + public filter: string; + + /** ListModelDeploymentMonitoringJobsRequest pageSize. */ + public pageSize: number; + + /** ListModelDeploymentMonitoringJobsRequest pageToken. */ + public pageToken: string; + + /** ListModelDeploymentMonitoringJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringScheduleConfig instance + * @returns ListModelDeploymentMonitoringJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; + public static create(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns ListModelDeploymentMonitoringJobsRequest * @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.ModelDeploymentMonitoringScheduleConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns ListModelDeploymentMonitoringJobsRequest * @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.ModelDeploymentMonitoringScheduleConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest; /** - * Verifies a ModelDeploymentMonitoringScheduleConfig message. + * Verifies a ListModelDeploymentMonitoringJobsRequest 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 ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns ListModelDeploymentMonitoringJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest; /** - * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringScheduleConfig + * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. + * @param message ListModelDeploymentMonitoringJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringScheduleConfig + * Gets the default type url for ListModelDeploymentMonitoringJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelMonitoringStatsAnomalies. */ - interface IModelMonitoringStatsAnomalies { - - /** ModelMonitoringStatsAnomalies objective */ - objective?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null); - - /** ModelMonitoringStatsAnomalies deployedModelId */ - deployedModelId?: (string|null); + /** Properties of a ListModelDeploymentMonitoringJobsResponse. */ + interface IListModelDeploymentMonitoringJobsResponse { - /** ModelMonitoringStatsAnomalies anomalyCount */ - anomalyCount?: (number|null); + /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs */ + modelDeploymentMonitoringJobs?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob[]|null); - /** ModelMonitoringStatsAnomalies featureStats */ - featureStats?: (google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]|null); + /** ListModelDeploymentMonitoringJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ModelMonitoringStatsAnomalies. */ - class ModelMonitoringStatsAnomalies implements IModelMonitoringStatsAnomalies { + /** Represents a ListModelDeploymentMonitoringJobsResponse. */ + class ListModelDeploymentMonitoringJobsResponse implements IListModelDeploymentMonitoringJobsResponse { /** - * Constructs a new ModelMonitoringStatsAnomalies. + * Constructs a new ListModelDeploymentMonitoringJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies); - - /** ModelMonitoringStatsAnomalies objective. */ - public objective: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType); - - /** ModelMonitoringStatsAnomalies deployedModelId. */ - public deployedModelId: string; + constructor(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse); - /** ModelMonitoringStatsAnomalies anomalyCount. */ - public anomalyCount: number; + /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. */ + public modelDeploymentMonitoringJobs: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob[]; - /** ModelMonitoringStatsAnomalies featureStats. */ - public featureStats: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]; + /** ListModelDeploymentMonitoringJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringStatsAnomalies instance + * @returns ListModelDeploymentMonitoringJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; + public static create(properties?: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; /** - * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. - * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. - * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringStatsAnomalies + * @returns ListModelDeploymentMonitoringJobsResponse * @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.ModelMonitoringStatsAnomalies; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringStatsAnomalies + * @returns ListModelDeploymentMonitoringJobsResponse * @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.ModelMonitoringStatsAnomalies; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; /** - * Verifies a ModelMonitoringStatsAnomalies message. + * Verifies a ListModelDeploymentMonitoringJobsResponse 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 ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringStatsAnomalies + * @returns ListModelDeploymentMonitoringJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse; /** - * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. - * @param message ModelMonitoringStatsAnomalies + * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. + * @param message ListModelDeploymentMonitoringJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringStatsAnomalies to JSON. + * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringStatsAnomalies + * Gets the default type url for ListModelDeploymentMonitoringJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelMonitoringStatsAnomalies { - - /** Properties of a FeatureHistoricStatsAnomalies. */ - interface IFeatureHistoricStatsAnomalies { - - /** FeatureHistoricStatsAnomalies featureDisplayName */ - featureDisplayName?: (string|null); - - /** FeatureHistoricStatsAnomalies threshold */ - threshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - - /** FeatureHistoricStatsAnomalies trainingStats */ - trainingStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null); - - /** FeatureHistoricStatsAnomalies predictionStats */ - predictionStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly[]|null); - } + /** Properties of an UpdateModelDeploymentMonitoringJobRequest. */ + interface IUpdateModelDeploymentMonitoringJobRequest { - /** Represents a FeatureHistoricStatsAnomalies. */ - class FeatureHistoricStatsAnomalies implements IFeatureHistoricStatsAnomalies { + /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); - /** - * Constructs a new FeatureHistoricStatsAnomalies. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies); + /** UpdateModelDeploymentMonitoringJobRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** FeatureHistoricStatsAnomalies featureDisplayName. */ - public featureDisplayName: string; + /** Represents an UpdateModelDeploymentMonitoringJobRequest. */ + class UpdateModelDeploymentMonitoringJobRequest implements IUpdateModelDeploymentMonitoringJobRequest { - /** FeatureHistoricStatsAnomalies threshold. */ - public threshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + /** + * Constructs a new UpdateModelDeploymentMonitoringJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest); - /** FeatureHistoricStatsAnomalies trainingStats. */ - public trainingStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null); + /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null); - /** FeatureHistoricStatsAnomalies predictionStats. */ - public predictionStats: google.cloud.aiplatform.v1.IFeatureStatsAnomaly[]; + /** UpdateModelDeploymentMonitoringJobRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** - * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureHistoricStatsAnomalies instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + /** + * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateModelDeploymentMonitoringJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; - /** - * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @param message FeatureHistoricStatsAnomalies message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @param message FeatureHistoricStatsAnomalies message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureHistoricStatsAnomalies - * @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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + /** + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateModelDeploymentMonitoringJobRequest + * @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.UpdateModelDeploymentMonitoringJobRequest; - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureHistoricStatsAnomalies - * @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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + /** + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateModelDeploymentMonitoringJobRequest + * @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.UpdateModelDeploymentMonitoringJobRequest; - /** - * Verifies a FeatureHistoricStatsAnomalies 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); + /** + * Verifies an UpdateModelDeploymentMonitoringJobRequest 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 FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureHistoricStatsAnomalies - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; + /** + * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateModelDeploymentMonitoringJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest; - /** - * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. - * @param message FeatureHistoricStatsAnomalies - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message UpdateModelDeploymentMonitoringJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this FeatureHistoricStatsAnomalies to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for FeatureHistoricStatsAnomalies - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelMonitoringObjectiveConfig. */ - interface IModelMonitoringObjectiveConfig { - - /** ModelMonitoringObjectiveConfig trainingDataset */ - trainingDataset?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); - - /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig */ - trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); - - /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig */ - predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + /** Properties of a DeleteModelDeploymentMonitoringJobRequest. */ + interface IDeleteModelDeploymentMonitoringJobRequest { - /** ModelMonitoringObjectiveConfig explanationConfig */ - explanationConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + /** DeleteModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a ModelMonitoringObjectiveConfig. */ - class ModelMonitoringObjectiveConfig implements IModelMonitoringObjectiveConfig { + /** Represents a DeleteModelDeploymentMonitoringJobRequest. */ + class DeleteModelDeploymentMonitoringJobRequest implements IDeleteModelDeploymentMonitoringJobRequest { /** - * Constructs a new ModelMonitoringObjectiveConfig. + * Constructs a new DeleteModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig); - - /** ModelMonitoringObjectiveConfig trainingDataset. */ - public trainingDataset?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); - - /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. */ - public trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); - - /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. */ - public predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest); - /** ModelMonitoringObjectiveConfig explanationConfig. */ - public explanationConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + /** DeleteModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringObjectiveConfig instance + * @returns DeleteModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; /** - * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringObjectiveConfig + * @returns DeleteModelDeploymentMonitoringJobRequest * @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.ModelMonitoringObjectiveConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringObjectiveConfig + * @returns DeleteModelDeploymentMonitoringJobRequest * @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.ModelMonitoringObjectiveConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; /** - * Verifies a ModelMonitoringObjectiveConfig message. + * Verifies a DeleteModelDeploymentMonitoringJobRequest 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 ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringObjectiveConfig + * @returns DeleteModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. - * @param message ModelMonitoringObjectiveConfig + * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message DeleteModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringObjectiveConfig to JSON. + * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringObjectiveConfig + * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelMonitoringObjectiveConfig { - - /** Properties of a TrainingDataset. */ - interface ITrainingDataset { + /** Properties of a PauseModelDeploymentMonitoringJobRequest. */ + interface IPauseModelDeploymentMonitoringJobRequest { - /** TrainingDataset dataset */ - dataset?: (string|null); + /** PauseModelDeploymentMonitoringJobRequest name */ + name?: (string|null); + } - /** TrainingDataset gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1.IGcsSource|null); + /** Represents a PauseModelDeploymentMonitoringJobRequest. */ + class PauseModelDeploymentMonitoringJobRequest implements IPauseModelDeploymentMonitoringJobRequest { - /** TrainingDataset bigquerySource */ - bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); + /** + * Constructs a new PauseModelDeploymentMonitoringJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest); - /** TrainingDataset dataFormat */ - dataFormat?: (string|null); + /** PauseModelDeploymentMonitoringJobRequest name. */ + public name: string; - /** TrainingDataset targetField */ - targetField?: (string|null); + /** + * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PauseModelDeploymentMonitoringJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; - /** TrainingDataset loggingSamplingStrategy */ - loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); - } + /** + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a TrainingDataset. */ - class TrainingDataset implements ITrainingDataset { + /** + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new TrainingDataset. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset); + /** + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PauseModelDeploymentMonitoringJobRequest + * @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.PauseModelDeploymentMonitoringJobRequest; - /** TrainingDataset dataset. */ - public dataset?: (string|null); + /** + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PauseModelDeploymentMonitoringJobRequest + * @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.PauseModelDeploymentMonitoringJobRequest; - /** TrainingDataset gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1.IGcsSource|null); + /** + * Verifies a PauseModelDeploymentMonitoringJobRequest 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); - /** TrainingDataset bigquerySource. */ - public bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); + /** + * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PauseModelDeploymentMonitoringJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest; - /** TrainingDataset dataFormat. */ - public dataFormat: string; + /** + * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message PauseModelDeploymentMonitoringJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TrainingDataset targetField. */ - public targetField: string; + /** + * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TrainingDataset loggingSamplingStrategy. */ - public loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); + /** + * Gets the default type url for PauseModelDeploymentMonitoringJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** TrainingDataset dataSource. */ - public dataSource?: ("dataset"|"gcsSource"|"bigquerySource"); + /** Properties of a ResumeModelDeploymentMonitoringJobRequest. */ + interface IResumeModelDeploymentMonitoringJobRequest { - /** - * Creates a new TrainingDataset instance using the specified properties. - * @param [properties] Properties to set - * @returns TrainingDataset instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; + /** ResumeModelDeploymentMonitoringJobRequest name */ + name?: (string|null); + } - /** - * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @param message TrainingDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a ResumeModelDeploymentMonitoringJobRequest. */ + class ResumeModelDeploymentMonitoringJobRequest implements IResumeModelDeploymentMonitoringJobRequest { - /** - * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @param message TrainingDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest); - /** - * Decodes a TrainingDataset message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrainingDataset - * @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.ModelMonitoringObjectiveConfig.TrainingDataset; + /** ResumeModelDeploymentMonitoringJobRequest name. */ + public name: string; - /** - * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrainingDataset - * @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.ModelMonitoringObjectiveConfig.TrainingDataset; + /** + * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ResumeModelDeploymentMonitoringJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; - /** - * Verifies a TrainingDataset 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); + /** + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrainingDataset - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; + /** + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. - * @param message TrainingDataset - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResumeModelDeploymentMonitoringJobRequest + * @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.ResumeModelDeploymentMonitoringJobRequest; - /** - * Converts this TrainingDataset to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResumeModelDeploymentMonitoringJobRequest + * @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.ResumeModelDeploymentMonitoringJobRequest; - /** - * Gets the default type url for TrainingDataset - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a ResumeModelDeploymentMonitoringJobRequest 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); - /** Properties of a TrainingPredictionSkewDetectionConfig. */ - interface ITrainingPredictionSkewDetectionConfig { + /** + * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResumeModelDeploymentMonitoringJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest; - /** TrainingPredictionSkewDetectionConfig skewThresholds */ - skewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + /** + * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message ResumeModelDeploymentMonitoringJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds */ - attributionScoreSkewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + /** + * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold */ - defaultSkewThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - } + /** + * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Represents a TrainingPredictionSkewDetectionConfig. */ - class TrainingPredictionSkewDetectionConfig implements ITrainingPredictionSkewDetectionConfig { + /** Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. */ + interface IUpdateModelDeploymentMonitoringJobOperationMetadata { - /** - * Constructs a new TrainingPredictionSkewDetectionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig); + /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } - /** TrainingPredictionSkewDetectionConfig skewThresholds. */ - public skewThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + /** Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. */ + class UpdateModelDeploymentMonitoringJobOperationMetadata implements IUpdateModelDeploymentMonitoringJobOperationMetadata { - /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. */ - public attributionScoreSkewThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + /** + * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata); - /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold. */ - public defaultSkewThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** - * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns TrainingPredictionSkewDetectionConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + /** + * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrainingPredictionSkewDetectionConfig - * @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.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + /** + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @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.UpdateModelDeploymentMonitoringJobOperationMetadata; - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrainingPredictionSkewDetectionConfig - * @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.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + /** + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @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.UpdateModelDeploymentMonitoringJobOperationMetadata; - /** - * Verifies a TrainingPredictionSkewDetectionConfig 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); + /** + * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata 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 TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrainingPredictionSkewDetectionConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + /** + * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata; - /** - * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. - * @param message TrainingPredictionSkewDetectionConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this TrainingPredictionSkewDetectionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for TrainingPredictionSkewDetectionConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a PredictionDriftDetectionConfig. */ - interface IPredictionDriftDetectionConfig { + /** ModelDeploymentMonitoringObjectiveType enum. */ + enum ModelDeploymentMonitoringObjectiveType { + MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0, + RAW_FEATURE_SKEW = 1, + RAW_FEATURE_DRIFT = 2, + FEATURE_ATTRIBUTION_SKEW = 3, + FEATURE_ATTRIBUTION_DRIFT = 4 + } - /** PredictionDriftDetectionConfig driftThresholds */ - driftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + /** Properties of a ModelDeploymentMonitoringJob. */ + interface IModelDeploymentMonitoringJob { - /** PredictionDriftDetectionConfig attributionScoreDriftThresholds */ - attributionScoreDriftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + /** ModelDeploymentMonitoringJob name */ + name?: (string|null); - /** PredictionDriftDetectionConfig defaultDriftThreshold */ - defaultDriftThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - } + /** ModelDeploymentMonitoringJob displayName */ + displayName?: (string|null); - /** Represents a PredictionDriftDetectionConfig. */ - class PredictionDriftDetectionConfig implements IPredictionDriftDetectionConfig { + /** ModelDeploymentMonitoringJob endpoint */ + endpoint?: (string|null); - /** - * Constructs a new PredictionDriftDetectionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig); + /** ModelDeploymentMonitoringJob state */ + state?: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState|null); - /** PredictionDriftDetectionConfig driftThresholds. */ - public driftThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + /** ModelDeploymentMonitoringJob scheduleState */ + scheduleState?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null); - /** PredictionDriftDetectionConfig attributionScoreDriftThresholds. */ - public attributionScoreDriftThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata */ + latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - /** PredictionDriftDetectionConfig defaultDriftThreshold. */ - public defaultDriftThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs */ + modelDeploymentMonitoringObjectiveConfigs?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig[]|null); - /** - * Creates a new PredictionDriftDetectionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns PredictionDriftDetectionConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig */ + modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null); - /** - * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @param message PredictionDriftDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob loggingSamplingStrategy */ + loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); - /** - * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @param message PredictionDriftDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig */ + modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null); - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PredictionDriftDetectionConfig - * @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.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; + /** ModelDeploymentMonitoringJob predictInstanceSchemaUri */ + predictInstanceSchemaUri?: (string|null); - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PredictionDriftDetectionConfig - * @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.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - - /** - * Verifies a PredictionDriftDetectionConfig 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 PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PredictionDriftDetectionConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - - /** - * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. - * @param message PredictionDriftDetectionConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PredictionDriftDetectionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PredictionDriftDetectionConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExplanationConfig. */ - interface IExplanationConfig { - - /** ExplanationConfig enableFeatureAttributes */ - enableFeatureAttributes?: (boolean|null); - - /** ExplanationConfig explanationBaseline */ - explanationBaseline?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); - } - - /** Represents an ExplanationConfig. */ - class ExplanationConfig implements IExplanationConfig { - - /** - * Constructs a new ExplanationConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig); - - /** ExplanationConfig enableFeatureAttributes. */ - public enableFeatureAttributes: boolean; - - /** ExplanationConfig explanationBaseline. */ - public explanationBaseline?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); - - /** - * Creates a new ExplanationConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ExplanationConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; - - /** - * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. - * @param message ExplanationConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. - * @param message ExplanationConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExplanationConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExplanationConfig - * @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.ModelMonitoringObjectiveConfig.ExplanationConfig; - - /** - * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExplanationConfig - * @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.ModelMonitoringObjectiveConfig.ExplanationConfig; + /** ModelDeploymentMonitoringJob samplePredictInstance */ + samplePredictInstance?: (google.protobuf.IValue|null); - /** - * Verifies an ExplanationConfig 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); + /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri */ + analysisInstanceSchemaUri?: (string|null); - /** - * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExplanationConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; + /** ModelDeploymentMonitoringJob bigqueryTables */ + bigqueryTables?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable[]|null); - /** - * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. - * @param message ExplanationConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ModelDeploymentMonitoringJob logTtl */ + logTtl?: (google.protobuf.IDuration|null); - /** - * Converts this ExplanationConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ModelDeploymentMonitoringJob labels */ + labels?: ({ [k: string]: string }|null); - /** - * Gets the default type url for ExplanationConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ModelDeploymentMonitoringJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - namespace ExplanationConfig { + /** ModelDeploymentMonitoringJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** Properties of an ExplanationBaseline. */ - interface IExplanationBaseline { + /** ModelDeploymentMonitoringJob nextScheduleTime */ + nextScheduleTime?: (google.protobuf.ITimestamp|null); - /** ExplanationBaseline gcs */ - gcs?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory */ + statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1.IGcsDestination|null); - /** ExplanationBaseline bigquery */ - bigquery?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + /** ModelDeploymentMonitoringJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); - /** ExplanationBaseline predictionFormat */ - predictionFormat?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null); - } + /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs */ + enableMonitoringPipelineLogs?: (boolean|null); - /** Represents an ExplanationBaseline. */ - class ExplanationBaseline implements IExplanationBaseline { + /** ModelDeploymentMonitoringJob error */ + error?: (google.rpc.IStatus|null); + } - /** - * Constructs a new ExplanationBaseline. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline); + /** Represents a ModelDeploymentMonitoringJob. */ + class ModelDeploymentMonitoringJob implements IModelDeploymentMonitoringJob { - /** ExplanationBaseline gcs. */ - public gcs?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** + * Constructs a new ModelDeploymentMonitoringJob. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob); - /** ExplanationBaseline bigquery. */ - public bigquery?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + /** ModelDeploymentMonitoringJob name. */ + public name: string; - /** ExplanationBaseline predictionFormat. */ - public predictionFormat: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat); + /** ModelDeploymentMonitoringJob displayName. */ + public displayName: string; - /** ExplanationBaseline destination. */ - public destination?: ("gcs"|"bigquery"); + /** ModelDeploymentMonitoringJob endpoint. */ + public endpoint: string; - /** - * Creates a new ExplanationBaseline instance using the specified properties. - * @param [properties] Properties to set - * @returns ExplanationBaseline instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** ModelDeploymentMonitoringJob state. */ + public state: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState); - /** - * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @param message ExplanationBaseline message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob scheduleState. */ + public scheduleState: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState); - /** - * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @param message ExplanationBaseline message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. */ + public latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExplanationBaseline - * @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.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. */ + public modelDeploymentMonitoringObjectiveConfigs: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig[]; - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExplanationBaseline - * @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.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. */ + public modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null); - /** - * Verifies an ExplanationBaseline 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); + /** ModelDeploymentMonitoringJob loggingSamplingStrategy. */ + public loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); - /** - * Creates an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExplanationBaseline - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig. */ + public modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null); - /** - * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. - * @param message ExplanationBaseline - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ModelDeploymentMonitoringJob predictInstanceSchemaUri. */ + public predictInstanceSchemaUri: string; - /** - * Converts this ExplanationBaseline to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ModelDeploymentMonitoringJob samplePredictInstance. */ + public samplePredictInstance?: (google.protobuf.IValue|null); - /** - * Gets the default type url for ExplanationBaseline - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri. */ + public analysisInstanceSchemaUri: string; - namespace ExplanationBaseline { + /** ModelDeploymentMonitoringJob bigqueryTables. */ + public bigqueryTables: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable[]; - /** PredictionFormat enum. */ - enum PredictionFormat { - PREDICTION_FORMAT_UNSPECIFIED = 0, - JSONL = 2, - BIGQUERY = 3 - } - } - } - } + /** ModelDeploymentMonitoringJob logTtl. */ + public logTtl?: (google.protobuf.IDuration|null); - /** Properties of a ModelMonitoringAlertConfig. */ - interface IModelMonitoringAlertConfig { + /** ModelDeploymentMonitoringJob labels. */ + public labels: { [k: string]: string }; - /** ModelMonitoringAlertConfig emailAlertConfig */ - emailAlertConfig?: (google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + /** ModelDeploymentMonitoringJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ModelMonitoringAlertConfig enableLogging */ - enableLogging?: (boolean|null); - } + /** ModelDeploymentMonitoringJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** Represents a ModelMonitoringAlertConfig. */ - class ModelMonitoringAlertConfig implements IModelMonitoringAlertConfig { + /** ModelDeploymentMonitoringJob nextScheduleTime. */ + public nextScheduleTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new ModelMonitoringAlertConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig); + /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. */ + public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1.IGcsDestination|null); - /** ModelMonitoringAlertConfig emailAlertConfig. */ - public emailAlertConfig?: (google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + /** ModelDeploymentMonitoringJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); - /** ModelMonitoringAlertConfig enableLogging. */ - public enableLogging: boolean; + /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. */ + public enableMonitoringPipelineLogs: boolean; - /** ModelMonitoringAlertConfig alert. */ - public alert?: "emailAlertConfig"; + /** ModelDeploymentMonitoringJob error. */ + public error?: (google.rpc.IStatus|null); /** - * Creates a new ModelMonitoringAlertConfig instance using the specified properties. + * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringAlertConfig instance + * @returns ModelDeploymentMonitoringJob instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; + public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; /** - * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. - * @param message ModelMonitoringAlertConfig message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @param message ModelDeploymentMonitoringJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. - * @param message ModelMonitoringAlertConfig message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @param message ModelDeploymentMonitoringJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringAlertConfig + * @returns ModelDeploymentMonitoringJob * @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.ModelMonitoringAlertConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringAlertConfig + * @returns ModelDeploymentMonitoringJob * @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.ModelMonitoringAlertConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; /** - * Verifies a ModelMonitoringAlertConfig message. + * Verifies a ModelDeploymentMonitoringJob 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 ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringAlertConfig + * @returns ModelDeploymentMonitoringJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob; /** - * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. - * @param message ModelMonitoringAlertConfig + * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringAlertConfig to JSON. + * Converts this ModelDeploymentMonitoringJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringAlertConfig + * Gets the default type url for ModelDeploymentMonitoringJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelMonitoringAlertConfig { + namespace ModelDeploymentMonitoringJob { - /** Properties of an EmailAlertConfig. */ - interface IEmailAlertConfig { + /** Properties of a LatestMonitoringPipelineMetadata. */ + interface ILatestMonitoringPipelineMetadata { - /** EmailAlertConfig userEmails */ - userEmails?: (string[]|null); + /** LatestMonitoringPipelineMetadata runTime */ + runTime?: (google.protobuf.ITimestamp|null); + + /** LatestMonitoringPipelineMetadata status */ + status?: (google.rpc.IStatus|null); } - /** Represents an EmailAlertConfig. */ - class EmailAlertConfig implements IEmailAlertConfig { + /** Represents a LatestMonitoringPipelineMetadata. */ + class LatestMonitoringPipelineMetadata implements ILatestMonitoringPipelineMetadata { /** - * Constructs a new EmailAlertConfig. + * Constructs a new LatestMonitoringPipelineMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig); + constructor(properties?: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata); - /** EmailAlertConfig userEmails. */ - public userEmails: string[]; + /** LatestMonitoringPipelineMetadata runTime. */ + public runTime?: (google.protobuf.ITimestamp|null); + + /** LatestMonitoringPipelineMetadata status. */ + public status?: (google.rpc.IStatus|null); /** - * Creates a new EmailAlertConfig instance using the specified properties. + * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns EmailAlertConfig instance + * @returns LatestMonitoringPipelineMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; + public static create(properties?: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; /** - * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. - * @param message EmailAlertConfig message or plain object to encode + * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @param message LatestMonitoringPipelineMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. - * @param message EmailAlertConfig message or plain object to encode + * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @param message LatestMonitoringPipelineMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EmailAlertConfig message from the specified reader or buffer. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EmailAlertConfig + * @returns LatestMonitoringPipelineMetadata * @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.ModelMonitoringAlertConfig.EmailAlertConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; /** - * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EmailAlertConfig + * @returns LatestMonitoringPipelineMetadata * @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.ModelMonitoringAlertConfig.EmailAlertConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; /** - * Verifies an EmailAlertConfig message. + * Verifies a LatestMonitoringPipelineMetadata 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 EmailAlertConfig message from a plain object. Also converts values to their respective internal types. + * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EmailAlertConfig + * @returns LatestMonitoringPipelineMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; /** - * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. - * @param message EmailAlertConfig + * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. + * @param message LatestMonitoringPipelineMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EmailAlertConfig to JSON. + * Converts this LatestMonitoringPipelineMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EmailAlertConfig + * Gets the default type url for LatestMonitoringPipelineMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** MonitoringScheduleState enum. */ + enum MonitoringScheduleState { + MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0, + PENDING = 1, + OFFLINE = 2, + RUNNING = 3 + } } - /** Properties of a ThresholdConfig. */ - interface IThresholdConfig { + /** Properties of a ModelDeploymentMonitoringBigQueryTable. */ + interface IModelDeploymentMonitoringBigQueryTable { - /** ThresholdConfig value */ - value?: (number|null); + /** ModelDeploymentMonitoringBigQueryTable logSource */ + logSource?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|null); + + /** ModelDeploymentMonitoringBigQueryTable logType */ + logType?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|null); + + /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ + bigqueryTablePath?: (string|null); } - /** Represents a ThresholdConfig. */ - class ThresholdConfig implements IThresholdConfig { + /** Represents a ModelDeploymentMonitoringBigQueryTable. */ + class ModelDeploymentMonitoringBigQueryTable implements IModelDeploymentMonitoringBigQueryTable { /** - * Constructs a new ThresholdConfig. + * Constructs a new ModelDeploymentMonitoringBigQueryTable. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IThresholdConfig); + constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable); - /** ThresholdConfig value. */ - public value?: (number|null); + /** ModelDeploymentMonitoringBigQueryTable logSource. */ + public logSource: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource); - /** ThresholdConfig threshold. */ - public threshold?: "value"; + /** ModelDeploymentMonitoringBigQueryTable logType. */ + public logType: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType); + + /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ + public bigqueryTablePath: string; /** - * Creates a new ThresholdConfig instance using the specified properties. + * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. * @param [properties] Properties to set - * @returns ThresholdConfig instance + * @returns ModelDeploymentMonitoringBigQueryTable instance */ - public static create(properties?: google.cloud.aiplatform.v1.IThresholdConfig): google.cloud.aiplatform.v1.ThresholdConfig; + public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; /** - * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ThresholdConfig message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ThresholdConfig + * @returns ModelDeploymentMonitoringBigQueryTable * @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.ThresholdConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; /** - * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ThresholdConfig + * @returns ModelDeploymentMonitoringBigQueryTable * @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.ThresholdConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; /** - * Verifies a ThresholdConfig message. + * Verifies a ModelDeploymentMonitoringBigQueryTable 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 ThresholdConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ThresholdConfig + * @returns ModelDeploymentMonitoringBigQueryTable */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ThresholdConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable; /** - * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. - * @param message ThresholdConfig + * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringBigQueryTable * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ThresholdConfig to JSON. + * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ThresholdConfig + * Gets the default type url for ModelDeploymentMonitoringBigQueryTable * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SamplingStrategy. */ - interface ISamplingStrategy { + namespace ModelDeploymentMonitoringBigQueryTable { - /** SamplingStrategy randomSampleConfig */ - randomSampleConfig?: (google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null); + /** LogSource enum. */ + enum LogSource { + LOG_SOURCE_UNSPECIFIED = 0, + TRAINING = 1, + SERVING = 2 + } + + /** LogType enum. */ + enum LogType { + LOG_TYPE_UNSPECIFIED = 0, + PREDICT = 1, + EXPLAIN = 2 + } } - /** Represents a SamplingStrategy. */ - class SamplingStrategy implements ISamplingStrategy { + /** Properties of a ModelDeploymentMonitoringObjectiveConfig. */ + interface IModelDeploymentMonitoringObjectiveConfig { + + /** ModelDeploymentMonitoringObjectiveConfig deployedModelId */ + deployedModelId?: (string|null); + + /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ + objectiveConfig?: (google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null); + } + + /** Represents a ModelDeploymentMonitoringObjectiveConfig. */ + class ModelDeploymentMonitoringObjectiveConfig implements IModelDeploymentMonitoringObjectiveConfig { /** - * Constructs a new SamplingStrategy. + * Constructs a new ModelDeploymentMonitoringObjectiveConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISamplingStrategy); + constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig); - /** SamplingStrategy randomSampleConfig. */ - public randomSampleConfig?: (google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null); + /** ModelDeploymentMonitoringObjectiveConfig deployedModelId. */ + public deployedModelId: string; + + /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig. */ + public objectiveConfig?: (google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null); /** - * Creates a new SamplingStrategy instance using the specified properties. + * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. * @param [properties] Properties to set - * @returns SamplingStrategy instance + * @returns ModelDeploymentMonitoringObjectiveConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISamplingStrategy): google.cloud.aiplatform.v1.SamplingStrategy; + public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; /** - * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. - * @param message SamplingStrategy message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. - * @param message SamplingStrategy message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SamplingStrategy message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SamplingStrategy + * @returns ModelDeploymentMonitoringObjectiveConfig * @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.SamplingStrategy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; /** - * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SamplingStrategy + * @returns ModelDeploymentMonitoringObjectiveConfig * @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.SamplingStrategy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; /** - * Verifies a SamplingStrategy message. + * Verifies a ModelDeploymentMonitoringObjectiveConfig 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 SamplingStrategy message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SamplingStrategy + * @returns ModelDeploymentMonitoringObjectiveConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SamplingStrategy; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig; /** - * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. - * @param message SamplingStrategy + * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringObjectiveConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SamplingStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SamplingStrategy to JSON. + * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SamplingStrategy + * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace SamplingStrategy { - - /** Properties of a RandomSampleConfig. */ - interface IRandomSampleConfig { - - /** RandomSampleConfig sampleRate */ - sampleRate?: (number|null); - } - - /** Represents a RandomSampleConfig. */ - class RandomSampleConfig implements IRandomSampleConfig { - - /** - * Constructs a new RandomSampleConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig); - - /** RandomSampleConfig sampleRate. */ - public sampleRate: number; - - /** - * Creates a new RandomSampleConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns RandomSampleConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig): google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig; - - /** - * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. - * @param message RandomSampleConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. - * @param message RandomSampleConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RandomSampleConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RandomSampleConfig - * @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.SamplingStrategy.RandomSampleConfig; - - /** - * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RandomSampleConfig - * @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.SamplingStrategy.RandomSampleConfig; - - /** - * Verifies a RandomSampleConfig 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 RandomSampleConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RandomSampleConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig; - - /** - * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. - * @param message RandomSampleConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RandomSampleConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RandomSampleConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a LineageSubgraph. */ - interface ILineageSubgraph { - - /** LineageSubgraph artifacts */ - artifacts?: (google.cloud.aiplatform.v1.IArtifact[]|null); + /** Properties of a ModelDeploymentMonitoringScheduleConfig. */ + interface IModelDeploymentMonitoringScheduleConfig { - /** LineageSubgraph executions */ - executions?: (google.cloud.aiplatform.v1.IExecution[]|null); + /** ModelDeploymentMonitoringScheduleConfig monitorInterval */ + monitorInterval?: (google.protobuf.IDuration|null); - /** LineageSubgraph events */ - events?: (google.cloud.aiplatform.v1.IEvent[]|null); + /** ModelDeploymentMonitoringScheduleConfig monitorWindow */ + monitorWindow?: (google.protobuf.IDuration|null); } - /** Represents a LineageSubgraph. */ - class LineageSubgraph implements ILineageSubgraph { + /** Represents a ModelDeploymentMonitoringScheduleConfig. */ + class ModelDeploymentMonitoringScheduleConfig implements IModelDeploymentMonitoringScheduleConfig { /** - * Constructs a new LineageSubgraph. + * Constructs a new ModelDeploymentMonitoringScheduleConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ILineageSubgraph); - - /** LineageSubgraph artifacts. */ - public artifacts: google.cloud.aiplatform.v1.IArtifact[]; + constructor(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig); - /** LineageSubgraph executions. */ - public executions: google.cloud.aiplatform.v1.IExecution[]; + /** ModelDeploymentMonitoringScheduleConfig monitorInterval. */ + public monitorInterval?: (google.protobuf.IDuration|null); - /** LineageSubgraph events. */ - public events: google.cloud.aiplatform.v1.IEvent[]; + /** ModelDeploymentMonitoringScheduleConfig monitorWindow. */ + public monitorWindow?: (google.protobuf.IDuration|null); /** - * Creates a new LineageSubgraph instance using the specified properties. + * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. * @param [properties] Properties to set - * @returns LineageSubgraph instance + * @returns ModelDeploymentMonitoringScheduleConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.ILineageSubgraph): google.cloud.aiplatform.v1.LineageSubgraph; + public static create(properties?: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; /** - * Encodes the specified LineageSubgraph message. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. - * @param message LineageSubgraph message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ILineageSubgraph, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified LineageSubgraph message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. - * @param message LineageSubgraph message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ILineageSubgraph, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a LineageSubgraph message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns LineageSubgraph + * @returns ModelDeploymentMonitoringScheduleConfig * @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.LineageSubgraph; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; /** - * Decodes a LineageSubgraph message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns LineageSubgraph + * @returns ModelDeploymentMonitoringScheduleConfig * @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.LineageSubgraph; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; /** - * Verifies a LineageSubgraph message. + * Verifies a ModelDeploymentMonitoringScheduleConfig 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 LineageSubgraph message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns LineageSubgraph + * @returns ModelDeploymentMonitoringScheduleConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.LineageSubgraph; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig; /** - * Creates a plain object from a LineageSubgraph message. Also converts values to other types if specified. - * @param message LineageSubgraph + * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringScheduleConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.LineageSubgraph, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this LineageSubgraph to JSON. + * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for LineageSubgraph + * Gets the default type url for ModelDeploymentMonitoringScheduleConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MetadataSchema. */ - interface IMetadataSchema { - - /** MetadataSchema name */ - name?: (string|null); - - /** MetadataSchema schemaVersion */ - schemaVersion?: (string|null); + /** Properties of a ModelMonitoringStatsAnomalies. */ + interface IModelMonitoringStatsAnomalies { - /** MetadataSchema schema */ - schema?: (string|null); + /** ModelMonitoringStatsAnomalies objective */ + objective?: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null); - /** MetadataSchema schemaType */ - schemaType?: (google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType|keyof typeof google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType|null); + /** ModelMonitoringStatsAnomalies deployedModelId */ + deployedModelId?: (string|null); - /** MetadataSchema createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** ModelMonitoringStatsAnomalies anomalyCount */ + anomalyCount?: (number|null); - /** MetadataSchema description */ - description?: (string|null); + /** ModelMonitoringStatsAnomalies featureStats */ + featureStats?: (google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]|null); } - /** Represents a MetadataSchema. */ - class MetadataSchema implements IMetadataSchema { + /** Represents a ModelMonitoringStatsAnomalies. */ + class ModelMonitoringStatsAnomalies implements IModelMonitoringStatsAnomalies { /** - * Constructs a new MetadataSchema. + * Constructs a new ModelMonitoringStatsAnomalies. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IMetadataSchema); - - /** MetadataSchema name. */ - public name: string; - - /** MetadataSchema schemaVersion. */ - public schemaVersion: string; + constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies); - /** MetadataSchema schema. */ - public schema: string; + /** ModelMonitoringStatsAnomalies objective. */ + public objective: (google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType); - /** MetadataSchema schemaType. */ - public schemaType: (google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType|keyof typeof google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType); + /** ModelMonitoringStatsAnomalies deployedModelId. */ + public deployedModelId: string; - /** MetadataSchema createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ModelMonitoringStatsAnomalies anomalyCount. */ + public anomalyCount: number; - /** MetadataSchema description. */ - public description: string; + /** ModelMonitoringStatsAnomalies featureStats. */ + public featureStats: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]; /** - * Creates a new MetadataSchema instance using the specified properties. + * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. * @param [properties] Properties to set - * @returns MetadataSchema instance + * @returns ModelMonitoringStatsAnomalies instance */ - public static create(properties?: google.cloud.aiplatform.v1.IMetadataSchema): google.cloud.aiplatform.v1.MetadataSchema; + public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; /** - * Encodes the specified MetadataSchema message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataSchema.verify|verify} messages. - * @param message MetadataSchema message or plain object to encode + * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @param message ModelMonitoringStatsAnomalies message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IMetadataSchema, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MetadataSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataSchema.verify|verify} messages. - * @param message MetadataSchema message or plain object to encode + * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @param message ModelMonitoringStatsAnomalies message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IMetadataSchema, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MetadataSchema message from the specified reader or buffer. + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MetadataSchema + * @returns ModelMonitoringStatsAnomalies * @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.MetadataSchema; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; /** - * Decodes a MetadataSchema message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MetadataSchema + * @returns ModelMonitoringStatsAnomalies * @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.MetadataSchema; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; /** - * Verifies a MetadataSchema message. + * Verifies a ModelMonitoringStatsAnomalies 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 MetadataSchema message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MetadataSchema + * @returns ModelMonitoringStatsAnomalies */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MetadataSchema; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies; /** - * Creates a plain object from a MetadataSchema message. Also converts values to other types if specified. - * @param message MetadataSchema + * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. + * @param message ModelMonitoringStatsAnomalies * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.MetadataSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MetadataSchema to JSON. + * Converts this ModelMonitoringStatsAnomalies to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MetadataSchema + * Gets the default type url for ModelMonitoringStatsAnomalies * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MetadataSchema { - - /** MetadataSchemaType enum. */ - enum MetadataSchemaType { - METADATA_SCHEMA_TYPE_UNSPECIFIED = 0, - ARTIFACT_TYPE = 1, - EXECUTION_TYPE = 2, - CONTEXT_TYPE = 3 - } - } + namespace ModelMonitoringStatsAnomalies { - /** Represents a MetadataService */ - class MetadataService extends $protobuf.rpc.Service { + /** Properties of a FeatureHistoricStatsAnomalies. */ + interface IFeatureHistoricStatsAnomalies { - /** - * Constructs a new MetadataService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** FeatureHistoricStatsAnomalies featureDisplayName */ + featureDisplayName?: (string|null); - /** - * Creates new MetadataService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MetadataService; + /** FeatureHistoricStatsAnomalies threshold */ + threshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - /** - * Calls CreateMetadataStore. - * @param request CreateMetadataStoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createMetadataStore(request: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateMetadataStoreCallback): void; + /** FeatureHistoricStatsAnomalies trainingStats */ + trainingStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null); - /** - * Calls CreateMetadataStore. - * @param request CreateMetadataStoreRequest message or plain object - * @returns Promise - */ - public createMetadataStore(request: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest): Promise; + /** FeatureHistoricStatsAnomalies predictionStats */ + predictionStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly[]|null); + } - /** - * Calls GetMetadataStore. - * @param request GetMetadataStoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MetadataStore - */ - public getMetadataStore(request: google.cloud.aiplatform.v1.IGetMetadataStoreRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetMetadataStoreCallback): void; + /** Represents a FeatureHistoricStatsAnomalies. */ + class FeatureHistoricStatsAnomalies implements IFeatureHistoricStatsAnomalies { - /** - * Calls GetMetadataStore. - * @param request GetMetadataStoreRequest message or plain object - * @returns Promise - */ - public getMetadataStore(request: google.cloud.aiplatform.v1.IGetMetadataStoreRequest): Promise; + /** + * Constructs a new FeatureHistoricStatsAnomalies. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies); - /** - * Calls ListMetadataStores. - * @param request ListMetadataStoresRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListMetadataStoresResponse - */ - public listMetadataStores(request: google.cloud.aiplatform.v1.IListMetadataStoresRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListMetadataStoresCallback): void; + /** FeatureHistoricStatsAnomalies featureDisplayName. */ + public featureDisplayName: string; - /** - * Calls ListMetadataStores. - * @param request ListMetadataStoresRequest message or plain object - * @returns Promise - */ - public listMetadataStores(request: google.cloud.aiplatform.v1.IListMetadataStoresRequest): Promise; + /** FeatureHistoricStatsAnomalies threshold. */ + public threshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - /** - * Calls DeleteMetadataStore. - * @param request DeleteMetadataStoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteMetadataStore(request: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest, callback: google.cloud.aiplatform.v1.MetadataService.DeleteMetadataStoreCallback): void; + /** FeatureHistoricStatsAnomalies trainingStats. */ + public trainingStats?: (google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null); - /** - * Calls DeleteMetadataStore. - * @param request DeleteMetadataStoreRequest message or plain object - * @returns Promise - */ - public deleteMetadataStore(request: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest): Promise; - - /** - * Calls CreateArtifact. - * @param request CreateArtifactRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Artifact - */ - public createArtifact(request: google.cloud.aiplatform.v1.ICreateArtifactRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateArtifactCallback): void; + /** FeatureHistoricStatsAnomalies predictionStats. */ + public predictionStats: google.cloud.aiplatform.v1.IFeatureStatsAnomaly[]; - /** - * Calls CreateArtifact. - * @param request CreateArtifactRequest message or plain object - * @returns Promise - */ - public createArtifact(request: google.cloud.aiplatform.v1.ICreateArtifactRequest): Promise; + /** + * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureHistoricStatsAnomalies instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - /** - * Calls GetArtifact. - * @param request GetArtifactRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Artifact - */ - public getArtifact(request: google.cloud.aiplatform.v1.IGetArtifactRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetArtifactCallback): void; + /** + * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @param message FeatureHistoricStatsAnomalies message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls GetArtifact. - * @param request GetArtifactRequest message or plain object - * @returns Promise - */ - public getArtifact(request: google.cloud.aiplatform.v1.IGetArtifactRequest): Promise; + /** + * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @param message FeatureHistoricStatsAnomalies message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls ListArtifacts. - * @param request ListArtifactsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListArtifactsResponse - */ - public listArtifacts(request: google.cloud.aiplatform.v1.IListArtifactsRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListArtifactsCallback): void; + /** + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureHistoricStatsAnomalies + * @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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - /** - * Calls ListArtifacts. - * @param request ListArtifactsRequest message or plain object - * @returns Promise - */ - public listArtifacts(request: google.cloud.aiplatform.v1.IListArtifactsRequest): Promise; + /** + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureHistoricStatsAnomalies + * @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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - /** - * Calls UpdateArtifact. - * @param request UpdateArtifactRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Artifact - */ - public updateArtifact(request: google.cloud.aiplatform.v1.IUpdateArtifactRequest, callback: google.cloud.aiplatform.v1.MetadataService.UpdateArtifactCallback): void; + /** + * Verifies a FeatureHistoricStatsAnomalies 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); - /** - * Calls UpdateArtifact. - * @param request UpdateArtifactRequest message or plain object - * @returns Promise - */ - public updateArtifact(request: google.cloud.aiplatform.v1.IUpdateArtifactRequest): Promise; + /** + * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureHistoricStatsAnomalies + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - /** - * Calls DeleteArtifact. - * @param request DeleteArtifactRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteArtifact(request: google.cloud.aiplatform.v1.IDeleteArtifactRequest, callback: google.cloud.aiplatform.v1.MetadataService.DeleteArtifactCallback): void; + /** + * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. + * @param message FeatureHistoricStatsAnomalies + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Calls DeleteArtifact. - * @param request DeleteArtifactRequest message or plain object - * @returns Promise - */ - public deleteArtifact(request: google.cloud.aiplatform.v1.IDeleteArtifactRequest): Promise; + /** + * Converts this FeatureHistoricStatsAnomalies to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Calls PurgeArtifacts. - * @param request PurgeArtifactsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public purgeArtifacts(request: google.cloud.aiplatform.v1.IPurgeArtifactsRequest, callback: google.cloud.aiplatform.v1.MetadataService.PurgeArtifactsCallback): void; + /** + * Gets the default type url for FeatureHistoricStatsAnomalies + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** - * Calls PurgeArtifacts. - * @param request PurgeArtifactsRequest message or plain object - * @returns Promise - */ - public purgeArtifacts(request: google.cloud.aiplatform.v1.IPurgeArtifactsRequest): Promise; + /** Properties of a ModelMonitoringObjectiveConfig. */ + interface IModelMonitoringObjectiveConfig { - /** - * Calls CreateContext. - * @param request CreateContextRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Context - */ - public createContext(request: google.cloud.aiplatform.v1.ICreateContextRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateContextCallback): void; + /** ModelMonitoringObjectiveConfig trainingDataset */ + trainingDataset?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); - /** - * Calls CreateContext. - * @param request CreateContextRequest message or plain object - * @returns Promise - */ - public createContext(request: google.cloud.aiplatform.v1.ICreateContextRequest): Promise; + /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig */ + trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); - /** - * Calls GetContext. - * @param request GetContextRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Context - */ - public getContext(request: google.cloud.aiplatform.v1.IGetContextRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetContextCallback): void; + /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig */ + predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); - /** - * Calls GetContext. - * @param request GetContextRequest message or plain object - * @returns Promise - */ - public getContext(request: google.cloud.aiplatform.v1.IGetContextRequest): Promise; + /** ModelMonitoringObjectiveConfig explanationConfig */ + explanationConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + } - /** - * Calls ListContexts. - * @param request ListContextsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListContextsResponse - */ - public listContexts(request: google.cloud.aiplatform.v1.IListContextsRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListContextsCallback): void; + /** Represents a ModelMonitoringObjectiveConfig. */ + class ModelMonitoringObjectiveConfig implements IModelMonitoringObjectiveConfig { /** - * Calls ListContexts. - * @param request ListContextsRequest message or plain object - * @returns Promise + * Constructs a new ModelMonitoringObjectiveConfig. + * @param [properties] Properties to set */ - public listContexts(request: google.cloud.aiplatform.v1.IListContextsRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig); - /** - * Calls UpdateContext. - * @param request UpdateContextRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Context - */ - public updateContext(request: google.cloud.aiplatform.v1.IUpdateContextRequest, callback: google.cloud.aiplatform.v1.MetadataService.UpdateContextCallback): void; + /** ModelMonitoringObjectiveConfig trainingDataset. */ + public trainingDataset?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); - /** - * Calls UpdateContext. - * @param request UpdateContextRequest message or plain object - * @returns Promise - */ - public updateContext(request: google.cloud.aiplatform.v1.IUpdateContextRequest): Promise; + /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. */ + public trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); - /** - * Calls DeleteContext. - * @param request DeleteContextRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteContext(request: google.cloud.aiplatform.v1.IDeleteContextRequest, callback: google.cloud.aiplatform.v1.MetadataService.DeleteContextCallback): void; + /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. */ + public predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); - /** - * Calls DeleteContext. - * @param request DeleteContextRequest message or plain object - * @returns Promise - */ - public deleteContext(request: google.cloud.aiplatform.v1.IDeleteContextRequest): Promise; + /** ModelMonitoringObjectiveConfig explanationConfig. */ + public explanationConfig?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); /** - * Calls PurgeContexts. - * @param request PurgeContextsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelMonitoringObjectiveConfig instance */ - public purgeContexts(request: google.cloud.aiplatform.v1.IPurgeContextsRequest, callback: google.cloud.aiplatform.v1.MetadataService.PurgeContextsCallback): void; + public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; /** - * Calls PurgeContexts. - * @param request PurgeContextsRequest message or plain object - * @returns Promise + * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public purgeContexts(request: google.cloud.aiplatform.v1.IPurgeContextsRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls AddContextArtifactsAndExecutions. - * @param request AddContextArtifactsAndExecutionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AddContextArtifactsAndExecutionsResponse + * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public addContextArtifactsAndExecutions(request: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest, callback: google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutionsCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls AddContextArtifactsAndExecutions. - * @param request AddContextArtifactsAndExecutionsRequest message or plain object - * @returns Promise + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelMonitoringObjectiveConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public addContextArtifactsAndExecutions(request: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; /** - * Calls AddContextChildren. - * @param request AddContextChildrenRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AddContextChildrenResponse + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelMonitoringObjectiveConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public addContextChildren(request: google.cloud.aiplatform.v1.IAddContextChildrenRequest, callback: google.cloud.aiplatform.v1.MetadataService.AddContextChildrenCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; /** - * Calls AddContextChildren. - * @param request AddContextChildrenRequest message or plain object - * @returns Promise + * Verifies a ModelMonitoringObjectiveConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public addContextChildren(request: google.cloud.aiplatform.v1.IAddContextChildrenRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls RemoveContextChildren. - * @param request RemoveContextChildrenRequest message or plain object - * @param callback Node-style callback called with the error, if any, and RemoveContextChildrenResponse + * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelMonitoringObjectiveConfig */ - public removeContextChildren(request: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, callback: google.cloud.aiplatform.v1.MetadataService.RemoveContextChildrenCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig; /** - * Calls RemoveContextChildren. - * @param request RemoveContextChildrenRequest message or plain object - * @returns Promise + * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @param message ModelMonitoringObjectiveConfig + * @param [options] Conversion options + * @returns Plain object */ - public removeContextChildren(request: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls QueryContextLineageSubgraph. - * @param request QueryContextLineageSubgraphRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LineageSubgraph + * Converts this ModelMonitoringObjectiveConfig to JSON. + * @returns JSON object */ - public queryContextLineageSubgraph(request: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest, callback: google.cloud.aiplatform.v1.MetadataService.QueryContextLineageSubgraphCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls QueryContextLineageSubgraph. - * @param request QueryContextLineageSubgraphRequest message or plain object - * @returns Promise + * Gets the default type url for ModelMonitoringObjectiveConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public queryContextLineageSubgraph(request: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls CreateExecution. - * @param request CreateExecutionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Execution - */ - public createExecution(request: google.cloud.aiplatform.v1.ICreateExecutionRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateExecutionCallback): void; + namespace ModelMonitoringObjectiveConfig { - /** - * Calls CreateExecution. - * @param request CreateExecutionRequest message or plain object - * @returns Promise - */ - public createExecution(request: google.cloud.aiplatform.v1.ICreateExecutionRequest): Promise; + /** Properties of a TrainingDataset. */ + interface ITrainingDataset { - /** - * Calls GetExecution. - * @param request GetExecutionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Execution - */ - public getExecution(request: google.cloud.aiplatform.v1.IGetExecutionRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetExecutionCallback): void; + /** TrainingDataset dataset */ + dataset?: (string|null); - /** - * Calls GetExecution. - * @param request GetExecutionRequest message or plain object - * @returns Promise - */ - public getExecution(request: google.cloud.aiplatform.v1.IGetExecutionRequest): Promise; + /** TrainingDataset gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1.IGcsSource|null); - /** - * Calls ListExecutions. - * @param request ListExecutionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListExecutionsResponse - */ - public listExecutions(request: google.cloud.aiplatform.v1.IListExecutionsRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListExecutionsCallback): void; + /** TrainingDataset bigquerySource */ + bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); - /** - * Calls ListExecutions. - * @param request ListExecutionsRequest message or plain object - * @returns Promise - */ - public listExecutions(request: google.cloud.aiplatform.v1.IListExecutionsRequest): Promise; + /** TrainingDataset dataFormat */ + dataFormat?: (string|null); - /** - * Calls UpdateExecution. - * @param request UpdateExecutionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Execution - */ - public updateExecution(request: google.cloud.aiplatform.v1.IUpdateExecutionRequest, callback: google.cloud.aiplatform.v1.MetadataService.UpdateExecutionCallback): void; + /** TrainingDataset targetField */ + targetField?: (string|null); - /** - * Calls UpdateExecution. - * @param request UpdateExecutionRequest message or plain object - * @returns Promise - */ - public updateExecution(request: google.cloud.aiplatform.v1.IUpdateExecutionRequest): Promise; + /** TrainingDataset loggingSamplingStrategy */ + loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); + } - /** - * Calls DeleteExecution. - * @param request DeleteExecutionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteExecution(request: google.cloud.aiplatform.v1.IDeleteExecutionRequest, callback: google.cloud.aiplatform.v1.MetadataService.DeleteExecutionCallback): void; + /** Represents a TrainingDataset. */ + class TrainingDataset implements ITrainingDataset { - /** - * Calls DeleteExecution. - * @param request DeleteExecutionRequest message or plain object - * @returns Promise - */ - public deleteExecution(request: google.cloud.aiplatform.v1.IDeleteExecutionRequest): Promise; + /** + * Constructs a new TrainingDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset); - /** - * Calls PurgeExecutions. - * @param request PurgeExecutionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public purgeExecutions(request: google.cloud.aiplatform.v1.IPurgeExecutionsRequest, callback: google.cloud.aiplatform.v1.MetadataService.PurgeExecutionsCallback): void; + /** TrainingDataset dataset. */ + public dataset?: (string|null); - /** - * Calls PurgeExecutions. - * @param request PurgeExecutionsRequest message or plain object - * @returns Promise - */ - public purgeExecutions(request: google.cloud.aiplatform.v1.IPurgeExecutionsRequest): Promise; + /** TrainingDataset gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1.IGcsSource|null); - /** - * Calls AddExecutionEvents. - * @param request AddExecutionEventsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AddExecutionEventsResponse - */ - public addExecutionEvents(request: google.cloud.aiplatform.v1.IAddExecutionEventsRequest, callback: google.cloud.aiplatform.v1.MetadataService.AddExecutionEventsCallback): void; + /** TrainingDataset bigquerySource. */ + public bigquerySource?: (google.cloud.aiplatform.v1.IBigQuerySource|null); - /** - * Calls AddExecutionEvents. - * @param request AddExecutionEventsRequest message or plain object - * @returns Promise - */ - public addExecutionEvents(request: google.cloud.aiplatform.v1.IAddExecutionEventsRequest): Promise; + /** TrainingDataset dataFormat. */ + public dataFormat: string; - /** - * Calls QueryExecutionInputsAndOutputs. - * @param request QueryExecutionInputsAndOutputsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LineageSubgraph - */ - public queryExecutionInputsAndOutputs(request: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest, callback: google.cloud.aiplatform.v1.MetadataService.QueryExecutionInputsAndOutputsCallback): void; + /** TrainingDataset targetField. */ + public targetField: string; - /** - * Calls QueryExecutionInputsAndOutputs. - * @param request QueryExecutionInputsAndOutputsRequest message or plain object - * @returns Promise - */ - public queryExecutionInputsAndOutputs(request: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest): Promise; + /** TrainingDataset loggingSamplingStrategy. */ + public loggingSamplingStrategy?: (google.cloud.aiplatform.v1.ISamplingStrategy|null); - /** - * Calls CreateMetadataSchema. - * @param request CreateMetadataSchemaRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MetadataSchema - */ - public createMetadataSchema(request: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateMetadataSchemaCallback): void; + /** TrainingDataset dataSource. */ + public dataSource?: ("dataset"|"gcsSource"|"bigquerySource"); - /** - * Calls CreateMetadataSchema. - * @param request CreateMetadataSchemaRequest message or plain object - * @returns Promise - */ - public createMetadataSchema(request: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest): Promise; + /** + * Creates a new TrainingDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; - /** - * Calls GetMetadataSchema. - * @param request GetMetadataSchemaRequest message or plain object - * @param callback Node-style callback called with the error, if any, and MetadataSchema - */ - public getMetadataSchema(request: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetMetadataSchemaCallback): void; + /** + * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @param message TrainingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls GetMetadataSchema. - * @param request GetMetadataSchemaRequest message or plain object - * @returns Promise - */ - public getMetadataSchema(request: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest): Promise; + /** + * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @param message TrainingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls ListMetadataSchemas. - * @param request ListMetadataSchemasRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListMetadataSchemasResponse - */ - public listMetadataSchemas(request: google.cloud.aiplatform.v1.IListMetadataSchemasRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemasCallback): void; + /** + * Decodes a TrainingDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingDataset + * @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.ModelMonitoringObjectiveConfig.TrainingDataset; - /** - * Calls ListMetadataSchemas. - * @param request ListMetadataSchemasRequest message or plain object - * @returns Promise - */ - public listMetadataSchemas(request: google.cloud.aiplatform.v1.IListMetadataSchemasRequest): Promise; + /** + * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingDataset + * @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.ModelMonitoringObjectiveConfig.TrainingDataset; - /** - * Calls QueryArtifactLineageSubgraph. - * @param request QueryArtifactLineageSubgraphRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LineageSubgraph - */ - public queryArtifactLineageSubgraph(request: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest, callback: google.cloud.aiplatform.v1.MetadataService.QueryArtifactLineageSubgraphCallback): void; + /** + * Verifies a TrainingDataset 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); - /** - * Calls QueryArtifactLineageSubgraph. - * @param request QueryArtifactLineageSubgraphRequest message or plain object - * @returns Promise - */ - public queryArtifactLineageSubgraph(request: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest): Promise; - } + /** + * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset; - namespace MetadataService { + /** + * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. + * @param message TrainingDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createMetadataStore}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateMetadataStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Converts this TrainingDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getMetadataStore}. - * @param error Error, if any - * @param [response] MetadataStore - */ - type GetMetadataStoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.MetadataStore) => void; + /** + * Gets the default type url for TrainingDataset + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listMetadataStores}. - * @param error Error, if any - * @param [response] ListMetadataStoresResponse - */ - type ListMetadataStoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListMetadataStoresResponse) => void; + /** Properties of a TrainingPredictionSkewDetectionConfig. */ + interface ITrainingPredictionSkewDetectionConfig { - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteMetadataStore}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteMetadataStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** TrainingPredictionSkewDetectionConfig skewThresholds */ + skewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createArtifact}. - * @param error Error, if any - * @param [response] Artifact - */ - type CreateArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Artifact) => void; + /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds */ + attributionScoreSkewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getArtifact}. - * @param error Error, if any - * @param [response] Artifact - */ - type GetArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Artifact) => void; + /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold */ + defaultSkewThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listArtifacts}. - * @param error Error, if any - * @param [response] ListArtifactsResponse - */ - type ListArtifactsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListArtifactsResponse) => void; + /** Represents a TrainingPredictionSkewDetectionConfig. */ + class TrainingPredictionSkewDetectionConfig implements ITrainingPredictionSkewDetectionConfig { - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateArtifact}. - * @param error Error, if any - * @param [response] Artifact - */ - type UpdateArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Artifact) => void; + /** + * Constructs a new TrainingPredictionSkewDetectionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteArtifact}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteArtifactCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** TrainingPredictionSkewDetectionConfig skewThresholds. */ + public skewThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeArtifacts}. - * @param error Error, if any - * @param [response] Operation - */ - type PurgeArtifactsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. */ + public attributionScoreSkewThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createContext}. - * @param error Error, if any - * @param [response] Context - */ - type CreateContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Context) => void; + /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold. */ + public defaultSkewThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getContext}. - * @param error Error, if any - * @param [response] Context - */ - type GetContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Context) => void; + /** + * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingPredictionSkewDetectionConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listContexts}. - * @param error Error, if any - * @param [response] ListContextsResponse - */ - type ListContextsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListContextsResponse) => void; + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateContext}. - * @param error Error, if any - * @param [response] Context - */ - type UpdateContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Context) => void; + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteContext}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteContextCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingPredictionSkewDetectionConfig + * @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.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeContexts}. - * @param error Error, if any - * @param [response] Operation - */ - type PurgeContextsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingPredictionSkewDetectionConfig + * @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.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addContextArtifactsAndExecutions}. - * @param error Error, if any - * @param [response] AddContextArtifactsAndExecutionsResponse - */ - type AddContextArtifactsAndExecutionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse) => void; + /** + * Verifies a TrainingPredictionSkewDetectionConfig 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); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addContextChildren}. - * @param error Error, if any - * @param [response] AddContextChildrenResponse - */ - type AddContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.AddContextChildrenResponse) => void; + /** + * Creates a TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingPredictionSkewDetectionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|removeContextChildren}. - * @param error Error, if any - * @param [response] RemoveContextChildrenResponse - */ - type RemoveContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.RemoveContextChildrenResponse) => void; + /** + * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. + * @param message TrainingPredictionSkewDetectionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryContextLineageSubgraph}. - * @param error Error, if any - * @param [response] LineageSubgraph - */ - type QueryContextLineageSubgraphCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.LineageSubgraph) => void; + /** + * Converts this TrainingPredictionSkewDetectionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createExecution}. - * @param error Error, if any - * @param [response] Execution - */ - type CreateExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Execution) => void; + /** + * Gets the default type url for TrainingPredictionSkewDetectionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getExecution}. - * @param error Error, if any - * @param [response] Execution - */ - type GetExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Execution) => void; + /** Properties of a PredictionDriftDetectionConfig. */ + interface IPredictionDriftDetectionConfig { - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listExecutions}. - * @param error Error, if any - * @param [response] ListExecutionsResponse - */ - type ListExecutionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListExecutionsResponse) => void; + /** PredictionDriftDetectionConfig driftThresholds */ + driftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateExecution}. - * @param error Error, if any - * @param [response] Execution - */ - type UpdateExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Execution) => void; + /** PredictionDriftDetectionConfig attributionScoreDriftThresholds */ + attributionScoreDriftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteExecution}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteExecutionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** PredictionDriftDetectionConfig defaultDriftThreshold */ + defaultDriftThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeExecutions}. - * @param error Error, if any - * @param [response] Operation - */ - type PurgeExecutionsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Represents a PredictionDriftDetectionConfig. */ + class PredictionDriftDetectionConfig implements IPredictionDriftDetectionConfig { - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addExecutionEvents}. - * @param error Error, if any - * @param [response] AddExecutionEventsResponse - */ - type AddExecutionEventsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.AddExecutionEventsResponse) => void; + /** + * Constructs a new PredictionDriftDetectionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryExecutionInputsAndOutputs}. - * @param error Error, if any - * @param [response] LineageSubgraph - */ - type QueryExecutionInputsAndOutputsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.LineageSubgraph) => void; + /** PredictionDriftDetectionConfig driftThresholds. */ + public driftThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createMetadataSchema}. - * @param error Error, if any - * @param [response] MetadataSchema - */ - type CreateMetadataSchemaCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.MetadataSchema) => void; + /** PredictionDriftDetectionConfig attributionScoreDriftThresholds. */ + public attributionScoreDriftThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getMetadataSchema}. - * @param error Error, if any - * @param [response] MetadataSchema - */ - type GetMetadataSchemaCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.MetadataSchema) => void; + /** PredictionDriftDetectionConfig defaultDriftThreshold. */ + public defaultDriftThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listMetadataSchemas}. - * @param error Error, if any - * @param [response] ListMetadataSchemasResponse - */ - type ListMetadataSchemasCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListMetadataSchemasResponse) => void; + /** + * Creates a new PredictionDriftDetectionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PredictionDriftDetectionConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryArtifactLineageSubgraph}. - * @param error Error, if any - * @param [response] LineageSubgraph - */ - type QueryArtifactLineageSubgraphCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.LineageSubgraph) => void; - } + /** + * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * @param message PredictionDriftDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a CreateMetadataStoreRequest. */ - interface ICreateMetadataStoreRequest { + /** + * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * @param message PredictionDriftDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** CreateMetadataStoreRequest parent */ - parent?: (string|null); + /** + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PredictionDriftDetectionConfig + * @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.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** CreateMetadataStoreRequest metadataStore */ - metadataStore?: (google.cloud.aiplatform.v1.IMetadataStore|null); + /** + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PredictionDriftDetectionConfig + * @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.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** CreateMetadataStoreRequest metadataStoreId */ - metadataStoreId?: (string|null); - } + /** + * Verifies a PredictionDriftDetectionConfig 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); - /** Represents a CreateMetadataStoreRequest. */ - class CreateMetadataStoreRequest implements ICreateMetadataStoreRequest { + /** + * Creates a PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PredictionDriftDetectionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** - * Constructs a new CreateMetadataStoreRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest); + /** + * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. + * @param message PredictionDriftDetectionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CreateMetadataStoreRequest parent. */ - public parent: string; + /** + * Converts this PredictionDriftDetectionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** CreateMetadataStoreRequest metadataStore. */ - public metadataStore?: (google.cloud.aiplatform.v1.IMetadataStore|null); + /** + * Gets the default type url for PredictionDriftDetectionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** CreateMetadataStoreRequest metadataStoreId. */ - public metadataStoreId: string; + /** Properties of an ExplanationConfig. */ + interface IExplanationConfig { - /** - * Creates a new CreateMetadataStoreRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateMetadataStoreRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest): google.cloud.aiplatform.v1.CreateMetadataStoreRequest; + /** ExplanationConfig enableFeatureAttributes */ + enableFeatureAttributes?: (boolean|null); - /** - * Encodes the specified CreateMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreRequest.verify|verify} messages. - * @param message CreateMetadataStoreRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** ExplanationConfig explanationBaseline */ + explanationBaseline?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); + } - /** - * Encodes the specified CreateMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreRequest.verify|verify} messages. - * @param message CreateMetadataStoreRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents an ExplanationConfig. */ + class ExplanationConfig implements IExplanationConfig { - /** - * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateMetadataStoreRequest - * @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.CreateMetadataStoreRequest; + /** + * Constructs a new ExplanationConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig); - /** - * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateMetadataStoreRequest - * @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.CreateMetadataStoreRequest; + /** ExplanationConfig enableFeatureAttributes. */ + public enableFeatureAttributes: boolean; - /** - * Verifies a CreateMetadataStoreRequest 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); + /** ExplanationConfig explanationBaseline. */ + public explanationBaseline?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); - /** - * Creates a CreateMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateMetadataStoreRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateMetadataStoreRequest; + /** + * Creates a new ExplanationConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ExplanationConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; - /** - * Creates a plain object from a CreateMetadataStoreRequest message. Also converts values to other types if specified. - * @param message CreateMetadataStoreRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.CreateMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @param message ExplanationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this CreateMetadataStoreRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @param message ExplanationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for CreateMetadataStoreRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Decodes an ExplanationConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExplanationConfig + * @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.ModelMonitoringObjectiveConfig.ExplanationConfig; + + /** + * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExplanationConfig + * @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.ModelMonitoringObjectiveConfig.ExplanationConfig; + + /** + * Verifies an ExplanationConfig 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 ExplanationConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExplanationConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig; + + /** + * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. + * @param message ExplanationConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExplanationConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExplanationConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ExplanationConfig { + + /** Properties of an ExplanationBaseline. */ + interface IExplanationBaseline { + + /** ExplanationBaseline gcs */ + gcs?: (google.cloud.aiplatform.v1.IGcsDestination|null); + + /** ExplanationBaseline bigquery */ + bigquery?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + + /** ExplanationBaseline predictionFormat */ + predictionFormat?: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null); + } + + /** Represents an ExplanationBaseline. */ + class ExplanationBaseline implements IExplanationBaseline { + + /** + * Constructs a new ExplanationBaseline. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline); + + /** ExplanationBaseline gcs. */ + public gcs?: (google.cloud.aiplatform.v1.IGcsDestination|null); + + /** ExplanationBaseline bigquery. */ + public bigquery?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + + /** ExplanationBaseline predictionFormat. */ + public predictionFormat: (google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat); + + /** ExplanationBaseline destination. */ + public destination?: ("gcs"|"bigquery"); + + /** + * Creates a new ExplanationBaseline instance using the specified properties. + * @param [properties] Properties to set + * @returns ExplanationBaseline instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + + /** + * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @param message ExplanationBaseline message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @param message ExplanationBaseline message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExplanationBaseline + * @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.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExplanationBaseline + * @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.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + + /** + * Verifies an ExplanationBaseline 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 ExplanationBaseline message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExplanationBaseline + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + + /** + * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. + * @param message ExplanationBaseline + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExplanationBaseline to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExplanationBaseline + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ExplanationBaseline { + + /** PredictionFormat enum. */ + enum PredictionFormat { + PREDICTION_FORMAT_UNSPECIFIED = 0, + JSONL = 2, + BIGQUERY = 3 + } + } + } } - /** Properties of a CreateMetadataStoreOperationMetadata. */ - interface ICreateMetadataStoreOperationMetadata { + /** Properties of a ModelMonitoringAlertConfig. */ + interface IModelMonitoringAlertConfig { - /** CreateMetadataStoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ModelMonitoringAlertConfig emailAlertConfig */ + emailAlertConfig?: (google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + + /** ModelMonitoringAlertConfig enableLogging */ + enableLogging?: (boolean|null); } - /** Represents a CreateMetadataStoreOperationMetadata. */ - class CreateMetadataStoreOperationMetadata implements ICreateMetadataStoreOperationMetadata { + /** Represents a ModelMonitoringAlertConfig. */ + class ModelMonitoringAlertConfig implements IModelMonitoringAlertConfig { /** - * Constructs a new CreateMetadataStoreOperationMetadata. + * Constructs a new ModelMonitoringAlertConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig); - /** CreateMetadataStoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ModelMonitoringAlertConfig emailAlertConfig. */ + public emailAlertConfig?: (google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + + /** ModelMonitoringAlertConfig enableLogging. */ + public enableLogging: boolean; + + /** ModelMonitoringAlertConfig alert. */ + public alert?: "emailAlertConfig"; /** - * Creates a new CreateMetadataStoreOperationMetadata instance using the specified properties. + * Creates a new ModelMonitoringAlertConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CreateMetadataStoreOperationMetadata instance + * @returns ModelMonitoringAlertConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata): google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; /** - * Encodes the specified CreateMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.verify|verify} messages. - * @param message CreateMetadataStoreOperationMetadata message or plain object to encode + * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. + * @param message ModelMonitoringAlertConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.verify|verify} messages. - * @param message CreateMetadataStoreOperationMetadata message or plain object to encode + * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. + * @param message ModelMonitoringAlertConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateMetadataStoreOperationMetadata + * @returns ModelMonitoringAlertConfig * @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.CreateMetadataStoreOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; /** - * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateMetadataStoreOperationMetadata + * @returns ModelMonitoringAlertConfig * @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.CreateMetadataStoreOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; /** - * Verifies a CreateMetadataStoreOperationMetadata message. + * Verifies a ModelMonitoringAlertConfig 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 CreateMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateMetadataStoreOperationMetadata + * @returns ModelMonitoringAlertConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig; /** - * Creates a plain object from a CreateMetadataStoreOperationMetadata message. Also converts values to other types if specified. - * @param message CreateMetadataStoreOperationMetadata + * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. + * @param message ModelMonitoringAlertConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateMetadataStoreOperationMetadata to JSON. + * Converts this ModelMonitoringAlertConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateMetadataStoreOperationMetadata + * Gets the default type url for ModelMonitoringAlertConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetMetadataStoreRequest. */ - interface IGetMetadataStoreRequest { + namespace ModelMonitoringAlertConfig { - /** GetMetadataStoreRequest name */ - name?: (string|null); + /** Properties of an EmailAlertConfig. */ + interface IEmailAlertConfig { + + /** EmailAlertConfig userEmails */ + userEmails?: (string[]|null); + } + + /** Represents an EmailAlertConfig. */ + class EmailAlertConfig implements IEmailAlertConfig { + + /** + * Constructs a new EmailAlertConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig); + + /** EmailAlertConfig userEmails. */ + public userEmails: string[]; + + /** + * Creates a new EmailAlertConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns EmailAlertConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @param message EmailAlertConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @param message EmailAlertConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EmailAlertConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EmailAlertConfig + * @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.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EmailAlertConfig + * @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.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Verifies an EmailAlertConfig 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 EmailAlertConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EmailAlertConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. + * @param message EmailAlertConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EmailAlertConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EmailAlertConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a GetMetadataStoreRequest. */ - class GetMetadataStoreRequest implements IGetMetadataStoreRequest { + /** Properties of a ThresholdConfig. */ + interface IThresholdConfig { + + /** ThresholdConfig value */ + value?: (number|null); + } + + /** Represents a ThresholdConfig. */ + class ThresholdConfig implements IThresholdConfig { /** - * Constructs a new GetMetadataStoreRequest. + * Constructs a new ThresholdConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetMetadataStoreRequest); + constructor(properties?: google.cloud.aiplatform.v1.IThresholdConfig); - /** GetMetadataStoreRequest name. */ - public name: string; + /** ThresholdConfig value. */ + public value?: (number|null); + + /** ThresholdConfig threshold. */ + public threshold?: "value"; /** - * Creates a new GetMetadataStoreRequest instance using the specified properties. + * Creates a new ThresholdConfig instance using the specified properties. * @param [properties] Properties to set - * @returns GetMetadataStoreRequest instance + * @returns ThresholdConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetMetadataStoreRequest): google.cloud.aiplatform.v1.GetMetadataStoreRequest; + public static create(properties?: google.cloud.aiplatform.v1.IThresholdConfig): google.cloud.aiplatform.v1.ThresholdConfig; /** - * Encodes the specified GetMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataStoreRequest.verify|verify} messages. - * @param message GetMetadataStoreRequest message or plain object to encode + * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataStoreRequest.verify|verify} messages. - * @param message GetMetadataStoreRequest message or plain object to encode + * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetMetadataStoreRequest message from the specified reader or buffer. + * Decodes a ThresholdConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetMetadataStoreRequest + * @returns ThresholdConfig * @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.GetMetadataStoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ThresholdConfig; /** - * Decodes a GetMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetMetadataStoreRequest + * @returns ThresholdConfig * @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.GetMetadataStoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ThresholdConfig; /** - * Verifies a GetMetadataStoreRequest message. + * Verifies a ThresholdConfig 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 GetMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetMetadataStoreRequest + * @returns ThresholdConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetMetadataStoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ThresholdConfig; /** - * Creates a plain object from a GetMetadataStoreRequest message. Also converts values to other types if specified. - * @param message GetMetadataStoreRequest + * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. + * @param message ThresholdConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetMetadataStoreRequest to JSON. + * Converts this ThresholdConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetMetadataStoreRequest + * Gets the default type url for ThresholdConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListMetadataStoresRequest. */ - interface IListMetadataStoresRequest { - - /** ListMetadataStoresRequest parent */ - parent?: (string|null); - - /** ListMetadataStoresRequest pageSize */ - pageSize?: (number|null); + /** Properties of a SamplingStrategy. */ + interface ISamplingStrategy { - /** ListMetadataStoresRequest pageToken */ - pageToken?: (string|null); + /** SamplingStrategy randomSampleConfig */ + randomSampleConfig?: (google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null); } - /** Represents a ListMetadataStoresRequest. */ - class ListMetadataStoresRequest implements IListMetadataStoresRequest { + /** Represents a SamplingStrategy. */ + class SamplingStrategy implements ISamplingStrategy { /** - * Constructs a new ListMetadataStoresRequest. + * Constructs a new SamplingStrategy. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListMetadataStoresRequest); - - /** ListMetadataStoresRequest parent. */ - public parent: string; - - /** ListMetadataStoresRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.aiplatform.v1.ISamplingStrategy); - /** ListMetadataStoresRequest pageToken. */ - public pageToken: string; + /** SamplingStrategy randomSampleConfig. */ + public randomSampleConfig?: (google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null); /** - * Creates a new ListMetadataStoresRequest instance using the specified properties. + * Creates a new SamplingStrategy instance using the specified properties. * @param [properties] Properties to set - * @returns ListMetadataStoresRequest instance + * @returns SamplingStrategy instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListMetadataStoresRequest): google.cloud.aiplatform.v1.ListMetadataStoresRequest; + public static create(properties?: google.cloud.aiplatform.v1.ISamplingStrategy): google.cloud.aiplatform.v1.SamplingStrategy; /** - * Encodes the specified ListMetadataStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresRequest.verify|verify} messages. - * @param message ListMetadataStoresRequest message or plain object to encode + * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. + * @param message SamplingStrategy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListMetadataStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListMetadataStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresRequest.verify|verify} messages. - * @param message ListMetadataStoresRequest message or plain object to encode + * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. + * @param message SamplingStrategy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListMetadataStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListMetadataStoresRequest message from the specified reader or buffer. + * Decodes a SamplingStrategy message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListMetadataStoresRequest + * @returns SamplingStrategy * @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.ListMetadataStoresRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SamplingStrategy; /** - * Decodes a ListMetadataStoresRequest message from the specified reader or buffer, length delimited. + * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListMetadataStoresRequest + * @returns SamplingStrategy * @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.ListMetadataStoresRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SamplingStrategy; /** - * Verifies a ListMetadataStoresRequest message. + * Verifies a SamplingStrategy 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 ListMetadataStoresRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SamplingStrategy message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListMetadataStoresRequest + * @returns SamplingStrategy */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListMetadataStoresRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SamplingStrategy; /** - * Creates a plain object from a ListMetadataStoresRequest message. Also converts values to other types if specified. - * @param message ListMetadataStoresRequest + * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. + * @param message SamplingStrategy * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListMetadataStoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SamplingStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListMetadataStoresRequest to JSON. + * Converts this SamplingStrategy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListMetadataStoresRequest + * Gets the default type url for SamplingStrategy * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListMetadataStoresResponse. */ - interface IListMetadataStoresResponse { - - /** ListMetadataStoresResponse metadataStores */ - metadataStores?: (google.cloud.aiplatform.v1.IMetadataStore[]|null); + namespace SamplingStrategy { - /** ListMetadataStoresResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** Properties of a RandomSampleConfig. */ + interface IRandomSampleConfig { - /** Represents a ListMetadataStoresResponse. */ - class ListMetadataStoresResponse implements IListMetadataStoresResponse { + /** RandomSampleConfig sampleRate */ + sampleRate?: (number|null); + } - /** - * Constructs a new ListMetadataStoresResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListMetadataStoresResponse); + /** Represents a RandomSampleConfig. */ + class RandomSampleConfig implements IRandomSampleConfig { - /** ListMetadataStoresResponse metadataStores. */ - public metadataStores: google.cloud.aiplatform.v1.IMetadataStore[]; + /** + * Constructs a new RandomSampleConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig); - /** ListMetadataStoresResponse nextPageToken. */ - public nextPageToken: string; + /** RandomSampleConfig sampleRate. */ + public sampleRate: number; - /** - * Creates a new ListMetadataStoresResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListMetadataStoresResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IListMetadataStoresResponse): google.cloud.aiplatform.v1.ListMetadataStoresResponse; + /** + * Creates a new RandomSampleConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RandomSampleConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig): google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig; - /** - * Encodes the specified ListMetadataStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresResponse.verify|verify} messages. - * @param message ListMetadataStoresResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IListMetadataStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @param message RandomSampleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ListMetadataStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresResponse.verify|verify} messages. - * @param message ListMetadataStoresResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListMetadataStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @param message RandomSampleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ListMetadataStoresResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListMetadataStoresResponse - * @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.ListMetadataStoresResponse; + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RandomSampleConfig + * @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.SamplingStrategy.RandomSampleConfig; - /** - * Decodes a ListMetadataStoresResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListMetadataStoresResponse - * @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.ListMetadataStoresResponse; + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RandomSampleConfig + * @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.SamplingStrategy.RandomSampleConfig; - /** - * Verifies a ListMetadataStoresResponse 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); + /** + * Verifies a RandomSampleConfig 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 ListMetadataStoresResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListMetadataStoresResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListMetadataStoresResponse; + /** + * Creates a RandomSampleConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RandomSampleConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig; - /** - * Creates a plain object from a ListMetadataStoresResponse message. Also converts values to other types if specified. - * @param message ListMetadataStoresResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ListMetadataStoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. + * @param message RandomSampleConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this ListMetadataStoresResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this RandomSampleConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for ListMetadataStoresResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Gets the default type url for RandomSampleConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a DeleteMetadataStoreRequest. */ - interface IDeleteMetadataStoreRequest { + /** Properties of a NasJob. */ + interface INasJob { - /** DeleteMetadataStoreRequest name */ + /** NasJob name */ name?: (string|null); - /** DeleteMetadataStoreRequest force */ - force?: (boolean|null); - } + /** NasJob displayName */ + displayName?: (string|null); - /** Represents a DeleteMetadataStoreRequest. */ - class DeleteMetadataStoreRequest implements IDeleteMetadataStoreRequest { + /** NasJob nasJobSpec */ + nasJobSpec?: (google.cloud.aiplatform.v1.INasJobSpec|null); - /** - * Constructs a new DeleteMetadataStoreRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest); + /** NasJob nasJobOutput */ + nasJobOutput?: (google.cloud.aiplatform.v1.INasJobOutput|null); - /** DeleteMetadataStoreRequest name. */ - public name: string; + /** NasJob state */ + state?: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState|null); - /** DeleteMetadataStoreRequest force. */ - public force: boolean; + /** NasJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new DeleteMetadataStoreRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteMetadataStoreRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest): google.cloud.aiplatform.v1.DeleteMetadataStoreRequest; + /** NasJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified DeleteMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.verify|verify} messages. - * @param message DeleteMetadataStoreRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** NasJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified DeleteMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.verify|verify} messages. - * @param message DeleteMetadataStoreRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** NasJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteMetadataStoreRequest - * @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.DeleteMetadataStoreRequest; + /** NasJob error */ + error?: (google.rpc.IStatus|null); - /** - * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteMetadataStoreRequest - * @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.DeleteMetadataStoreRequest; + /** NasJob labels */ + labels?: ({ [k: string]: string }|null); - /** - * Verifies a DeleteMetadataStoreRequest 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); + /** NasJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); - /** - * Creates a DeleteMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteMetadataStoreRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteMetadataStoreRequest; + /** NasJob enableRestrictedImageTraining */ + enableRestrictedImageTraining?: (boolean|null); + } - /** - * Creates a plain object from a DeleteMetadataStoreRequest message. Also converts values to other types if specified. - * @param message DeleteMetadataStoreRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a NasJob. */ + class NasJob implements INasJob { /** - * Converts this DeleteMetadataStoreRequest to JSON. - * @returns JSON object + * Constructs a new NasJob. + * @param [properties] Properties to set */ - public toJSON(): { [k: string]: any }; + constructor(properties?: google.cloud.aiplatform.v1.INasJob); - /** - * Gets the default type url for DeleteMetadataStoreRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** NasJob name. */ + public name: string; - /** Properties of a DeleteMetadataStoreOperationMetadata. */ - interface IDeleteMetadataStoreOperationMetadata { + /** NasJob displayName. */ + public displayName: string; - /** DeleteMetadataStoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - } + /** NasJob nasJobSpec. */ + public nasJobSpec?: (google.cloud.aiplatform.v1.INasJobSpec|null); - /** Represents a DeleteMetadataStoreOperationMetadata. */ - class DeleteMetadataStoreOperationMetadata implements IDeleteMetadataStoreOperationMetadata { + /** NasJob nasJobOutput. */ + public nasJobOutput?: (google.cloud.aiplatform.v1.INasJobOutput|null); - /** - * Constructs a new DeleteMetadataStoreOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata); + /** NasJob state. */ + public state: (google.cloud.aiplatform.v1.JobState|keyof typeof google.cloud.aiplatform.v1.JobState); - /** DeleteMetadataStoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** NasJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** NasJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** NasJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** NasJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** NasJob error. */ + public error?: (google.rpc.IStatus|null); + + /** NasJob labels. */ + public labels: { [k: string]: string }; + + /** NasJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** NasJob enableRestrictedImageTraining. */ + public enableRestrictedImageTraining: boolean; /** - * Creates a new DeleteMetadataStoreOperationMetadata instance using the specified properties. + * Creates a new NasJob instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteMetadataStoreOperationMetadata instance + * @returns NasJob instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata): google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.INasJob): google.cloud.aiplatform.v1.NasJob; /** - * Encodes the specified DeleteMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. - * @param message DeleteMetadataStoreOperationMetadata message or plain object to encode + * Encodes the specified NasJob message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJob.verify|verify} messages. + * @param message NasJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.INasJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. - * @param message DeleteMetadataStoreOperationMetadata message or plain object to encode + * Encodes the specified NasJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJob.verify|verify} messages. + * @param message NasJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.INasJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer. + * Decodes a NasJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteMetadataStoreOperationMetadata + * @returns NasJob * @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.DeleteMetadataStoreOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJob; /** - * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a NasJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteMetadataStoreOperationMetadata + * @returns NasJob * @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.DeleteMetadataStoreOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJob; /** - * Verifies a DeleteMetadataStoreOperationMetadata message. + * Verifies a NasJob 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 DeleteMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a NasJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteMetadataStoreOperationMetadata + * @returns NasJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJob; /** - * Creates a plain object from a DeleteMetadataStoreOperationMetadata message. Also converts values to other types if specified. - * @param message DeleteMetadataStoreOperationMetadata + * Creates a plain object from a NasJob message. Also converts values to other types if specified. + * @param message NasJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.NasJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteMetadataStoreOperationMetadata to JSON. + * Converts this NasJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteMetadataStoreOperationMetadata + * Gets the default type url for NasJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateArtifactRequest. */ - interface ICreateArtifactRequest { + /** Properties of a NasTrialDetail. */ + interface INasTrialDetail { - /** CreateArtifactRequest parent */ - parent?: (string|null); + /** NasTrialDetail name */ + name?: (string|null); - /** CreateArtifactRequest artifact */ - artifact?: (google.cloud.aiplatform.v1.IArtifact|null); + /** NasTrialDetail parameters */ + parameters?: (string|null); - /** CreateArtifactRequest artifactId */ - artifactId?: (string|null); + /** NasTrialDetail searchTrial */ + searchTrial?: (google.cloud.aiplatform.v1.INasTrial|null); + + /** NasTrialDetail trainTrial */ + trainTrial?: (google.cloud.aiplatform.v1.INasTrial|null); } - /** Represents a CreateArtifactRequest. */ - class CreateArtifactRequest implements ICreateArtifactRequest { + /** Represents a NasTrialDetail. */ + class NasTrialDetail implements INasTrialDetail { /** - * Constructs a new CreateArtifactRequest. + * Constructs a new NasTrialDetail. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateArtifactRequest); + constructor(properties?: google.cloud.aiplatform.v1.INasTrialDetail); - /** CreateArtifactRequest parent. */ - public parent: string; + /** NasTrialDetail name. */ + public name: string; - /** CreateArtifactRequest artifact. */ - public artifact?: (google.cloud.aiplatform.v1.IArtifact|null); + /** NasTrialDetail parameters. */ + public parameters: string; - /** CreateArtifactRequest artifactId. */ - public artifactId: string; + /** NasTrialDetail searchTrial. */ + public searchTrial?: (google.cloud.aiplatform.v1.INasTrial|null); + + /** NasTrialDetail trainTrial. */ + public trainTrial?: (google.cloud.aiplatform.v1.INasTrial|null); /** - * Creates a new CreateArtifactRequest instance using the specified properties. + * Creates a new NasTrialDetail instance using the specified properties. * @param [properties] Properties to set - * @returns CreateArtifactRequest instance + * @returns NasTrialDetail instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateArtifactRequest): google.cloud.aiplatform.v1.CreateArtifactRequest; + public static create(properties?: google.cloud.aiplatform.v1.INasTrialDetail): google.cloud.aiplatform.v1.NasTrialDetail; /** - * Encodes the specified CreateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateArtifactRequest.verify|verify} messages. - * @param message CreateArtifactRequest message or plain object to encode + * Encodes the specified NasTrialDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrialDetail.verify|verify} messages. + * @param message NasTrialDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.INasTrialDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateArtifactRequest.verify|verify} messages. - * @param message CreateArtifactRequest message or plain object to encode + * Encodes the specified NasTrialDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrialDetail.verify|verify} messages. + * @param message NasTrialDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.INasTrialDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateArtifactRequest message from the specified reader or buffer. + * Decodes a NasTrialDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateArtifactRequest + * @returns NasTrialDetail * @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.CreateArtifactRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasTrialDetail; /** - * Decodes a CreateArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a NasTrialDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateArtifactRequest + * @returns NasTrialDetail * @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.CreateArtifactRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasTrialDetail; /** - * Verifies a CreateArtifactRequest message. + * Verifies a NasTrialDetail 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 CreateArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasTrialDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateArtifactRequest + * @returns NasTrialDetail */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateArtifactRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasTrialDetail; /** - * Creates a plain object from a CreateArtifactRequest message. Also converts values to other types if specified. - * @param message CreateArtifactRequest + * Creates a plain object from a NasTrialDetail message. Also converts values to other types if specified. + * @param message NasTrialDetail * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.NasTrialDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateArtifactRequest to JSON. + * Converts this NasTrialDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateArtifactRequest + * Gets the default type url for NasTrialDetail * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetArtifactRequest. */ - interface IGetArtifactRequest { + /** Properties of a NasJobSpec. */ + interface INasJobSpec { - /** GetArtifactRequest name */ - name?: (string|null); + /** NasJobSpec multiTrialAlgorithmSpec */ + multiTrialAlgorithmSpec?: (google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec|null); + + /** NasJobSpec resumeNasJobId */ + resumeNasJobId?: (string|null); + + /** NasJobSpec searchSpaceSpec */ + searchSpaceSpec?: (string|null); } - /** Represents a GetArtifactRequest. */ - class GetArtifactRequest implements IGetArtifactRequest { + /** Represents a NasJobSpec. */ + class NasJobSpec implements INasJobSpec { /** - * Constructs a new GetArtifactRequest. + * Constructs a new NasJobSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetArtifactRequest); + constructor(properties?: google.cloud.aiplatform.v1.INasJobSpec); - /** GetArtifactRequest name. */ - public name: string; + /** NasJobSpec multiTrialAlgorithmSpec. */ + public multiTrialAlgorithmSpec?: (google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec|null); + + /** NasJobSpec resumeNasJobId. */ + public resumeNasJobId: string; + + /** NasJobSpec searchSpaceSpec. */ + public searchSpaceSpec: string; + + /** NasJobSpec nasAlgorithmSpec. */ + public nasAlgorithmSpec?: "multiTrialAlgorithmSpec"; /** - * Creates a new GetArtifactRequest instance using the specified properties. + * Creates a new NasJobSpec instance using the specified properties. * @param [properties] Properties to set - * @returns GetArtifactRequest instance + * @returns NasJobSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetArtifactRequest): google.cloud.aiplatform.v1.GetArtifactRequest; + public static create(properties?: google.cloud.aiplatform.v1.INasJobSpec): google.cloud.aiplatform.v1.NasJobSpec; /** - * Encodes the specified GetArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetArtifactRequest.verify|verify} messages. - * @param message GetArtifactRequest message or plain object to encode + * Encodes the specified NasJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.verify|verify} messages. + * @param message NasJobSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.INasJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetArtifactRequest.verify|verify} messages. - * @param message GetArtifactRequest message or plain object to encode + * Encodes the specified NasJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.verify|verify} messages. + * @param message NasJobSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.INasJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetArtifactRequest message from the specified reader or buffer. + * Decodes a NasJobSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetArtifactRequest + * @returns NasJobSpec * @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.GetArtifactRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobSpec; /** - * Decodes a GetArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a NasJobSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetArtifactRequest + * @returns NasJobSpec * @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.GetArtifactRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobSpec; /** - * Verifies a GetArtifactRequest message. + * Verifies a NasJobSpec 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 GetArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasJobSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetArtifactRequest + * @returns NasJobSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetArtifactRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec; /** - * Creates a plain object from a GetArtifactRequest message. Also converts values to other types if specified. - * @param message GetArtifactRequest + * Creates a plain object from a NasJobSpec message. Also converts values to other types if specified. + * @param message NasJobSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetArtifactRequest to JSON. + * Converts this NasJobSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetArtifactRequest + * Gets the default type url for NasJobSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListArtifactsRequest. */ - interface IListArtifactsRequest { - - /** ListArtifactsRequest parent */ - parent?: (string|null); + namespace NasJobSpec { - /** ListArtifactsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a MultiTrialAlgorithmSpec. */ + interface IMultiTrialAlgorithmSpec { - /** ListArtifactsRequest pageToken */ - pageToken?: (string|null); + /** MultiTrialAlgorithmSpec multiTrialAlgorithm */ + multiTrialAlgorithm?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|keyof typeof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|null); - /** ListArtifactsRequest filter */ - filter?: (string|null); + /** MultiTrialAlgorithmSpec metric */ + metric?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null); - /** ListArtifactsRequest orderBy */ - orderBy?: (string|null); - } + /** MultiTrialAlgorithmSpec searchTrialSpec */ + searchTrialSpec?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null); - /** Represents a ListArtifactsRequest. */ - class ListArtifactsRequest implements IListArtifactsRequest { + /** MultiTrialAlgorithmSpec trainTrialSpec */ + trainTrialSpec?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null); + } - /** - * Constructs a new ListArtifactsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListArtifactsRequest); + /** Represents a MultiTrialAlgorithmSpec. */ + class MultiTrialAlgorithmSpec implements IMultiTrialAlgorithmSpec { - /** ListArtifactsRequest parent. */ - public parent: string; + /** + * Constructs a new MultiTrialAlgorithmSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec); - /** ListArtifactsRequest pageSize. */ - public pageSize: number; + /** MultiTrialAlgorithmSpec multiTrialAlgorithm. */ + public multiTrialAlgorithm: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|keyof typeof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm); - /** ListArtifactsRequest pageToken. */ - public pageToken: string; + /** MultiTrialAlgorithmSpec metric. */ + public metric?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null); - /** ListArtifactsRequest filter. */ - public filter: string; + /** MultiTrialAlgorithmSpec searchTrialSpec. */ + public searchTrialSpec?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null); - /** ListArtifactsRequest orderBy. */ - public orderBy: string; + /** MultiTrialAlgorithmSpec trainTrialSpec. */ + public trainTrialSpec?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null); - /** - * Creates a new ListArtifactsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListArtifactsRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IListArtifactsRequest): google.cloud.aiplatform.v1.ListArtifactsRequest; + /** + * Creates a new MultiTrialAlgorithmSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns MultiTrialAlgorithmSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec; - /** - * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsRequest.verify|verify} messages. - * @param message ListArtifactsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MultiTrialAlgorithmSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @param message MultiTrialAlgorithmSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ListArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsRequest.verify|verify} messages. - * @param message ListArtifactsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MultiTrialAlgorithmSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @param message MultiTrialAlgorithmSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer. + /** + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MultiTrialAlgorithmSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec; + + /** + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MultiTrialAlgorithmSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec; + + /** + * Verifies a MultiTrialAlgorithmSpec 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 MultiTrialAlgorithmSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MultiTrialAlgorithmSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec; + + /** + * Creates a plain object from a MultiTrialAlgorithmSpec message. Also converts values to other types if specified. + * @param message MultiTrialAlgorithmSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MultiTrialAlgorithmSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MultiTrialAlgorithmSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MultiTrialAlgorithmSpec { + + /** Properties of a MetricSpec. */ + interface IMetricSpec { + + /** MetricSpec metricId */ + metricId?: (string|null); + + /** MetricSpec goal */ + goal?: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|null); + } + + /** Represents a MetricSpec. */ + class MetricSpec implements IMetricSpec { + + /** + * Constructs a new MetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec); + + /** MetricSpec metricId. */ + public metricId: string; + + /** MetricSpec goal. */ + public goal: (google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType); + + /** + * Creates a new MetricSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns MetricSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; + + /** + * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MetricSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetricSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; + + /** + * Decodes a MetricSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetricSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; + + /** + * Verifies a MetricSpec 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 MetricSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetricSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; + + /** + * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. + * @param message MetricSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MetricSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MetricSpec { + + /** GoalType enum. */ + enum GoalType { + GOAL_TYPE_UNSPECIFIED = 0, + MAXIMIZE = 1, + MINIMIZE = 2 + } + } + + /** Properties of a SearchTrialSpec. */ + interface ISearchTrialSpec { + + /** SearchTrialSpec searchTrialJobSpec */ + searchTrialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); + + /** SearchTrialSpec maxTrialCount */ + maxTrialCount?: (number|null); + + /** SearchTrialSpec maxParallelTrialCount */ + maxParallelTrialCount?: (number|null); + + /** SearchTrialSpec maxFailedTrialCount */ + maxFailedTrialCount?: (number|null); + } + + /** Represents a SearchTrialSpec. */ + class SearchTrialSpec implements ISearchTrialSpec { + + /** + * Constructs a new SearchTrialSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec); + + /** SearchTrialSpec searchTrialJobSpec. */ + public searchTrialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); + + /** SearchTrialSpec maxTrialCount. */ + public maxTrialCount: number; + + /** SearchTrialSpec maxParallelTrialCount. */ + public maxParallelTrialCount: number; + + /** SearchTrialSpec maxFailedTrialCount. */ + public maxFailedTrialCount: number; + + /** + * Creates a new SearchTrialSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchTrialSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; + + /** + * Encodes the specified SearchTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @param message SearchTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SearchTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @param message SearchTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SearchTrialSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SearchTrialSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; + + /** + * Verifies a SearchTrialSpec 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 SearchTrialSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SearchTrialSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; + + /** + * Creates a plain object from a SearchTrialSpec message. Also converts values to other types if specified. + * @param message SearchTrialSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SearchTrialSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SearchTrialSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TrainTrialSpec. */ + interface ITrainTrialSpec { + + /** TrainTrialSpec trainTrialJobSpec */ + trainTrialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); + + /** TrainTrialSpec maxParallelTrialCount */ + maxParallelTrialCount?: (number|null); + + /** TrainTrialSpec frequency */ + frequency?: (number|null); + } + + /** Represents a TrainTrialSpec. */ + class TrainTrialSpec implements ITrainTrialSpec { + + /** + * Constructs a new TrainTrialSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec); + + /** TrainTrialSpec trainTrialJobSpec. */ + public trainTrialJobSpec?: (google.cloud.aiplatform.v1.ICustomJobSpec|null); + + /** TrainTrialSpec maxParallelTrialCount. */ + public maxParallelTrialCount: number; + + /** TrainTrialSpec frequency. */ + public frequency: number; + + /** + * Creates a new TrainTrialSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainTrialSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; + + /** + * Encodes the specified TrainTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @param message TrainTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TrainTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @param message TrainTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainTrialSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; + + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainTrialSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; + + /** + * Verifies a TrainTrialSpec 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 TrainTrialSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainTrialSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; + + /** + * Creates a plain object from a TrainTrialSpec message. Also converts values to other types if specified. + * @param message TrainTrialSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TrainTrialSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TrainTrialSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** MultiTrialAlgorithm enum. */ + enum MultiTrialAlgorithm { + MULTI_TRIAL_ALGORITHM_UNSPECIFIED = 0, + REINFORCEMENT_LEARNING = 1, + GRID_SEARCH = 2 + } + } + } + + /** Properties of a NasJobOutput. */ + interface INasJobOutput { + + /** NasJobOutput multiTrialJobOutput */ + multiTrialJobOutput?: (google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput|null); + } + + /** Represents a NasJobOutput. */ + class NasJobOutput implements INasJobOutput { + + /** + * Constructs a new NasJobOutput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.INasJobOutput); + + /** NasJobOutput multiTrialJobOutput. */ + public multiTrialJobOutput?: (google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput|null); + + /** NasJobOutput output. */ + public output?: "multiTrialJobOutput"; + + /** + * Creates a new NasJobOutput instance using the specified properties. + * @param [properties] Properties to set + * @returns NasJobOutput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.INasJobOutput): google.cloud.aiplatform.v1.NasJobOutput; + + /** + * Encodes the specified NasJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.verify|verify} messages. + * @param message NasJobOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.INasJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NasJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.verify|verify} messages. + * @param message NasJobOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.INasJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NasJobOutput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListArtifactsRequest + * @returns NasJobOutput * @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.ListArtifactsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasJobOutput; /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer, length delimited. + * Decodes a NasJobOutput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListArtifactsRequest + * @returns NasJobOutput * @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.ListArtifactsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasJobOutput; /** - * Verifies a ListArtifactsRequest message. + * Verifies a NasJobOutput 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 ListArtifactsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasJobOutput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListArtifactsRequest + * @returns NasJobOutput */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListArtifactsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobOutput; /** - * Creates a plain object from a ListArtifactsRequest message. Also converts values to other types if specified. - * @param message ListArtifactsRequest + * Creates a plain object from a NasJobOutput message. Also converts values to other types if specified. + * @param message NasJobOutput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.NasJobOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListArtifactsRequest to JSON. + * Converts this NasJobOutput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListArtifactsRequest + * Gets the default type url for NasJobOutput * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListArtifactsResponse. */ - interface IListArtifactsResponse { + namespace NasJobOutput { - /** ListArtifactsResponse artifacts */ - artifacts?: (google.cloud.aiplatform.v1.IArtifact[]|null); + /** Properties of a MultiTrialJobOutput. */ + interface IMultiTrialJobOutput { - /** ListArtifactsResponse nextPageToken */ - nextPageToken?: (string|null); + /** MultiTrialJobOutput searchTrials */ + searchTrials?: (google.cloud.aiplatform.v1.INasTrial[]|null); + + /** MultiTrialJobOutput trainTrials */ + trainTrials?: (google.cloud.aiplatform.v1.INasTrial[]|null); + } + + /** Represents a MultiTrialJobOutput. */ + class MultiTrialJobOutput implements IMultiTrialJobOutput { + + /** + * Constructs a new MultiTrialJobOutput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput); + + /** MultiTrialJobOutput searchTrials. */ + public searchTrials: google.cloud.aiplatform.v1.INasTrial[]; + + /** MultiTrialJobOutput trainTrials. */ + public trainTrials: google.cloud.aiplatform.v1.INasTrial[]; + + /** + * Creates a new MultiTrialJobOutput instance using the specified properties. + * @param [properties] Properties to set + * @returns MultiTrialJobOutput instance + */ + public static create(properties?: google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput): google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput; + + /** + * Encodes the specified MultiTrialJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @param message MultiTrialJobOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MultiTrialJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @param message MultiTrialJobOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MultiTrialJobOutput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MultiTrialJobOutput + * @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.NasJobOutput.MultiTrialJobOutput; + + /** + * Decodes a MultiTrialJobOutput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MultiTrialJobOutput + * @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.NasJobOutput.MultiTrialJobOutput; + + /** + * Verifies a MultiTrialJobOutput 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 MultiTrialJobOutput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MultiTrialJobOutput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput; + + /** + * Creates a plain object from a MultiTrialJobOutput message. Also converts values to other types if specified. + * @param message MultiTrialJobOutput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MultiTrialJobOutput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MultiTrialJobOutput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a ListArtifactsResponse. */ - class ListArtifactsResponse implements IListArtifactsResponse { + /** Properties of a NasTrial. */ + interface INasTrial { + + /** NasTrial id */ + id?: (string|null); + + /** NasTrial state */ + state?: (google.cloud.aiplatform.v1.NasTrial.State|keyof typeof google.cloud.aiplatform.v1.NasTrial.State|null); + + /** NasTrial finalMeasurement */ + finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + + /** NasTrial startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** NasTrial endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a NasTrial. */ + class NasTrial implements INasTrial { /** - * Constructs a new ListArtifactsResponse. + * Constructs a new NasTrial. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListArtifactsResponse); + constructor(properties?: google.cloud.aiplatform.v1.INasTrial); - /** ListArtifactsResponse artifacts. */ - public artifacts: google.cloud.aiplatform.v1.IArtifact[]; + /** NasTrial id. */ + public id: string; - /** ListArtifactsResponse nextPageToken. */ - public nextPageToken: string; + /** NasTrial state. */ + public state: (google.cloud.aiplatform.v1.NasTrial.State|keyof typeof google.cloud.aiplatform.v1.NasTrial.State); + + /** NasTrial finalMeasurement. */ + public finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + + /** NasTrial startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** NasTrial endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new ListArtifactsResponse instance using the specified properties. + * Creates a new NasTrial instance using the specified properties. * @param [properties] Properties to set - * @returns ListArtifactsResponse instance + * @returns NasTrial instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListArtifactsResponse): google.cloud.aiplatform.v1.ListArtifactsResponse; + public static create(properties?: google.cloud.aiplatform.v1.INasTrial): google.cloud.aiplatform.v1.NasTrial; /** - * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsResponse.verify|verify} messages. - * @param message ListArtifactsResponse message or plain object to encode + * Encodes the specified NasTrial message. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrial.verify|verify} messages. + * @param message NasTrial message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.INasTrial, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsResponse.verify|verify} messages. - * @param message ListArtifactsResponse message or plain object to encode + * Encodes the specified NasTrial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrial.verify|verify} messages. + * @param message NasTrial message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.INasTrial, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer. + * Decodes a NasTrial message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListArtifactsResponse + * @returns NasTrial * @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.ListArtifactsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.NasTrial; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer, length delimited. + * Decodes a NasTrial message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListArtifactsResponse + * @returns NasTrial * @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.ListArtifactsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.NasTrial; /** - * Verifies a ListArtifactsResponse message. + * Verifies a NasTrial 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 ListArtifactsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NasTrial message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListArtifactsResponse + * @returns NasTrial */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListArtifactsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.NasTrial; /** - * Creates a plain object from a ListArtifactsResponse message. Also converts values to other types if specified. - * @param message ListArtifactsResponse + * Creates a plain object from a NasTrial message. Also converts values to other types if specified. + * @param message NasTrial * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.NasTrial, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListArtifactsResponse to JSON. + * Converts this NasTrial to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListArtifactsResponse + * Gets the default type url for NasTrial * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateArtifactRequest. */ - interface IUpdateArtifactRequest { + namespace NasTrial { - /** UpdateArtifactRequest artifact */ - artifact?: (google.cloud.aiplatform.v1.IArtifact|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + REQUESTED = 1, + ACTIVE = 2, + STOPPING = 3, + SUCCEEDED = 4, + INFEASIBLE = 5 + } + } - /** UpdateArtifactRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Properties of a LineageSubgraph. */ + interface ILineageSubgraph { - /** UpdateArtifactRequest allowMissing */ - allowMissing?: (boolean|null); + /** LineageSubgraph artifacts */ + artifacts?: (google.cloud.aiplatform.v1.IArtifact[]|null); + + /** LineageSubgraph executions */ + executions?: (google.cloud.aiplatform.v1.IExecution[]|null); + + /** LineageSubgraph events */ + events?: (google.cloud.aiplatform.v1.IEvent[]|null); } - /** Represents an UpdateArtifactRequest. */ - class UpdateArtifactRequest implements IUpdateArtifactRequest { + /** Represents a LineageSubgraph. */ + class LineageSubgraph implements ILineageSubgraph { /** - * Constructs a new UpdateArtifactRequest. + * Constructs a new LineageSubgraph. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateArtifactRequest); + constructor(properties?: google.cloud.aiplatform.v1.ILineageSubgraph); - /** UpdateArtifactRequest artifact. */ - public artifact?: (google.cloud.aiplatform.v1.IArtifact|null); + /** LineageSubgraph artifacts. */ + public artifacts: google.cloud.aiplatform.v1.IArtifact[]; - /** UpdateArtifactRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** LineageSubgraph executions. */ + public executions: google.cloud.aiplatform.v1.IExecution[]; - /** UpdateArtifactRequest allowMissing. */ - public allowMissing: boolean; + /** LineageSubgraph events. */ + public events: google.cloud.aiplatform.v1.IEvent[]; /** - * Creates a new UpdateArtifactRequest instance using the specified properties. + * Creates a new LineageSubgraph instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateArtifactRequest instance + * @returns LineageSubgraph instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateArtifactRequest): google.cloud.aiplatform.v1.UpdateArtifactRequest; + public static create(properties?: google.cloud.aiplatform.v1.ILineageSubgraph): google.cloud.aiplatform.v1.LineageSubgraph; /** - * Encodes the specified UpdateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateArtifactRequest.verify|verify} messages. - * @param message UpdateArtifactRequest message or plain object to encode + * Encodes the specified LineageSubgraph message. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. + * @param message LineageSubgraph message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ILineageSubgraph, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateArtifactRequest.verify|verify} messages. - * @param message UpdateArtifactRequest message or plain object to encode + * Encodes the specified LineageSubgraph message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. + * @param message LineageSubgraph message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ILineageSubgraph, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateArtifactRequest message from the specified reader or buffer. + * Decodes a LineageSubgraph message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateArtifactRequest + * @returns LineageSubgraph * @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.UpdateArtifactRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.LineageSubgraph; /** - * Decodes an UpdateArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a LineageSubgraph message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateArtifactRequest + * @returns LineageSubgraph * @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.UpdateArtifactRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.LineageSubgraph; /** - * Verifies an UpdateArtifactRequest message. + * Verifies a LineageSubgraph 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 UpdateArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LineageSubgraph message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateArtifactRequest + * @returns LineageSubgraph */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateArtifactRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.LineageSubgraph; /** - * Creates a plain object from an UpdateArtifactRequest message. Also converts values to other types if specified. - * @param message UpdateArtifactRequest + * Creates a plain object from a LineageSubgraph message. Also converts values to other types if specified. + * @param message LineageSubgraph * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.LineageSubgraph, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateArtifactRequest to JSON. + * Converts this LineageSubgraph to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateArtifactRequest + * Gets the default type url for LineageSubgraph * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteArtifactRequest. */ - interface IDeleteArtifactRequest { + /** Properties of a MetadataSchema. */ + interface IMetadataSchema { - /** DeleteArtifactRequest name */ + /** MetadataSchema name */ name?: (string|null); - /** DeleteArtifactRequest etag */ - etag?: (string|null); + /** MetadataSchema schemaVersion */ + schemaVersion?: (string|null); + + /** MetadataSchema schema */ + schema?: (string|null); + + /** MetadataSchema schemaType */ + schemaType?: (google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType|keyof typeof google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType|null); + + /** MetadataSchema createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** MetadataSchema description */ + description?: (string|null); } - /** Represents a DeleteArtifactRequest. */ - class DeleteArtifactRequest implements IDeleteArtifactRequest { + /** Represents a MetadataSchema. */ + class MetadataSchema implements IMetadataSchema { /** - * Constructs a new DeleteArtifactRequest. + * Constructs a new MetadataSchema. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteArtifactRequest); + constructor(properties?: google.cloud.aiplatform.v1.IMetadataSchema); - /** DeleteArtifactRequest name. */ + /** MetadataSchema name. */ public name: string; - /** DeleteArtifactRequest etag. */ - public etag: string; + /** MetadataSchema schemaVersion. */ + public schemaVersion: string; + + /** MetadataSchema schema. */ + public schema: string; + + /** MetadataSchema schemaType. */ + public schemaType: (google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType|keyof typeof google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType); + + /** MetadataSchema createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** MetadataSchema description. */ + public description: string; /** - * Creates a new DeleteArtifactRequest instance using the specified properties. + * Creates a new MetadataSchema instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteArtifactRequest instance + * @returns MetadataSchema instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteArtifactRequest): google.cloud.aiplatform.v1.DeleteArtifactRequest; + public static create(properties?: google.cloud.aiplatform.v1.IMetadataSchema): google.cloud.aiplatform.v1.MetadataSchema; /** - * Encodes the specified DeleteArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteArtifactRequest.verify|verify} messages. - * @param message DeleteArtifactRequest message or plain object to encode + * Encodes the specified MetadataSchema message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataSchema.verify|verify} messages. + * @param message MetadataSchema message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IMetadataSchema, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteArtifactRequest.verify|verify} messages. - * @param message DeleteArtifactRequest message or plain object to encode + * Encodes the specified MetadataSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataSchema.verify|verify} messages. + * @param message MetadataSchema message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMetadataSchema, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteArtifactRequest message from the specified reader or buffer. + * Decodes a MetadataSchema message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteArtifactRequest + * @returns MetadataSchema * @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.DeleteArtifactRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MetadataSchema; /** - * Decodes a DeleteArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a MetadataSchema message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteArtifactRequest + * @returns MetadataSchema * @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.DeleteArtifactRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MetadataSchema; /** - * Verifies a DeleteArtifactRequest message. + * Verifies a MetadataSchema 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 DeleteArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MetadataSchema message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteArtifactRequest + * @returns MetadataSchema */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteArtifactRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MetadataSchema; /** - * Creates a plain object from a DeleteArtifactRequest message. Also converts values to other types if specified. - * @param message DeleteArtifactRequest + * Creates a plain object from a MetadataSchema message. Also converts values to other types if specified. + * @param message MetadataSchema * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.MetadataSchema, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteArtifactRequest to JSON. + * Converts this MetadataSchema to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteArtifactRequest + * Gets the default type url for MetadataSchema * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeArtifactsRequest. */ - interface IPurgeArtifactsRequest { - - /** PurgeArtifactsRequest parent */ - parent?: (string|null); - - /** PurgeArtifactsRequest filter */ - filter?: (string|null); + namespace MetadataSchema { - /** PurgeArtifactsRequest force */ - force?: (boolean|null); + /** MetadataSchemaType enum. */ + enum MetadataSchemaType { + METADATA_SCHEMA_TYPE_UNSPECIFIED = 0, + ARTIFACT_TYPE = 1, + EXECUTION_TYPE = 2, + CONTEXT_TYPE = 3 + } } - /** Represents a PurgeArtifactsRequest. */ - class PurgeArtifactsRequest implements IPurgeArtifactsRequest { + /** Represents a MetadataService */ + class MetadataService extends $protobuf.rpc.Service { /** - * Constructs a new PurgeArtifactsRequest. - * @param [properties] Properties to set + * Constructs a new MetadataService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsRequest); - - /** PurgeArtifactsRequest parent. */ - public parent: string; - - /** PurgeArtifactsRequest filter. */ - public filter: string; - - /** PurgeArtifactsRequest force. */ - public force: boolean; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new PurgeArtifactsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PurgeArtifactsRequest instance + * Creates new MetadataService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsRequest): google.cloud.aiplatform.v1.PurgeArtifactsRequest; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MetadataService; /** - * Encodes the specified PurgeArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsRequest.verify|verify} messages. - * @param message PurgeArtifactsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateMetadataStore. + * @param request CreateMetadataStoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createMetadataStore(request: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateMetadataStoreCallback): void; /** - * Encodes the specified PurgeArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsRequest.verify|verify} messages. - * @param message PurgeArtifactsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateMetadataStore. + * @param request CreateMetadataStoreRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createMetadataStore(request: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest): Promise; /** - * Decodes a PurgeArtifactsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PurgeArtifactsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetMetadataStore. + * @param request GetMetadataStoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MetadataStore */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeArtifactsRequest; + public getMetadataStore(request: google.cloud.aiplatform.v1.IGetMetadataStoreRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetMetadataStoreCallback): void; /** - * Decodes a PurgeArtifactsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PurgeArtifactsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetMetadataStore. + * @param request GetMetadataStoreRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeArtifactsRequest; + public getMetadataStore(request: google.cloud.aiplatform.v1.IGetMetadataStoreRequest): Promise; /** - * Verifies a PurgeArtifactsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListMetadataStores. + * @param request ListMetadataStoresRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListMetadataStoresResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public listMetadataStores(request: google.cloud.aiplatform.v1.IListMetadataStoresRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListMetadataStoresCallback): void; /** - * Creates a PurgeArtifactsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PurgeArtifactsRequest + * Calls ListMetadataStores. + * @param request ListMetadataStoresRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeArtifactsRequest; + public listMetadataStores(request: google.cloud.aiplatform.v1.IListMetadataStoresRequest): Promise; /** - * Creates a plain object from a PurgeArtifactsRequest message. Also converts values to other types if specified. - * @param message PurgeArtifactsRequest - * @param [options] Conversion options - * @returns Plain object + * Calls DeleteMetadataStore. + * @param request DeleteMetadataStoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public deleteMetadataStore(request: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest, callback: google.cloud.aiplatform.v1.MetadataService.DeleteMetadataStoreCallback): void; /** - * Converts this PurgeArtifactsRequest to JSON. - * @returns JSON object + * Calls DeleteMetadataStore. + * @param request DeleteMetadataStoreRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public deleteMetadataStore(request: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest): Promise; /** - * Gets the default type url for PurgeArtifactsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CreateArtifact. + * @param request CreateArtifactRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Artifact */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PurgeArtifactsResponse. */ - interface IPurgeArtifactsResponse { - - /** PurgeArtifactsResponse purgeCount */ - purgeCount?: (number|Long|string|null); - - /** PurgeArtifactsResponse purgeSample */ - purgeSample?: (string[]|null); - } - - /** Represents a PurgeArtifactsResponse. */ - class PurgeArtifactsResponse implements IPurgeArtifactsResponse { + public createArtifact(request: google.cloud.aiplatform.v1.ICreateArtifactRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateArtifactCallback): void; /** - * Constructs a new PurgeArtifactsResponse. - * @param [properties] Properties to set + * Calls CreateArtifact. + * @param request CreateArtifactRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsResponse); - - /** PurgeArtifactsResponse purgeCount. */ - public purgeCount: (number|Long|string); - - /** PurgeArtifactsResponse purgeSample. */ - public purgeSample: string[]; + public createArtifact(request: google.cloud.aiplatform.v1.ICreateArtifactRequest): Promise; /** - * Creates a new PurgeArtifactsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PurgeArtifactsResponse instance + * Calls GetArtifact. + * @param request GetArtifactRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Artifact */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsResponse): google.cloud.aiplatform.v1.PurgeArtifactsResponse; + public getArtifact(request: google.cloud.aiplatform.v1.IGetArtifactRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetArtifactCallback): void; /** - * Encodes the specified PurgeArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsResponse.verify|verify} messages. - * @param message PurgeArtifactsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetArtifact. + * @param request GetArtifactRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public getArtifact(request: google.cloud.aiplatform.v1.IGetArtifactRequest): Promise; /** - * Encodes the specified PurgeArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsResponse.verify|verify} messages. - * @param message PurgeArtifactsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListArtifacts. + * @param request ListArtifactsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListArtifactsResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public listArtifacts(request: google.cloud.aiplatform.v1.IListArtifactsRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListArtifactsCallback): void; /** - * Decodes a PurgeArtifactsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PurgeArtifactsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListArtifacts. + * @param request ListArtifactsRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeArtifactsResponse; + public listArtifacts(request: google.cloud.aiplatform.v1.IListArtifactsRequest): Promise; /** - * Decodes a PurgeArtifactsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PurgeArtifactsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateArtifact. + * @param request UpdateArtifactRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Artifact */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeArtifactsResponse; + public updateArtifact(request: google.cloud.aiplatform.v1.IUpdateArtifactRequest, callback: google.cloud.aiplatform.v1.MetadataService.UpdateArtifactCallback): void; /** - * Verifies a PurgeArtifactsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls UpdateArtifact. + * @param request UpdateArtifactRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public updateArtifact(request: google.cloud.aiplatform.v1.IUpdateArtifactRequest): Promise; /** - * Creates a PurgeArtifactsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PurgeArtifactsResponse + * Calls DeleteArtifact. + * @param request DeleteArtifactRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeArtifactsResponse; + public deleteArtifact(request: google.cloud.aiplatform.v1.IDeleteArtifactRequest, callback: google.cloud.aiplatform.v1.MetadataService.DeleteArtifactCallback): void; /** - * Creates a plain object from a PurgeArtifactsResponse message. Also converts values to other types if specified. - * @param message PurgeArtifactsResponse - * @param [options] Conversion options - * @returns Plain object + * Calls DeleteArtifact. + * @param request DeleteArtifactRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public deleteArtifact(request: google.cloud.aiplatform.v1.IDeleteArtifactRequest): Promise; /** - * Converts this PurgeArtifactsResponse to JSON. - * @returns JSON object + * Calls PurgeArtifacts. + * @param request PurgeArtifactsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public toJSON(): { [k: string]: any }; + public purgeArtifacts(request: google.cloud.aiplatform.v1.IPurgeArtifactsRequest, callback: google.cloud.aiplatform.v1.MetadataService.PurgeArtifactsCallback): void; /** - * Gets the default type url for PurgeArtifactsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls PurgeArtifacts. + * @param request PurgeArtifactsRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PurgeArtifactsMetadata. */ - interface IPurgeArtifactsMetadata { - - /** PurgeArtifactsMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - } - - /** Represents a PurgeArtifactsMetadata. */ - class PurgeArtifactsMetadata implements IPurgeArtifactsMetadata { + public purgeArtifacts(request: google.cloud.aiplatform.v1.IPurgeArtifactsRequest): Promise; /** - * Constructs a new PurgeArtifactsMetadata. - * @param [properties] Properties to set + * Calls CreateContext. + * @param request CreateContextRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Context */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsMetadata); - - /** PurgeArtifactsMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + public createContext(request: google.cloud.aiplatform.v1.ICreateContextRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateContextCallback): void; /** - * Creates a new PurgeArtifactsMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns PurgeArtifactsMetadata instance + * Calls CreateContext. + * @param request CreateContextRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsMetadata): google.cloud.aiplatform.v1.PurgeArtifactsMetadata; + public createContext(request: google.cloud.aiplatform.v1.ICreateContextRequest): Promise; /** - * Encodes the specified PurgeArtifactsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsMetadata.verify|verify} messages. - * @param message PurgeArtifactsMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetContext. + * @param request GetContextRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Context */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeArtifactsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public getContext(request: google.cloud.aiplatform.v1.IGetContextRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetContextCallback): void; /** - * Encodes the specified PurgeArtifactsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsMetadata.verify|verify} messages. - * @param message PurgeArtifactsMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetContext. + * @param request GetContextRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeArtifactsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public getContext(request: google.cloud.aiplatform.v1.IGetContextRequest): Promise; /** - * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PurgeArtifactsMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListContexts. + * @param request ListContextsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListContextsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeArtifactsMetadata; + public listContexts(request: google.cloud.aiplatform.v1.IListContextsRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListContextsCallback): void; /** - * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PurgeArtifactsMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListContexts. + * @param request ListContextsRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeArtifactsMetadata; + public listContexts(request: google.cloud.aiplatform.v1.IListContextsRequest): Promise; /** - * Verifies a PurgeArtifactsMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls UpdateContext. + * @param request UpdateContextRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Context */ - public static verify(message: { [k: string]: any }): (string|null); + public updateContext(request: google.cloud.aiplatform.v1.IUpdateContextRequest, callback: google.cloud.aiplatform.v1.MetadataService.UpdateContextCallback): void; /** - * Creates a PurgeArtifactsMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PurgeArtifactsMetadata + * Calls UpdateContext. + * @param request UpdateContextRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeArtifactsMetadata; + public updateContext(request: google.cloud.aiplatform.v1.IUpdateContextRequest): Promise; /** - * Creates a plain object from a PurgeArtifactsMetadata message. Also converts values to other types if specified. - * @param message PurgeArtifactsMetadata - * @param [options] Conversion options - * @returns Plain object + * Calls DeleteContext. + * @param request DeleteContextRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeArtifactsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public deleteContext(request: google.cloud.aiplatform.v1.IDeleteContextRequest, callback: google.cloud.aiplatform.v1.MetadataService.DeleteContextCallback): void; /** - * Converts this PurgeArtifactsMetadata to JSON. - * @returns JSON object + * Calls DeleteContext. + * @param request DeleteContextRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public deleteContext(request: google.cloud.aiplatform.v1.IDeleteContextRequest): Promise; /** - * Gets the default type url for PurgeArtifactsMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls PurgeContexts. + * @param request PurgeContextsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateContextRequest. */ - interface ICreateContextRequest { - - /** CreateContextRequest parent */ - parent?: (string|null); - - /** CreateContextRequest context */ - context?: (google.cloud.aiplatform.v1.IContext|null); - - /** CreateContextRequest contextId */ - contextId?: (string|null); - } - - /** Represents a CreateContextRequest. */ - class CreateContextRequest implements ICreateContextRequest { + public purgeContexts(request: google.cloud.aiplatform.v1.IPurgeContextsRequest, callback: google.cloud.aiplatform.v1.MetadataService.PurgeContextsCallback): void; /** - * Constructs a new CreateContextRequest. - * @param [properties] Properties to set + * Calls PurgeContexts. + * @param request PurgeContextsRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateContextRequest); - - /** CreateContextRequest parent. */ - public parent: string; - - /** CreateContextRequest context. */ - public context?: (google.cloud.aiplatform.v1.IContext|null); - - /** CreateContextRequest contextId. */ - public contextId: string; + public purgeContexts(request: google.cloud.aiplatform.v1.IPurgeContextsRequest): Promise; /** - * Creates a new CreateContextRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateContextRequest instance + * Calls AddContextArtifactsAndExecutions. + * @param request AddContextArtifactsAndExecutionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AddContextArtifactsAndExecutionsResponse */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateContextRequest): google.cloud.aiplatform.v1.CreateContextRequest; + public addContextArtifactsAndExecutions(request: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest, callback: google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutionsCallback): void; /** - * Encodes the specified CreateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateContextRequest.verify|verify} messages. - * @param message CreateContextRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls AddContextArtifactsAndExecutions. + * @param request AddContextArtifactsAndExecutionsRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1.ICreateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public addContextArtifactsAndExecutions(request: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest): Promise; /** - * Encodes the specified CreateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateContextRequest.verify|verify} messages. - * @param message CreateContextRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls AddContextChildren. + * @param request AddContextChildrenRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AddContextChildrenResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public addContextChildren(request: google.cloud.aiplatform.v1.IAddContextChildrenRequest, callback: google.cloud.aiplatform.v1.MetadataService.AddContextChildrenCallback): void; /** - * Decodes a CreateContextRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateContextRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls AddContextChildren. + * @param request AddContextChildrenRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateContextRequest; + public addContextChildren(request: google.cloud.aiplatform.v1.IAddContextChildrenRequest): Promise; /** - * Decodes a CreateContextRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateContextRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls RemoveContextChildren. + * @param request RemoveContextChildrenRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RemoveContextChildrenResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateContextRequest; + public removeContextChildren(request: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, callback: google.cloud.aiplatform.v1.MetadataService.RemoveContextChildrenCallback): void; /** - * Verifies a CreateContextRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls RemoveContextChildren. + * @param request RemoveContextChildrenRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public removeContextChildren(request: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest): Promise; /** - * Creates a CreateContextRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateContextRequest + * Calls QueryContextLineageSubgraph. + * @param request QueryContextLineageSubgraphRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LineageSubgraph */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateContextRequest; + public queryContextLineageSubgraph(request: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest, callback: google.cloud.aiplatform.v1.MetadataService.QueryContextLineageSubgraphCallback): void; /** - * Creates a plain object from a CreateContextRequest message. Also converts values to other types if specified. - * @param message CreateContextRequest - * @param [options] Conversion options - * @returns Plain object + * Calls QueryContextLineageSubgraph. + * @param request QueryContextLineageSubgraphRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1.CreateContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public queryContextLineageSubgraph(request: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest): Promise; /** - * Converts this CreateContextRequest to JSON. - * @returns JSON object + * Calls CreateExecution. + * @param request CreateExecutionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Execution */ - public toJSON(): { [k: string]: any }; + public createExecution(request: google.cloud.aiplatform.v1.ICreateExecutionRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateExecutionCallback): void; /** - * Gets the default type url for CreateContextRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CreateExecution. + * @param request CreateExecutionRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetContextRequest. */ - interface IGetContextRequest { - - /** GetContextRequest name */ - name?: (string|null); - } - - /** Represents a GetContextRequest. */ - class GetContextRequest implements IGetContextRequest { + public createExecution(request: google.cloud.aiplatform.v1.ICreateExecutionRequest): Promise; /** - * Constructs a new GetContextRequest. - * @param [properties] Properties to set + * Calls GetExecution. + * @param request GetExecutionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Execution */ - constructor(properties?: google.cloud.aiplatform.v1.IGetContextRequest); - - /** GetContextRequest name. */ - public name: string; + public getExecution(request: google.cloud.aiplatform.v1.IGetExecutionRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetExecutionCallback): void; /** - * Creates a new GetContextRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetContextRequest instance + * Calls GetExecution. + * @param request GetExecutionRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1.IGetContextRequest): google.cloud.aiplatform.v1.GetContextRequest; + public getExecution(request: google.cloud.aiplatform.v1.IGetExecutionRequest): Promise; /** - * Encodes the specified GetContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetContextRequest.verify|verify} messages. - * @param message GetContextRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListExecutions. + * @param request ListExecutionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListExecutionsResponse */ - public static encode(message: google.cloud.aiplatform.v1.IGetContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listExecutions(request: google.cloud.aiplatform.v1.IListExecutionsRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListExecutionsCallback): void; /** - * Encodes the specified GetContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetContextRequest.verify|verify} messages. - * @param message GetContextRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListExecutions. + * @param request ListExecutionsRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listExecutions(request: google.cloud.aiplatform.v1.IListExecutionsRequest): Promise; /** - * Decodes a GetContextRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetContextRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateExecution. + * @param request UpdateExecutionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Execution */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetContextRequest; + public updateExecution(request: google.cloud.aiplatform.v1.IUpdateExecutionRequest, callback: google.cloud.aiplatform.v1.MetadataService.UpdateExecutionCallback): void; /** - * Decodes a GetContextRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetContextRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateExecution. + * @param request UpdateExecutionRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetContextRequest; + public updateExecution(request: google.cloud.aiplatform.v1.IUpdateExecutionRequest): Promise; /** - * Verifies a GetContextRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls DeleteExecution. + * @param request DeleteExecutionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static verify(message: { [k: string]: any }): (string|null); + public deleteExecution(request: google.cloud.aiplatform.v1.IDeleteExecutionRequest, callback: google.cloud.aiplatform.v1.MetadataService.DeleteExecutionCallback): void; /** - * Creates a GetContextRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetContextRequest + * Calls DeleteExecution. + * @param request DeleteExecutionRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetContextRequest; + public deleteExecution(request: google.cloud.aiplatform.v1.IDeleteExecutionRequest): Promise; /** - * Creates a plain object from a GetContextRequest message. Also converts values to other types if specified. - * @param message GetContextRequest - * @param [options] Conversion options - * @returns Plain object + * Calls PurgeExecutions. + * @param request PurgeExecutionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static toObject(message: google.cloud.aiplatform.v1.GetContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public purgeExecutions(request: google.cloud.aiplatform.v1.IPurgeExecutionsRequest, callback: google.cloud.aiplatform.v1.MetadataService.PurgeExecutionsCallback): void; /** - * Converts this GetContextRequest to JSON. - * @returns JSON object + * Calls PurgeExecutions. + * @param request PurgeExecutionsRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public purgeExecutions(request: google.cloud.aiplatform.v1.IPurgeExecutionsRequest): Promise; /** - * Gets the default type url for GetContextRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls AddExecutionEvents. + * @param request AddExecutionEventsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AddExecutionEventsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListContextsRequest. */ - interface IListContextsRequest { - - /** ListContextsRequest parent */ - parent?: (string|null); - - /** ListContextsRequest pageSize */ - pageSize?: (number|null); - - /** ListContextsRequest pageToken */ - pageToken?: (string|null); - - /** ListContextsRequest filter */ - filter?: (string|null); - - /** ListContextsRequest orderBy */ - orderBy?: (string|null); - } - - /** Represents a ListContextsRequest. */ - class ListContextsRequest implements IListContextsRequest { + public addExecutionEvents(request: google.cloud.aiplatform.v1.IAddExecutionEventsRequest, callback: google.cloud.aiplatform.v1.MetadataService.AddExecutionEventsCallback): void; /** - * Constructs a new ListContextsRequest. - * @param [properties] Properties to set + * Calls AddExecutionEvents. + * @param request AddExecutionEventsRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1.IListContextsRequest); - - /** ListContextsRequest parent. */ - public parent: string; - - /** ListContextsRequest pageSize. */ - public pageSize: number; - - /** ListContextsRequest pageToken. */ - public pageToken: string; - - /** ListContextsRequest filter. */ - public filter: string; - - /** ListContextsRequest orderBy. */ - public orderBy: string; + public addExecutionEvents(request: google.cloud.aiplatform.v1.IAddExecutionEventsRequest): Promise; /** - * Creates a new ListContextsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListContextsRequest instance + * Calls QueryExecutionInputsAndOutputs. + * @param request QueryExecutionInputsAndOutputsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LineageSubgraph */ - public static create(properties?: google.cloud.aiplatform.v1.IListContextsRequest): google.cloud.aiplatform.v1.ListContextsRequest; + public queryExecutionInputsAndOutputs(request: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest, callback: google.cloud.aiplatform.v1.MetadataService.QueryExecutionInputsAndOutputsCallback): void; /** - * Encodes the specified ListContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsRequest.verify|verify} messages. - * @param message ListContextsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls QueryExecutionInputsAndOutputs. + * @param request QueryExecutionInputsAndOutputsRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1.IListContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public queryExecutionInputsAndOutputs(request: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest): Promise; /** - * Encodes the specified ListContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsRequest.verify|verify} messages. - * @param message ListContextsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateMetadataSchema. + * @param request CreateMetadataSchemaRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MetadataSchema */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createMetadataSchema(request: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest, callback: google.cloud.aiplatform.v1.MetadataService.CreateMetadataSchemaCallback): void; /** - * Decodes a ListContextsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListContextsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateMetadataSchema. + * @param request CreateMetadataSchemaRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListContextsRequest; + public createMetadataSchema(request: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest): Promise; /** - * Decodes a ListContextsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListContextsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetMetadataSchema. + * @param request GetMetadataSchemaRequest message or plain object + * @param callback Node-style callback called with the error, if any, and MetadataSchema */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListContextsRequest; + public getMetadataSchema(request: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest, callback: google.cloud.aiplatform.v1.MetadataService.GetMetadataSchemaCallback): void; /** - * Verifies a ListContextsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetMetadataSchema. + * @param request GetMetadataSchemaRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public getMetadataSchema(request: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest): Promise; /** - * Creates a ListContextsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListContextsRequest + * Calls ListMetadataSchemas. + * @param request ListMetadataSchemasRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListMetadataSchemasResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListContextsRequest; + public listMetadataSchemas(request: google.cloud.aiplatform.v1.IListMetadataSchemasRequest, callback: google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemasCallback): void; /** - * Creates a plain object from a ListContextsRequest message. Also converts values to other types if specified. - * @param message ListContextsRequest - * @param [options] Conversion options - * @returns Plain object + * Calls ListMetadataSchemas. + * @param request ListMetadataSchemasRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1.ListContextsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listMetadataSchemas(request: google.cloud.aiplatform.v1.IListMetadataSchemasRequest): Promise; /** - * Converts this ListContextsRequest to JSON. - * @returns JSON object + * Calls QueryArtifactLineageSubgraph. + * @param request QueryArtifactLineageSubgraphRequest message or plain object + * @param callback Node-style callback called with the error, if any, and LineageSubgraph */ - public toJSON(): { [k: string]: any }; + public queryArtifactLineageSubgraph(request: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest, callback: google.cloud.aiplatform.v1.MetadataService.QueryArtifactLineageSubgraphCallback): void; /** - * Gets the default type url for ListContextsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls QueryArtifactLineageSubgraph. + * @param request QueryArtifactLineageSubgraphRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListContextsResponse. */ - interface IListContextsResponse { - - /** ListContextsResponse contexts */ - contexts?: (google.cloud.aiplatform.v1.IContext[]|null); - - /** ListContextsResponse nextPageToken */ - nextPageToken?: (string|null); + public queryArtifactLineageSubgraph(request: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest): Promise; } - /** Represents a ListContextsResponse. */ - class ListContextsResponse implements IListContextsResponse { + namespace MetadataService { /** - * Constructs a new ListContextsResponse. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createMetadataStore}. + * @param error Error, if any + * @param [response] Operation */ - constructor(properties?: google.cloud.aiplatform.v1.IListContextsResponse); - - /** ListContextsResponse contexts. */ - public contexts: google.cloud.aiplatform.v1.IContext[]; - - /** ListContextsResponse nextPageToken. */ - public nextPageToken: string; + type CreateMetadataStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a new ListContextsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListContextsResponse instance + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getMetadataStore}. + * @param error Error, if any + * @param [response] MetadataStore */ - public static create(properties?: google.cloud.aiplatform.v1.IListContextsResponse): google.cloud.aiplatform.v1.ListContextsResponse; + type GetMetadataStoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.MetadataStore) => void; /** - * Encodes the specified ListContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsResponse.verify|verify} messages. - * @param message ListContextsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listMetadataStores}. + * @param error Error, if any + * @param [response] ListMetadataStoresResponse */ - public static encode(message: google.cloud.aiplatform.v1.IListContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type ListMetadataStoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListMetadataStoresResponse) => void; /** - * Encodes the specified ListContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsResponse.verify|verify} messages. - * @param message ListContextsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteMetadataStore}. + * @param error Error, if any + * @param [response] Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteMetadataStoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a ListContextsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListContextsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createArtifact}. + * @param error Error, if any + * @param [response] Artifact */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListContextsResponse; + type CreateArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Artifact) => void; /** - * Decodes a ListContextsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListContextsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getArtifact}. + * @param error Error, if any + * @param [response] Artifact */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListContextsResponse; + type GetArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Artifact) => void; /** - * Verifies a ListContextsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listArtifacts}. + * @param error Error, if any + * @param [response] ListArtifactsResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ListArtifactsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListArtifactsResponse) => void; /** - * Creates a ListContextsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListContextsResponse + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateArtifact}. + * @param error Error, if any + * @param [response] Artifact */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListContextsResponse; + type UpdateArtifactCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Artifact) => void; /** - * Creates a plain object from a ListContextsResponse message. Also converts values to other types if specified. - * @param message ListContextsResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteArtifact}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1.ListContextsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type DeleteArtifactCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this ListContextsResponse to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeArtifacts}. + * @param error Error, if any + * @param [response] Operation */ - public toJSON(): { [k: string]: any }; + type PurgeArtifactsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Gets the default type url for ListContextsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createContext}. + * @param error Error, if any + * @param [response] Context */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an UpdateContextRequest. */ - interface IUpdateContextRequest { - - /** UpdateContextRequest context */ - context?: (google.cloud.aiplatform.v1.IContext|null); - - /** UpdateContextRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - - /** UpdateContextRequest allowMissing */ - allowMissing?: (boolean|null); - } - - /** Represents an UpdateContextRequest. */ - class UpdateContextRequest implements IUpdateContextRequest { + type CreateContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Context) => void; /** - * Constructs a new UpdateContextRequest. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getContext}. + * @param error Error, if any + * @param [response] Context */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateContextRequest); - - /** UpdateContextRequest context. */ - public context?: (google.cloud.aiplatform.v1.IContext|null); - - /** UpdateContextRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); - - /** UpdateContextRequest allowMissing. */ - public allowMissing: boolean; + type GetContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Context) => void; /** - * Creates a new UpdateContextRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateContextRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listContexts}. + * @param error Error, if any + * @param [response] ListContextsResponse */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateContextRequest): google.cloud.aiplatform.v1.UpdateContextRequest; + type ListContextsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListContextsResponse) => void; /** - * Encodes the specified UpdateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateContextRequest.verify|verify} messages. - * @param message UpdateContextRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateContext}. + * @param error Error, if any + * @param [response] Context */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type UpdateContextCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Context) => void; /** - * Encodes the specified UpdateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateContextRequest.verify|verify} messages. - * @param message UpdateContextRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteContext}. + * @param error Error, if any + * @param [response] Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteContextCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes an UpdateContextRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateContextRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeContexts}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateContextRequest; + type PurgeContextsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes an UpdateContextRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateContextRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addContextArtifactsAndExecutions}. + * @param error Error, if any + * @param [response] AddContextArtifactsAndExecutionsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateContextRequest; + type AddContextArtifactsAndExecutionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse) => void; /** - * Verifies an UpdateContextRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addContextChildren}. + * @param error Error, if any + * @param [response] AddContextChildrenResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type AddContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.AddContextChildrenResponse) => void; /** - * Creates an UpdateContextRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateContextRequest + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|removeContextChildren}. + * @param error Error, if any + * @param [response] RemoveContextChildrenResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateContextRequest; + type RemoveContextChildrenCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.RemoveContextChildrenResponse) => void; /** - * Creates a plain object from an UpdateContextRequest message. Also converts values to other types if specified. - * @param message UpdateContextRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryContextLineageSubgraph}. + * @param error Error, if any + * @param [response] LineageSubgraph */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type QueryContextLineageSubgraphCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.LineageSubgraph) => void; /** - * Converts this UpdateContextRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createExecution}. + * @param error Error, if any + * @param [response] Execution */ - public toJSON(): { [k: string]: any }; + type CreateExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Execution) => void; /** - * Gets the default type url for UpdateContextRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DeleteContextRequest. */ - interface IDeleteContextRequest { - - /** DeleteContextRequest name */ - name?: (string|null); - - /** DeleteContextRequest force */ - force?: (boolean|null); - - /** DeleteContextRequest etag */ - etag?: (string|null); - } - - /** Represents a DeleteContextRequest. */ - class DeleteContextRequest implements IDeleteContextRequest { - - /** - * Constructs a new DeleteContextRequest. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getExecution}. + * @param error Error, if any + * @param [response] Execution */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteContextRequest); - - /** DeleteContextRequest name. */ - public name: string; - - /** DeleteContextRequest force. */ - public force: boolean; - - /** DeleteContextRequest etag. */ - public etag: string; + type GetExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Execution) => void; /** - * Creates a new DeleteContextRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteContextRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listExecutions}. + * @param error Error, if any + * @param [response] ListExecutionsResponse */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteContextRequest): google.cloud.aiplatform.v1.DeleteContextRequest; + type ListExecutionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListExecutionsResponse) => void; /** - * Encodes the specified DeleteContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteContextRequest.verify|verify} messages. - * @param message DeleteContextRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateExecution}. + * @param error Error, if any + * @param [response] Execution */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type UpdateExecutionCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Execution) => void; /** - * Encodes the specified DeleteContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteContextRequest.verify|verify} messages. - * @param message DeleteContextRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteExecution}. + * @param error Error, if any + * @param [response] Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteExecutionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a DeleteContextRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteContextRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeExecutions}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteContextRequest; + type PurgeExecutionsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a DeleteContextRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteContextRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addExecutionEvents}. + * @param error Error, if any + * @param [response] AddExecutionEventsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteContextRequest; + type AddExecutionEventsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.AddExecutionEventsResponse) => void; /** - * Verifies a DeleteContextRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryExecutionInputsAndOutputs}. + * @param error Error, if any + * @param [response] LineageSubgraph */ - public static verify(message: { [k: string]: any }): (string|null); + type QueryExecutionInputsAndOutputsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.LineageSubgraph) => void; /** - * Creates a DeleteContextRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteContextRequest + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createMetadataSchema}. + * @param error Error, if any + * @param [response] MetadataSchema */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteContextRequest; + type CreateMetadataSchemaCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.MetadataSchema) => void; /** - * Creates a plain object from a DeleteContextRequest message. Also converts values to other types if specified. - * @param message DeleteContextRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getMetadataSchema}. + * @param error Error, if any + * @param [response] MetadataSchema */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type GetMetadataSchemaCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.MetadataSchema) => void; /** - * Converts this DeleteContextRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listMetadataSchemas}. + * @param error Error, if any + * @param [response] ListMetadataSchemasResponse */ - public toJSON(): { [k: string]: any }; + type ListMetadataSchemasCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListMetadataSchemasResponse) => void; /** - * Gets the default type url for DeleteContextRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryArtifactLineageSubgraph}. + * @param error Error, if any + * @param [response] LineageSubgraph */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type QueryArtifactLineageSubgraphCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.LineageSubgraph) => void; } - /** Properties of a PurgeContextsRequest. */ - interface IPurgeContextsRequest { + /** Properties of a CreateMetadataStoreRequest. */ + interface ICreateMetadataStoreRequest { - /** PurgeContextsRequest parent */ + /** CreateMetadataStoreRequest parent */ parent?: (string|null); - /** PurgeContextsRequest filter */ - filter?: (string|null); + /** CreateMetadataStoreRequest metadataStore */ + metadataStore?: (google.cloud.aiplatform.v1.IMetadataStore|null); - /** PurgeContextsRequest force */ - force?: (boolean|null); + /** CreateMetadataStoreRequest metadataStoreId */ + metadataStoreId?: (string|null); } - /** Represents a PurgeContextsRequest. */ - class PurgeContextsRequest implements IPurgeContextsRequest { + /** Represents a CreateMetadataStoreRequest. */ + class CreateMetadataStoreRequest implements ICreateMetadataStoreRequest { /** - * Constructs a new PurgeContextsRequest. + * Constructs a new CreateMetadataStoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeContextsRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest); - /** PurgeContextsRequest parent. */ + /** CreateMetadataStoreRequest parent. */ public parent: string; - /** PurgeContextsRequest filter. */ - public filter: string; + /** CreateMetadataStoreRequest metadataStore. */ + public metadataStore?: (google.cloud.aiplatform.v1.IMetadataStore|null); - /** PurgeContextsRequest force. */ - public force: boolean; + /** CreateMetadataStoreRequest metadataStoreId. */ + public metadataStoreId: string; /** - * Creates a new PurgeContextsRequest instance using the specified properties. + * Creates a new CreateMetadataStoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeContextsRequest instance + * @returns CreateMetadataStoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeContextsRequest): google.cloud.aiplatform.v1.PurgeContextsRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest): google.cloud.aiplatform.v1.CreateMetadataStoreRequest; /** - * Encodes the specified PurgeContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsRequest.verify|verify} messages. - * @param message PurgeContextsRequest message or plain object to encode + * Encodes the specified CreateMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreRequest.verify|verify} messages. + * @param message CreateMetadataStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsRequest.verify|verify} messages. - * @param message PurgeContextsRequest message or plain object to encode + * Encodes the specified CreateMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreRequest.verify|verify} messages. + * @param message CreateMetadataStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeContextsRequest message from the specified reader or buffer. + * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeContextsRequest + * @returns CreateMetadataStoreRequest * @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.PurgeContextsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateMetadataStoreRequest; /** - * Decodes a PurgeContextsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeContextsRequest + * @returns CreateMetadataStoreRequest * @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.PurgeContextsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateMetadataStoreRequest; /** - * Verifies a PurgeContextsRequest message. + * Verifies a CreateMetadataStoreRequest 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 PurgeContextsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeContextsRequest + * @returns CreateMetadataStoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeContextsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateMetadataStoreRequest; /** - * Creates a plain object from a PurgeContextsRequest message. Also converts values to other types if specified. - * @param message PurgeContextsRequest + * Creates a plain object from a CreateMetadataStoreRequest message. Also converts values to other types if specified. + * @param message CreateMetadataStoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeContextsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeContextsRequest to JSON. + * Converts this CreateMetadataStoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeContextsRequest + * Gets the default type url for CreateMetadataStoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeContextsResponse. */ - interface IPurgeContextsResponse { - - /** PurgeContextsResponse purgeCount */ - purgeCount?: (number|Long|string|null); + /** Properties of a CreateMetadataStoreOperationMetadata. */ + interface ICreateMetadataStoreOperationMetadata { - /** PurgeContextsResponse purgeSample */ - purgeSample?: (string[]|null); + /** CreateMetadataStoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents a PurgeContextsResponse. */ - class PurgeContextsResponse implements IPurgeContextsResponse { + /** Represents a CreateMetadataStoreOperationMetadata. */ + class CreateMetadataStoreOperationMetadata implements ICreateMetadataStoreOperationMetadata { /** - * Constructs a new PurgeContextsResponse. + * Constructs a new CreateMetadataStoreOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeContextsResponse); - - /** PurgeContextsResponse purgeCount. */ - public purgeCount: (number|Long|string); + constructor(properties?: google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata); - /** PurgeContextsResponse purgeSample. */ - public purgeSample: string[]; + /** CreateMetadataStoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new PurgeContextsResponse instance using the specified properties. + * Creates a new CreateMetadataStoreOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeContextsResponse instance + * @returns CreateMetadataStoreOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeContextsResponse): google.cloud.aiplatform.v1.PurgeContextsResponse; + public static create(properties?: google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata): google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata; /** - * Encodes the specified PurgeContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsResponse.verify|verify} messages. - * @param message PurgeContextsResponse message or plain object to encode + * Encodes the specified CreateMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.verify|verify} messages. + * @param message CreateMetadataStoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsResponse.verify|verify} messages. - * @param message PurgeContextsResponse message or plain object to encode + * Encodes the specified CreateMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.verify|verify} messages. + * @param message CreateMetadataStoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeContextsResponse message from the specified reader or buffer. + * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeContextsResponse + * @returns CreateMetadataStoreOperationMetadata * @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.PurgeContextsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata; /** - * Decodes a PurgeContextsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeContextsResponse + * @returns CreateMetadataStoreOperationMetadata * @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.PurgeContextsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata; /** - * Verifies a PurgeContextsResponse message. + * Verifies a CreateMetadataStoreOperationMetadata 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 PurgeContextsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeContextsResponse + * @returns CreateMetadataStoreOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeContextsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata; /** - * Creates a plain object from a PurgeContextsResponse message. Also converts values to other types if specified. - * @param message PurgeContextsResponse + * Creates a plain object from a CreateMetadataStoreOperationMetadata message. Also converts values to other types if specified. + * @param message CreateMetadataStoreOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeContextsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeContextsResponse to JSON. + * Converts this CreateMetadataStoreOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeContextsResponse + * Gets the default type url for CreateMetadataStoreOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeContextsMetadata. */ - interface IPurgeContextsMetadata { + /** Properties of a GetMetadataStoreRequest. */ + interface IGetMetadataStoreRequest { - /** PurgeContextsMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** GetMetadataStoreRequest name */ + name?: (string|null); } - /** Represents a PurgeContextsMetadata. */ - class PurgeContextsMetadata implements IPurgeContextsMetadata { + /** Represents a GetMetadataStoreRequest. */ + class GetMetadataStoreRequest implements IGetMetadataStoreRequest { /** - * Constructs a new PurgeContextsMetadata. + * Constructs a new GetMetadataStoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeContextsMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IGetMetadataStoreRequest); - /** PurgeContextsMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** GetMetadataStoreRequest name. */ + public name: string; /** - * Creates a new PurgeContextsMetadata instance using the specified properties. + * Creates a new GetMetadataStoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeContextsMetadata instance + * @returns GetMetadataStoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeContextsMetadata): google.cloud.aiplatform.v1.PurgeContextsMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IGetMetadataStoreRequest): google.cloud.aiplatform.v1.GetMetadataStoreRequest; /** - * Encodes the specified PurgeContextsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsMetadata.verify|verify} messages. - * @param message PurgeContextsMetadata message or plain object to encode + * Encodes the specified GetMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataStoreRequest.verify|verify} messages. + * @param message GetMetadataStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeContextsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeContextsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsMetadata.verify|verify} messages. - * @param message PurgeContextsMetadata message or plain object to encode + * Encodes the specified GetMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataStoreRequest.verify|verify} messages. + * @param message GetMetadataStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeContextsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeContextsMetadata message from the specified reader or buffer. + * Decodes a GetMetadataStoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeContextsMetadata + * @returns GetMetadataStoreRequest * @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.PurgeContextsMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetMetadataStoreRequest; /** - * Decodes a PurgeContextsMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetMetadataStoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeContextsMetadata + * @returns GetMetadataStoreRequest * @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.PurgeContextsMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetMetadataStoreRequest; /** - * Verifies a PurgeContextsMetadata message. + * Verifies a GetMetadataStoreRequest 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 PurgeContextsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeContextsMetadata + * @returns GetMetadataStoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeContextsMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetMetadataStoreRequest; /** - * Creates a plain object from a PurgeContextsMetadata message. Also converts values to other types if specified. - * @param message PurgeContextsMetadata + * Creates a plain object from a GetMetadataStoreRequest message. Also converts values to other types if specified. + * @param message GetMetadataStoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeContextsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeContextsMetadata to JSON. + * Converts this GetMetadataStoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeContextsMetadata + * Gets the default type url for GetMetadataStoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddContextArtifactsAndExecutionsRequest. */ - interface IAddContextArtifactsAndExecutionsRequest { + /** Properties of a ListMetadataStoresRequest. */ + interface IListMetadataStoresRequest { - /** AddContextArtifactsAndExecutionsRequest context */ - context?: (string|null); + /** ListMetadataStoresRequest parent */ + parent?: (string|null); - /** AddContextArtifactsAndExecutionsRequest artifacts */ - artifacts?: (string[]|null); + /** ListMetadataStoresRequest pageSize */ + pageSize?: (number|null); - /** AddContextArtifactsAndExecutionsRequest executions */ - executions?: (string[]|null); + /** ListMetadataStoresRequest pageToken */ + pageToken?: (string|null); } - /** Represents an AddContextArtifactsAndExecutionsRequest. */ - class AddContextArtifactsAndExecutionsRequest implements IAddContextArtifactsAndExecutionsRequest { + /** Represents a ListMetadataStoresRequest. */ + class ListMetadataStoresRequest implements IListMetadataStoresRequest { /** - * Constructs a new AddContextArtifactsAndExecutionsRequest. + * Constructs a new ListMetadataStoresRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListMetadataStoresRequest); - /** AddContextArtifactsAndExecutionsRequest context. */ - public context: string; + /** ListMetadataStoresRequest parent. */ + public parent: string; - /** AddContextArtifactsAndExecutionsRequest artifacts. */ - public artifacts: string[]; + /** ListMetadataStoresRequest pageSize. */ + public pageSize: number; - /** AddContextArtifactsAndExecutionsRequest executions. */ - public executions: string[]; + /** ListMetadataStoresRequest pageToken. */ + public pageToken: string; /** - * Creates a new AddContextArtifactsAndExecutionsRequest instance using the specified properties. + * Creates a new ListMetadataStoresRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AddContextArtifactsAndExecutionsRequest instance + * @returns ListMetadataStoresRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListMetadataStoresRequest): google.cloud.aiplatform.v1.ListMetadataStoresRequest; /** - * Encodes the specified AddContextArtifactsAndExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. - * @param message AddContextArtifactsAndExecutionsRequest message or plain object to encode + * Encodes the specified ListMetadataStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresRequest.verify|verify} messages. + * @param message ListMetadataStoresRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListMetadataStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddContextArtifactsAndExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. - * @param message AddContextArtifactsAndExecutionsRequest message or plain object to encode + * Encodes the specified ListMetadataStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresRequest.verify|verify} messages. + * @param message ListMetadataStoresRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListMetadataStoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer. + * Decodes a ListMetadataStoresRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddContextArtifactsAndExecutionsRequest + * @returns ListMetadataStoresRequest * @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.AddContextArtifactsAndExecutionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListMetadataStoresRequest; /** - * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataStoresRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddContextArtifactsAndExecutionsRequest + * @returns ListMetadataStoresRequest * @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.AddContextArtifactsAndExecutionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListMetadataStoresRequest; /** - * Verifies an AddContextArtifactsAndExecutionsRequest message. + * Verifies a ListMetadataStoresRequest 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 AddContextArtifactsAndExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataStoresRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddContextArtifactsAndExecutionsRequest + * @returns ListMetadataStoresRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListMetadataStoresRequest; /** - * Creates a plain object from an AddContextArtifactsAndExecutionsRequest message. Also converts values to other types if specified. - * @param message AddContextArtifactsAndExecutionsRequest + * Creates a plain object from a ListMetadataStoresRequest message. Also converts values to other types if specified. + * @param message ListMetadataStoresRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListMetadataStoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddContextArtifactsAndExecutionsRequest to JSON. + * Converts this ListMetadataStoresRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddContextArtifactsAndExecutionsRequest + * Gets the default type url for ListMetadataStoresRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddContextArtifactsAndExecutionsResponse. */ - interface IAddContextArtifactsAndExecutionsResponse { + /** Properties of a ListMetadataStoresResponse. */ + interface IListMetadataStoresResponse { + + /** ListMetadataStoresResponse metadataStores */ + metadataStores?: (google.cloud.aiplatform.v1.IMetadataStore[]|null); + + /** ListMetadataStoresResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an AddContextArtifactsAndExecutionsResponse. */ - class AddContextArtifactsAndExecutionsResponse implements IAddContextArtifactsAndExecutionsResponse { + /** Represents a ListMetadataStoresResponse. */ + class ListMetadataStoresResponse implements IListMetadataStoresResponse { /** - * Constructs a new AddContextArtifactsAndExecutionsResponse. + * Constructs a new ListMetadataStoresResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListMetadataStoresResponse); + + /** ListMetadataStoresResponse metadataStores. */ + public metadataStores: google.cloud.aiplatform.v1.IMetadataStore[]; + + /** ListMetadataStoresResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new AddContextArtifactsAndExecutionsResponse instance using the specified properties. + * Creates a new ListMetadataStoresResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AddContextArtifactsAndExecutionsResponse instance + * @returns ListMetadataStoresResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListMetadataStoresResponse): google.cloud.aiplatform.v1.ListMetadataStoresResponse; /** - * Encodes the specified AddContextArtifactsAndExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. - * @param message AddContextArtifactsAndExecutionsResponse message or plain object to encode + * Encodes the specified ListMetadataStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresResponse.verify|verify} messages. + * @param message ListMetadataStoresResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListMetadataStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddContextArtifactsAndExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. - * @param message AddContextArtifactsAndExecutionsResponse message or plain object to encode + * Encodes the specified ListMetadataStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresResponse.verify|verify} messages. + * @param message ListMetadataStoresResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListMetadataStoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer. + * Decodes a ListMetadataStoresResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddContextArtifactsAndExecutionsResponse + * @returns ListMetadataStoresResponse * @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.AddContextArtifactsAndExecutionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListMetadataStoresResponse; /** - * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataStoresResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddContextArtifactsAndExecutionsResponse + * @returns ListMetadataStoresResponse * @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.AddContextArtifactsAndExecutionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListMetadataStoresResponse; /** - * Verifies an AddContextArtifactsAndExecutionsResponse message. + * Verifies a ListMetadataStoresResponse 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 AddContextArtifactsAndExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataStoresResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddContextArtifactsAndExecutionsResponse + * @returns ListMetadataStoresResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListMetadataStoresResponse; /** - * Creates a plain object from an AddContextArtifactsAndExecutionsResponse message. Also converts values to other types if specified. - * @param message AddContextArtifactsAndExecutionsResponse + * Creates a plain object from a ListMetadataStoresResponse message. Also converts values to other types if specified. + * @param message ListMetadataStoresResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListMetadataStoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddContextArtifactsAndExecutionsResponse to JSON. + * Converts this ListMetadataStoresResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddContextArtifactsAndExecutionsResponse + * Gets the default type url for ListMetadataStoresResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddContextChildrenRequest. */ - interface IAddContextChildrenRequest { - - /** AddContextChildrenRequest context */ - context?: (string|null); + /** Properties of a DeleteMetadataStoreRequest. */ + interface IDeleteMetadataStoreRequest { - /** AddContextChildrenRequest childContexts */ - childContexts?: (string[]|null); + /** DeleteMetadataStoreRequest name */ + name?: (string|null); + + /** DeleteMetadataStoreRequest force */ + force?: (boolean|null); } - /** Represents an AddContextChildrenRequest. */ - class AddContextChildrenRequest implements IAddContextChildrenRequest { + /** Represents a DeleteMetadataStoreRequest. */ + class DeleteMetadataStoreRequest implements IDeleteMetadataStoreRequest { /** - * Constructs a new AddContextChildrenRequest. + * Constructs a new DeleteMetadataStoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IAddContextChildrenRequest); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest); - /** AddContextChildrenRequest context. */ - public context: string; + /** DeleteMetadataStoreRequest name. */ + public name: string; - /** AddContextChildrenRequest childContexts. */ - public childContexts: string[]; + /** DeleteMetadataStoreRequest force. */ + public force: boolean; /** - * Creates a new AddContextChildrenRequest instance using the specified properties. + * Creates a new DeleteMetadataStoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AddContextChildrenRequest instance + * @returns DeleteMetadataStoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IAddContextChildrenRequest): google.cloud.aiplatform.v1.AddContextChildrenRequest; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest): google.cloud.aiplatform.v1.DeleteMetadataStoreRequest; /** - * Encodes the specified AddContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenRequest.verify|verify} messages. - * @param message AddContextChildrenRequest message or plain object to encode + * Encodes the specified DeleteMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.verify|verify} messages. + * @param message DeleteMetadataStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IAddContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenRequest.verify|verify} messages. - * @param message AddContextChildrenRequest message or plain object to encode + * Encodes the specified DeleteMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.verify|verify} messages. + * @param message DeleteMetadataStoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddContextChildrenRequest message from the specified reader or buffer. + * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddContextChildrenRequest + * @returns DeleteMetadataStoreRequest * @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.AddContextChildrenRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteMetadataStoreRequest; /** - * Decodes an AddContextChildrenRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddContextChildrenRequest + * @returns DeleteMetadataStoreRequest * @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.AddContextChildrenRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteMetadataStoreRequest; /** - * Verifies an AddContextChildrenRequest message. + * Verifies a DeleteMetadataStoreRequest 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 AddContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddContextChildrenRequest + * @returns DeleteMetadataStoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddContextChildrenRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteMetadataStoreRequest; /** - * Creates a plain object from an AddContextChildrenRequest message. Also converts values to other types if specified. - * @param message AddContextChildrenRequest + * Creates a plain object from a DeleteMetadataStoreRequest message. Also converts values to other types if specified. + * @param message DeleteMetadataStoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.AddContextChildrenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteMetadataStoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddContextChildrenRequest to JSON. + * Converts this DeleteMetadataStoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddContextChildrenRequest + * Gets the default type url for DeleteMetadataStoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddContextChildrenResponse. */ - interface IAddContextChildrenResponse { + /** Properties of a DeleteMetadataStoreOperationMetadata. */ + interface IDeleteMetadataStoreOperationMetadata { + + /** DeleteMetadataStoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents an AddContextChildrenResponse. */ - class AddContextChildrenResponse implements IAddContextChildrenResponse { + /** Represents a DeleteMetadataStoreOperationMetadata. */ + class DeleteMetadataStoreOperationMetadata implements IDeleteMetadataStoreOperationMetadata { /** - * Constructs a new AddContextChildrenResponse. + * Constructs a new DeleteMetadataStoreOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IAddContextChildrenResponse); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata); + + /** DeleteMetadataStoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new AddContextChildrenResponse instance using the specified properties. + * Creates a new DeleteMetadataStoreOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns AddContextChildrenResponse instance + * @returns DeleteMetadataStoreOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IAddContextChildrenResponse): google.cloud.aiplatform.v1.AddContextChildrenResponse; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata): google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata; /** - * Encodes the specified AddContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenResponse.verify|verify} messages. - * @param message AddContextChildrenResponse message or plain object to encode + * Encodes the specified DeleteMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. + * @param message DeleteMetadataStoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IAddContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenResponse.verify|verify} messages. - * @param message AddContextChildrenResponse message or plain object to encode + * Encodes the specified DeleteMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. + * @param message DeleteMetadataStoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddContextChildrenResponse message from the specified reader or buffer. + * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddContextChildrenResponse + * @returns DeleteMetadataStoreOperationMetadata * @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.AddContextChildrenResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata; /** - * Decodes an AddContextChildrenResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddContextChildrenResponse + * @returns DeleteMetadataStoreOperationMetadata * @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.AddContextChildrenResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata; /** - * Verifies an AddContextChildrenResponse message. + * Verifies a DeleteMetadataStoreOperationMetadata 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 AddContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddContextChildrenResponse + * @returns DeleteMetadataStoreOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddContextChildrenResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata; /** - * Creates a plain object from an AddContextChildrenResponse message. Also converts values to other types if specified. - * @param message AddContextChildrenResponse + * Creates a plain object from a DeleteMetadataStoreOperationMetadata message. Also converts values to other types if specified. + * @param message DeleteMetadataStoreOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.AddContextChildrenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddContextChildrenResponse to JSON. + * Converts this DeleteMetadataStoreOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddContextChildrenResponse + * Gets the default type url for DeleteMetadataStoreOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RemoveContextChildrenRequest. */ - interface IRemoveContextChildrenRequest { + /** Properties of a CreateArtifactRequest. */ + interface ICreateArtifactRequest { - /** RemoveContextChildrenRequest context */ - context?: (string|null); + /** CreateArtifactRequest parent */ + parent?: (string|null); - /** RemoveContextChildrenRequest childContexts */ - childContexts?: (string[]|null); + /** CreateArtifactRequest artifact */ + artifact?: (google.cloud.aiplatform.v1.IArtifact|null); + + /** CreateArtifactRequest artifactId */ + artifactId?: (string|null); } - /** Represents a RemoveContextChildrenRequest. */ - class RemoveContextChildrenRequest implements IRemoveContextChildrenRequest { + /** Represents a CreateArtifactRequest. */ + class CreateArtifactRequest implements ICreateArtifactRequest { /** - * Constructs a new RemoveContextChildrenRequest. + * Constructs a new CreateArtifactRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateArtifactRequest); - /** RemoveContextChildrenRequest context. */ - public context: string; + /** CreateArtifactRequest parent. */ + public parent: string; - /** RemoveContextChildrenRequest childContexts. */ - public childContexts: string[]; + /** CreateArtifactRequest artifact. */ + public artifact?: (google.cloud.aiplatform.v1.IArtifact|null); + + /** CreateArtifactRequest artifactId. */ + public artifactId: string; /** - * Creates a new RemoveContextChildrenRequest instance using the specified properties. + * Creates a new CreateArtifactRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveContextChildrenRequest instance + * @returns CreateArtifactRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest): google.cloud.aiplatform.v1.RemoveContextChildrenRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateArtifactRequest): google.cloud.aiplatform.v1.CreateArtifactRequest; /** - * Encodes the specified RemoveContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. - * @param message RemoveContextChildrenRequest message or plain object to encode + * Encodes the specified CreateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateArtifactRequest.verify|verify} messages. + * @param message CreateArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RemoveContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. - * @param message RemoveContextChildrenRequest message or plain object to encode + * Encodes the specified CreateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateArtifactRequest.verify|verify} messages. + * @param message CreateArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer. + * Decodes a CreateArtifactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RemoveContextChildrenRequest + * @returns CreateArtifactRequest * @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.RemoveContextChildrenRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateArtifactRequest; /** - * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateArtifactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveContextChildrenRequest + * @returns CreateArtifactRequest * @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.RemoveContextChildrenRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateArtifactRequest; /** - * Verifies a RemoveContextChildrenRequest message. + * Verifies a CreateArtifactRequest 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 RemoveContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateArtifactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveContextChildrenRequest + * @returns CreateArtifactRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RemoveContextChildrenRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateArtifactRequest; /** - * Creates a plain object from a RemoveContextChildrenRequest message. Also converts values to other types if specified. - * @param message RemoveContextChildrenRequest + * Creates a plain object from a CreateArtifactRequest message. Also converts values to other types if specified. + * @param message CreateArtifactRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.RemoveContextChildrenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveContextChildrenRequest to JSON. + * Converts this CreateArtifactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveContextChildrenRequest + * Gets the default type url for CreateArtifactRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RemoveContextChildrenResponse. */ - interface IRemoveContextChildrenResponse { + /** Properties of a GetArtifactRequest. */ + interface IGetArtifactRequest { + + /** GetArtifactRequest name */ + name?: (string|null); } - /** Represents a RemoveContextChildrenResponse. */ - class RemoveContextChildrenResponse implements IRemoveContextChildrenResponse { + /** Represents a GetArtifactRequest. */ + class GetArtifactRequest implements IGetArtifactRequest { /** - * Constructs a new RemoveContextChildrenResponse. + * Constructs a new GetArtifactRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse); + constructor(properties?: google.cloud.aiplatform.v1.IGetArtifactRequest); + + /** GetArtifactRequest name. */ + public name: string; /** - * Creates a new RemoveContextChildrenResponse instance using the specified properties. + * Creates a new GetArtifactRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveContextChildrenResponse instance + * @returns GetArtifactRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse): google.cloud.aiplatform.v1.RemoveContextChildrenResponse; + public static create(properties?: google.cloud.aiplatform.v1.IGetArtifactRequest): google.cloud.aiplatform.v1.GetArtifactRequest; /** - * Encodes the specified RemoveContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. - * @param message RemoveContextChildrenResponse message or plain object to encode + * Encodes the specified GetArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetArtifactRequest.verify|verify} messages. + * @param message GetArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RemoveContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. - * @param message RemoveContextChildrenResponse message or plain object to encode + * Encodes the specified GetArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetArtifactRequest.verify|verify} messages. + * @param message GetArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer. + * Decodes a GetArtifactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RemoveContextChildrenResponse + * @returns GetArtifactRequest * @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.RemoveContextChildrenResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetArtifactRequest; /** - * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer, length delimited. + * Decodes a GetArtifactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveContextChildrenResponse + * @returns GetArtifactRequest * @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.RemoveContextChildrenResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetArtifactRequest; /** - * Verifies a RemoveContextChildrenResponse message. + * Verifies a GetArtifactRequest 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 RemoveContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetArtifactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveContextChildrenResponse + * @returns GetArtifactRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RemoveContextChildrenResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetArtifactRequest; /** - * Creates a plain object from a RemoveContextChildrenResponse message. Also converts values to other types if specified. - * @param message RemoveContextChildrenResponse + * Creates a plain object from a GetArtifactRequest message. Also converts values to other types if specified. + * @param message GetArtifactRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.RemoveContextChildrenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveContextChildrenResponse to JSON. + * Converts this GetArtifactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveContextChildrenResponse + * Gets the default type url for GetArtifactRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a QueryContextLineageSubgraphRequest. */ - interface IQueryContextLineageSubgraphRequest { + /** Properties of a ListArtifactsRequest. */ + interface IListArtifactsRequest { - /** QueryContextLineageSubgraphRequest context */ - context?: (string|null); + /** ListArtifactsRequest parent */ + parent?: (string|null); + + /** ListArtifactsRequest pageSize */ + pageSize?: (number|null); + + /** ListArtifactsRequest pageToken */ + pageToken?: (string|null); + + /** ListArtifactsRequest filter */ + filter?: (string|null); + + /** ListArtifactsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a QueryContextLineageSubgraphRequest. */ - class QueryContextLineageSubgraphRequest implements IQueryContextLineageSubgraphRequest { + /** Represents a ListArtifactsRequest. */ + class ListArtifactsRequest implements IListArtifactsRequest { /** - * Constructs a new QueryContextLineageSubgraphRequest. + * Constructs a new ListArtifactsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListArtifactsRequest); - /** QueryContextLineageSubgraphRequest context. */ - public context: string; + /** ListArtifactsRequest parent. */ + public parent: string; + + /** ListArtifactsRequest pageSize. */ + public pageSize: number; + + /** ListArtifactsRequest pageToken. */ + public pageToken: string; + + /** ListArtifactsRequest filter. */ + public filter: string; + + /** ListArtifactsRequest orderBy. */ + public orderBy: string; /** - * Creates a new QueryContextLineageSubgraphRequest instance using the specified properties. + * Creates a new ListArtifactsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryContextLineageSubgraphRequest instance + * @returns ListArtifactsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest): google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListArtifactsRequest): google.cloud.aiplatform.v1.ListArtifactsRequest; /** - * Encodes the specified QueryContextLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest.verify|verify} messages. - * @param message QueryContextLineageSubgraphRequest message or plain object to encode + * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsRequest.verify|verify} messages. + * @param message ListArtifactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryContextLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest.verify|verify} messages. - * @param message QueryContextLineageSubgraphRequest message or plain object to encode + * Encodes the specified ListArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsRequest.verify|verify} messages. + * @param message ListArtifactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer. + * Decodes a ListArtifactsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryContextLineageSubgraphRequest + * @returns ListArtifactsRequest * @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.QueryContextLineageSubgraphRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListArtifactsRequest; /** - * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer, length delimited. + * Decodes a ListArtifactsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryContextLineageSubgraphRequest + * @returns ListArtifactsRequest * @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.QueryContextLineageSubgraphRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListArtifactsRequest; /** - * Verifies a QueryContextLineageSubgraphRequest message. + * Verifies a ListArtifactsRequest 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 QueryContextLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListArtifactsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryContextLineageSubgraphRequest + * @returns ListArtifactsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListArtifactsRequest; /** - * Creates a plain object from a QueryContextLineageSubgraphRequest message. Also converts values to other types if specified. - * @param message QueryContextLineageSubgraphRequest + * Creates a plain object from a ListArtifactsRequest message. Also converts values to other types if specified. + * @param message ListArtifactsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryContextLineageSubgraphRequest to JSON. + * Converts this ListArtifactsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryContextLineageSubgraphRequest + * Gets the default type url for ListArtifactsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateExecutionRequest. */ - interface ICreateExecutionRequest { - - /** CreateExecutionRequest parent */ - parent?: (string|null); + /** Properties of a ListArtifactsResponse. */ + interface IListArtifactsResponse { - /** CreateExecutionRequest execution */ - execution?: (google.cloud.aiplatform.v1.IExecution|null); + /** ListArtifactsResponse artifacts */ + artifacts?: (google.cloud.aiplatform.v1.IArtifact[]|null); - /** CreateExecutionRequest executionId */ - executionId?: (string|null); + /** ListArtifactsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CreateExecutionRequest. */ - class CreateExecutionRequest implements ICreateExecutionRequest { + /** Represents a ListArtifactsResponse. */ + class ListArtifactsResponse implements IListArtifactsResponse { /** - * Constructs a new CreateExecutionRequest. + * Constructs a new ListArtifactsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateExecutionRequest); - - /** CreateExecutionRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1.IListArtifactsResponse); - /** CreateExecutionRequest execution. */ - public execution?: (google.cloud.aiplatform.v1.IExecution|null); + /** ListArtifactsResponse artifacts. */ + public artifacts: google.cloud.aiplatform.v1.IArtifact[]; - /** CreateExecutionRequest executionId. */ - public executionId: string; + /** ListArtifactsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CreateExecutionRequest instance using the specified properties. + * Creates a new ListArtifactsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateExecutionRequest instance + * @returns ListArtifactsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateExecutionRequest): google.cloud.aiplatform.v1.CreateExecutionRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListArtifactsResponse): google.cloud.aiplatform.v1.ListArtifactsResponse; /** - * Encodes the specified CreateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateExecutionRequest.verify|verify} messages. - * @param message CreateExecutionRequest message or plain object to encode + * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsResponse.verify|verify} messages. + * @param message ListArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateExecutionRequest.verify|verify} messages. - * @param message CreateExecutionRequest message or plain object to encode + * Encodes the specified ListArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsResponse.verify|verify} messages. + * @param message ListArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateExecutionRequest message from the specified reader or buffer. + * Decodes a ListArtifactsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateExecutionRequest + * @returns ListArtifactsResponse * @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.CreateExecutionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListArtifactsResponse; /** - * Decodes a CreateExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a ListArtifactsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateExecutionRequest + * @returns ListArtifactsResponse * @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.CreateExecutionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListArtifactsResponse; /** - * Verifies a CreateExecutionRequest message. + * Verifies a ListArtifactsResponse 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 CreateExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListArtifactsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateExecutionRequest + * @returns ListArtifactsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateExecutionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListArtifactsResponse; /** - * Creates a plain object from a CreateExecutionRequest message. Also converts values to other types if specified. - * @param message CreateExecutionRequest + * Creates a plain object from a ListArtifactsResponse message. Also converts values to other types if specified. + * @param message ListArtifactsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateExecutionRequest to JSON. + * Converts this ListArtifactsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateExecutionRequest + * Gets the default type url for ListArtifactsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetExecutionRequest. */ - interface IGetExecutionRequest { + /** Properties of an UpdateArtifactRequest. */ + interface IUpdateArtifactRequest { - /** GetExecutionRequest name */ - name?: (string|null); + /** UpdateArtifactRequest artifact */ + artifact?: (google.cloud.aiplatform.v1.IArtifact|null); + + /** UpdateArtifactRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateArtifactRequest allowMissing */ + allowMissing?: (boolean|null); } - /** Represents a GetExecutionRequest. */ - class GetExecutionRequest implements IGetExecutionRequest { + /** Represents an UpdateArtifactRequest. */ + class UpdateArtifactRequest implements IUpdateArtifactRequest { /** - * Constructs a new GetExecutionRequest. + * Constructs a new UpdateArtifactRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetExecutionRequest); + constructor(properties?: google.cloud.aiplatform.v1.IUpdateArtifactRequest); - /** GetExecutionRequest name. */ - public name: string; + /** UpdateArtifactRequest artifact. */ + public artifact?: (google.cloud.aiplatform.v1.IArtifact|null); + + /** UpdateArtifactRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateArtifactRequest allowMissing. */ + public allowMissing: boolean; /** - * Creates a new GetExecutionRequest instance using the specified properties. + * Creates a new UpdateArtifactRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetExecutionRequest instance + * @returns UpdateArtifactRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetExecutionRequest): google.cloud.aiplatform.v1.GetExecutionRequest; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateArtifactRequest): google.cloud.aiplatform.v1.UpdateArtifactRequest; /** - * Encodes the specified GetExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetExecutionRequest.verify|verify} messages. - * @param message GetExecutionRequest message or plain object to encode + * Encodes the specified UpdateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateArtifactRequest.verify|verify} messages. + * @param message UpdateArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IUpdateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetExecutionRequest.verify|verify} messages. - * @param message GetExecutionRequest message or plain object to encode + * Encodes the specified UpdateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateArtifactRequest.verify|verify} messages. + * @param message UpdateArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetExecutionRequest message from the specified reader or buffer. + * Decodes an UpdateArtifactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetExecutionRequest + * @returns UpdateArtifactRequest * @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.GetExecutionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateArtifactRequest; /** - * Decodes a GetExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateArtifactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetExecutionRequest + * @returns UpdateArtifactRequest * @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.GetExecutionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateArtifactRequest; /** - * Verifies a GetExecutionRequest message. + * Verifies an UpdateArtifactRequest 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 GetExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateArtifactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetExecutionRequest + * @returns UpdateArtifactRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetExecutionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateArtifactRequest; /** - * Creates a plain object from a GetExecutionRequest message. Also converts values to other types if specified. - * @param message GetExecutionRequest + * Creates a plain object from an UpdateArtifactRequest message. Also converts values to other types if specified. + * @param message UpdateArtifactRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UpdateArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetExecutionRequest to JSON. + * Converts this UpdateArtifactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetExecutionRequest + * Gets the default type url for UpdateArtifactRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListExecutionsRequest. */ - interface IListExecutionsRequest { - - /** ListExecutionsRequest parent */ - parent?: (string|null); - - /** ListExecutionsRequest pageSize */ - pageSize?: (number|null); - - /** ListExecutionsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a DeleteArtifactRequest. */ + interface IDeleteArtifactRequest { - /** ListExecutionsRequest filter */ - filter?: (string|null); + /** DeleteArtifactRequest name */ + name?: (string|null); - /** ListExecutionsRequest orderBy */ - orderBy?: (string|null); + /** DeleteArtifactRequest etag */ + etag?: (string|null); } - /** Represents a ListExecutionsRequest. */ - class ListExecutionsRequest implements IListExecutionsRequest { + /** Represents a DeleteArtifactRequest. */ + class DeleteArtifactRequest implements IDeleteArtifactRequest { /** - * Constructs a new ListExecutionsRequest. + * Constructs a new DeleteArtifactRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListExecutionsRequest); - - /** ListExecutionsRequest parent. */ - public parent: string; - - /** ListExecutionsRequest pageSize. */ - public pageSize: number; - - /** ListExecutionsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1.IDeleteArtifactRequest); - /** ListExecutionsRequest filter. */ - public filter: string; + /** DeleteArtifactRequest name. */ + public name: string; - /** ListExecutionsRequest orderBy. */ - public orderBy: string; + /** DeleteArtifactRequest etag. */ + public etag: string; /** - * Creates a new ListExecutionsRequest instance using the specified properties. + * Creates a new DeleteArtifactRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListExecutionsRequest instance + * @returns DeleteArtifactRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListExecutionsRequest): google.cloud.aiplatform.v1.ListExecutionsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteArtifactRequest): google.cloud.aiplatform.v1.DeleteArtifactRequest; /** - * Encodes the specified ListExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsRequest.verify|verify} messages. - * @param message ListExecutionsRequest message or plain object to encode + * Encodes the specified DeleteArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteArtifactRequest.verify|verify} messages. + * @param message DeleteArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsRequest.verify|verify} messages. - * @param message ListExecutionsRequest message or plain object to encode + * Encodes the specified DeleteArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteArtifactRequest.verify|verify} messages. + * @param message DeleteArtifactRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteArtifactRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListExecutionsRequest message from the specified reader or buffer. + * Decodes a DeleteArtifactRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListExecutionsRequest + * @returns DeleteArtifactRequest * @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.ListExecutionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteArtifactRequest; /** - * Decodes a ListExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteArtifactRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListExecutionsRequest + * @returns DeleteArtifactRequest * @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.ListExecutionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteArtifactRequest; /** - * Verifies a ListExecutionsRequest message. + * Verifies a DeleteArtifactRequest 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 ListExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteArtifactRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListExecutionsRequest + * @returns DeleteArtifactRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListExecutionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteArtifactRequest; /** - * Creates a plain object from a ListExecutionsRequest message. Also converts values to other types if specified. - * @param message ListExecutionsRequest + * Creates a plain object from a DeleteArtifactRequest message. Also converts values to other types if specified. + * @param message DeleteArtifactRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteArtifactRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListExecutionsRequest to JSON. + * Converts this DeleteArtifactRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListExecutionsRequest + * Gets the default type url for DeleteArtifactRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListExecutionsResponse. */ - interface IListExecutionsResponse { + /** Properties of a PurgeArtifactsRequest. */ + interface IPurgeArtifactsRequest { - /** ListExecutionsResponse executions */ - executions?: (google.cloud.aiplatform.v1.IExecution[]|null); + /** PurgeArtifactsRequest parent */ + parent?: (string|null); - /** ListExecutionsResponse nextPageToken */ - nextPageToken?: (string|null); + /** PurgeArtifactsRequest filter */ + filter?: (string|null); + + /** PurgeArtifactsRequest force */ + force?: (boolean|null); } - /** Represents a ListExecutionsResponse. */ - class ListExecutionsResponse implements IListExecutionsResponse { + /** Represents a PurgeArtifactsRequest. */ + class PurgeArtifactsRequest implements IPurgeArtifactsRequest { /** - * Constructs a new ListExecutionsResponse. + * Constructs a new PurgeArtifactsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListExecutionsResponse); + constructor(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsRequest); - /** ListExecutionsResponse executions. */ - public executions: google.cloud.aiplatform.v1.IExecution[]; + /** PurgeArtifactsRequest parent. */ + public parent: string; - /** ListExecutionsResponse nextPageToken. */ - public nextPageToken: string; + /** PurgeArtifactsRequest filter. */ + public filter: string; + + /** PurgeArtifactsRequest force. */ + public force: boolean; /** - * Creates a new ListExecutionsResponse instance using the specified properties. + * Creates a new PurgeArtifactsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListExecutionsResponse instance + * @returns PurgeArtifactsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListExecutionsResponse): google.cloud.aiplatform.v1.ListExecutionsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsRequest): google.cloud.aiplatform.v1.PurgeArtifactsRequest; /** - * Encodes the specified ListExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsResponse.verify|verify} messages. - * @param message ListExecutionsResponse message or plain object to encode + * Encodes the specified PurgeArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsRequest.verify|verify} messages. + * @param message PurgeArtifactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPurgeArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsResponse.verify|verify} messages. - * @param message ListExecutionsResponse message or plain object to encode + * Encodes the specified PurgeArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsRequest.verify|verify} messages. + * @param message PurgeArtifactsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeArtifactsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListExecutionsResponse message from the specified reader or buffer. + * Decodes a PurgeArtifactsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListExecutionsResponse + * @returns PurgeArtifactsRequest * @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.ListExecutionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeArtifactsRequest; /** - * Decodes a ListExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListExecutionsResponse + * @returns PurgeArtifactsRequest * @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.ListExecutionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeArtifactsRequest; /** - * Verifies a ListExecutionsResponse message. + * Verifies a PurgeArtifactsRequest 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 ListExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListExecutionsResponse + * @returns PurgeArtifactsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListExecutionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeArtifactsRequest; /** - * Creates a plain object from a ListExecutionsResponse message. Also converts values to other types if specified. - * @param message ListExecutionsResponse + * Creates a plain object from a PurgeArtifactsRequest message. Also converts values to other types if specified. + * @param message PurgeArtifactsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PurgeArtifactsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListExecutionsResponse to JSON. + * Converts this PurgeArtifactsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListExecutionsResponse + * Gets the default type url for PurgeArtifactsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateExecutionRequest. */ - interface IUpdateExecutionRequest { - - /** UpdateExecutionRequest execution */ - execution?: (google.cloud.aiplatform.v1.IExecution|null); + /** Properties of a PurgeArtifactsResponse. */ + interface IPurgeArtifactsResponse { - /** UpdateExecutionRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** PurgeArtifactsResponse purgeCount */ + purgeCount?: (number|Long|string|null); - /** UpdateExecutionRequest allowMissing */ - allowMissing?: (boolean|null); + /** PurgeArtifactsResponse purgeSample */ + purgeSample?: (string[]|null); } - /** Represents an UpdateExecutionRequest. */ - class UpdateExecutionRequest implements IUpdateExecutionRequest { + /** Represents a PurgeArtifactsResponse. */ + class PurgeArtifactsResponse implements IPurgeArtifactsResponse { /** - * Constructs a new UpdateExecutionRequest. + * Constructs a new PurgeArtifactsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateExecutionRequest); - - /** UpdateExecutionRequest execution. */ - public execution?: (google.cloud.aiplatform.v1.IExecution|null); + constructor(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsResponse); - /** UpdateExecutionRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** PurgeArtifactsResponse purgeCount. */ + public purgeCount: (number|Long|string); - /** UpdateExecutionRequest allowMissing. */ - public allowMissing: boolean; + /** PurgeArtifactsResponse purgeSample. */ + public purgeSample: string[]; /** - * Creates a new UpdateExecutionRequest instance using the specified properties. + * Creates a new PurgeArtifactsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateExecutionRequest instance + * @returns PurgeArtifactsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateExecutionRequest): google.cloud.aiplatform.v1.UpdateExecutionRequest; + public static create(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsResponse): google.cloud.aiplatform.v1.PurgeArtifactsResponse; /** - * Encodes the specified UpdateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateExecutionRequest.verify|verify} messages. - * @param message UpdateExecutionRequest message or plain object to encode + * Encodes the specified PurgeArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsResponse.verify|verify} messages. + * @param message PurgeArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPurgeArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateExecutionRequest.verify|verify} messages. - * @param message UpdateExecutionRequest message or plain object to encode + * Encodes the specified PurgeArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsResponse.verify|verify} messages. + * @param message PurgeArtifactsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeArtifactsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateExecutionRequest message from the specified reader or buffer. + * Decodes a PurgeArtifactsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateExecutionRequest + * @returns PurgeArtifactsResponse * @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.UpdateExecutionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeArtifactsResponse; /** - * Decodes an UpdateExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateExecutionRequest + * @returns PurgeArtifactsResponse * @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.UpdateExecutionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeArtifactsResponse; /** - * Verifies an UpdateExecutionRequest message. + * Verifies a PurgeArtifactsResponse 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 UpdateExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateExecutionRequest + * @returns PurgeArtifactsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateExecutionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeArtifactsResponse; /** - * Creates a plain object from an UpdateExecutionRequest message. Also converts values to other types if specified. - * @param message UpdateExecutionRequest + * Creates a plain object from a PurgeArtifactsResponse message. Also converts values to other types if specified. + * @param message PurgeArtifactsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PurgeArtifactsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateExecutionRequest to JSON. + * Converts this PurgeArtifactsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateExecutionRequest + * Gets the default type url for PurgeArtifactsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteExecutionRequest. */ - interface IDeleteExecutionRequest { - - /** DeleteExecutionRequest name */ - name?: (string|null); + /** Properties of a PurgeArtifactsMetadata. */ + interface IPurgeArtifactsMetadata { - /** DeleteExecutionRequest etag */ - etag?: (string|null); + /** PurgeArtifactsMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents a DeleteExecutionRequest. */ - class DeleteExecutionRequest implements IDeleteExecutionRequest { + /** Represents a PurgeArtifactsMetadata. */ + class PurgeArtifactsMetadata implements IPurgeArtifactsMetadata { /** - * Constructs a new DeleteExecutionRequest. + * Constructs a new PurgeArtifactsMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteExecutionRequest); - - /** DeleteExecutionRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsMetadata); - /** DeleteExecutionRequest etag. */ - public etag: string; + /** PurgeArtifactsMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new DeleteExecutionRequest instance using the specified properties. + * Creates a new PurgeArtifactsMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteExecutionRequest instance + * @returns PurgeArtifactsMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteExecutionRequest): google.cloud.aiplatform.v1.DeleteExecutionRequest; + public static create(properties?: google.cloud.aiplatform.v1.IPurgeArtifactsMetadata): google.cloud.aiplatform.v1.PurgeArtifactsMetadata; /** - * Encodes the specified DeleteExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteExecutionRequest.verify|verify} messages. - * @param message DeleteExecutionRequest message or plain object to encode + * Encodes the specified PurgeArtifactsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsMetadata.verify|verify} messages. + * @param message PurgeArtifactsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPurgeArtifactsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteExecutionRequest.verify|verify} messages. - * @param message DeleteExecutionRequest message or plain object to encode + * Encodes the specified PurgeArtifactsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsMetadata.verify|verify} messages. + * @param message PurgeArtifactsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeArtifactsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteExecutionRequest message from the specified reader or buffer. + * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteExecutionRequest + * @returns PurgeArtifactsMetadata * @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.DeleteExecutionRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeArtifactsMetadata; /** - * Decodes a DeleteExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteExecutionRequest + * @returns PurgeArtifactsMetadata * @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.DeleteExecutionRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeArtifactsMetadata; /** - * Verifies a DeleteExecutionRequest message. + * Verifies a PurgeArtifactsMetadata 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 DeleteExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteExecutionRequest + * @returns PurgeArtifactsMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteExecutionRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeArtifactsMetadata; /** - * Creates a plain object from a DeleteExecutionRequest message. Also converts values to other types if specified. - * @param message DeleteExecutionRequest + * Creates a plain object from a PurgeArtifactsMetadata message. Also converts values to other types if specified. + * @param message PurgeArtifactsMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PurgeArtifactsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteExecutionRequest to JSON. + * Converts this PurgeArtifactsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteExecutionRequest + * Gets the default type url for PurgeArtifactsMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeExecutionsRequest. */ - interface IPurgeExecutionsRequest { + /** Properties of a CreateContextRequest. */ + interface ICreateContextRequest { - /** PurgeExecutionsRequest parent */ + /** CreateContextRequest parent */ parent?: (string|null); - /** PurgeExecutionsRequest filter */ - filter?: (string|null); + /** CreateContextRequest context */ + context?: (google.cloud.aiplatform.v1.IContext|null); - /** PurgeExecutionsRequest force */ - force?: (boolean|null); + /** CreateContextRequest contextId */ + contextId?: (string|null); } - /** Represents a PurgeExecutionsRequest. */ - class PurgeExecutionsRequest implements IPurgeExecutionsRequest { + /** Represents a CreateContextRequest. */ + class CreateContextRequest implements ICreateContextRequest { /** - * Constructs a new PurgeExecutionsRequest. + * Constructs a new CreateContextRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateContextRequest); - /** PurgeExecutionsRequest parent. */ + /** CreateContextRequest parent. */ public parent: string; - /** PurgeExecutionsRequest filter. */ - public filter: string; + /** CreateContextRequest context. */ + public context?: (google.cloud.aiplatform.v1.IContext|null); - /** PurgeExecutionsRequest force. */ - public force: boolean; + /** CreateContextRequest contextId. */ + public contextId: string; /** - * Creates a new PurgeExecutionsRequest instance using the specified properties. + * Creates a new CreateContextRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeExecutionsRequest instance + * @returns CreateContextRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsRequest): google.cloud.aiplatform.v1.PurgeExecutionsRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateContextRequest): google.cloud.aiplatform.v1.CreateContextRequest; /** - * Encodes the specified PurgeExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsRequest.verify|verify} messages. - * @param message PurgeExecutionsRequest message or plain object to encode + * Encodes the specified CreateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateContextRequest.verify|verify} messages. + * @param message CreateContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsRequest.verify|verify} messages. - * @param message PurgeExecutionsRequest message or plain object to encode + * Encodes the specified CreateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateContextRequest.verify|verify} messages. + * @param message CreateContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeExecutionsRequest message from the specified reader or buffer. + * Decodes a CreateContextRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeExecutionsRequest + * @returns CreateContextRequest * @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.PurgeExecutionsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateContextRequest; /** - * Decodes a PurgeExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateContextRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeExecutionsRequest + * @returns CreateContextRequest * @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.PurgeExecutionsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateContextRequest; /** - * Verifies a PurgeExecutionsRequest message. + * Verifies a CreateContextRequest 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 PurgeExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateContextRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeExecutionsRequest + * @returns CreateContextRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeExecutionsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateContextRequest; /** - * Creates a plain object from a PurgeExecutionsRequest message. Also converts values to other types if specified. - * @param message PurgeExecutionsRequest + * Creates a plain object from a CreateContextRequest message. Also converts values to other types if specified. + * @param message CreateContextRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeExecutionsRequest to JSON. + * Converts this CreateContextRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeExecutionsRequest + * Gets the default type url for CreateContextRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeExecutionsResponse. */ - interface IPurgeExecutionsResponse { - - /** PurgeExecutionsResponse purgeCount */ - purgeCount?: (number|Long|string|null); + /** Properties of a GetContextRequest. */ + interface IGetContextRequest { - /** PurgeExecutionsResponse purgeSample */ - purgeSample?: (string[]|null); + /** GetContextRequest name */ + name?: (string|null); } - /** Represents a PurgeExecutionsResponse. */ - class PurgeExecutionsResponse implements IPurgeExecutionsResponse { + /** Represents a GetContextRequest. */ + class GetContextRequest implements IGetContextRequest { /** - * Constructs a new PurgeExecutionsResponse. + * Constructs a new GetContextRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsResponse); - - /** PurgeExecutionsResponse purgeCount. */ - public purgeCount: (number|Long|string); + constructor(properties?: google.cloud.aiplatform.v1.IGetContextRequest); - /** PurgeExecutionsResponse purgeSample. */ - public purgeSample: string[]; + /** GetContextRequest name. */ + public name: string; /** - * Creates a new PurgeExecutionsResponse instance using the specified properties. + * Creates a new GetContextRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeExecutionsResponse instance + * @returns GetContextRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsResponse): google.cloud.aiplatform.v1.PurgeExecutionsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IGetContextRequest): google.cloud.aiplatform.v1.GetContextRequest; /** - * Encodes the specified PurgeExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsResponse.verify|verify} messages. - * @param message PurgeExecutionsResponse message or plain object to encode + * Encodes the specified GetContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetContextRequest.verify|verify} messages. + * @param message GetContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsResponse.verify|verify} messages. - * @param message PurgeExecutionsResponse message or plain object to encode + * Encodes the specified GetContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetContextRequest.verify|verify} messages. + * @param message GetContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeExecutionsResponse message from the specified reader or buffer. + * Decodes a GetContextRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeExecutionsResponse + * @returns GetContextRequest * @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.PurgeExecutionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetContextRequest; /** - * Decodes a PurgeExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetContextRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeExecutionsResponse + * @returns GetContextRequest * @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.PurgeExecutionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetContextRequest; /** - * Verifies a PurgeExecutionsResponse message. + * Verifies a GetContextRequest 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 PurgeExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetContextRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeExecutionsResponse + * @returns GetContextRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeExecutionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetContextRequest; /** - * Creates a plain object from a PurgeExecutionsResponse message. Also converts values to other types if specified. - * @param message PurgeExecutionsResponse + * Creates a plain object from a GetContextRequest message. Also converts values to other types if specified. + * @param message GetContextRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeExecutionsResponse to JSON. + * Converts this GetContextRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeExecutionsResponse + * Gets the default type url for GetContextRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PurgeExecutionsMetadata. */ - interface IPurgeExecutionsMetadata { + /** Properties of a ListContextsRequest. */ + interface IListContextsRequest { - /** PurgeExecutionsMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ListContextsRequest parent */ + parent?: (string|null); + + /** ListContextsRequest pageSize */ + pageSize?: (number|null); + + /** ListContextsRequest pageToken */ + pageToken?: (string|null); + + /** ListContextsRequest filter */ + filter?: (string|null); + + /** ListContextsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a PurgeExecutionsMetadata. */ - class PurgeExecutionsMetadata implements IPurgeExecutionsMetadata { + /** Represents a ListContextsRequest. */ + class ListContextsRequest implements IListContextsRequest { /** - * Constructs a new PurgeExecutionsMetadata. + * Constructs a new ListContextsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IListContextsRequest); - /** PurgeExecutionsMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ListContextsRequest parent. */ + public parent: string; + + /** ListContextsRequest pageSize. */ + public pageSize: number; + + /** ListContextsRequest pageToken. */ + public pageToken: string; + + /** ListContextsRequest filter. */ + public filter: string; + + /** ListContextsRequest orderBy. */ + public orderBy: string; /** - * Creates a new PurgeExecutionsMetadata instance using the specified properties. + * Creates a new ListContextsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PurgeExecutionsMetadata instance + * @returns ListContextsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsMetadata): google.cloud.aiplatform.v1.PurgeExecutionsMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IListContextsRequest): google.cloud.aiplatform.v1.ListContextsRequest; /** - * Encodes the specified PurgeExecutionsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsMetadata.verify|verify} messages. - * @param message PurgeExecutionsMetadata message or plain object to encode + * Encodes the specified ListContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsRequest.verify|verify} messages. + * @param message ListContextsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPurgeExecutionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PurgeExecutionsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsMetadata.verify|verify} messages. - * @param message PurgeExecutionsMetadata message or plain object to encode + * Encodes the specified ListContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsRequest.verify|verify} messages. + * @param message ListContextsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeExecutionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer. + * Decodes a ListContextsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PurgeExecutionsMetadata + * @returns ListContextsRequest * @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.PurgeExecutionsMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListContextsRequest; /** - * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListContextsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PurgeExecutionsMetadata + * @returns ListContextsRequest * @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.PurgeExecutionsMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListContextsRequest; /** - * Verifies a PurgeExecutionsMetadata message. + * Verifies a ListContextsRequest 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 PurgeExecutionsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListContextsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PurgeExecutionsMetadata + * @returns ListContextsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeExecutionsMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListContextsRequest; /** - * Creates a plain object from a PurgeExecutionsMetadata message. Also converts values to other types if specified. - * @param message PurgeExecutionsMetadata + * Creates a plain object from a ListContextsRequest message. Also converts values to other types if specified. + * @param message ListContextsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PurgeExecutionsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListContextsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PurgeExecutionsMetadata to JSON. + * Converts this ListContextsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PurgeExecutionsMetadata + * Gets the default type url for ListContextsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddExecutionEventsRequest. */ - interface IAddExecutionEventsRequest { + /** Properties of a ListContextsResponse. */ + interface IListContextsResponse { - /** AddExecutionEventsRequest execution */ - execution?: (string|null); + /** ListContextsResponse contexts */ + contexts?: (google.cloud.aiplatform.v1.IContext[]|null); - /** AddExecutionEventsRequest events */ - events?: (google.cloud.aiplatform.v1.IEvent[]|null); + /** ListContextsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an AddExecutionEventsRequest. */ - class AddExecutionEventsRequest implements IAddExecutionEventsRequest { + /** Represents a ListContextsResponse. */ + class ListContextsResponse implements IListContextsResponse { /** - * Constructs a new AddExecutionEventsRequest. + * Constructs a new ListContextsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IAddExecutionEventsRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListContextsResponse); - /** AddExecutionEventsRequest execution. */ - public execution: string; + /** ListContextsResponse contexts. */ + public contexts: google.cloud.aiplatform.v1.IContext[]; - /** AddExecutionEventsRequest events. */ - public events: google.cloud.aiplatform.v1.IEvent[]; + /** ListContextsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new AddExecutionEventsRequest instance using the specified properties. + * Creates a new ListContextsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns AddExecutionEventsRequest instance + * @returns ListContextsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IAddExecutionEventsRequest): google.cloud.aiplatform.v1.AddExecutionEventsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListContextsResponse): google.cloud.aiplatform.v1.ListContextsResponse; /** - * Encodes the specified AddExecutionEventsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsRequest.verify|verify} messages. - * @param message AddExecutionEventsRequest message or plain object to encode + * Encodes the specified ListContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsResponse.verify|verify} messages. + * @param message ListContextsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IAddExecutionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddExecutionEventsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsRequest.verify|verify} messages. - * @param message AddExecutionEventsRequest message or plain object to encode + * Encodes the specified ListContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsResponse.verify|verify} messages. + * @param message ListContextsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddExecutionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddExecutionEventsRequest message from the specified reader or buffer. + * Decodes a ListContextsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddExecutionEventsRequest + * @returns ListContextsResponse * @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.AddExecutionEventsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListContextsResponse; /** - * Decodes an AddExecutionEventsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContextsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddExecutionEventsRequest + * @returns ListContextsResponse * @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.AddExecutionEventsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListContextsResponse; /** - * Verifies an AddExecutionEventsRequest message. + * Verifies a ListContextsResponse 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 AddExecutionEventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListContextsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddExecutionEventsRequest + * @returns ListContextsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddExecutionEventsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListContextsResponse; /** - * Creates a plain object from an AddExecutionEventsRequest message. Also converts values to other types if specified. - * @param message AddExecutionEventsRequest + * Creates a plain object from a ListContextsResponse message. Also converts values to other types if specified. + * @param message ListContextsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.AddExecutionEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListContextsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddExecutionEventsRequest to JSON. + * Converts this ListContextsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddExecutionEventsRequest + * Gets the default type url for ListContextsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddExecutionEventsResponse. */ - interface IAddExecutionEventsResponse { + /** Properties of an UpdateContextRequest. */ + interface IUpdateContextRequest { + + /** UpdateContextRequest context */ + context?: (google.cloud.aiplatform.v1.IContext|null); + + /** UpdateContextRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateContextRequest allowMissing */ + allowMissing?: (boolean|null); } - /** Represents an AddExecutionEventsResponse. */ - class AddExecutionEventsResponse implements IAddExecutionEventsResponse { + /** Represents an UpdateContextRequest. */ + class UpdateContextRequest implements IUpdateContextRequest { /** - * Constructs a new AddExecutionEventsResponse. + * Constructs a new UpdateContextRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IAddExecutionEventsResponse); + constructor(properties?: google.cloud.aiplatform.v1.IUpdateContextRequest); + + /** UpdateContextRequest context. */ + public context?: (google.cloud.aiplatform.v1.IContext|null); + + /** UpdateContextRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateContextRequest allowMissing. */ + public allowMissing: boolean; /** - * Creates a new AddExecutionEventsResponse instance using the specified properties. + * Creates a new UpdateContextRequest instance using the specified properties. * @param [properties] Properties to set - * @returns AddExecutionEventsResponse instance + * @returns UpdateContextRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IAddExecutionEventsResponse): google.cloud.aiplatform.v1.AddExecutionEventsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateContextRequest): google.cloud.aiplatform.v1.UpdateContextRequest; /** - * Encodes the specified AddExecutionEventsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsResponse.verify|verify} messages. - * @param message AddExecutionEventsResponse message or plain object to encode + * Encodes the specified UpdateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateContextRequest.verify|verify} messages. + * @param message UpdateContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IAddExecutionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IUpdateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddExecutionEventsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsResponse.verify|verify} messages. - * @param message AddExecutionEventsResponse message or plain object to encode + * Encodes the specified UpdateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateContextRequest.verify|verify} messages. + * @param message UpdateContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddExecutionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddExecutionEventsResponse message from the specified reader or buffer. + * Decodes an UpdateContextRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddExecutionEventsResponse + * @returns UpdateContextRequest * @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.AddExecutionEventsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateContextRequest; /** - * Decodes an AddExecutionEventsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateContextRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddExecutionEventsResponse + * @returns UpdateContextRequest * @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.AddExecutionEventsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateContextRequest; /** - * Verifies an AddExecutionEventsResponse message. + * Verifies an UpdateContextRequest 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 AddExecutionEventsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateContextRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddExecutionEventsResponse + * @returns UpdateContextRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddExecutionEventsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateContextRequest; /** - * Creates a plain object from an AddExecutionEventsResponse message. Also converts values to other types if specified. - * @param message AddExecutionEventsResponse + * Creates a plain object from an UpdateContextRequest message. Also converts values to other types if specified. + * @param message UpdateContextRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.AddExecutionEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UpdateContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddExecutionEventsResponse to JSON. + * Converts this UpdateContextRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddExecutionEventsResponse + * Gets the default type url for UpdateContextRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a QueryExecutionInputsAndOutputsRequest. */ - interface IQueryExecutionInputsAndOutputsRequest { + /** Properties of a DeleteContextRequest. */ + interface IDeleteContextRequest { - /** QueryExecutionInputsAndOutputsRequest execution */ - execution?: (string|null); + /** DeleteContextRequest name */ + name?: (string|null); + + /** DeleteContextRequest force */ + force?: (boolean|null); + + /** DeleteContextRequest etag */ + etag?: (string|null); } - /** Represents a QueryExecutionInputsAndOutputsRequest. */ - class QueryExecutionInputsAndOutputsRequest implements IQueryExecutionInputsAndOutputsRequest { + /** Represents a DeleteContextRequest. */ + class DeleteContextRequest implements IDeleteContextRequest { /** - * Constructs a new QueryExecutionInputsAndOutputsRequest. + * Constructs a new DeleteContextRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteContextRequest); - /** QueryExecutionInputsAndOutputsRequest execution. */ - public execution: string; + /** DeleteContextRequest name. */ + public name: string; + + /** DeleteContextRequest force. */ + public force: boolean; + + /** DeleteContextRequest etag. */ + public etag: string; /** - * Creates a new QueryExecutionInputsAndOutputsRequest instance using the specified properties. + * Creates a new DeleteContextRequest instance using the specified properties. * @param [properties] Properties to set - * @returns QueryExecutionInputsAndOutputsRequest instance + * @returns DeleteContextRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest): google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteContextRequest): google.cloud.aiplatform.v1.DeleteContextRequest; /** - * Encodes the specified QueryExecutionInputsAndOutputsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. - * @param message QueryExecutionInputsAndOutputsRequest message or plain object to encode + * Encodes the specified DeleteContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteContextRequest.verify|verify} messages. + * @param message DeleteContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryExecutionInputsAndOutputsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. - * @param message QueryExecutionInputsAndOutputsRequest message or plain object to encode + * Encodes the specified DeleteContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteContextRequest.verify|verify} messages. + * @param message DeleteContextRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteContextRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer. + * Decodes a DeleteContextRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryExecutionInputsAndOutputsRequest + * @returns DeleteContextRequest * @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.QueryExecutionInputsAndOutputsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteContextRequest; /** - * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteContextRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryExecutionInputsAndOutputsRequest + * @returns DeleteContextRequest * @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.QueryExecutionInputsAndOutputsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteContextRequest; /** - * Verifies a QueryExecutionInputsAndOutputsRequest message. + * Verifies a DeleteContextRequest 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 QueryExecutionInputsAndOutputsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteContextRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryExecutionInputsAndOutputsRequest + * @returns DeleteContextRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteContextRequest; /** - * Creates a plain object from a QueryExecutionInputsAndOutputsRequest message. Also converts values to other types if specified. - * @param message QueryExecutionInputsAndOutputsRequest + * Creates a plain object from a DeleteContextRequest message. Also converts values to other types if specified. + * @param message DeleteContextRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteContextRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryExecutionInputsAndOutputsRequest to JSON. + * Converts this DeleteContextRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryExecutionInputsAndOutputsRequest + * Gets the default type url for DeleteContextRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateMetadataSchemaRequest. */ - interface ICreateMetadataSchemaRequest { + /** Properties of a PurgeContextsRequest. */ + interface IPurgeContextsRequest { - /** CreateMetadataSchemaRequest parent */ + /** PurgeContextsRequest parent */ parent?: (string|null); - /** CreateMetadataSchemaRequest metadataSchema */ - metadataSchema?: (google.cloud.aiplatform.v1.IMetadataSchema|null); + /** PurgeContextsRequest filter */ + filter?: (string|null); - /** CreateMetadataSchemaRequest metadataSchemaId */ - metadataSchemaId?: (string|null); + /** PurgeContextsRequest force */ + force?: (boolean|null); } - /** Represents a CreateMetadataSchemaRequest. */ - class CreateMetadataSchemaRequest implements ICreateMetadataSchemaRequest { + /** Represents a PurgeContextsRequest. */ + class PurgeContextsRequest implements IPurgeContextsRequest { /** - * Constructs a new CreateMetadataSchemaRequest. + * Constructs a new PurgeContextsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest); + constructor(properties?: google.cloud.aiplatform.v1.IPurgeContextsRequest); - /** CreateMetadataSchemaRequest parent. */ + /** PurgeContextsRequest parent. */ public parent: string; - /** CreateMetadataSchemaRequest metadataSchema. */ - public metadataSchema?: (google.cloud.aiplatform.v1.IMetadataSchema|null); + /** PurgeContextsRequest filter. */ + public filter: string; - /** CreateMetadataSchemaRequest metadataSchemaId. */ - public metadataSchemaId: string; + /** PurgeContextsRequest force. */ + public force: boolean; /** - * Creates a new CreateMetadataSchemaRequest instance using the specified properties. + * Creates a new PurgeContextsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateMetadataSchemaRequest instance + * @returns PurgeContextsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest): google.cloud.aiplatform.v1.CreateMetadataSchemaRequest; + public static create(properties?: google.cloud.aiplatform.v1.IPurgeContextsRequest): google.cloud.aiplatform.v1.PurgeContextsRequest; /** - * Encodes the specified CreateMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.verify|verify} messages. - * @param message CreateMetadataSchemaRequest message or plain object to encode + * Encodes the specified PurgeContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsRequest.verify|verify} messages. + * @param message PurgeContextsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPurgeContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.verify|verify} messages. - * @param message CreateMetadataSchemaRequest message or plain object to encode + * Encodes the specified PurgeContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsRequest.verify|verify} messages. + * @param message PurgeContextsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeContextsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer. + * Decodes a PurgeContextsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateMetadataSchemaRequest + * @returns PurgeContextsRequest * @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.CreateMetadataSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeContextsRequest; /** - * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateMetadataSchemaRequest + * @returns PurgeContextsRequest * @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.CreateMetadataSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeContextsRequest; /** - * Verifies a CreateMetadataSchemaRequest message. + * Verifies a PurgeContextsRequest 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 CreateMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateMetadataSchemaRequest + * @returns PurgeContextsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateMetadataSchemaRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeContextsRequest; /** - * Creates a plain object from a CreateMetadataSchemaRequest message. Also converts values to other types if specified. - * @param message CreateMetadataSchemaRequest + * Creates a plain object from a PurgeContextsRequest message. Also converts values to other types if specified. + * @param message PurgeContextsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateMetadataSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PurgeContextsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateMetadataSchemaRequest to JSON. + * Converts this PurgeContextsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateMetadataSchemaRequest + * Gets the default type url for PurgeContextsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetMetadataSchemaRequest. */ - interface IGetMetadataSchemaRequest { + /** Properties of a PurgeContextsResponse. */ + interface IPurgeContextsResponse { - /** GetMetadataSchemaRequest name */ - name?: (string|null); + /** PurgeContextsResponse purgeCount */ + purgeCount?: (number|Long|string|null); + + /** PurgeContextsResponse purgeSample */ + purgeSample?: (string[]|null); } - /** Represents a GetMetadataSchemaRequest. */ - class GetMetadataSchemaRequest implements IGetMetadataSchemaRequest { + /** Represents a PurgeContextsResponse. */ + class PurgeContextsResponse implements IPurgeContextsResponse { /** - * Constructs a new GetMetadataSchemaRequest. + * Constructs a new PurgeContextsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest); + constructor(properties?: google.cloud.aiplatform.v1.IPurgeContextsResponse); - /** GetMetadataSchemaRequest name. */ - public name: string; + /** PurgeContextsResponse purgeCount. */ + public purgeCount: (number|Long|string); + + /** PurgeContextsResponse purgeSample. */ + public purgeSample: string[]; /** - * Creates a new GetMetadataSchemaRequest instance using the specified properties. + * Creates a new PurgeContextsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetMetadataSchemaRequest instance + * @returns PurgeContextsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest): google.cloud.aiplatform.v1.GetMetadataSchemaRequest; + public static create(properties?: google.cloud.aiplatform.v1.IPurgeContextsResponse): google.cloud.aiplatform.v1.PurgeContextsResponse; /** - * Encodes the specified GetMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataSchemaRequest.verify|verify} messages. - * @param message GetMetadataSchemaRequest message or plain object to encode + * Encodes the specified PurgeContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsResponse.verify|verify} messages. + * @param message PurgeContextsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPurgeContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataSchemaRequest.verify|verify} messages. - * @param message GetMetadataSchemaRequest message or plain object to encode + * Encodes the specified PurgeContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsResponse.verify|verify} messages. + * @param message PurgeContextsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeContextsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer. + * Decodes a PurgeContextsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetMetadataSchemaRequest + * @returns PurgeContextsResponse * @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.GetMetadataSchemaRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeContextsResponse; /** - * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetMetadataSchemaRequest + * @returns PurgeContextsResponse * @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.GetMetadataSchemaRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeContextsResponse; /** - * Verifies a GetMetadataSchemaRequest message. + * Verifies a PurgeContextsResponse 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 GetMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetMetadataSchemaRequest + * @returns PurgeContextsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetMetadataSchemaRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeContextsResponse; /** - * Creates a plain object from a GetMetadataSchemaRequest message. Also converts values to other types if specified. - * @param message GetMetadataSchemaRequest + * Creates a plain object from a PurgeContextsResponse message. Also converts values to other types if specified. + * @param message PurgeContextsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetMetadataSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PurgeContextsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetMetadataSchemaRequest to JSON. + * Converts this PurgeContextsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetMetadataSchemaRequest + * Gets the default type url for PurgeContextsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListMetadataSchemasRequest. */ - interface IListMetadataSchemasRequest { - - /** ListMetadataSchemasRequest parent */ - parent?: (string|null); - - /** ListMetadataSchemasRequest pageSize */ - pageSize?: (number|null); - - /** ListMetadataSchemasRequest pageToken */ - pageToken?: (string|null); + /** Properties of a PurgeContextsMetadata. */ + interface IPurgeContextsMetadata { - /** ListMetadataSchemasRequest filter */ - filter?: (string|null); + /** PurgeContextsMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents a ListMetadataSchemasRequest. */ - class ListMetadataSchemasRequest implements IListMetadataSchemasRequest { + /** Represents a PurgeContextsMetadata. */ + class PurgeContextsMetadata implements IPurgeContextsMetadata { /** - * Constructs a new ListMetadataSchemasRequest. + * Constructs a new PurgeContextsMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListMetadataSchemasRequest); + constructor(properties?: google.cloud.aiplatform.v1.IPurgeContextsMetadata); - /** ListMetadataSchemasRequest parent. */ - public parent: string; - - /** ListMetadataSchemasRequest pageSize. */ - public pageSize: number; - - /** ListMetadataSchemasRequest pageToken. */ - public pageToken: string; - - /** ListMetadataSchemasRequest filter. */ - public filter: string; + /** PurgeContextsMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new ListMetadataSchemasRequest instance using the specified properties. + * Creates a new PurgeContextsMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListMetadataSchemasRequest instance + * @returns PurgeContextsMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListMetadataSchemasRequest): google.cloud.aiplatform.v1.ListMetadataSchemasRequest; + public static create(properties?: google.cloud.aiplatform.v1.IPurgeContextsMetadata): google.cloud.aiplatform.v1.PurgeContextsMetadata; /** - * Encodes the specified ListMetadataSchemasRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasRequest.verify|verify} messages. - * @param message ListMetadataSchemasRequest message or plain object to encode + * Encodes the specified PurgeContextsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsMetadata.verify|verify} messages. + * @param message PurgeContextsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListMetadataSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPurgeContextsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListMetadataSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasRequest.verify|verify} messages. - * @param message ListMetadataSchemasRequest message or plain object to encode + * Encodes the specified PurgeContextsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsMetadata.verify|verify} messages. + * @param message PurgeContextsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListMetadataSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeContextsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer. + * Decodes a PurgeContextsMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListMetadataSchemasRequest + * @returns PurgeContextsMetadata * @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.ListMetadataSchemasRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeContextsMetadata; /** - * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListMetadataSchemasRequest + * @returns PurgeContextsMetadata * @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.ListMetadataSchemasRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeContextsMetadata; /** - * Verifies a ListMetadataSchemasRequest message. + * Verifies a PurgeContextsMetadata 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 ListMetadataSchemasRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListMetadataSchemasRequest + * @returns PurgeContextsMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListMetadataSchemasRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeContextsMetadata; /** - * Creates a plain object from a ListMetadataSchemasRequest message. Also converts values to other types if specified. - * @param message ListMetadataSchemasRequest + * Creates a plain object from a PurgeContextsMetadata message. Also converts values to other types if specified. + * @param message PurgeContextsMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListMetadataSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PurgeContextsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListMetadataSchemasRequest to JSON. + * Converts this PurgeContextsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListMetadataSchemasRequest + * Gets the default type url for PurgeContextsMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListMetadataSchemasResponse. */ - interface IListMetadataSchemasResponse { + /** Properties of an AddContextArtifactsAndExecutionsRequest. */ + interface IAddContextArtifactsAndExecutionsRequest { - /** ListMetadataSchemasResponse metadataSchemas */ - metadataSchemas?: (google.cloud.aiplatform.v1.IMetadataSchema[]|null); + /** AddContextArtifactsAndExecutionsRequest context */ + context?: (string|null); - /** ListMetadataSchemasResponse nextPageToken */ - nextPageToken?: (string|null); + /** AddContextArtifactsAndExecutionsRequest artifacts */ + artifacts?: (string[]|null); + + /** AddContextArtifactsAndExecutionsRequest executions */ + executions?: (string[]|null); } - /** Represents a ListMetadataSchemasResponse. */ - class ListMetadataSchemasResponse implements IListMetadataSchemasResponse { + /** Represents an AddContextArtifactsAndExecutionsRequest. */ + class AddContextArtifactsAndExecutionsRequest implements IAddContextArtifactsAndExecutionsRequest { /** - * Constructs a new ListMetadataSchemasResponse. + * Constructs a new AddContextArtifactsAndExecutionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListMetadataSchemasResponse); + constructor(properties?: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest); - /** ListMetadataSchemasResponse metadataSchemas. */ - public metadataSchemas: google.cloud.aiplatform.v1.IMetadataSchema[]; + /** AddContextArtifactsAndExecutionsRequest context. */ + public context: string; - /** ListMetadataSchemasResponse nextPageToken. */ - public nextPageToken: string; + /** AddContextArtifactsAndExecutionsRequest artifacts. */ + public artifacts: string[]; + + /** AddContextArtifactsAndExecutionsRequest executions. */ + public executions: string[]; /** - * Creates a new ListMetadataSchemasResponse instance using the specified properties. + * Creates a new AddContextArtifactsAndExecutionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListMetadataSchemasResponse instance + * @returns AddContextArtifactsAndExecutionsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListMetadataSchemasResponse): google.cloud.aiplatform.v1.ListMetadataSchemasResponse; + public static create(properties?: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest; /** - * Encodes the specified ListMetadataSchemasResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasResponse.verify|verify} messages. - * @param message ListMetadataSchemasResponse message or plain object to encode + * Encodes the specified AddContextArtifactsAndExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. + * @param message AddContextArtifactsAndExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListMetadataSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListMetadataSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasResponse.verify|verify} messages. - * @param message ListMetadataSchemasResponse message or plain object to encode + * Encodes the specified AddContextArtifactsAndExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. + * @param message AddContextArtifactsAndExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListMetadataSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer. + * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListMetadataSchemasResponse + * @returns AddContextArtifactsAndExecutionsRequest * @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.ListMetadataSchemasResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest; /** - * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer, length delimited. + * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListMetadataSchemasResponse + * @returns AddContextArtifactsAndExecutionsRequest * @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.ListMetadataSchemasResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest; /** - * Verifies a ListMetadataSchemasResponse message. + * Verifies an AddContextArtifactsAndExecutionsRequest 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 ListMetadataSchemasResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextArtifactsAndExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListMetadataSchemasResponse + * @returns AddContextArtifactsAndExecutionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListMetadataSchemasResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest; /** - * Creates a plain object from a ListMetadataSchemasResponse message. Also converts values to other types if specified. - * @param message ListMetadataSchemasResponse + * Creates a plain object from an AddContextArtifactsAndExecutionsRequest message. Also converts values to other types if specified. + * @param message AddContextArtifactsAndExecutionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListMetadataSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListMetadataSchemasResponse to JSON. + * Converts this AddContextArtifactsAndExecutionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListMetadataSchemasResponse + * Gets the default type url for AddContextArtifactsAndExecutionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a QueryArtifactLineageSubgraphRequest. */ - interface IQueryArtifactLineageSubgraphRequest { - - /** QueryArtifactLineageSubgraphRequest artifact */ - artifact?: (string|null); - - /** QueryArtifactLineageSubgraphRequest maxHops */ - maxHops?: (number|null); - - /** QueryArtifactLineageSubgraphRequest filter */ - filter?: (string|null); + /** Properties of an AddContextArtifactsAndExecutionsResponse. */ + interface IAddContextArtifactsAndExecutionsResponse { } - /** Represents a QueryArtifactLineageSubgraphRequest. */ - class QueryArtifactLineageSubgraphRequest implements IQueryArtifactLineageSubgraphRequest { + /** Represents an AddContextArtifactsAndExecutionsResponse. */ + class AddContextArtifactsAndExecutionsResponse implements IAddContextArtifactsAndExecutionsResponse { /** - * Constructs a new QueryArtifactLineageSubgraphRequest. + * Constructs a new AddContextArtifactsAndExecutionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest); - - /** QueryArtifactLineageSubgraphRequest artifact. */ - public artifact: string; - - /** QueryArtifactLineageSubgraphRequest maxHops. */ - public maxHops: number; - - /** QueryArtifactLineageSubgraphRequest filter. */ - public filter: string; + constructor(properties?: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse); /** - * Creates a new QueryArtifactLineageSubgraphRequest instance using the specified properties. + * Creates a new AddContextArtifactsAndExecutionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns QueryArtifactLineageSubgraphRequest instance + * @returns AddContextArtifactsAndExecutionsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest): google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest; + public static create(properties?: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse; /** - * Encodes the specified QueryArtifactLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. - * @param message QueryArtifactLineageSubgraphRequest message or plain object to encode + * Encodes the specified AddContextArtifactsAndExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. + * @param message AddContextArtifactsAndExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryArtifactLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. - * @param message QueryArtifactLineageSubgraphRequest message or plain object to encode + * Encodes the specified AddContextArtifactsAndExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. + * @param message AddContextArtifactsAndExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer. + * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryArtifactLineageSubgraphRequest + * @returns AddContextArtifactsAndExecutionsResponse * @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.QueryArtifactLineageSubgraphRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse; /** - * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryArtifactLineageSubgraphRequest + * @returns AddContextArtifactsAndExecutionsResponse * @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.QueryArtifactLineageSubgraphRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse; /** - * Verifies a QueryArtifactLineageSubgraphRequest message. + * Verifies an AddContextArtifactsAndExecutionsResponse 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 QueryArtifactLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextArtifactsAndExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryArtifactLineageSubgraphRequest + * @returns AddContextArtifactsAndExecutionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse; /** - * Creates a plain object from a QueryArtifactLineageSubgraphRequest message. Also converts values to other types if specified. - * @param message QueryArtifactLineageSubgraphRequest + * Creates a plain object from an AddContextArtifactsAndExecutionsResponse message. Also converts values to other types if specified. + * @param message AddContextArtifactsAndExecutionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryArtifactLineageSubgraphRequest to JSON. + * Converts this AddContextArtifactsAndExecutionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryArtifactLineageSubgraphRequest + * Gets the default type url for AddContextArtifactsAndExecutionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MetadataStore. */ - interface IMetadataStore { - - /** MetadataStore name */ - name?: (string|null); - - /** MetadataStore createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** MetadataStore updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** MetadataStore encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** Properties of an AddContextChildrenRequest. */ + interface IAddContextChildrenRequest { - /** MetadataStore description */ - description?: (string|null); + /** AddContextChildrenRequest context */ + context?: (string|null); - /** MetadataStore state */ - state?: (google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState|null); + /** AddContextChildrenRequest childContexts */ + childContexts?: (string[]|null); } - /** Represents a MetadataStore. */ - class MetadataStore implements IMetadataStore { + /** Represents an AddContextChildrenRequest. */ + class AddContextChildrenRequest implements IAddContextChildrenRequest { /** - * Constructs a new MetadataStore. + * Constructs a new AddContextChildrenRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IMetadataStore); - - /** MetadataStore name. */ - public name: string; - - /** MetadataStore createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** MetadataStore updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** MetadataStore encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + constructor(properties?: google.cloud.aiplatform.v1.IAddContextChildrenRequest); - /** MetadataStore description. */ - public description: string; + /** AddContextChildrenRequest context. */ + public context: string; - /** MetadataStore state. */ - public state?: (google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState|null); + /** AddContextChildrenRequest childContexts. */ + public childContexts: string[]; /** - * Creates a new MetadataStore instance using the specified properties. + * Creates a new AddContextChildrenRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MetadataStore instance + * @returns AddContextChildrenRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IMetadataStore): google.cloud.aiplatform.v1.MetadataStore; + public static create(properties?: google.cloud.aiplatform.v1.IAddContextChildrenRequest): google.cloud.aiplatform.v1.AddContextChildrenRequest; /** - * Encodes the specified MetadataStore message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.verify|verify} messages. - * @param message MetadataStore message or plain object to encode + * Encodes the specified AddContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenRequest.verify|verify} messages. + * @param message AddContextChildrenRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IMetadataStore, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IAddContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MetadataStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.verify|verify} messages. - * @param message MetadataStore message or plain object to encode + * Encodes the specified AddContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenRequest.verify|verify} messages. + * @param message AddContextChildrenRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IMetadataStore, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MetadataStore message from the specified reader or buffer. + * Decodes an AddContextChildrenRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MetadataStore + * @returns AddContextChildrenRequest * @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.MetadataStore; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.AddContextChildrenRequest; /** - * Decodes a MetadataStore message from the specified reader or buffer, length delimited. + * Decodes an AddContextChildrenRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MetadataStore + * @returns AddContextChildrenRequest * @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.MetadataStore; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.AddContextChildrenRequest; /** - * Verifies a MetadataStore message. + * Verifies an AddContextChildrenRequest 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 MetadataStore message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextChildrenRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MetadataStore + * @returns AddContextChildrenRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MetadataStore; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddContextChildrenRequest; /** - * Creates a plain object from a MetadataStore message. Also converts values to other types if specified. - * @param message MetadataStore + * Creates a plain object from an AddContextChildrenRequest message. Also converts values to other types if specified. + * @param message AddContextChildrenRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.MetadataStore, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.AddContextChildrenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MetadataStore to JSON. + * Converts this AddContextChildrenRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MetadataStore + * Gets the default type url for AddContextChildrenRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MetadataStore { - - /** Properties of a MetadataStoreState. */ - interface IMetadataStoreState { - - /** MetadataStoreState diskUtilizationBytes */ - diskUtilizationBytes?: (number|Long|string|null); - } - - /** Represents a MetadataStoreState. */ - class MetadataStoreState implements IMetadataStoreState { - - /** - * Constructs a new MetadataStoreState. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState); - - /** MetadataStoreState diskUtilizationBytes. */ - public diskUtilizationBytes: (number|Long|string); - - /** - * Creates a new MetadataStoreState instance using the specified properties. - * @param [properties] Properties to set - * @returns MetadataStoreState instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState): google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState; - - /** - * Encodes the specified MetadataStoreState message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify|verify} messages. - * @param message MetadataStoreState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MetadataStoreState message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify|verify} messages. - * @param message MetadataStoreState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MetadataStoreState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MetadataStoreState - * @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.MetadataStore.MetadataStoreState; - - /** - * Decodes a MetadataStoreState message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MetadataStoreState - * @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.MetadataStore.MetadataStoreState; - - /** - * Verifies a MetadataStoreState 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 MetadataStoreState message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MetadataStoreState - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState; - - /** - * Creates a plain object from a MetadataStoreState message. Also converts values to other types if specified. - * @param message MetadataStoreState - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MetadataStoreState to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MetadataStoreState - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a MigratableResource. */ - interface IMigratableResource { - - /** MigratableResource mlEngineModelVersion */ - mlEngineModelVersion?: (google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion|null); - - /** MigratableResource automlModel */ - automlModel?: (google.cloud.aiplatform.v1.MigratableResource.IAutomlModel|null); - - /** MigratableResource automlDataset */ - automlDataset?: (google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset|null); - - /** MigratableResource dataLabelingDataset */ - dataLabelingDataset?: (google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset|null); - - /** MigratableResource lastMigrateTime */ - lastMigrateTime?: (google.protobuf.ITimestamp|null); - - /** MigratableResource lastUpdateTime */ - lastUpdateTime?: (google.protobuf.ITimestamp|null); + /** Properties of an AddContextChildrenResponse. */ + interface IAddContextChildrenResponse { } - /** Represents a MigratableResource. */ - class MigratableResource implements IMigratableResource { + /** Represents an AddContextChildrenResponse. */ + class AddContextChildrenResponse implements IAddContextChildrenResponse { /** - * Constructs a new MigratableResource. + * Constructs a new AddContextChildrenResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IMigratableResource); - - /** MigratableResource mlEngineModelVersion. */ - public mlEngineModelVersion?: (google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion|null); - - /** MigratableResource automlModel. */ - public automlModel?: (google.cloud.aiplatform.v1.MigratableResource.IAutomlModel|null); - - /** MigratableResource automlDataset. */ - public automlDataset?: (google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset|null); - - /** MigratableResource dataLabelingDataset. */ - public dataLabelingDataset?: (google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset|null); - - /** MigratableResource lastMigrateTime. */ - public lastMigrateTime?: (google.protobuf.ITimestamp|null); - - /** MigratableResource lastUpdateTime. */ - public lastUpdateTime?: (google.protobuf.ITimestamp|null); - - /** MigratableResource resource. */ - public resource?: ("mlEngineModelVersion"|"automlModel"|"automlDataset"|"dataLabelingDataset"); + constructor(properties?: google.cloud.aiplatform.v1.IAddContextChildrenResponse); /** - * Creates a new MigratableResource instance using the specified properties. + * Creates a new AddContextChildrenResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MigratableResource instance + * @returns AddContextChildrenResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IMigratableResource): google.cloud.aiplatform.v1.MigratableResource; + public static create(properties?: google.cloud.aiplatform.v1.IAddContextChildrenResponse): google.cloud.aiplatform.v1.AddContextChildrenResponse; /** - * Encodes the specified MigratableResource message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.verify|verify} messages. - * @param message MigratableResource message or plain object to encode + * Encodes the specified AddContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenResponse.verify|verify} messages. + * @param message AddContextChildrenResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IMigratableResource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IAddContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigratableResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.verify|verify} messages. - * @param message MigratableResource message or plain object to encode + * Encodes the specified AddContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenResponse.verify|verify} messages. + * @param message AddContextChildrenResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IMigratableResource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigratableResource message from the specified reader or buffer. + * Decodes an AddContextChildrenResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigratableResource + * @returns AddContextChildrenResponse * @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.MigratableResource; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.AddContextChildrenResponse; /** - * Decodes a MigratableResource message from the specified reader or buffer, length delimited. + * Decodes an AddContextChildrenResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigratableResource + * @returns AddContextChildrenResponse * @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.MigratableResource; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.AddContextChildrenResponse; /** - * Verifies a MigratableResource message. + * Verifies an AddContextChildrenResponse 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 MigratableResource message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextChildrenResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigratableResource + * @returns AddContextChildrenResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddContextChildrenResponse; /** - * Creates a plain object from a MigratableResource message. Also converts values to other types if specified. - * @param message MigratableResource + * Creates a plain object from an AddContextChildrenResponse message. Also converts values to other types if specified. + * @param message AddContextChildrenResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.MigratableResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.AddContextChildrenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigratableResource to JSON. + * Converts this AddContextChildrenResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MigratableResource + * Gets the default type url for AddContextChildrenResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MigratableResource { - - /** Properties of a MlEngineModelVersion. */ - interface IMlEngineModelVersion { + /** Properties of a RemoveContextChildrenRequest. */ + interface IRemoveContextChildrenRequest { - /** MlEngineModelVersion endpoint */ - endpoint?: (string|null); + /** RemoveContextChildrenRequest context */ + context?: (string|null); - /** MlEngineModelVersion version */ - version?: (string|null); - } + /** RemoveContextChildrenRequest childContexts */ + childContexts?: (string[]|null); + } - /** Represents a MlEngineModelVersion. */ - class MlEngineModelVersion implements IMlEngineModelVersion { + /** Represents a RemoveContextChildrenRequest. */ + class RemoveContextChildrenRequest implements IRemoveContextChildrenRequest { - /** - * Constructs a new MlEngineModelVersion. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion); + /** + * Constructs a new RemoveContextChildrenRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest); - /** MlEngineModelVersion endpoint. */ - public endpoint: string; + /** RemoveContextChildrenRequest context. */ + public context: string; - /** MlEngineModelVersion version. */ - public version: string; + /** RemoveContextChildrenRequest childContexts. */ + public childContexts: string[]; - /** - * Creates a new MlEngineModelVersion instance using the specified properties. - * @param [properties] Properties to set - * @returns MlEngineModelVersion instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion): google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion; + /** + * Creates a new RemoveContextChildrenRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveContextChildrenRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest): google.cloud.aiplatform.v1.RemoveContextChildrenRequest; - /** - * Encodes the specified MlEngineModelVersion message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify|verify} messages. - * @param message MlEngineModelVersion message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified RemoveContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. + * @param message RemoveContextChildrenRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MlEngineModelVersion message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify|verify} messages. - * @param message MlEngineModelVersion message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified RemoveContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. + * @param message RemoveContextChildrenRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IRemoveContextChildrenRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MlEngineModelVersion message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MlEngineModelVersion - * @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.MigratableResource.MlEngineModelVersion; + /** + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveContextChildrenRequest + * @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.RemoveContextChildrenRequest; - /** - * Decodes a MlEngineModelVersion message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MlEngineModelVersion - * @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.MigratableResource.MlEngineModelVersion; + /** + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveContextChildrenRequest + * @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.RemoveContextChildrenRequest; - /** - * Verifies a MlEngineModelVersion 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); + /** + * Verifies a RemoveContextChildrenRequest 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 MlEngineModelVersion message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MlEngineModelVersion - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion; + /** + * Creates a RemoveContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveContextChildrenRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RemoveContextChildrenRequest; - /** - * Creates a plain object from a MlEngineModelVersion message. Also converts values to other types if specified. - * @param message MlEngineModelVersion - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a RemoveContextChildrenRequest message. Also converts values to other types if specified. + * @param message RemoveContextChildrenRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.RemoveContextChildrenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this MlEngineModelVersion to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this RemoveContextChildrenRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for MlEngineModelVersion - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for RemoveContextChildrenRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of an AutomlModel. */ - interface IAutomlModel { + /** Properties of a RemoveContextChildrenResponse. */ + interface IRemoveContextChildrenResponse { + } - /** AutomlModel model */ - model?: (string|null); + /** Represents a RemoveContextChildrenResponse. */ + class RemoveContextChildrenResponse implements IRemoveContextChildrenResponse { - /** AutomlModel modelDisplayName */ - modelDisplayName?: (string|null); - } + /** + * Constructs a new RemoveContextChildrenResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse); - /** Represents an AutomlModel. */ - class AutomlModel implements IAutomlModel { + /** + * Creates a new RemoveContextChildrenResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns RemoveContextChildrenResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse): google.cloud.aiplatform.v1.RemoveContextChildrenResponse; - /** - * Constructs a new AutomlModel. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.IAutomlModel); + /** + * Encodes the specified RemoveContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. + * @param message RemoveContextChildrenResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** AutomlModel model. */ - public model: string; + /** + * Encodes the specified RemoveContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. + * @param message RemoveContextChildrenResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IRemoveContextChildrenResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** AutomlModel modelDisplayName. */ - public modelDisplayName: string; + /** + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RemoveContextChildrenResponse + * @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.RemoveContextChildrenResponse; - /** - * Creates a new AutomlModel instance using the specified properties. - * @param [properties] Properties to set - * @returns AutomlModel instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.IAutomlModel): google.cloud.aiplatform.v1.MigratableResource.AutomlModel; + /** + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RemoveContextChildrenResponse + * @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.RemoveContextChildrenResponse; - /** - * Encodes the specified AutomlModel message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify|verify} messages. - * @param message AutomlModel message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigratableResource.IAutomlModel, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a RemoveContextChildrenResponse 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); - /** - * Encodes the specified AutomlModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify|verify} messages. - * @param message AutomlModel message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.IAutomlModel, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a RemoveContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RemoveContextChildrenResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RemoveContextChildrenResponse; - /** - * Decodes an AutomlModel message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AutomlModel - * @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.MigratableResource.AutomlModel; + /** + * Creates a plain object from a RemoveContextChildrenResponse message. Also converts values to other types if specified. + * @param message RemoveContextChildrenResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.RemoveContextChildrenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes an AutomlModel message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AutomlModel - * @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.MigratableResource.AutomlModel; + /** + * Converts this RemoveContextChildrenResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Verifies an AutomlModel 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); + /** + * Gets the default type url for RemoveContextChildrenResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates an AutomlModel message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AutomlModel - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.AutomlModel; + /** Properties of a QueryContextLineageSubgraphRequest. */ + interface IQueryContextLineageSubgraphRequest { - /** - * Creates a plain object from an AutomlModel message. Also converts values to other types if specified. - * @param message AutomlModel - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.AutomlModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** QueryContextLineageSubgraphRequest context */ + context?: (string|null); + } - /** - * Converts this AutomlModel to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a QueryContextLineageSubgraphRequest. */ + class QueryContextLineageSubgraphRequest implements IQueryContextLineageSubgraphRequest { - /** - * Gets the default type url for AutomlModel - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new QueryContextLineageSubgraphRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest); - /** Properties of an AutomlDataset. */ - interface IAutomlDataset { + /** QueryContextLineageSubgraphRequest context. */ + public context: string; - /** AutomlDataset dataset */ - dataset?: (string|null); + /** + * Creates a new QueryContextLineageSubgraphRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns QueryContextLineageSubgraphRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest): google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest; - /** AutomlDataset datasetDisplayName */ - datasetDisplayName?: (string|null); - } + /** + * Encodes the specified QueryContextLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest.verify|verify} messages. + * @param message QueryContextLineageSubgraphRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents an AutomlDataset. */ - class AutomlDataset implements IAutomlDataset { + /** + * Encodes the specified QueryContextLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest.verify|verify} messages. + * @param message QueryContextLineageSubgraphRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new AutomlDataset. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset); + /** + * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns QueryContextLineageSubgraphRequest + * @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.QueryContextLineageSubgraphRequest; - /** AutomlDataset dataset. */ - public dataset: string; + /** + * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns QueryContextLineageSubgraphRequest + * @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.QueryContextLineageSubgraphRequest; - /** AutomlDataset datasetDisplayName. */ - public datasetDisplayName: string; + /** + * Verifies a QueryContextLineageSubgraphRequest 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 new AutomlDataset instance using the specified properties. - * @param [properties] Properties to set - * @returns AutomlDataset instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset): google.cloud.aiplatform.v1.MigratableResource.AutomlDataset; + /** + * Creates a QueryContextLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns QueryContextLineageSubgraphRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest; - /** - * Encodes the specified AutomlDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify|verify} messages. - * @param message AutomlDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a QueryContextLineageSubgraphRequest message. Also converts values to other types if specified. + * @param message QueryContextLineageSubgraphRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified AutomlDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify|verify} messages. - * @param message AutomlDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this QueryContextLineageSubgraphRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes an AutomlDataset message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AutomlDataset - * @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.MigratableResource.AutomlDataset; + /** + * Gets the default type url for QueryContextLineageSubgraphRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes an AutomlDataset message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AutomlDataset - * @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.MigratableResource.AutomlDataset; + /** Properties of a CreateExecutionRequest. */ + interface ICreateExecutionRequest { - /** - * Verifies an AutomlDataset 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); + /** CreateExecutionRequest parent */ + parent?: (string|null); - /** - * Creates an AutomlDataset message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AutomlDataset - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.AutomlDataset; + /** CreateExecutionRequest execution */ + execution?: (google.cloud.aiplatform.v1.IExecution|null); - /** - * Creates a plain object from an AutomlDataset message. Also converts values to other types if specified. - * @param message AutomlDataset - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.AutomlDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** CreateExecutionRequest executionId */ + executionId?: (string|null); + } - /** - * Converts this AutomlDataset to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a CreateExecutionRequest. */ + class CreateExecutionRequest implements ICreateExecutionRequest { - /** - * Gets the default type url for AutomlDataset - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DataLabelingDataset. */ - interface IDataLabelingDataset { - - /** DataLabelingDataset dataset */ - dataset?: (string|null); - - /** DataLabelingDataset datasetDisplayName */ - datasetDisplayName?: (string|null); - - /** DataLabelingDataset dataLabelingAnnotatedDatasets */ - dataLabelingAnnotatedDatasets?: (google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset[]|null); - } - - /** Represents a DataLabelingDataset. */ - class DataLabelingDataset implements IDataLabelingDataset { - - /** - * Constructs a new DataLabelingDataset. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset); - - /** DataLabelingDataset dataset. */ - public dataset: string; - - /** DataLabelingDataset datasetDisplayName. */ - public datasetDisplayName: string; - - /** DataLabelingDataset dataLabelingAnnotatedDatasets. */ - public dataLabelingAnnotatedDatasets: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset[]; - - /** - * Creates a new DataLabelingDataset instance using the specified properties. - * @param [properties] Properties to set - * @returns DataLabelingDataset instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset): google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset; - - /** - * Encodes the specified DataLabelingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify|verify} messages. - * @param message DataLabelingDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DataLabelingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify|verify} messages. - * @param message DataLabelingDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DataLabelingDataset message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DataLabelingDataset - * @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.MigratableResource.DataLabelingDataset; - - /** - * Decodes a DataLabelingDataset message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DataLabelingDataset - * @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.MigratableResource.DataLabelingDataset; - - /** - * Verifies a DataLabelingDataset 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 DataLabelingDataset message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DataLabelingDataset - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset; - - /** - * Creates a plain object from a DataLabelingDataset message. Also converts values to other types if specified. - * @param message DataLabelingDataset - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DataLabelingDataset to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DataLabelingDataset - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace DataLabelingDataset { - - /** Properties of a DataLabelingAnnotatedDataset. */ - interface IDataLabelingAnnotatedDataset { - - /** DataLabelingAnnotatedDataset annotatedDataset */ - annotatedDataset?: (string|null); - - /** DataLabelingAnnotatedDataset annotatedDatasetDisplayName */ - annotatedDatasetDisplayName?: (string|null); - } - - /** Represents a DataLabelingAnnotatedDataset. */ - class DataLabelingAnnotatedDataset implements IDataLabelingAnnotatedDataset { - - /** - * Constructs a new DataLabelingAnnotatedDataset. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset); - - /** DataLabelingAnnotatedDataset annotatedDataset. */ - public annotatedDataset: string; - - /** DataLabelingAnnotatedDataset annotatedDatasetDisplayName. */ - public annotatedDatasetDisplayName: string; - - /** - * Creates a new DataLabelingAnnotatedDataset instance using the specified properties. - * @param [properties] Properties to set - * @returns DataLabelingAnnotatedDataset instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset): google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; - - /** - * Encodes the specified DataLabelingAnnotatedDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. - * @param message DataLabelingAnnotatedDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DataLabelingAnnotatedDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. - * @param message DataLabelingAnnotatedDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DataLabelingAnnotatedDataset - * @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.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; - - /** - * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DataLabelingAnnotatedDataset - * @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.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; - - /** - * Verifies a DataLabelingAnnotatedDataset 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 DataLabelingAnnotatedDataset message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DataLabelingAnnotatedDataset - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + /** + * Constructs a new CreateExecutionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateExecutionRequest); - /** - * Creates a plain object from a DataLabelingAnnotatedDataset message. Also converts values to other types if specified. - * @param message DataLabelingAnnotatedDataset - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** CreateExecutionRequest parent. */ + public parent: string; - /** - * Converts this DataLabelingAnnotatedDataset to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** CreateExecutionRequest execution. */ + public execution?: (google.cloud.aiplatform.v1.IExecution|null); - /** - * Gets the default type url for DataLabelingAnnotatedDataset - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } + /** CreateExecutionRequest executionId. */ + public executionId: string; - /** Represents a MigrationService */ - class MigrationService extends $protobuf.rpc.Service { + /** + * Creates a new CreateExecutionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateExecutionRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateExecutionRequest): google.cloud.aiplatform.v1.CreateExecutionRequest; /** - * Constructs a new MigrationService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Encodes the specified CreateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateExecutionRequest.verify|verify} messages. + * @param message CreateExecutionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static encode(message: google.cloud.aiplatform.v1.ICreateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Creates new MigrationService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Encodes the specified CreateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateExecutionRequest.verify|verify} messages. + * @param message CreateExecutionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MigrationService; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls SearchMigratableResources. - * @param request SearchMigratableResourcesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SearchMigratableResourcesResponse + * Decodes a CreateExecutionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateExecutionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public searchMigratableResources(request: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest, callback: google.cloud.aiplatform.v1.MigrationService.SearchMigratableResourcesCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateExecutionRequest; /** - * Calls SearchMigratableResources. - * @param request SearchMigratableResourcesRequest message or plain object - * @returns Promise + * Decodes a CreateExecutionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateExecutionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public searchMigratableResources(request: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateExecutionRequest; /** - * Calls BatchMigrateResources. - * @param request BatchMigrateResourcesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Verifies a CreateExecutionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public batchMigrateResources(request: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest, callback: google.cloud.aiplatform.v1.MigrationService.BatchMigrateResourcesCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls BatchMigrateResources. - * @param request BatchMigrateResourcesRequest message or plain object - * @returns Promise + * Creates a CreateExecutionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateExecutionRequest */ - public batchMigrateResources(request: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest): Promise; - } + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateExecutionRequest; - namespace MigrationService { + /** + * Creates a plain object from a CreateExecutionRequest message. Also converts values to other types if specified. + * @param message CreateExecutionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreateExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MigrationService|searchMigratableResources}. - * @param error Error, if any - * @param [response] SearchMigratableResourcesResponse + * Converts this CreateExecutionRequest to JSON. + * @returns JSON object */ - type SearchMigratableResourcesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.SearchMigratableResourcesResponse) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MigrationService|batchMigrateResources}. - * @param error Error, if any - * @param [response] Operation + * Gets the default type url for CreateExecutionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type BatchMigrateResourcesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchMigratableResourcesRequest. */ - interface ISearchMigratableResourcesRequest { - - /** SearchMigratableResourcesRequest parent */ - parent?: (string|null); - - /** SearchMigratableResourcesRequest pageSize */ - pageSize?: (number|null); - - /** SearchMigratableResourcesRequest pageToken */ - pageToken?: (string|null); + /** Properties of a GetExecutionRequest. */ + interface IGetExecutionRequest { - /** SearchMigratableResourcesRequest filter */ - filter?: (string|null); + /** GetExecutionRequest name */ + name?: (string|null); } - /** Represents a SearchMigratableResourcesRequest. */ - class SearchMigratableResourcesRequest implements ISearchMigratableResourcesRequest { + /** Represents a GetExecutionRequest. */ + class GetExecutionRequest implements IGetExecutionRequest { /** - * Constructs a new SearchMigratableResourcesRequest. + * Constructs a new GetExecutionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest); - - /** SearchMigratableResourcesRequest parent. */ - public parent: string; - - /** SearchMigratableResourcesRequest pageSize. */ - public pageSize: number; - - /** SearchMigratableResourcesRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1.IGetExecutionRequest); - /** SearchMigratableResourcesRequest filter. */ - public filter: string; + /** GetExecutionRequest name. */ + public name: string; /** - * Creates a new SearchMigratableResourcesRequest instance using the specified properties. + * Creates a new GetExecutionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchMigratableResourcesRequest instance + * @returns GetExecutionRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest): google.cloud.aiplatform.v1.SearchMigratableResourcesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IGetExecutionRequest): google.cloud.aiplatform.v1.GetExecutionRequest; /** - * Encodes the specified SearchMigratableResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesRequest.verify|verify} messages. - * @param message SearchMigratableResourcesRequest message or plain object to encode + * Encodes the specified GetExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetExecutionRequest.verify|verify} messages. + * @param message GetExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchMigratableResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesRequest.verify|verify} messages. - * @param message SearchMigratableResourcesRequest message or plain object to encode + * Encodes the specified GetExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetExecutionRequest.verify|verify} messages. + * @param message GetExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer. + * Decodes a GetExecutionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchMigratableResourcesRequest + * @returns GetExecutionRequest * @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.SearchMigratableResourcesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetExecutionRequest; /** - * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetExecutionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchMigratableResourcesRequest + * @returns GetExecutionRequest * @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.SearchMigratableResourcesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetExecutionRequest; /** - * Verifies a SearchMigratableResourcesRequest message. + * Verifies a GetExecutionRequest 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 SearchMigratableResourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetExecutionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchMigratableResourcesRequest + * @returns GetExecutionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchMigratableResourcesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetExecutionRequest; /** - * Creates a plain object from a SearchMigratableResourcesRequest message. Also converts values to other types if specified. - * @param message SearchMigratableResourcesRequest + * Creates a plain object from a GetExecutionRequest message. Also converts values to other types if specified. + * @param message GetExecutionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SearchMigratableResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchMigratableResourcesRequest to JSON. + * Converts this GetExecutionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchMigratableResourcesRequest + * Gets the default type url for GetExecutionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchMigratableResourcesResponse. */ - interface ISearchMigratableResourcesResponse { + /** Properties of a ListExecutionsRequest. */ + interface IListExecutionsRequest { - /** SearchMigratableResourcesResponse migratableResources */ - migratableResources?: (google.cloud.aiplatform.v1.IMigratableResource[]|null); + /** ListExecutionsRequest parent */ + parent?: (string|null); - /** SearchMigratableResourcesResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListExecutionsRequest pageSize */ + pageSize?: (number|null); + + /** ListExecutionsRequest pageToken */ + pageToken?: (string|null); + + /** ListExecutionsRequest filter */ + filter?: (string|null); + + /** ListExecutionsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a SearchMigratableResourcesResponse. */ - class SearchMigratableResourcesResponse implements ISearchMigratableResourcesResponse { + /** Represents a ListExecutionsRequest. */ + class ListExecutionsRequest implements IListExecutionsRequest { /** - * Constructs a new SearchMigratableResourcesResponse. + * Constructs a new ListExecutionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListExecutionsRequest); - /** SearchMigratableResourcesResponse migratableResources. */ - public migratableResources: google.cloud.aiplatform.v1.IMigratableResource[]; + /** ListExecutionsRequest parent. */ + public parent: string; - /** SearchMigratableResourcesResponse nextPageToken. */ - public nextPageToken: string; + /** ListExecutionsRequest pageSize. */ + public pageSize: number; + + /** ListExecutionsRequest pageToken. */ + public pageToken: string; + + /** ListExecutionsRequest filter. */ + public filter: string; + + /** ListExecutionsRequest orderBy. */ + public orderBy: string; /** - * Creates a new SearchMigratableResourcesResponse instance using the specified properties. + * Creates a new ListExecutionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchMigratableResourcesResponse instance + * @returns ListExecutionsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse): google.cloud.aiplatform.v1.SearchMigratableResourcesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListExecutionsRequest): google.cloud.aiplatform.v1.ListExecutionsRequest; /** - * Encodes the specified SearchMigratableResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.verify|verify} messages. - * @param message SearchMigratableResourcesResponse message or plain object to encode + * Encodes the specified ListExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsRequest.verify|verify} messages. + * @param message ListExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchMigratableResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.verify|verify} messages. - * @param message SearchMigratableResourcesResponse message or plain object to encode + * Encodes the specified ListExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsRequest.verify|verify} messages. + * @param message ListExecutionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer. + * Decodes a ListExecutionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchMigratableResourcesResponse + * @returns ListExecutionsRequest * @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.SearchMigratableResourcesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListExecutionsRequest; /** - * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListExecutionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchMigratableResourcesResponse + * @returns ListExecutionsRequest * @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.SearchMigratableResourcesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListExecutionsRequest; /** - * Verifies a SearchMigratableResourcesResponse message. + * Verifies a ListExecutionsRequest 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 SearchMigratableResourcesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchMigratableResourcesResponse + * @returns ListExecutionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchMigratableResourcesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListExecutionsRequest; /** - * Creates a plain object from a SearchMigratableResourcesResponse message. Also converts values to other types if specified. - * @param message SearchMigratableResourcesResponse + * Creates a plain object from a ListExecutionsRequest message. Also converts values to other types if specified. + * @param message ListExecutionsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SearchMigratableResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchMigratableResourcesResponse to JSON. + * Converts this ListExecutionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchMigratableResourcesResponse + * Gets the default type url for ListExecutionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchMigrateResourcesRequest. */ - interface IBatchMigrateResourcesRequest { + /** Properties of a ListExecutionsResponse. */ + interface IListExecutionsResponse { - /** BatchMigrateResourcesRequest parent */ - parent?: (string|null); + /** ListExecutionsResponse executions */ + executions?: (google.cloud.aiplatform.v1.IExecution[]|null); - /** BatchMigrateResourcesRequest migrateResourceRequests */ - migrateResourceRequests?: (google.cloud.aiplatform.v1.IMigrateResourceRequest[]|null); - } + /** ListExecutionsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Represents a BatchMigrateResourcesRequest. */ - class BatchMigrateResourcesRequest implements IBatchMigrateResourcesRequest { + /** Represents a ListExecutionsResponse. */ + class ListExecutionsResponse implements IListExecutionsResponse { /** - * Constructs a new BatchMigrateResourcesRequest. + * Constructs a new ListExecutionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListExecutionsResponse); - /** BatchMigrateResourcesRequest parent. */ - public parent: string; + /** ListExecutionsResponse executions. */ + public executions: google.cloud.aiplatform.v1.IExecution[]; - /** BatchMigrateResourcesRequest migrateResourceRequests. */ - public migrateResourceRequests: google.cloud.aiplatform.v1.IMigrateResourceRequest[]; + /** ListExecutionsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new BatchMigrateResourcesRequest instance using the specified properties. + * Creates a new ListExecutionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchMigrateResourcesRequest instance + * @returns ListExecutionsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest): google.cloud.aiplatform.v1.BatchMigrateResourcesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListExecutionsResponse): google.cloud.aiplatform.v1.ListExecutionsResponse; /** - * Encodes the specified BatchMigrateResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.verify|verify} messages. - * @param message BatchMigrateResourcesRequest message or plain object to encode + * Encodes the specified ListExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsResponse.verify|verify} messages. + * @param message ListExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchMigrateResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.verify|verify} messages. - * @param message BatchMigrateResourcesRequest message or plain object to encode + * Encodes the specified ListExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsResponse.verify|verify} messages. + * @param message ListExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer. + * Decodes a ListExecutionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchMigrateResourcesRequest + * @returns ListExecutionsResponse * @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.BatchMigrateResourcesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListExecutionsResponse; /** - * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExecutionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchMigrateResourcesRequest + * @returns ListExecutionsResponse * @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.BatchMigrateResourcesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListExecutionsResponse; /** - * Verifies a BatchMigrateResourcesRequest message. + * Verifies a ListExecutionsResponse 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 BatchMigrateResourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchMigrateResourcesRequest + * @returns ListExecutionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchMigrateResourcesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListExecutionsResponse; /** - * Creates a plain object from a BatchMigrateResourcesRequest message. Also converts values to other types if specified. - * @param message BatchMigrateResourcesRequest + * Creates a plain object from a ListExecutionsResponse message. Also converts values to other types if specified. + * @param message ListExecutionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchMigrateResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchMigrateResourcesRequest to JSON. + * Converts this ListExecutionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchMigrateResourcesRequest + * Gets the default type url for ListExecutionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MigrateResourceRequest. */ - interface IMigrateResourceRequest { - - /** MigrateResourceRequest migrateMlEngineModelVersionConfig */ - migrateMlEngineModelVersionConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null); + /** Properties of an UpdateExecutionRequest. */ + interface IUpdateExecutionRequest { - /** MigrateResourceRequest migrateAutomlModelConfig */ - migrateAutomlModelConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig|null); + /** UpdateExecutionRequest execution */ + execution?: (google.cloud.aiplatform.v1.IExecution|null); - /** MigrateResourceRequest migrateAutomlDatasetConfig */ - migrateAutomlDatasetConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null); + /** UpdateExecutionRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** MigrateResourceRequest migrateDataLabelingDatasetConfig */ - migrateDataLabelingDatasetConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null); + /** UpdateExecutionRequest allowMissing */ + allowMissing?: (boolean|null); } - /** Represents a MigrateResourceRequest. */ - class MigrateResourceRequest implements IMigrateResourceRequest { + /** Represents an UpdateExecutionRequest. */ + class UpdateExecutionRequest implements IUpdateExecutionRequest { /** - * Constructs a new MigrateResourceRequest. + * Constructs a new UpdateExecutionRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IMigrateResourceRequest); - - /** MigrateResourceRequest migrateMlEngineModelVersionConfig. */ - public migrateMlEngineModelVersionConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null); - - /** MigrateResourceRequest migrateAutomlModelConfig. */ - public migrateAutomlModelConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig|null); + constructor(properties?: google.cloud.aiplatform.v1.IUpdateExecutionRequest); - /** MigrateResourceRequest migrateAutomlDatasetConfig. */ - public migrateAutomlDatasetConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null); + /** UpdateExecutionRequest execution. */ + public execution?: (google.cloud.aiplatform.v1.IExecution|null); - /** MigrateResourceRequest migrateDataLabelingDatasetConfig. */ - public migrateDataLabelingDatasetConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null); + /** UpdateExecutionRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** MigrateResourceRequest request. */ - public request?: ("migrateMlEngineModelVersionConfig"|"migrateAutomlModelConfig"|"migrateAutomlDatasetConfig"|"migrateDataLabelingDatasetConfig"); + /** UpdateExecutionRequest allowMissing. */ + public allowMissing: boolean; /** - * Creates a new MigrateResourceRequest instance using the specified properties. + * Creates a new UpdateExecutionRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateResourceRequest instance + * @returns UpdateExecutionRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IMigrateResourceRequest): google.cloud.aiplatform.v1.MigrateResourceRequest; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateExecutionRequest): google.cloud.aiplatform.v1.UpdateExecutionRequest; /** - * Encodes the specified MigrateResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.verify|verify} messages. - * @param message MigrateResourceRequest message or plain object to encode + * Encodes the specified UpdateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateExecutionRequest.verify|verify} messages. + * @param message UpdateExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IMigrateResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IUpdateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigrateResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.verify|verify} messages. - * @param message MigrateResourceRequest message or plain object to encode + * Encodes the specified UpdateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateExecutionRequest.verify|verify} messages. + * @param message UpdateExecutionRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IMigrateResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateResourceRequest message from the specified reader or buffer. + * Decodes an UpdateExecutionRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigrateResourceRequest + * @returns UpdateExecutionRequest * @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.MigrateResourceRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateExecutionRequest; /** - * Decodes a MigrateResourceRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExecutionRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateResourceRequest + * @returns UpdateExecutionRequest * @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.MigrateResourceRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateExecutionRequest; /** - * Verifies a MigrateResourceRequest message. + * Verifies an UpdateExecutionRequest 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 MigrateResourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExecutionRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateResourceRequest + * @returns UpdateExecutionRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateExecutionRequest; /** - * Creates a plain object from a MigrateResourceRequest message. Also converts values to other types if specified. - * @param message MigrateResourceRequest + * Creates a plain object from an UpdateExecutionRequest message. Also converts values to other types if specified. + * @param message UpdateExecutionRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UpdateExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateResourceRequest to JSON. + * Converts this UpdateExecutionRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MigrateResourceRequest + * Gets the default type url for UpdateExecutionRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace MigrateResourceRequest { + /** Properties of a DeleteExecutionRequest. */ + interface IDeleteExecutionRequest { - /** Properties of a MigrateMlEngineModelVersionConfig. */ - interface IMigrateMlEngineModelVersionConfig { + /** DeleteExecutionRequest name */ + name?: (string|null); - /** MigrateMlEngineModelVersionConfig endpoint */ - endpoint?: (string|null); + /** DeleteExecutionRequest etag */ + etag?: (string|null); + } - /** MigrateMlEngineModelVersionConfig modelVersion */ - modelVersion?: (string|null); + /** Represents a DeleteExecutionRequest. */ + class DeleteExecutionRequest implements IDeleteExecutionRequest { - /** MigrateMlEngineModelVersionConfig modelDisplayName */ - modelDisplayName?: (string|null); - } + /** + * Constructs a new DeleteExecutionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteExecutionRequest); - /** Represents a MigrateMlEngineModelVersionConfig. */ - class MigrateMlEngineModelVersionConfig implements IMigrateMlEngineModelVersionConfig { + /** DeleteExecutionRequest name. */ + public name: string; - /** - * Constructs a new MigrateMlEngineModelVersionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig); + /** DeleteExecutionRequest etag. */ + public etag: string; - /** MigrateMlEngineModelVersionConfig endpoint. */ - public endpoint: string; + /** + * Creates a new DeleteExecutionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteExecutionRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteExecutionRequest): google.cloud.aiplatform.v1.DeleteExecutionRequest; - /** MigrateMlEngineModelVersionConfig modelVersion. */ - public modelVersion: string; + /** + * Encodes the specified DeleteExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteExecutionRequest.verify|verify} messages. + * @param message DeleteExecutionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** MigrateMlEngineModelVersionConfig modelDisplayName. */ - public modelDisplayName: string; + /** + * Encodes the specified DeleteExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteExecutionRequest.verify|verify} messages. + * @param message DeleteExecutionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteExecutionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new MigrateMlEngineModelVersionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateMlEngineModelVersionConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; + /** + * Decodes a DeleteExecutionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteExecutionRequest + * @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.DeleteExecutionRequest; - /** - * Encodes the specified MigrateMlEngineModelVersionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. - * @param message MigrateMlEngineModelVersionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a DeleteExecutionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteExecutionRequest + * @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.DeleteExecutionRequest; - /** - * Encodes the specified MigrateMlEngineModelVersionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. - * @param message MigrateMlEngineModelVersionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a DeleteExecutionRequest 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); - /** - * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateMlEngineModelVersionConfig - * @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.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; + /** + * Creates a DeleteExecutionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteExecutionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteExecutionRequest; - /** - * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateMlEngineModelVersionConfig - * @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.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; + /** + * Creates a plain object from a DeleteExecutionRequest message. Also converts values to other types if specified. + * @param message DeleteExecutionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteExecutionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a MigrateMlEngineModelVersionConfig 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); + /** + * Converts this DeleteExecutionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a MigrateMlEngineModelVersionConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateMlEngineModelVersionConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; + /** + * Gets the default type url for DeleteExecutionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a MigrateMlEngineModelVersionConfig message. Also converts values to other types if specified. - * @param message MigrateMlEngineModelVersionConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a PurgeExecutionsRequest. */ + interface IPurgeExecutionsRequest { - /** - * Converts this MigrateMlEngineModelVersionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** PurgeExecutionsRequest parent */ + parent?: (string|null); - /** - * Gets the default type url for MigrateMlEngineModelVersionConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** PurgeExecutionsRequest filter */ + filter?: (string|null); - /** Properties of a MigrateAutomlModelConfig. */ - interface IMigrateAutomlModelConfig { + /** PurgeExecutionsRequest force */ + force?: (boolean|null); + } - /** MigrateAutomlModelConfig model */ - model?: (string|null); + /** Represents a PurgeExecutionsRequest. */ + class PurgeExecutionsRequest implements IPurgeExecutionsRequest { - /** MigrateAutomlModelConfig modelDisplayName */ - modelDisplayName?: (string|null); - } + /** + * Constructs a new PurgeExecutionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsRequest); - /** Represents a MigrateAutomlModelConfig. */ - class MigrateAutomlModelConfig implements IMigrateAutomlModelConfig { + /** PurgeExecutionsRequest parent. */ + public parent: string; - /** - * Constructs a new MigrateAutomlModelConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig); + /** PurgeExecutionsRequest filter. */ + public filter: string; - /** MigrateAutomlModelConfig model. */ - public model: string; + /** PurgeExecutionsRequest force. */ + public force: boolean; - /** MigrateAutomlModelConfig modelDisplayName. */ - public modelDisplayName: string; + /** + * Creates a new PurgeExecutionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PurgeExecutionsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsRequest): google.cloud.aiplatform.v1.PurgeExecutionsRequest; - /** - * Creates a new MigrateAutomlModelConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateAutomlModelConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig; + /** + * Encodes the specified PurgeExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsRequest.verify|verify} messages. + * @param message PurgeExecutionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPurgeExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MigrateAutomlModelConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. - * @param message MigrateAutomlModelConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified PurgeExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsRequest.verify|verify} messages. + * @param message PurgeExecutionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeExecutionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MigrateAutomlModelConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. - * @param message MigrateAutomlModelConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a PurgeExecutionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PurgeExecutionsRequest + * @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.PurgeExecutionsRequest; - /** - * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateAutomlModelConfig - * @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.MigrateResourceRequest.MigrateAutomlModelConfig; + /** + * Decodes a PurgeExecutionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PurgeExecutionsRequest + * @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.PurgeExecutionsRequest; - /** - * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateAutomlModelConfig - * @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.MigrateResourceRequest.MigrateAutomlModelConfig; + /** + * Verifies a PurgeExecutionsRequest 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); - /** - * Verifies a MigrateAutomlModelConfig 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 PurgeExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PurgeExecutionsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeExecutionsRequest; - /** - * Creates a MigrateAutomlModelConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateAutomlModelConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig; + /** + * Creates a plain object from a PurgeExecutionsRequest message. Also converts values to other types if specified. + * @param message PurgeExecutionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PurgeExecutionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a MigrateAutomlModelConfig message. Also converts values to other types if specified. - * @param message MigrateAutomlModelConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this PurgeExecutionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this MigrateAutomlModelConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for PurgeExecutionsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for MigrateAutomlModelConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MigrateAutomlDatasetConfig. */ - interface IMigrateAutomlDatasetConfig { - - /** MigrateAutomlDatasetConfig dataset */ - dataset?: (string|null); - - /** MigrateAutomlDatasetConfig datasetDisplayName */ - datasetDisplayName?: (string|null); - } - - /** Represents a MigrateAutomlDatasetConfig. */ - class MigrateAutomlDatasetConfig implements IMigrateAutomlDatasetConfig { - - /** - * Constructs a new MigrateAutomlDatasetConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig); - - /** MigrateAutomlDatasetConfig dataset. */ - public dataset: string; - - /** MigrateAutomlDatasetConfig datasetDisplayName. */ - public datasetDisplayName: string; - - /** - * Creates a new MigrateAutomlDatasetConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateAutomlDatasetConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig; - - /** - * Encodes the specified MigrateAutomlDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. - * @param message MigrateAutomlDatasetConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MigrateAutomlDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. - * @param message MigrateAutomlDatasetConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateAutomlDatasetConfig - * @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.MigrateResourceRequest.MigrateAutomlDatasetConfig; - - /** - * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateAutomlDatasetConfig - * @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.MigrateResourceRequest.MigrateAutomlDatasetConfig; - - /** - * Verifies a MigrateAutomlDatasetConfig 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 MigrateAutomlDatasetConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateAutomlDatasetConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig; - - /** - * Creates a plain object from a MigrateAutomlDatasetConfig message. Also converts values to other types if specified. - * @param message MigrateAutomlDatasetConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MigrateAutomlDatasetConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MigrateAutomlDatasetConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MigrateDataLabelingDatasetConfig. */ - interface IMigrateDataLabelingDatasetConfig { - - /** MigrateDataLabelingDatasetConfig dataset */ - dataset?: (string|null); - - /** MigrateDataLabelingDatasetConfig datasetDisplayName */ - datasetDisplayName?: (string|null); - - /** MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs */ - migrateDataLabelingAnnotatedDatasetConfigs?: (google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig[]|null); - } - - /** Represents a MigrateDataLabelingDatasetConfig. */ - class MigrateDataLabelingDatasetConfig implements IMigrateDataLabelingDatasetConfig { - - /** - * Constructs a new MigrateDataLabelingDatasetConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig); - - /** MigrateDataLabelingDatasetConfig dataset. */ - public dataset: string; - - /** MigrateDataLabelingDatasetConfig datasetDisplayName. */ - public datasetDisplayName: string; - - /** MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs. */ - public migrateDataLabelingAnnotatedDatasetConfigs: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig[]; - - /** - * Creates a new MigrateDataLabelingDatasetConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateDataLabelingDatasetConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; - - /** - * Encodes the specified MigrateDataLabelingDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. - * @param message MigrateDataLabelingDatasetConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MigrateDataLabelingDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. - * @param message MigrateDataLabelingDatasetConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateDataLabelingDatasetConfig - * @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.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; - - /** - * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateDataLabelingDatasetConfig - * @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.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; - - /** - * Verifies a MigrateDataLabelingDatasetConfig 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 MigrateDataLabelingDatasetConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateDataLabelingDatasetConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; - - /** - * Creates a plain object from a MigrateDataLabelingDatasetConfig message. Also converts values to other types if specified. - * @param message MigrateDataLabelingDatasetConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MigrateDataLabelingDatasetConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MigrateDataLabelingDatasetConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace MigrateDataLabelingDatasetConfig { - - /** Properties of a MigrateDataLabelingAnnotatedDatasetConfig. */ - interface IMigrateDataLabelingAnnotatedDatasetConfig { - - /** MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset */ - annotatedDataset?: (string|null); - } - - /** Represents a MigrateDataLabelingAnnotatedDatasetConfig. */ - class MigrateDataLabelingAnnotatedDatasetConfig implements IMigrateDataLabelingAnnotatedDatasetConfig { - - /** - * Constructs a new MigrateDataLabelingAnnotatedDatasetConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig); - - /** MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset. */ - public annotatedDataset: string; - - /** - * Creates a new MigrateDataLabelingAnnotatedDatasetConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns MigrateDataLabelingAnnotatedDatasetConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; - - /** - * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. - * @param message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. - * @param message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MigrateDataLabelingAnnotatedDatasetConfig - * @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.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; - - /** - * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MigrateDataLabelingAnnotatedDatasetConfig - * @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.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; - - /** - * Verifies a MigrateDataLabelingAnnotatedDatasetConfig 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 MigrateDataLabelingAnnotatedDatasetConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MigrateDataLabelingAnnotatedDatasetConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; - - /** - * Creates a plain object from a MigrateDataLabelingAnnotatedDatasetConfig message. Also converts values to other types if specified. - * @param message MigrateDataLabelingAnnotatedDatasetConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MigrateDataLabelingAnnotatedDatasetConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MigrateDataLabelingAnnotatedDatasetConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } + /** Properties of a PurgeExecutionsResponse. */ + interface IPurgeExecutionsResponse { - /** Properties of a BatchMigrateResourcesResponse. */ - interface IBatchMigrateResourcesResponse { + /** PurgeExecutionsResponse purgeCount */ + purgeCount?: (number|Long|string|null); - /** BatchMigrateResourcesResponse migrateResourceResponses */ - migrateResourceResponses?: (google.cloud.aiplatform.v1.IMigrateResourceResponse[]|null); + /** PurgeExecutionsResponse purgeSample */ + purgeSample?: (string[]|null); } - /** Represents a BatchMigrateResourcesResponse. */ - class BatchMigrateResourcesResponse implements IBatchMigrateResourcesResponse { + /** Represents a PurgeExecutionsResponse. */ + class PurgeExecutionsResponse implements IPurgeExecutionsResponse { /** - * Constructs a new BatchMigrateResourcesResponse. + * Constructs a new PurgeExecutionsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse); + constructor(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsResponse); - /** BatchMigrateResourcesResponse migrateResourceResponses. */ - public migrateResourceResponses: google.cloud.aiplatform.v1.IMigrateResourceResponse[]; + /** PurgeExecutionsResponse purgeCount. */ + public purgeCount: (number|Long|string); + + /** PurgeExecutionsResponse purgeSample. */ + public purgeSample: string[]; /** - * Creates a new BatchMigrateResourcesResponse instance using the specified properties. + * Creates a new PurgeExecutionsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchMigrateResourcesResponse instance + * @returns PurgeExecutionsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse): google.cloud.aiplatform.v1.BatchMigrateResourcesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsResponse): google.cloud.aiplatform.v1.PurgeExecutionsResponse; /** - * Encodes the specified BatchMigrateResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.verify|verify} messages. - * @param message BatchMigrateResourcesResponse message or plain object to encode + * Encodes the specified PurgeExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsResponse.verify|verify} messages. + * @param message PurgeExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPurgeExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchMigrateResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.verify|verify} messages. - * @param message BatchMigrateResourcesResponse message or plain object to encode + * Encodes the specified PurgeExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsResponse.verify|verify} messages. + * @param message PurgeExecutionsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeExecutionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer. + * Decodes a PurgeExecutionsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchMigrateResourcesResponse + * @returns PurgeExecutionsResponse * @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.BatchMigrateResourcesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeExecutionsResponse; /** - * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchMigrateResourcesResponse + * @returns PurgeExecutionsResponse * @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.BatchMigrateResourcesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeExecutionsResponse; /** - * Verifies a BatchMigrateResourcesResponse message. + * Verifies a PurgeExecutionsResponse 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 BatchMigrateResourcesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchMigrateResourcesResponse + * @returns PurgeExecutionsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchMigrateResourcesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeExecutionsResponse; /** - * Creates a plain object from a BatchMigrateResourcesResponse message. Also converts values to other types if specified. - * @param message BatchMigrateResourcesResponse + * Creates a plain object from a PurgeExecutionsResponse message. Also converts values to other types if specified. + * @param message PurgeExecutionsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchMigrateResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PurgeExecutionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchMigrateResourcesResponse to JSON. + * Converts this PurgeExecutionsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchMigrateResourcesResponse + * Gets the default type url for PurgeExecutionsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MigrateResourceResponse. */ - interface IMigrateResourceResponse { - - /** MigrateResourceResponse dataset */ - dataset?: (string|null); - - /** MigrateResourceResponse model */ - model?: (string|null); + /** Properties of a PurgeExecutionsMetadata. */ + interface IPurgeExecutionsMetadata { - /** MigrateResourceResponse migratableResource */ - migratableResource?: (google.cloud.aiplatform.v1.IMigratableResource|null); + /** PurgeExecutionsMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents a MigrateResourceResponse. */ - class MigrateResourceResponse implements IMigrateResourceResponse { + /** Represents a PurgeExecutionsMetadata. */ + class PurgeExecutionsMetadata implements IPurgeExecutionsMetadata { /** - * Constructs a new MigrateResourceResponse. + * Constructs a new PurgeExecutionsMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IMigrateResourceResponse); - - /** MigrateResourceResponse dataset. */ - public dataset?: (string|null); - - /** MigrateResourceResponse model. */ - public model?: (string|null); - - /** MigrateResourceResponse migratableResource. */ - public migratableResource?: (google.cloud.aiplatform.v1.IMigratableResource|null); + constructor(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsMetadata); - /** MigrateResourceResponse migratedResource. */ - public migratedResource?: ("dataset"|"model"); + /** PurgeExecutionsMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new MigrateResourceResponse instance using the specified properties. + * Creates a new PurgeExecutionsMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns MigrateResourceResponse instance + * @returns PurgeExecutionsMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IMigrateResourceResponse): google.cloud.aiplatform.v1.MigrateResourceResponse; + public static create(properties?: google.cloud.aiplatform.v1.IPurgeExecutionsMetadata): google.cloud.aiplatform.v1.PurgeExecutionsMetadata; /** - * Encodes the specified MigrateResourceResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceResponse.verify|verify} messages. - * @param message MigrateResourceResponse message or plain object to encode + * Encodes the specified PurgeExecutionsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsMetadata.verify|verify} messages. + * @param message PurgeExecutionsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IMigrateResourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPurgeExecutionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MigrateResourceResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceResponse.verify|verify} messages. - * @param message MigrateResourceResponse message or plain object to encode + * Encodes the specified PurgeExecutionsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsMetadata.verify|verify} messages. + * @param message PurgeExecutionsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IMigrateResourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPurgeExecutionsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MigrateResourceResponse message from the specified reader or buffer. + * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MigrateResourceResponse + * @returns PurgeExecutionsMetadata * @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.MigrateResourceResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PurgeExecutionsMetadata; /** - * Decodes a MigrateResourceResponse message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MigrateResourceResponse + * @returns PurgeExecutionsMetadata * @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.MigrateResourceResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PurgeExecutionsMetadata; /** - * Verifies a MigrateResourceResponse message. + * Verifies a PurgeExecutionsMetadata 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 MigrateResourceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MigrateResourceResponse + * @returns PurgeExecutionsMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PurgeExecutionsMetadata; /** - * Creates a plain object from a MigrateResourceResponse message. Also converts values to other types if specified. - * @param message MigrateResourceResponse + * Creates a plain object from a PurgeExecutionsMetadata message. Also converts values to other types if specified. + * @param message PurgeExecutionsMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PurgeExecutionsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MigrateResourceResponse to JSON. + * Converts this PurgeExecutionsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MigrateResourceResponse + * Gets the default type url for PurgeExecutionsMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchMigrateResourcesOperationMetadata. */ - interface IBatchMigrateResourcesOperationMetadata { + /** Properties of an AddExecutionEventsRequest. */ + interface IAddExecutionEventsRequest { - /** BatchMigrateResourcesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** AddExecutionEventsRequest execution */ + execution?: (string|null); - /** BatchMigrateResourcesOperationMetadata partialResults */ - partialResults?: (google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult[]|null); + /** AddExecutionEventsRequest events */ + events?: (google.cloud.aiplatform.v1.IEvent[]|null); } - /** Represents a BatchMigrateResourcesOperationMetadata. */ - class BatchMigrateResourcesOperationMetadata implements IBatchMigrateResourcesOperationMetadata { + /** Represents an AddExecutionEventsRequest. */ + class AddExecutionEventsRequest implements IAddExecutionEventsRequest { /** - * Constructs a new BatchMigrateResourcesOperationMetadata. + * Constructs a new AddExecutionEventsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IAddExecutionEventsRequest); - /** BatchMigrateResourcesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** AddExecutionEventsRequest execution. */ + public execution: string; - /** BatchMigrateResourcesOperationMetadata partialResults. */ - public partialResults: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult[]; + /** AddExecutionEventsRequest events. */ + public events: google.cloud.aiplatform.v1.IEvent[]; /** - * Creates a new BatchMigrateResourcesOperationMetadata instance using the specified properties. + * Creates a new AddExecutionEventsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchMigrateResourcesOperationMetadata instance + * @returns AddExecutionEventsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IAddExecutionEventsRequest): google.cloud.aiplatform.v1.AddExecutionEventsRequest; /** - * Encodes the specified BatchMigrateResourcesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. - * @param message BatchMigrateResourcesOperationMetadata message or plain object to encode + * Encodes the specified AddExecutionEventsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsRequest.verify|verify} messages. + * @param message AddExecutionEventsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IAddExecutionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchMigrateResourcesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. - * @param message BatchMigrateResourcesOperationMetadata message or plain object to encode + * Encodes the specified AddExecutionEventsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsRequest.verify|verify} messages. + * @param message AddExecutionEventsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddExecutionEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer. + * Decodes an AddExecutionEventsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchMigrateResourcesOperationMetadata + * @returns AddExecutionEventsRequest * @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.BatchMigrateResourcesOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.AddExecutionEventsRequest; /** - * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an AddExecutionEventsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchMigrateResourcesOperationMetadata + * @returns AddExecutionEventsRequest * @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.BatchMigrateResourcesOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.AddExecutionEventsRequest; /** - * Verifies a BatchMigrateResourcesOperationMetadata message. + * Verifies an AddExecutionEventsRequest 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 BatchMigrateResourcesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an AddExecutionEventsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchMigrateResourcesOperationMetadata + * @returns AddExecutionEventsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddExecutionEventsRequest; /** - * Creates a plain object from a BatchMigrateResourcesOperationMetadata message. Also converts values to other types if specified. - * @param message BatchMigrateResourcesOperationMetadata + * Creates a plain object from an AddExecutionEventsRequest message. Also converts values to other types if specified. + * @param message AddExecutionEventsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.AddExecutionEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchMigrateResourcesOperationMetadata to JSON. + * Converts this AddExecutionEventsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchMigrateResourcesOperationMetadata + * Gets the default type url for AddExecutionEventsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace BatchMigrateResourcesOperationMetadata { - - /** Properties of a PartialResult. */ - interface IPartialResult { - - /** PartialResult error */ - error?: (google.rpc.IStatus|null); - - /** PartialResult model */ - model?: (string|null); - - /** PartialResult dataset */ - dataset?: (string|null); - - /** PartialResult request */ - request?: (google.cloud.aiplatform.v1.IMigrateResourceRequest|null); - } - - /** Represents a PartialResult. */ - class PartialResult implements IPartialResult { - - /** - * Constructs a new PartialResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult); - - /** PartialResult error. */ - public error?: (google.rpc.IStatus|null); - - /** PartialResult model. */ - public model?: (string|null); - - /** PartialResult dataset. */ - public dataset?: (string|null); - - /** PartialResult request. */ - public request?: (google.cloud.aiplatform.v1.IMigrateResourceRequest|null); - - /** PartialResult result. */ - public result?: ("error"|"model"|"dataset"); - - /** - * Creates a new PartialResult instance using the specified properties. - * @param [properties] Properties to set - * @returns PartialResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult; - - /** - * Encodes the specified PartialResult message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. - * @param message PartialResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PartialResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. - * @param message PartialResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PartialResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PartialResult - * @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.BatchMigrateResourcesOperationMetadata.PartialResult; - - /** - * Decodes a PartialResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PartialResult - * @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.BatchMigrateResourcesOperationMetadata.PartialResult; - - /** - * Verifies a PartialResult 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 PartialResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PartialResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult; - - /** - * Creates a plain object from a PartialResult message. Also converts values to other types if specified. - * @param message PartialResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PartialResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PartialResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a ModelEvaluation. */ - interface IModelEvaluation { - - /** ModelEvaluation name */ - name?: (string|null); - - /** ModelEvaluation displayName */ - displayName?: (string|null); - - /** ModelEvaluation metricsSchemaUri */ - metricsSchemaUri?: (string|null); - - /** ModelEvaluation metrics */ - metrics?: (google.protobuf.IValue|null); - - /** ModelEvaluation createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** ModelEvaluation sliceDimensions */ - sliceDimensions?: (string[]|null); - - /** ModelEvaluation dataItemSchemaUri */ - dataItemSchemaUri?: (string|null); - - /** ModelEvaluation annotationSchemaUri */ - annotationSchemaUri?: (string|null); - - /** ModelEvaluation modelExplanation */ - modelExplanation?: (google.cloud.aiplatform.v1.IModelExplanation|null); - - /** ModelEvaluation explanationSpecs */ - explanationSpecs?: (google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec[]|null); - - /** ModelEvaluation metadata */ - metadata?: (google.protobuf.IValue|null); + /** Properties of an AddExecutionEventsResponse. */ + interface IAddExecutionEventsResponse { } - /** Represents a ModelEvaluation. */ - class ModelEvaluation implements IModelEvaluation { + /** Represents an AddExecutionEventsResponse. */ + class AddExecutionEventsResponse implements IAddExecutionEventsResponse { /** - * Constructs a new ModelEvaluation. + * Constructs a new AddExecutionEventsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelEvaluation); - - /** ModelEvaluation name. */ - public name: string; - - /** ModelEvaluation displayName. */ - public displayName: string; - - /** ModelEvaluation metricsSchemaUri. */ - public metricsSchemaUri: string; - - /** ModelEvaluation metrics. */ - public metrics?: (google.protobuf.IValue|null); - - /** ModelEvaluation createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** ModelEvaluation sliceDimensions. */ - public sliceDimensions: string[]; - - /** ModelEvaluation dataItemSchemaUri. */ - public dataItemSchemaUri: string; - - /** ModelEvaluation annotationSchemaUri. */ - public annotationSchemaUri: string; - - /** ModelEvaluation modelExplanation. */ - public modelExplanation?: (google.cloud.aiplatform.v1.IModelExplanation|null); - - /** ModelEvaluation explanationSpecs. */ - public explanationSpecs: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec[]; - - /** ModelEvaluation metadata. */ - public metadata?: (google.protobuf.IValue|null); + constructor(properties?: google.cloud.aiplatform.v1.IAddExecutionEventsResponse); /** - * Creates a new ModelEvaluation instance using the specified properties. + * Creates a new AddExecutionEventsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ModelEvaluation instance + * @returns AddExecutionEventsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelEvaluation): google.cloud.aiplatform.v1.ModelEvaluation; + public static create(properties?: google.cloud.aiplatform.v1.IAddExecutionEventsResponse): google.cloud.aiplatform.v1.AddExecutionEventsResponse; /** - * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.verify|verify} messages. - * @param message ModelEvaluation message or plain object to encode + * Encodes the specified AddExecutionEventsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsResponse.verify|verify} messages. + * @param message AddExecutionEventsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IAddExecutionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.verify|verify} messages. - * @param message ModelEvaluation message or plain object to encode + * Encodes the specified AddExecutionEventsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsResponse.verify|verify} messages. + * @param message AddExecutionEventsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddExecutionEventsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelEvaluation message from the specified reader or buffer. + * Decodes an AddExecutionEventsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelEvaluation + * @returns AddExecutionEventsResponse * @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.ModelEvaluation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.AddExecutionEventsResponse; /** - * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited. + * Decodes an AddExecutionEventsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelEvaluation + * @returns AddExecutionEventsResponse * @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.ModelEvaluation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.AddExecutionEventsResponse; /** - * Verifies a ModelEvaluation message. + * Verifies an AddExecutionEventsResponse 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 ModelEvaluation message from a plain object. Also converts values to their respective internal types. + * Creates an AddExecutionEventsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelEvaluation + * @returns AddExecutionEventsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluation; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddExecutionEventsResponse; /** - * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified. - * @param message ModelEvaluation + * Creates a plain object from an AddExecutionEventsResponse message. Also converts values to other types if specified. + * @param message AddExecutionEventsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.AddExecutionEventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelEvaluation to JSON. + * Converts this AddExecutionEventsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelEvaluation + * Gets the default type url for AddExecutionEventsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelEvaluation { - - /** Properties of a ModelEvaluationExplanationSpec. */ - interface IModelEvaluationExplanationSpec { - - /** ModelEvaluationExplanationSpec explanationType */ - explanationType?: (string|null); - - /** ModelEvaluationExplanationSpec explanationSpec */ - explanationSpec?: (google.cloud.aiplatform.v1.IExplanationSpec|null); - } - - /** Represents a ModelEvaluationExplanationSpec. */ - class ModelEvaluationExplanationSpec implements IModelEvaluationExplanationSpec { - - /** - * Constructs a new ModelEvaluationExplanationSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec); - - /** ModelEvaluationExplanationSpec explanationType. */ - public explanationType: string; - - /** ModelEvaluationExplanationSpec explanationSpec. */ - public explanationSpec?: (google.cloud.aiplatform.v1.IExplanationSpec|null); - - /** - * Creates a new ModelEvaluationExplanationSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns ModelEvaluationExplanationSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec): google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec; - - /** - * Encodes the specified ModelEvaluationExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. - * @param message ModelEvaluationExplanationSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ModelEvaluationExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. - * @param message ModelEvaluationExplanationSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ModelEvaluationExplanationSpec - * @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.ModelEvaluation.ModelEvaluationExplanationSpec; - - /** - * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ModelEvaluationExplanationSpec - * @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.ModelEvaluation.ModelEvaluationExplanationSpec; - - /** - * Verifies a ModelEvaluationExplanationSpec 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 ModelEvaluationExplanationSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ModelEvaluationExplanationSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec; - - /** - * Creates a plain object from a ModelEvaluationExplanationSpec message. Also converts values to other types if specified. - * @param message ModelEvaluationExplanationSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ModelEvaluationExplanationSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ModelEvaluationExplanationSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a ModelEvaluationSlice. */ - interface IModelEvaluationSlice { - - /** ModelEvaluationSlice name */ - name?: (string|null); - - /** ModelEvaluationSlice slice */ - slice?: (google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice|null); - - /** ModelEvaluationSlice metricsSchemaUri */ - metricsSchemaUri?: (string|null); - - /** ModelEvaluationSlice metrics */ - metrics?: (google.protobuf.IValue|null); + /** Properties of a QueryExecutionInputsAndOutputsRequest. */ + interface IQueryExecutionInputsAndOutputsRequest { - /** ModelEvaluationSlice createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** QueryExecutionInputsAndOutputsRequest execution */ + execution?: (string|null); } - /** Represents a ModelEvaluationSlice. */ - class ModelEvaluationSlice implements IModelEvaluationSlice { + /** Represents a QueryExecutionInputsAndOutputsRequest. */ + class QueryExecutionInputsAndOutputsRequest implements IQueryExecutionInputsAndOutputsRequest { /** - * Constructs a new ModelEvaluationSlice. + * Constructs a new QueryExecutionInputsAndOutputsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IModelEvaluationSlice); - - /** ModelEvaluationSlice name. */ - public name: string; - - /** ModelEvaluationSlice slice. */ - public slice?: (google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice|null); - - /** ModelEvaluationSlice metricsSchemaUri. */ - public metricsSchemaUri: string; - - /** ModelEvaluationSlice metrics. */ - public metrics?: (google.protobuf.IValue|null); + constructor(properties?: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest); - /** ModelEvaluationSlice createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** QueryExecutionInputsAndOutputsRequest execution. */ + public execution: string; /** - * Creates a new ModelEvaluationSlice instance using the specified properties. + * Creates a new QueryExecutionInputsAndOutputsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelEvaluationSlice instance + * @returns QueryExecutionInputsAndOutputsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IModelEvaluationSlice): google.cloud.aiplatform.v1.ModelEvaluationSlice; + public static create(properties?: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest): google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest; /** - * Encodes the specified ModelEvaluationSlice message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.verify|verify} messages. - * @param message ModelEvaluationSlice message or plain object to encode + * Encodes the specified QueryExecutionInputsAndOutputsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. + * @param message QueryExecutionInputsAndOutputsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IModelEvaluationSlice, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelEvaluationSlice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.verify|verify} messages. - * @param message ModelEvaluationSlice message or plain object to encode + * Encodes the specified QueryExecutionInputsAndOutputsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. + * @param message QueryExecutionInputsAndOutputsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelEvaluationSlice, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelEvaluationSlice message from the specified reader or buffer. + * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelEvaluationSlice + * @returns QueryExecutionInputsAndOutputsRequest * @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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest; /** - * Decodes a ModelEvaluationSlice message from the specified reader or buffer, length delimited. + * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelEvaluationSlice + * @returns QueryExecutionInputsAndOutputsRequest * @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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest; /** - * Verifies a ModelEvaluationSlice message. + * Verifies a QueryExecutionInputsAndOutputsRequest 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 ModelEvaluationSlice message from a plain object. Also converts values to their respective internal types. + * Creates a QueryExecutionInputsAndOutputsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelEvaluationSlice + * @returns QueryExecutionInputsAndOutputsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluationSlice; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest; /** - * Creates a plain object from a ModelEvaluationSlice message. Also converts values to other types if specified. - * @param message ModelEvaluationSlice + * Creates a plain object from a QueryExecutionInputsAndOutputsRequest message. Also converts values to other types if specified. + * @param message QueryExecutionInputsAndOutputsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluationSlice, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelEvaluationSlice to JSON. + * Converts this QueryExecutionInputsAndOutputsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelEvaluationSlice + * Gets the default type url for QueryExecutionInputsAndOutputsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelEvaluationSlice { + /** Properties of a CreateMetadataSchemaRequest. */ + interface ICreateMetadataSchemaRequest { - /** Properties of a Slice. */ - interface ISlice { + /** CreateMetadataSchemaRequest parent */ + parent?: (string|null); - /** Slice dimension */ - dimension?: (string|null); + /** CreateMetadataSchemaRequest metadataSchema */ + metadataSchema?: (google.cloud.aiplatform.v1.IMetadataSchema|null); - /** Slice value */ - value?: (string|null); - } + /** CreateMetadataSchemaRequest metadataSchemaId */ + metadataSchemaId?: (string|null); + } - /** Represents a Slice. */ - class Slice implements ISlice { + /** Represents a CreateMetadataSchemaRequest. */ + class CreateMetadataSchemaRequest implements ICreateMetadataSchemaRequest { - /** - * Constructs a new Slice. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice); + /** + * Constructs a new CreateMetadataSchemaRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest); - /** Slice dimension. */ - public dimension: string; - - /** Slice value. */ - public value: string; - - /** - * Creates a new Slice instance using the specified properties. - * @param [properties] Properties to set - * @returns Slice instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice): google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice; - - /** - * Encodes the specified Slice message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify|verify} messages. - * @param message Slice message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Slice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify|verify} messages. - * @param message Slice message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Slice message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Slice - * @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; - - /** - * Decodes a Slice message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Slice - * @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; - - /** - * Verifies a Slice 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 Slice message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Slice - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice; - - /** - * Creates a plain object from a Slice message. Also converts values to other types if specified. - * @param message Slice - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Slice to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** CreateMetadataSchemaRequest parent. */ + public parent: string; - /** - * Gets the default type url for Slice - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** CreateMetadataSchemaRequest metadataSchema. */ + public metadataSchema?: (google.cloud.aiplatform.v1.IMetadataSchema|null); - /** Represents a ModelService */ - class ModelService extends $protobuf.rpc.Service { + /** CreateMetadataSchemaRequest metadataSchemaId. */ + public metadataSchemaId: string; /** - * Constructs a new ModelService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Creates a new CreateMetadataSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateMetadataSchemaRequest instance */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static create(properties?: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest): google.cloud.aiplatform.v1.CreateMetadataSchemaRequest; /** - * Creates new ModelService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Encodes the specified CreateMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.verify|verify} messages. + * @param message CreateMetadataSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ModelService; + public static encode(message: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UploadModel. - * @param request UploadModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified CreateMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.verify|verify} messages. + * @param message CreateMetadataSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public uploadModel(request: google.cloud.aiplatform.v1.IUploadModelRequest, callback: google.cloud.aiplatform.v1.ModelService.UploadModelCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UploadModel. - * @param request UploadModelRequest message or plain object - * @returns Promise + * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateMetadataSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public uploadModel(request: google.cloud.aiplatform.v1.IUploadModelRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateMetadataSchemaRequest; /** - * Calls GetModel. - * @param request GetModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Model + * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateMetadataSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getModel(request: google.cloud.aiplatform.v1.IGetModelRequest, callback: google.cloud.aiplatform.v1.ModelService.GetModelCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateMetadataSchemaRequest; /** - * Calls GetModel. - * @param request GetModelRequest message or plain object - * @returns Promise + * Verifies a CreateMetadataSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getModel(request: google.cloud.aiplatform.v1.IGetModelRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListModels. - * @param request ListModelsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelsResponse + * Creates a CreateMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateMetadataSchemaRequest */ - public listModels(request: google.cloud.aiplatform.v1.IListModelsRequest, callback: google.cloud.aiplatform.v1.ModelService.ListModelsCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateMetadataSchemaRequest; /** - * Calls ListModels. - * @param request ListModelsRequest message or plain object - * @returns Promise + * Creates a plain object from a CreateMetadataSchemaRequest message. Also converts values to other types if specified. + * @param message CreateMetadataSchemaRequest + * @param [options] Conversion options + * @returns Plain object */ - public listModels(request: google.cloud.aiplatform.v1.IListModelsRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1.CreateMetadataSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListModelVersions. - * @param request ListModelVersionsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelVersionsResponse + * Converts this CreateMetadataSchemaRequest to JSON. + * @returns JSON object */ - public listModelVersions(request: google.cloud.aiplatform.v1.IListModelVersionsRequest, callback: google.cloud.aiplatform.v1.ModelService.ListModelVersionsCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls ListModelVersions. - * @param request ListModelVersionsRequest message or plain object - * @returns Promise + * Gets the default type url for CreateMetadataSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public listModelVersions(request: google.cloud.aiplatform.v1.IListModelVersionsRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetMetadataSchemaRequest. */ + interface IGetMetadataSchemaRequest { + + /** GetMetadataSchemaRequest name */ + name?: (string|null); + } + + /** Represents a GetMetadataSchemaRequest. */ + class GetMetadataSchemaRequest implements IGetMetadataSchemaRequest { /** - * Calls UpdateModel. - * @param request UpdateModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Model + * Constructs a new GetMetadataSchemaRequest. + * @param [properties] Properties to set */ - public updateModel(request: google.cloud.aiplatform.v1.IUpdateModelRequest, callback: google.cloud.aiplatform.v1.ModelService.UpdateModelCallback): void; + constructor(properties?: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest); + + /** GetMetadataSchemaRequest name. */ + public name: string; /** - * Calls UpdateModel. - * @param request UpdateModelRequest message or plain object - * @returns Promise + * Creates a new GetMetadataSchemaRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetMetadataSchemaRequest instance */ - public updateModel(request: google.cloud.aiplatform.v1.IUpdateModelRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest): google.cloud.aiplatform.v1.GetMetadataSchemaRequest; /** - * Calls DeleteModel. - * @param request DeleteModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified GetMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataSchemaRequest.verify|verify} messages. + * @param message GetMetadataSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteModel(request: google.cloud.aiplatform.v1.IDeleteModelRequest, callback: google.cloud.aiplatform.v1.ModelService.DeleteModelCallback): void; + public static encode(message: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteModel. - * @param request DeleteModelRequest message or plain object - * @returns Promise + * Encodes the specified GetMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataSchemaRequest.verify|verify} messages. + * @param message GetMetadataSchemaRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteModel(request: google.cloud.aiplatform.v1.IDeleteModelRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetMetadataSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteModelVersion. - * @param request DeleteModelVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetMetadataSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteModelVersion(request: google.cloud.aiplatform.v1.IDeleteModelVersionRequest, callback: google.cloud.aiplatform.v1.ModelService.DeleteModelVersionCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetMetadataSchemaRequest; /** - * Calls DeleteModelVersion. - * @param request DeleteModelVersionRequest message or plain object - * @returns Promise + * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetMetadataSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteModelVersion(request: google.cloud.aiplatform.v1.IDeleteModelVersionRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetMetadataSchemaRequest; /** - * Calls MergeVersionAliases. - * @param request MergeVersionAliasesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Model + * Verifies a GetMetadataSchemaRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public mergeVersionAliases(request: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, callback: google.cloud.aiplatform.v1.ModelService.MergeVersionAliasesCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls MergeVersionAliases. - * @param request MergeVersionAliasesRequest message or plain object - * @returns Promise + * Creates a GetMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetMetadataSchemaRequest */ - public mergeVersionAliases(request: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetMetadataSchemaRequest; /** - * Calls ExportModel. - * @param request ExportModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a plain object from a GetMetadataSchemaRequest message. Also converts values to other types if specified. + * @param message GetMetadataSchemaRequest + * @param [options] Conversion options + * @returns Plain object */ - public exportModel(request: google.cloud.aiplatform.v1.IExportModelRequest, callback: google.cloud.aiplatform.v1.ModelService.ExportModelCallback): void; + public static toObject(message: google.cloud.aiplatform.v1.GetMetadataSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ExportModel. - * @param request ExportModelRequest message or plain object - * @returns Promise + * Converts this GetMetadataSchemaRequest to JSON. + * @returns JSON object */ - public exportModel(request: google.cloud.aiplatform.v1.IExportModelRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls ImportModelEvaluation. - * @param request ImportModelEvaluationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelEvaluation + * Gets the default type url for GetMetadataSchemaRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public importModelEvaluation(request: google.cloud.aiplatform.v1.IImportModelEvaluationRequest, callback: google.cloud.aiplatform.v1.ModelService.ImportModelEvaluationCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListMetadataSchemasRequest. */ + interface IListMetadataSchemasRequest { + + /** ListMetadataSchemasRequest parent */ + parent?: (string|null); + + /** ListMetadataSchemasRequest pageSize */ + pageSize?: (number|null); + + /** ListMetadataSchemasRequest pageToken */ + pageToken?: (string|null); + + /** ListMetadataSchemasRequest filter */ + filter?: (string|null); + } + + /** Represents a ListMetadataSchemasRequest. */ + class ListMetadataSchemasRequest implements IListMetadataSchemasRequest { /** - * Calls ImportModelEvaluation. - * @param request ImportModelEvaluationRequest message or plain object - * @returns Promise + * Constructs a new ListMetadataSchemasRequest. + * @param [properties] Properties to set */ - public importModelEvaluation(request: google.cloud.aiplatform.v1.IImportModelEvaluationRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1.IListMetadataSchemasRequest); + + /** ListMetadataSchemasRequest parent. */ + public parent: string; + + /** ListMetadataSchemasRequest pageSize. */ + public pageSize: number; + + /** ListMetadataSchemasRequest pageToken. */ + public pageToken: string; + + /** ListMetadataSchemasRequest filter. */ + public filter: string; /** - * Calls BatchImportModelEvaluationSlices. - * @param request BatchImportModelEvaluationSlicesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchImportModelEvaluationSlicesResponse + * Creates a new ListMetadataSchemasRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListMetadataSchemasRequest instance */ - public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, callback: google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlicesCallback): void; + public static create(properties?: google.cloud.aiplatform.v1.IListMetadataSchemasRequest): google.cloud.aiplatform.v1.ListMetadataSchemasRequest; /** - * Calls BatchImportModelEvaluationSlices. - * @param request BatchImportModelEvaluationSlicesRequest message or plain object - * @returns Promise + * Encodes the specified ListMetadataSchemasRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasRequest.verify|verify} messages. + * @param message ListMetadataSchemasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1.IListMetadataSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetModelEvaluation. - * @param request GetModelEvaluationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelEvaluation + * Encodes the specified ListMetadataSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasRequest.verify|verify} messages. + * @param message ListMetadataSchemasRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getModelEvaluation(request: google.cloud.aiplatform.v1.IGetModelEvaluationRequest, callback: google.cloud.aiplatform.v1.ModelService.GetModelEvaluationCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListMetadataSchemasRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetModelEvaluation. - * @param request GetModelEvaluationRequest message or plain object - * @returns Promise + * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListMetadataSchemasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getModelEvaluation(request: google.cloud.aiplatform.v1.IGetModelEvaluationRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListMetadataSchemasRequest; /** - * Calls ListModelEvaluations. - * @param request ListModelEvaluationsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse + * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListMetadataSchemasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listModelEvaluations(request: google.cloud.aiplatform.v1.IListModelEvaluationsRequest, callback: google.cloud.aiplatform.v1.ModelService.ListModelEvaluationsCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListMetadataSchemasRequest; /** - * Calls ListModelEvaluations. - * @param request ListModelEvaluationsRequest message or plain object - * @returns Promise + * Verifies a ListMetadataSchemasRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listModelEvaluations(request: google.cloud.aiplatform.v1.IListModelEvaluationsRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GetModelEvaluationSlice. - * @param request GetModelEvaluationSliceRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelEvaluationSlice + * Creates a ListMetadataSchemasRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListMetadataSchemasRequest */ - public getModelEvaluationSlice(request: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest, callback: google.cloud.aiplatform.v1.ModelService.GetModelEvaluationSliceCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListMetadataSchemasRequest; /** - * Calls GetModelEvaluationSlice. - * @param request GetModelEvaluationSliceRequest message or plain object - * @returns Promise + * Creates a plain object from a ListMetadataSchemasRequest message. Also converts values to other types if specified. + * @param message ListMetadataSchemasRequest + * @param [options] Conversion options + * @returns Plain object */ - public getModelEvaluationSlice(request: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1.ListMetadataSchemasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListModelEvaluationSlices. - * @param request ListModelEvaluationSlicesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelEvaluationSlicesResponse + * Converts this ListMetadataSchemasRequest to JSON. + * @returns JSON object */ - public listModelEvaluationSlices(request: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest, callback: google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlicesCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls ListModelEvaluationSlices. - * @param request ListModelEvaluationSlicesRequest message or plain object - * @returns Promise + * Gets the default type url for ListMetadataSchemasRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public listModelEvaluationSlices(request: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelService { + /** Properties of a ListMetadataSchemasResponse. */ + interface IListMetadataSchemasResponse { + + /** ListMetadataSchemasResponse metadataSchemas */ + metadataSchemas?: (google.cloud.aiplatform.v1.IMetadataSchema[]|null); + + /** ListMetadataSchemasResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListMetadataSchemasResponse. */ + class ListMetadataSchemasResponse implements IListMetadataSchemasResponse { /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|uploadModel}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new ListMetadataSchemasResponse. + * @param [properties] Properties to set */ - type UploadModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.aiplatform.v1.IListMetadataSchemasResponse); + + /** ListMetadataSchemasResponse metadataSchemas. */ + public metadataSchemas: google.cloud.aiplatform.v1.IMetadataSchema[]; + + /** ListMetadataSchemasResponse nextPageToken. */ + public nextPageToken: string; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModel}. - * @param error Error, if any - * @param [response] Model + * Creates a new ListMetadataSchemasResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListMetadataSchemasResponse instance */ - type GetModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Model) => void; + public static create(properties?: google.cloud.aiplatform.v1.IListMetadataSchemasResponse): google.cloud.aiplatform.v1.ListMetadataSchemasResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModels}. - * @param error Error, if any - * @param [response] ListModelsResponse + * Encodes the specified ListMetadataSchemasResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasResponse.verify|verify} messages. + * @param message ListMetadataSchemasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListModelsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelsResponse) => void; + public static encode(message: google.cloud.aiplatform.v1.IListMetadataSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelVersions}. - * @param error Error, if any - * @param [response] ListModelVersionsResponse + * Encodes the specified ListMetadataSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasResponse.verify|verify} messages. + * @param message ListMetadataSchemasResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListModelVersionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelVersionsResponse) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListMetadataSchemasResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|updateModel}. - * @param error Error, if any - * @param [response] Model + * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListMetadataSchemasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Model) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListMetadataSchemasResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|deleteModel}. - * @param error Error, if any - * @param [response] Operation + * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListMetadataSchemasResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListMetadataSchemasResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|deleteModelVersion}. - * @param error Error, if any - * @param [response] Operation + * Verifies a ListMetadataSchemasResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type DeleteModelVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|mergeVersionAliases}. - * @param error Error, if any - * @param [response] Model + * Creates a ListMetadataSchemasResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListMetadataSchemasResponse */ - type MergeVersionAliasesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Model) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListMetadataSchemasResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|exportModel}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a ListMetadataSchemasResponse message. Also converts values to other types if specified. + * @param message ListMetadataSchemasResponse + * @param [options] Conversion options + * @returns Plain object */ - type ExportModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.aiplatform.v1.ListMetadataSchemasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|importModelEvaluation}. - * @param error Error, if any - * @param [response] ModelEvaluation - */ - type ImportModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ModelEvaluation) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|batchImportModelEvaluationSlices}. - * @param error Error, if any - * @param [response] BatchImportModelEvaluationSlicesResponse - */ - type BatchImportModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModelEvaluation}. - * @param error Error, if any - * @param [response] ModelEvaluation - */ - type GetModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ModelEvaluation) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelEvaluations}. - * @param error Error, if any - * @param [response] ListModelEvaluationsResponse - */ - type ListModelEvaluationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelEvaluationsResponse) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModelEvaluationSlice}. - * @param error Error, if any - * @param [response] ModelEvaluationSlice + * Converts this ListMetadataSchemasResponse to JSON. + * @returns JSON object */ - type GetModelEvaluationSliceCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ModelEvaluationSlice) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelEvaluationSlices}. - * @param error Error, if any - * @param [response] ListModelEvaluationSlicesResponse + * Gets the default type url for ListMetadataSchemasResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ListModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UploadModelRequest. */ - interface IUploadModelRequest { - - /** UploadModelRequest parent */ - parent?: (string|null); - - /** UploadModelRequest parentModel */ - parentModel?: (string|null); + /** Properties of a QueryArtifactLineageSubgraphRequest. */ + interface IQueryArtifactLineageSubgraphRequest { - /** UploadModelRequest modelId */ - modelId?: (string|null); + /** QueryArtifactLineageSubgraphRequest artifact */ + artifact?: (string|null); - /** UploadModelRequest model */ - model?: (google.cloud.aiplatform.v1.IModel|null); + /** QueryArtifactLineageSubgraphRequest maxHops */ + maxHops?: (number|null); - /** UploadModelRequest serviceAccount */ - serviceAccount?: (string|null); + /** QueryArtifactLineageSubgraphRequest filter */ + filter?: (string|null); } - /** Represents an UploadModelRequest. */ - class UploadModelRequest implements IUploadModelRequest { + /** Represents a QueryArtifactLineageSubgraphRequest. */ + class QueryArtifactLineageSubgraphRequest implements IQueryArtifactLineageSubgraphRequest { /** - * Constructs a new UploadModelRequest. + * Constructs a new QueryArtifactLineageSubgraphRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUploadModelRequest); - - /** UploadModelRequest parent. */ - public parent: string; - - /** UploadModelRequest parentModel. */ - public parentModel: string; + constructor(properties?: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest); - /** UploadModelRequest modelId. */ - public modelId: string; + /** QueryArtifactLineageSubgraphRequest artifact. */ + public artifact: string; - /** UploadModelRequest model. */ - public model?: (google.cloud.aiplatform.v1.IModel|null); + /** QueryArtifactLineageSubgraphRequest maxHops. */ + public maxHops: number; - /** UploadModelRequest serviceAccount. */ - public serviceAccount: string; + /** QueryArtifactLineageSubgraphRequest filter. */ + public filter: string; /** - * Creates a new UploadModelRequest instance using the specified properties. + * Creates a new QueryArtifactLineageSubgraphRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UploadModelRequest instance + * @returns QueryArtifactLineageSubgraphRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUploadModelRequest): google.cloud.aiplatform.v1.UploadModelRequest; + public static create(properties?: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest): google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest; /** - * Encodes the specified UploadModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelRequest.verify|verify} messages. - * @param message UploadModelRequest message or plain object to encode + * Encodes the specified QueryArtifactLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * @param message QueryArtifactLineageSubgraphRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUploadModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UploadModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelRequest.verify|verify} messages. - * @param message UploadModelRequest message or plain object to encode + * Encodes the specified QueryArtifactLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * @param message QueryArtifactLineageSubgraphRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUploadModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UploadModelRequest message from the specified reader or buffer. + * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UploadModelRequest + * @returns QueryArtifactLineageSubgraphRequest * @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.UploadModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest; /** - * Decodes an UploadModelRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UploadModelRequest + * @returns QueryArtifactLineageSubgraphRequest * @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.UploadModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest; /** - * Verifies an UploadModelRequest message. + * Verifies a QueryArtifactLineageSubgraphRequest 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 UploadModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryArtifactLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UploadModelRequest + * @returns QueryArtifactLineageSubgraphRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UploadModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest; /** - * Creates a plain object from an UploadModelRequest message. Also converts values to other types if specified. - * @param message UploadModelRequest + * Creates a plain object from a QueryArtifactLineageSubgraphRequest message. Also converts values to other types if specified. + * @param message QueryArtifactLineageSubgraphRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UploadModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UploadModelRequest to JSON. + * Converts this QueryArtifactLineageSubgraphRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UploadModelRequest + * Gets the default type url for QueryArtifactLineageSubgraphRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UploadModelOperationMetadata. */ - interface IUploadModelOperationMetadata { + /** Properties of a MetadataStore. */ + interface IMetadataStore { - /** UploadModelOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** MetadataStore name */ + name?: (string|null); + + /** MetadataStore createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** MetadataStore updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** MetadataStore encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** MetadataStore description */ + description?: (string|null); + + /** MetadataStore state */ + state?: (google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState|null); } - /** Represents an UploadModelOperationMetadata. */ - class UploadModelOperationMetadata implements IUploadModelOperationMetadata { + /** Represents a MetadataStore. */ + class MetadataStore implements IMetadataStore { /** - * Constructs a new UploadModelOperationMetadata. + * Constructs a new MetadataStore. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUploadModelOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IMetadataStore); - /** UploadModelOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** MetadataStore name. */ + public name: string; + + /** MetadataStore createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** MetadataStore updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** MetadataStore encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** MetadataStore description. */ + public description: string; + + /** MetadataStore state. */ + public state?: (google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState|null); /** - * Creates a new UploadModelOperationMetadata instance using the specified properties. + * Creates a new MetadataStore instance using the specified properties. * @param [properties] Properties to set - * @returns UploadModelOperationMetadata instance + * @returns MetadataStore instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUploadModelOperationMetadata): google.cloud.aiplatform.v1.UploadModelOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IMetadataStore): google.cloud.aiplatform.v1.MetadataStore; /** - * Encodes the specified UploadModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelOperationMetadata.verify|verify} messages. - * @param message UploadModelOperationMetadata message or plain object to encode + * Encodes the specified MetadataStore message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.verify|verify} messages. + * @param message MetadataStore message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUploadModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IMetadataStore, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UploadModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelOperationMetadata.verify|verify} messages. - * @param message UploadModelOperationMetadata message or plain object to encode + * Encodes the specified MetadataStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.verify|verify} messages. + * @param message MetadataStore message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUploadModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMetadataStore, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UploadModelOperationMetadata message from the specified reader or buffer. + * Decodes a MetadataStore message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UploadModelOperationMetadata + * @returns MetadataStore * @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.UploadModelOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MetadataStore; /** - * Decodes an UploadModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a MetadataStore message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UploadModelOperationMetadata + * @returns MetadataStore * @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.UploadModelOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MetadataStore; /** - * Verifies an UploadModelOperationMetadata message. + * Verifies a MetadataStore 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 UploadModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a MetadataStore message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UploadModelOperationMetadata + * @returns MetadataStore */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UploadModelOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MetadataStore; /** - * Creates a plain object from an UploadModelOperationMetadata message. Also converts values to other types if specified. - * @param message UploadModelOperationMetadata + * Creates a plain object from a MetadataStore message. Also converts values to other types if specified. + * @param message MetadataStore * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UploadModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.MetadataStore, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UploadModelOperationMetadata to JSON. + * Converts this MetadataStore to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UploadModelOperationMetadata + * Gets the default type url for MetadataStore * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UploadModelResponse. */ - interface IUploadModelResponse { - - /** UploadModelResponse model */ - model?: (string|null); + namespace MetadataStore { - /** UploadModelResponse modelVersionId */ - modelVersionId?: (string|null); - } + /** Properties of a MetadataStoreState. */ + interface IMetadataStoreState { - /** Represents an UploadModelResponse. */ - class UploadModelResponse implements IUploadModelResponse { + /** MetadataStoreState diskUtilizationBytes */ + diskUtilizationBytes?: (number|Long|string|null); + } - /** - * Constructs a new UploadModelResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IUploadModelResponse); + /** Represents a MetadataStoreState. */ + class MetadataStoreState implements IMetadataStoreState { - /** UploadModelResponse model. */ - public model: string; + /** + * Constructs a new MetadataStoreState. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState); - /** UploadModelResponse modelVersionId. */ - public modelVersionId: string; + /** MetadataStoreState diskUtilizationBytes. */ + public diskUtilizationBytes: (number|Long|string); - /** - * Creates a new UploadModelResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UploadModelResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IUploadModelResponse): google.cloud.aiplatform.v1.UploadModelResponse; + /** + * Creates a new MetadataStoreState instance using the specified properties. + * @param [properties] Properties to set + * @returns MetadataStoreState instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState): google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState; - /** - * Encodes the specified UploadModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelResponse.verify|verify} messages. - * @param message UploadModelResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IUploadModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MetadataStoreState message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify|verify} messages. + * @param message MetadataStoreState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified UploadModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelResponse.verify|verify} messages. - * @param message UploadModelResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUploadModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MetadataStoreState message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify|verify} messages. + * @param message MetadataStoreState message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an UploadModelResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UploadModelResponse - * @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.UploadModelResponse; + /** + * Decodes a MetadataStoreState message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetadataStoreState + * @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.MetadataStore.MetadataStoreState; - /** - * Decodes an UploadModelResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UploadModelResponse - * @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.UploadModelResponse; + /** + * Decodes a MetadataStoreState message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetadataStoreState + * @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.MetadataStore.MetadataStoreState; - /** - * Verifies an UploadModelResponse 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); + /** + * Verifies a MetadataStoreState 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 UploadModelResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UploadModelResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UploadModelResponse; + /** + * Creates a MetadataStoreState message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetadataStoreState + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState; - /** - * Creates a plain object from an UploadModelResponse message. Also converts values to other types if specified. - * @param message UploadModelResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.UploadModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a MetadataStoreState message. Also converts values to other types if specified. + * @param message MetadataStoreState + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this UploadModelResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this MetadataStoreState to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for UploadModelResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Gets the default type url for MetadataStoreState + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a GetModelRequest. */ - interface IGetModelRequest { + /** Properties of a MigratableResource. */ + interface IMigratableResource { - /** GetModelRequest name */ - name?: (string|null); + /** MigratableResource mlEngineModelVersion */ + mlEngineModelVersion?: (google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion|null); + + /** MigratableResource automlModel */ + automlModel?: (google.cloud.aiplatform.v1.MigratableResource.IAutomlModel|null); + + /** MigratableResource automlDataset */ + automlDataset?: (google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset|null); + + /** MigratableResource dataLabelingDataset */ + dataLabelingDataset?: (google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset|null); + + /** MigratableResource lastMigrateTime */ + lastMigrateTime?: (google.protobuf.ITimestamp|null); + + /** MigratableResource lastUpdateTime */ + lastUpdateTime?: (google.protobuf.ITimestamp|null); } - /** Represents a GetModelRequest. */ - class GetModelRequest implements IGetModelRequest { + /** Represents a MigratableResource. */ + class MigratableResource implements IMigratableResource { /** - * Constructs a new GetModelRequest. + * Constructs a new MigratableResource. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetModelRequest); + constructor(properties?: google.cloud.aiplatform.v1.IMigratableResource); - /** GetModelRequest name. */ - public name: string; + /** MigratableResource mlEngineModelVersion. */ + public mlEngineModelVersion?: (google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion|null); + + /** MigratableResource automlModel. */ + public automlModel?: (google.cloud.aiplatform.v1.MigratableResource.IAutomlModel|null); + + /** MigratableResource automlDataset. */ + public automlDataset?: (google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset|null); + + /** MigratableResource dataLabelingDataset. */ + public dataLabelingDataset?: (google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset|null); + + /** MigratableResource lastMigrateTime. */ + public lastMigrateTime?: (google.protobuf.ITimestamp|null); + + /** MigratableResource lastUpdateTime. */ + public lastUpdateTime?: (google.protobuf.ITimestamp|null); + + /** MigratableResource resource. */ + public resource?: ("mlEngineModelVersion"|"automlModel"|"automlDataset"|"dataLabelingDataset"); /** - * Creates a new GetModelRequest instance using the specified properties. + * Creates a new MigratableResource instance using the specified properties. * @param [properties] Properties to set - * @returns GetModelRequest instance + * @returns MigratableResource instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetModelRequest): google.cloud.aiplatform.v1.GetModelRequest; + public static create(properties?: google.cloud.aiplatform.v1.IMigratableResource): google.cloud.aiplatform.v1.MigratableResource; /** - * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelRequest.verify|verify} messages. - * @param message GetModelRequest message or plain object to encode + * Encodes the specified MigratableResource message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.verify|verify} messages. + * @param message MigratableResource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IMigratableResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelRequest.verify|verify} messages. - * @param message GetModelRequest message or plain object to encode + * Encodes the specified MigratableResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.verify|verify} messages. + * @param message MigratableResource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMigratableResource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetModelRequest message from the specified reader or buffer. + * Decodes a MigratableResource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetModelRequest + * @returns MigratableResource * @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.GetModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MigratableResource; /** - * Decodes a GetModelRequest message from the specified reader or buffer, length delimited. + * Decodes a MigratableResource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetModelRequest + * @returns MigratableResource * @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.GetModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MigratableResource; /** - * Verifies a GetModelRequest message. + * Verifies a MigratableResource 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 GetModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigratableResource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetModelRequest + * @returns MigratableResource */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource; /** - * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified. - * @param message GetModelRequest + * Creates a plain object from a MigratableResource message. Also converts values to other types if specified. + * @param message MigratableResource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.MigratableResource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetModelRequest to JSON. + * Converts this MigratableResource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetModelRequest + * Gets the default type url for MigratableResource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelsRequest. */ - interface IListModelsRequest { - - /** ListModelsRequest parent */ - parent?: (string|null); + namespace MigratableResource { - /** ListModelsRequest filter */ - filter?: (string|null); + /** Properties of a MlEngineModelVersion. */ + interface IMlEngineModelVersion { - /** ListModelsRequest pageSize */ - pageSize?: (number|null); + /** MlEngineModelVersion endpoint */ + endpoint?: (string|null); - /** ListModelsRequest pageToken */ - pageToken?: (string|null); + /** MlEngineModelVersion version */ + version?: (string|null); + } - /** ListModelsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** Represents a MlEngineModelVersion. */ + class MlEngineModelVersion implements IMlEngineModelVersion { - /** ListModelsRequest orderBy */ - orderBy?: (string|null); - } + /** + * Constructs a new MlEngineModelVersion. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion); - /** Represents a ListModelsRequest. */ - class ListModelsRequest implements IListModelsRequest { + /** MlEngineModelVersion endpoint. */ + public endpoint: string; - /** - * Constructs a new ListModelsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelsRequest); + /** MlEngineModelVersion version. */ + public version: string; - /** ListModelsRequest parent. */ - public parent: string; + /** + * Creates a new MlEngineModelVersion instance using the specified properties. + * @param [properties] Properties to set + * @returns MlEngineModelVersion instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion): google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion; - /** ListModelsRequest filter. */ - public filter: string; + /** + * Encodes the specified MlEngineModelVersion message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify|verify} messages. + * @param message MlEngineModelVersion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListModelsRequest pageSize. */ - public pageSize: number; + /** + * Encodes the specified MlEngineModelVersion message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify|verify} messages. + * @param message MlEngineModelVersion message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListModelsRequest pageToken. */ - public pageToken: string; + /** + * Decodes a MlEngineModelVersion message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MlEngineModelVersion + * @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.MigratableResource.MlEngineModelVersion; - /** ListModelsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** + * Decodes a MlEngineModelVersion message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MlEngineModelVersion + * @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.MigratableResource.MlEngineModelVersion; - /** ListModelsRequest orderBy. */ - public orderBy: string; + /** + * Verifies a MlEngineModelVersion 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 new ListModelsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListModelsRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelsRequest): google.cloud.aiplatform.v1.ListModelsRequest; + /** + * Creates a MlEngineModelVersion message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MlEngineModelVersion + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion; - /** - * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsRequest.verify|verify} messages. - * @param message ListModelsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a MlEngineModelVersion message. Also converts values to other types if specified. + * @param message MlEngineModelVersion + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsRequest.verify|verify} messages. - * @param message ListModelsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this MlEngineModelVersion to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a ListModelsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListModelsRequest - * @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.ListModelsRequest; + /** + * Gets the default type url for MlEngineModelVersion + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListModelsRequest - * @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.ListModelsRequest; + /** Properties of an AutomlModel. */ + interface IAutomlModel { - /** - * Verifies a ListModelsRequest 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); + /** AutomlModel model */ + model?: (string|null); - /** - * Creates a ListModelsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListModelsRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelsRequest; + /** AutomlModel modelDisplayName */ + modelDisplayName?: (string|null); + } - /** - * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified. - * @param message ListModelsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents an AutomlModel. */ + class AutomlModel implements IAutomlModel { - /** - * Converts this ListModelsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new AutomlModel. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.IAutomlModel); - /** - * Gets the default type url for ListModelsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** AutomlModel model. */ + public model: string; - /** Properties of a ListModelsResponse. */ - interface IListModelsResponse { + /** AutomlModel modelDisplayName. */ + public modelDisplayName: string; - /** ListModelsResponse models */ - models?: (google.cloud.aiplatform.v1.IModel[]|null); + /** + * Creates a new AutomlModel instance using the specified properties. + * @param [properties] Properties to set + * @returns AutomlModel instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.IAutomlModel): google.cloud.aiplatform.v1.MigratableResource.AutomlModel; - /** ListModelsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** + * Encodes the specified AutomlModel message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify|verify} messages. + * @param message AutomlModel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MigratableResource.IAutomlModel, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a ListModelsResponse. */ - class ListModelsResponse implements IListModelsResponse { + /** + * Encodes the specified AutomlModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify|verify} messages. + * @param message AutomlModel message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.IAutomlModel, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new ListModelsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelsResponse); + /** + * Decodes an AutomlModel message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutomlModel + * @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.MigratableResource.AutomlModel; - /** ListModelsResponse models. */ - public models: google.cloud.aiplatform.v1.IModel[]; + /** + * Decodes an AutomlModel message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutomlModel + * @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.MigratableResource.AutomlModel; - /** ListModelsResponse nextPageToken. */ - public nextPageToken: string; + /** + * Verifies an AutomlModel 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 new ListModelsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListModelsResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelsResponse): google.cloud.aiplatform.v1.ListModelsResponse; + /** + * Creates an AutomlModel message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutomlModel + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.AutomlModel; - /** - * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsResponse.verify|verify} messages. - * @param message ListModelsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an AutomlModel message. Also converts values to other types if specified. + * @param message AutomlModel + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.AutomlModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsResponse.verify|verify} messages. - * @param message ListModelsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this AutomlModel to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a ListModelsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListModelsResponse - * @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.ListModelsResponse; + /** + * Gets the default type url for AutomlModel + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListModelsResponse - * @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.ListModelsResponse; + /** Properties of an AutomlDataset. */ + interface IAutomlDataset { - /** - * Verifies a ListModelsResponse 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); + /** AutomlDataset dataset */ + dataset?: (string|null); - /** - * Creates a ListModelsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListModelsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelsResponse; + /** AutomlDataset datasetDisplayName */ + datasetDisplayName?: (string|null); + } - /** - * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified. - * @param message ListModelsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents an AutomlDataset. */ + class AutomlDataset implements IAutomlDataset { - /** - * Converts this ListModelsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new AutomlDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset); - /** - * Gets the default type url for ListModelsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** AutomlDataset dataset. */ + public dataset: string; - /** Properties of a ListModelVersionsRequest. */ - interface IListModelVersionsRequest { + /** AutomlDataset datasetDisplayName. */ + public datasetDisplayName: string; - /** ListModelVersionsRequest name */ - name?: (string|null); + /** + * Creates a new AutomlDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns AutomlDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset): google.cloud.aiplatform.v1.MigratableResource.AutomlDataset; - /** ListModelVersionsRequest pageSize */ - pageSize?: (number|null); + /** + * Encodes the specified AutomlDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify|verify} messages. + * @param message AutomlDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListModelVersionsRequest pageToken */ - pageToken?: (string|null); + /** + * Encodes the specified AutomlDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify|verify} messages. + * @param message AutomlDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListModelVersionsRequest filter */ - filter?: (string|null); + /** + * Decodes an AutomlDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutomlDataset + * @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.MigratableResource.AutomlDataset; - /** ListModelVersionsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** + * Decodes an AutomlDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutomlDataset + * @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.MigratableResource.AutomlDataset; - /** ListModelVersionsRequest orderBy */ - orderBy?: (string|null); - } + /** + * Verifies an AutomlDataset 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); - /** Represents a ListModelVersionsRequest. */ - class ListModelVersionsRequest implements IListModelVersionsRequest { + /** + * Creates an AutomlDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutomlDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.AutomlDataset; - /** - * Constructs a new ListModelVersionsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelVersionsRequest); + /** + * Creates a plain object from an AutomlDataset message. Also converts values to other types if specified. + * @param message AutomlDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.AutomlDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ListModelVersionsRequest name. */ - public name: string; + /** + * Converts this AutomlDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ListModelVersionsRequest pageSize. */ - public pageSize: number; + /** + * Gets the default type url for AutomlDataset + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ListModelVersionsRequest pageToken. */ - public pageToken: string; + /** Properties of a DataLabelingDataset. */ + interface IDataLabelingDataset { - /** ListModelVersionsRequest filter. */ - public filter: string; + /** DataLabelingDataset dataset */ + dataset?: (string|null); - /** ListModelVersionsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** DataLabelingDataset datasetDisplayName */ + datasetDisplayName?: (string|null); - /** ListModelVersionsRequest orderBy. */ - public orderBy: string; + /** DataLabelingDataset dataLabelingAnnotatedDatasets */ + dataLabelingAnnotatedDatasets?: (google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset[]|null); + } - /** - * Creates a new ListModelVersionsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListModelVersionsRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelVersionsRequest): google.cloud.aiplatform.v1.ListModelVersionsRequest; + /** Represents a DataLabelingDataset. */ + class DataLabelingDataset implements IDataLabelingDataset { - /** - * Encodes the specified ListModelVersionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. - * @param message ListModelVersionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IListModelVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new DataLabelingDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset); - /** - * Encodes the specified ListModelVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. - * @param message ListModelVersionsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** DataLabelingDataset dataset. */ + public dataset: string; + + /** DataLabelingDataset datasetDisplayName. */ + public datasetDisplayName: string; + + /** DataLabelingDataset dataLabelingAnnotatedDatasets. */ + public dataLabelingAnnotatedDatasets: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset[]; + + /** + * Creates a new DataLabelingDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns DataLabelingDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset): google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset; + + /** + * Encodes the specified DataLabelingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify|verify} messages. + * @param message DataLabelingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataLabelingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify|verify} messages. + * @param message DataLabelingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataLabelingDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataLabelingDataset + * @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.MigratableResource.DataLabelingDataset; + + /** + * Decodes a DataLabelingDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataLabelingDataset + * @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.MigratableResource.DataLabelingDataset; + + /** + * Verifies a DataLabelingDataset 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 DataLabelingDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataLabelingDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset; + + /** + * Creates a plain object from a DataLabelingDataset message. Also converts values to other types if specified. + * @param message DataLabelingDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataLabelingDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataLabelingDataset + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace DataLabelingDataset { + + /** Properties of a DataLabelingAnnotatedDataset. */ + interface IDataLabelingAnnotatedDataset { + + /** DataLabelingAnnotatedDataset annotatedDataset */ + annotatedDataset?: (string|null); + + /** DataLabelingAnnotatedDataset annotatedDatasetDisplayName */ + annotatedDatasetDisplayName?: (string|null); + } + + /** Represents a DataLabelingAnnotatedDataset. */ + class DataLabelingAnnotatedDataset implements IDataLabelingAnnotatedDataset { + + /** + * Constructs a new DataLabelingAnnotatedDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset); + + /** DataLabelingAnnotatedDataset annotatedDataset. */ + public annotatedDataset: string; + + /** DataLabelingAnnotatedDataset annotatedDatasetDisplayName. */ + public annotatedDatasetDisplayName: string; + + /** + * Creates a new DataLabelingAnnotatedDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns DataLabelingAnnotatedDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset): google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + + /** + * Encodes the specified DataLabelingAnnotatedDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. + * @param message DataLabelingAnnotatedDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DataLabelingAnnotatedDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. + * @param message DataLabelingAnnotatedDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DataLabelingAnnotatedDataset + * @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.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + + /** + * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DataLabelingAnnotatedDataset + * @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.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + + /** + * Verifies a DataLabelingAnnotatedDataset 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 DataLabelingAnnotatedDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DataLabelingAnnotatedDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset; + + /** + * Creates a plain object from a DataLabelingAnnotatedDataset message. Also converts values to other types if specified. + * @param message DataLabelingAnnotatedDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DataLabelingAnnotatedDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DataLabelingAnnotatedDataset + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } + + /** Represents a MigrationService */ + class MigrationService extends $protobuf.rpc.Service { /** - * Decodes a ListModelVersionsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListModelVersionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Constructs a new MigrationService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelVersionsRequest; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Decodes a ListModelVersionsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListModelVersionsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Creates new MigrationService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelVersionsRequest; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): MigrationService; /** - * Verifies a ListModelVersionsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls SearchMigratableResources. + * @param request SearchMigratableResourcesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchMigratableResourcesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public searchMigratableResources(request: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest, callback: google.cloud.aiplatform.v1.MigrationService.SearchMigratableResourcesCallback): void; /** - * Creates a ListModelVersionsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListModelVersionsRequest + * Calls SearchMigratableResources. + * @param request SearchMigratableResourcesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelVersionsRequest; + public searchMigratableResources(request: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest): Promise; /** - * Creates a plain object from a ListModelVersionsRequest message. Also converts values to other types if specified. - * @param message ListModelVersionsRequest - * @param [options] Conversion options - * @returns Plain object + * Calls BatchMigrateResources. + * @param request BatchMigrateResourcesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public batchMigrateResources(request: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest, callback: google.cloud.aiplatform.v1.MigrationService.BatchMigrateResourcesCallback): void; /** - * Converts this ListModelVersionsRequest to JSON. - * @returns JSON object + * Calls BatchMigrateResources. + * @param request BatchMigrateResourcesRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public batchMigrateResources(request: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest): Promise; + } + + namespace MigrationService { /** - * Gets the default type url for ListModelVersionsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.MigrationService|searchMigratableResources}. + * @param error Error, if any + * @param [response] SearchMigratableResourcesResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type SearchMigratableResourcesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.SearchMigratableResourcesResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MigrationService|batchMigrateResources}. + * @param error Error, if any + * @param [response] Operation + */ + type BatchMigrateResourcesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of a ListModelVersionsResponse. */ - interface IListModelVersionsResponse { + /** Properties of a SearchMigratableResourcesRequest. */ + interface ISearchMigratableResourcesRequest { - /** ListModelVersionsResponse models */ - models?: (google.cloud.aiplatform.v1.IModel[]|null); + /** SearchMigratableResourcesRequest parent */ + parent?: (string|null); - /** ListModelVersionsResponse nextPageToken */ - nextPageToken?: (string|null); + /** SearchMigratableResourcesRequest pageSize */ + pageSize?: (number|null); + + /** SearchMigratableResourcesRequest pageToken */ + pageToken?: (string|null); + + /** SearchMigratableResourcesRequest filter */ + filter?: (string|null); } - /** Represents a ListModelVersionsResponse. */ - class ListModelVersionsResponse implements IListModelVersionsResponse { + /** Represents a SearchMigratableResourcesRequest. */ + class SearchMigratableResourcesRequest implements ISearchMigratableResourcesRequest { /** - * Constructs a new ListModelVersionsResponse. + * Constructs a new SearchMigratableResourcesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelVersionsResponse); + constructor(properties?: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest); - /** ListModelVersionsResponse models. */ - public models: google.cloud.aiplatform.v1.IModel[]; + /** SearchMigratableResourcesRequest parent. */ + public parent: string; - /** ListModelVersionsResponse nextPageToken. */ - public nextPageToken: string; + /** SearchMigratableResourcesRequest pageSize. */ + public pageSize: number; + + /** SearchMigratableResourcesRequest pageToken. */ + public pageToken: string; + + /** SearchMigratableResourcesRequest filter. */ + public filter: string; /** - * Creates a new ListModelVersionsResponse instance using the specified properties. + * Creates a new SearchMigratableResourcesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelVersionsResponse instance + * @returns SearchMigratableResourcesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelVersionsResponse): google.cloud.aiplatform.v1.ListModelVersionsResponse; + public static create(properties?: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest): google.cloud.aiplatform.v1.SearchMigratableResourcesRequest; /** - * Encodes the specified ListModelVersionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. - * @param message ListModelVersionsResponse message or plain object to encode + * Encodes the specified SearchMigratableResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesRequest.verify|verify} messages. + * @param message SearchMigratableResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListModelVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. - * @param message ListModelVersionsResponse message or plain object to encode + * Encodes the specified SearchMigratableResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesRequest.verify|verify} messages. + * @param message SearchMigratableResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelVersionsResponse message from the specified reader or buffer. + * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelVersionsResponse + * @returns SearchMigratableResourcesRequest * @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.ListModelVersionsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SearchMigratableResourcesRequest; /** - * Decodes a ListModelVersionsResponse message from the specified reader or buffer, length delimited. + * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelVersionsResponse + * @returns SearchMigratableResourcesRequest * @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.ListModelVersionsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SearchMigratableResourcesRequest; /** - * Verifies a ListModelVersionsResponse message. + * Verifies a SearchMigratableResourcesRequest 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 ListModelVersionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SearchMigratableResourcesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelVersionsResponse + * @returns SearchMigratableResourcesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelVersionsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchMigratableResourcesRequest; /** - * Creates a plain object from a ListModelVersionsResponse message. Also converts values to other types if specified. - * @param message ListModelVersionsResponse + * Creates a plain object from a SearchMigratableResourcesRequest message. Also converts values to other types if specified. + * @param message SearchMigratableResourcesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SearchMigratableResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelVersionsResponse to JSON. + * Converts this SearchMigratableResourcesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelVersionsResponse + * Gets the default type url for SearchMigratableResourcesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateModelRequest. */ - interface IUpdateModelRequest { + /** Properties of a SearchMigratableResourcesResponse. */ + interface ISearchMigratableResourcesResponse { - /** UpdateModelRequest model */ - model?: (google.cloud.aiplatform.v1.IModel|null); + /** SearchMigratableResourcesResponse migratableResources */ + migratableResources?: (google.cloud.aiplatform.v1.IMigratableResource[]|null); - /** UpdateModelRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** SearchMigratableResourcesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an UpdateModelRequest. */ - class UpdateModelRequest implements IUpdateModelRequest { + /** Represents a SearchMigratableResourcesResponse. */ + class SearchMigratableResourcesResponse implements ISearchMigratableResourcesResponse { /** - * Constructs a new UpdateModelRequest. + * Constructs a new SearchMigratableResourcesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateModelRequest); + constructor(properties?: google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse); - /** UpdateModelRequest model. */ - public model?: (google.cloud.aiplatform.v1.IModel|null); + /** SearchMigratableResourcesResponse migratableResources. */ + public migratableResources: google.cloud.aiplatform.v1.IMigratableResource[]; - /** UpdateModelRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** SearchMigratableResourcesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new UpdateModelRequest instance using the specified properties. + * Creates a new SearchMigratableResourcesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateModelRequest instance + * @returns SearchMigratableResourcesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateModelRequest): google.cloud.aiplatform.v1.UpdateModelRequest; + public static create(properties?: google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse): google.cloud.aiplatform.v1.SearchMigratableResourcesResponse; /** - * Encodes the specified UpdateModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelRequest.verify|verify} messages. - * @param message UpdateModelRequest message or plain object to encode + * Encodes the specified SearchMigratableResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.verify|verify} messages. + * @param message SearchMigratableResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelRequest.verify|verify} messages. - * @param message UpdateModelRequest message or plain object to encode + * Encodes the specified SearchMigratableResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.verify|verify} messages. + * @param message SearchMigratableResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateModelRequest message from the specified reader or buffer. + * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateModelRequest + * @returns SearchMigratableResourcesResponse * @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.UpdateModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SearchMigratableResourcesResponse; /** - * Decodes an UpdateModelRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateModelRequest + * @returns SearchMigratableResourcesResponse * @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.UpdateModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SearchMigratableResourcesResponse; /** - * Verifies an UpdateModelRequest message. + * Verifies a SearchMigratableResourcesResponse 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 UpdateModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchMigratableResourcesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateModelRequest + * @returns SearchMigratableResourcesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SearchMigratableResourcesResponse; /** - * Creates a plain object from an UpdateModelRequest message. Also converts values to other types if specified. - * @param message UpdateModelRequest + * Creates a plain object from a SearchMigratableResourcesResponse message. Also converts values to other types if specified. + * @param message SearchMigratableResourcesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SearchMigratableResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateModelRequest to JSON. + * Converts this SearchMigratableResourcesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateModelRequest + * Gets the default type url for SearchMigratableResourcesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteModelRequest. */ - interface IDeleteModelRequest { + /** Properties of a BatchMigrateResourcesRequest. */ + interface IBatchMigrateResourcesRequest { - /** DeleteModelRequest name */ - name?: (string|null); + /** BatchMigrateResourcesRequest parent */ + parent?: (string|null); + + /** BatchMigrateResourcesRequest migrateResourceRequests */ + migrateResourceRequests?: (google.cloud.aiplatform.v1.IMigrateResourceRequest[]|null); } - /** Represents a DeleteModelRequest. */ - class DeleteModelRequest implements IDeleteModelRequest { + /** Represents a BatchMigrateResourcesRequest. */ + class BatchMigrateResourcesRequest implements IBatchMigrateResourcesRequest { /** - * Constructs a new DeleteModelRequest. + * Constructs a new BatchMigrateResourcesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteModelRequest); + constructor(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest); - /** DeleteModelRequest name. */ - public name: string; + /** BatchMigrateResourcesRequest parent. */ + public parent: string; + + /** BatchMigrateResourcesRequest migrateResourceRequests. */ + public migrateResourceRequests: google.cloud.aiplatform.v1.IMigrateResourceRequest[]; /** - * Creates a new DeleteModelRequest instance using the specified properties. + * Creates a new BatchMigrateResourcesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteModelRequest instance + * @returns BatchMigrateResourcesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteModelRequest): google.cloud.aiplatform.v1.DeleteModelRequest; + public static create(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest): google.cloud.aiplatform.v1.BatchMigrateResourcesRequest; /** - * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelRequest.verify|verify} messages. - * @param message DeleteModelRequest message or plain object to encode + * Encodes the specified BatchMigrateResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.verify|verify} messages. + * @param message BatchMigrateResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelRequest.verify|verify} messages. - * @param message DeleteModelRequest message or plain object to encode + * Encodes the specified BatchMigrateResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.verify|verify} messages. + * @param message BatchMigrateResourcesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteModelRequest message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteModelRequest + * @returns BatchMigrateResourcesRequest * @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.DeleteModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchMigrateResourcesRequest; /** - * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteModelRequest + * @returns BatchMigrateResourcesRequest * @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.DeleteModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchMigrateResourcesRequest; /** - * Verifies a DeleteModelRequest message. + * Verifies a BatchMigrateResourcesRequest 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 DeleteModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteModelRequest + * @returns BatchMigrateResourcesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchMigrateResourcesRequest; /** - * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified. - * @param message DeleteModelRequest + * Creates a plain object from a BatchMigrateResourcesRequest message. Also converts values to other types if specified. + * @param message BatchMigrateResourcesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchMigrateResourcesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteModelRequest to JSON. + * Converts this BatchMigrateResourcesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteModelRequest + * Gets the default type url for BatchMigrateResourcesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteModelVersionRequest. */ - interface IDeleteModelVersionRequest { + /** Properties of a MigrateResourceRequest. */ + interface IMigrateResourceRequest { - /** DeleteModelVersionRequest name */ - name?: (string|null); - } - - /** Represents a DeleteModelVersionRequest. */ - class DeleteModelVersionRequest implements IDeleteModelVersionRequest { - - /** - * Constructs a new DeleteModelVersionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteModelVersionRequest); - - /** DeleteModelVersionRequest name. */ - public name: string; - - /** - * Creates a new DeleteModelVersionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteModelVersionRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteModelVersionRequest): google.cloud.aiplatform.v1.DeleteModelVersionRequest; - - /** - * Encodes the specified DeleteModelVersionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. - * @param message DeleteModelVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteModelVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteModelVersionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. - * @param message DeleteModelVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteModelVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteModelVersionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteModelVersionRequest - * @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.DeleteModelVersionRequest; - - /** - * Decodes a DeleteModelVersionRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteModelVersionRequest - * @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.DeleteModelVersionRequest; + /** MigrateResourceRequest migrateMlEngineModelVersionConfig */ + migrateMlEngineModelVersionConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null); - /** - * Verifies a DeleteModelVersionRequest 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); + /** MigrateResourceRequest migrateAutomlModelConfig */ + migrateAutomlModelConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig|null); - /** - * Creates a DeleteModelVersionRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteModelVersionRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteModelVersionRequest; + /** MigrateResourceRequest migrateAutomlDatasetConfig */ + migrateAutomlDatasetConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null); - /** - * Creates a plain object from a DeleteModelVersionRequest message. Also converts values to other types if specified. - * @param message DeleteModelVersionRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteModelVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** MigrateResourceRequest migrateDataLabelingDatasetConfig */ + migrateDataLabelingDatasetConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null); + } - /** - * Converts this DeleteModelVersionRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a MigrateResourceRequest. */ + class MigrateResourceRequest implements IMigrateResourceRequest { /** - * Gets the default type url for DeleteModelVersionRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Constructs a new MigrateResourceRequest. + * @param [properties] Properties to set */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a MergeVersionAliasesRequest. */ - interface IMergeVersionAliasesRequest { - - /** MergeVersionAliasesRequest name */ - name?: (string|null); + constructor(properties?: google.cloud.aiplatform.v1.IMigrateResourceRequest); - /** MergeVersionAliasesRequest versionAliases */ - versionAliases?: (string[]|null); - } + /** MigrateResourceRequest migrateMlEngineModelVersionConfig. */ + public migrateMlEngineModelVersionConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null); - /** Represents a MergeVersionAliasesRequest. */ - class MergeVersionAliasesRequest implements IMergeVersionAliasesRequest { + /** MigrateResourceRequest migrateAutomlModelConfig. */ + public migrateAutomlModelConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig|null); - /** - * Constructs a new MergeVersionAliasesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest); + /** MigrateResourceRequest migrateAutomlDatasetConfig. */ + public migrateAutomlDatasetConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null); - /** MergeVersionAliasesRequest name. */ - public name: string; + /** MigrateResourceRequest migrateDataLabelingDatasetConfig. */ + public migrateDataLabelingDatasetConfig?: (google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null); - /** MergeVersionAliasesRequest versionAliases. */ - public versionAliases: string[]; + /** MigrateResourceRequest request. */ + public request?: ("migrateMlEngineModelVersionConfig"|"migrateAutomlModelConfig"|"migrateAutomlDatasetConfig"|"migrateDataLabelingDatasetConfig"); /** - * Creates a new MergeVersionAliasesRequest instance using the specified properties. + * Creates a new MigrateResourceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MergeVersionAliasesRequest instance + * @returns MigrateResourceRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest): google.cloud.aiplatform.v1.MergeVersionAliasesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IMigrateResourceRequest): google.cloud.aiplatform.v1.MigrateResourceRequest; /** - * Encodes the specified MergeVersionAliasesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. - * @param message MergeVersionAliasesRequest message or plain object to encode + * Encodes the specified MigrateResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.verify|verify} messages. + * @param message MigrateResourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IMigrateResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MergeVersionAliasesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. - * @param message MergeVersionAliasesRequest message or plain object to encode + * Encodes the specified MigrateResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.verify|verify} messages. + * @param message MigrateResourceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMigrateResourceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer. + * Decodes a MigrateResourceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MergeVersionAliasesRequest + * @returns MigrateResourceRequest * @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.MergeVersionAliasesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MigrateResourceRequest; /** - * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer, length delimited. + * Decodes a MigrateResourceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MergeVersionAliasesRequest + * @returns MigrateResourceRequest * @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.MergeVersionAliasesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MigrateResourceRequest; /** - * Verifies a MergeVersionAliasesRequest message. + * Verifies a MigrateResourceRequest 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 MergeVersionAliasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateResourceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MergeVersionAliasesRequest + * @returns MigrateResourceRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MergeVersionAliasesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest; /** - * Creates a plain object from a MergeVersionAliasesRequest message. Also converts values to other types if specified. - * @param message MergeVersionAliasesRequest + * Creates a plain object from a MigrateResourceRequest message. Also converts values to other types if specified. + * @param message MigrateResourceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.MergeVersionAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MergeVersionAliasesRequest to JSON. + * Converts this MigrateResourceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MergeVersionAliasesRequest + * Gets the default type url for MigrateResourceRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportModelRequest. */ - interface IExportModelRequest { + namespace MigrateResourceRequest { - /** ExportModelRequest name */ - name?: (string|null); + /** Properties of a MigrateMlEngineModelVersionConfig. */ + interface IMigrateMlEngineModelVersionConfig { - /** ExportModelRequest outputConfig */ - outputConfig?: (google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig|null); - } + /** MigrateMlEngineModelVersionConfig endpoint */ + endpoint?: (string|null); - /** Represents an ExportModelRequest. */ - class ExportModelRequest implements IExportModelRequest { + /** MigrateMlEngineModelVersionConfig modelVersion */ + modelVersion?: (string|null); - /** - * Constructs a new ExportModelRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IExportModelRequest); + /** MigrateMlEngineModelVersionConfig modelDisplayName */ + modelDisplayName?: (string|null); + } - /** ExportModelRequest name. */ - public name: string; + /** Represents a MigrateMlEngineModelVersionConfig. */ + class MigrateMlEngineModelVersionConfig implements IMigrateMlEngineModelVersionConfig { - /** ExportModelRequest outputConfig. */ - public outputConfig?: (google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig|null); + /** + * Constructs a new MigrateMlEngineModelVersionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig); - /** - * Creates a new ExportModelRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExportModelRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IExportModelRequest): google.cloud.aiplatform.v1.ExportModelRequest; + /** MigrateMlEngineModelVersionConfig endpoint. */ + public endpoint: string; - /** - * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.verify|verify} messages. - * @param message ExportModelRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** MigrateMlEngineModelVersionConfig modelVersion. */ + public modelVersion: string; - /** - * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.verify|verify} messages. - * @param message ExportModelRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** MigrateMlEngineModelVersionConfig modelDisplayName. */ + public modelDisplayName: string; - /** - * Decodes an ExportModelRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExportModelRequest - * @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.ExportModelRequest; + /** + * Creates a new MigrateMlEngineModelVersionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MigrateMlEngineModelVersionConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; - /** - * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExportModelRequest - * @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.ExportModelRequest; + /** + * Encodes the specified MigrateMlEngineModelVersionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * @param message MigrateMlEngineModelVersionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies an ExportModelRequest 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); + /** + * Encodes the specified MigrateMlEngineModelVersionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * @param message MigrateMlEngineModelVersionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an ExportModelRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExportModelRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelRequest; + /** + * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MigrateMlEngineModelVersionConfig + * @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.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; - /** - * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified. - * @param message ExportModelRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ExportModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MigrateMlEngineModelVersionConfig + * @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.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; - /** - * Converts this ExportModelRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a MigrateMlEngineModelVersionConfig 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); - /** - * Gets the default type url for ExportModelRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a MigrateMlEngineModelVersionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MigrateMlEngineModelVersionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig; - namespace ExportModelRequest { + /** + * Creates a plain object from a MigrateMlEngineModelVersionConfig message. Also converts values to other types if specified. + * @param message MigrateMlEngineModelVersionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of an OutputConfig. */ - interface IOutputConfig { + /** + * Converts this MigrateMlEngineModelVersionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** OutputConfig exportFormatId */ - exportFormatId?: (string|null); + /** + * Gets the default type url for MigrateMlEngineModelVersionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** OutputConfig artifactDestination */ - artifactDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** Properties of a MigrateAutomlModelConfig. */ + interface IMigrateAutomlModelConfig { - /** OutputConfig imageDestination */ - imageDestination?: (google.cloud.aiplatform.v1.IContainerRegistryDestination|null); + /** MigrateAutomlModelConfig model */ + model?: (string|null); + + /** MigrateAutomlModelConfig modelDisplayName */ + modelDisplayName?: (string|null); } - /** Represents an OutputConfig. */ - class OutputConfig implements IOutputConfig { + /** Represents a MigrateAutomlModelConfig. */ + class MigrateAutomlModelConfig implements IMigrateAutomlModelConfig { /** - * Constructs a new OutputConfig. + * Constructs a new MigrateAutomlModelConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig); - - /** OutputConfig exportFormatId. */ - public exportFormatId: string; + constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig); - /** OutputConfig artifactDestination. */ - public artifactDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** MigrateAutomlModelConfig model. */ + public model: string; - /** OutputConfig imageDestination. */ - public imageDestination?: (google.cloud.aiplatform.v1.IContainerRegistryDestination|null); + /** MigrateAutomlModelConfig modelDisplayName. */ + public modelDisplayName: string; /** - * Creates a new OutputConfig instance using the specified properties. + * Creates a new MigrateAutomlModelConfig instance using the specified properties. * @param [properties] Properties to set - * @returns OutputConfig instance + * @returns MigrateAutomlModelConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig): google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig; + public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig; /** - * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify|verify} messages. - * @param message OutputConfig message or plain object to encode + * Encodes the specified MigrateAutomlModelConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * @param message MigrateAutomlModelConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify|verify} messages. - * @param message OutputConfig message or plain object to encode + * Encodes the specified MigrateAutomlModelConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * @param message MigrateAutomlModelConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OutputConfig message from the specified reader or buffer. + * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OutputConfig + * @returns MigrateAutomlModelConfig * @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.ExportModelRequest.OutputConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig; /** - * Decodes an OutputConfig message from the specified reader or buffer, length delimited. + * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OutputConfig + * @returns MigrateAutomlModelConfig * @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.ExportModelRequest.OutputConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig; /** - * Verifies an OutputConfig message. + * Verifies a MigrateAutomlModelConfig 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 OutputConfig message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateAutomlModelConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OutputConfig + * @returns MigrateAutomlModelConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig; /** - * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. - * @param message OutputConfig + * Creates a plain object from a MigrateAutomlModelConfig message. Also converts values to other types if specified. + * @param message MigrateAutomlModelConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OutputConfig to JSON. + * Converts this MigrateAutomlModelConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OutputConfig + * Gets the default type url for MigrateAutomlModelConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - - /** Properties of an ExportModelOperationMetadata. */ - interface IExportModelOperationMetadata { - /** ExportModelOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** Properties of a MigrateAutomlDatasetConfig. */ + interface IMigrateAutomlDatasetConfig { - /** ExportModelOperationMetadata outputInfo */ - outputInfo?: (google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo|null); - } + /** MigrateAutomlDatasetConfig dataset */ + dataset?: (string|null); - /** Represents an ExportModelOperationMetadata. */ - class ExportModelOperationMetadata implements IExportModelOperationMetadata { + /** MigrateAutomlDatasetConfig datasetDisplayName */ + datasetDisplayName?: (string|null); + } - /** - * Constructs a new ExportModelOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IExportModelOperationMetadata); + /** Represents a MigrateAutomlDatasetConfig. */ + class MigrateAutomlDatasetConfig implements IMigrateAutomlDatasetConfig { - /** ExportModelOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** + * Constructs a new MigrateAutomlDatasetConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig); - /** ExportModelOperationMetadata outputInfo. */ - public outputInfo?: (google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo|null); + /** MigrateAutomlDatasetConfig dataset. */ + public dataset: string; - /** - * Creates a new ExportModelOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ExportModelOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IExportModelOperationMetadata): google.cloud.aiplatform.v1.ExportModelOperationMetadata; + /** MigrateAutomlDatasetConfig datasetDisplayName. */ + public datasetDisplayName: string; - /** - * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.verify|verify} messages. - * @param message ExportModelOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new MigrateAutomlDatasetConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MigrateAutomlDatasetConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig; - /** - * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.verify|verify} messages. - * @param message ExportModelOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MigrateAutomlDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * @param message MigrateAutomlDatasetConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an ExportModelOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExportModelOperationMetadata - * @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.ExportModelOperationMetadata; + /** + * Encodes the specified MigrateAutomlDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * @param message MigrateAutomlDatasetConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExportModelOperationMetadata - * @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.ExportModelOperationMetadata; + /** + * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MigrateAutomlDatasetConfig + * @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.MigrateResourceRequest.MigrateAutomlDatasetConfig; - /** - * Verifies an ExportModelOperationMetadata 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); + /** + * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MigrateAutomlDatasetConfig + * @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.MigrateResourceRequest.MigrateAutomlDatasetConfig; - /** - * Creates an ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExportModelOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelOperationMetadata; + /** + * Verifies a MigrateAutomlDatasetConfig 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 plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified. - * @param message ExportModelOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ExportModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a MigrateAutomlDatasetConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MigrateAutomlDatasetConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig; - /** - * Converts this ExportModelOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a MigrateAutomlDatasetConfig message. Also converts values to other types if specified. + * @param message MigrateAutomlDatasetConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for ExportModelOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this MigrateAutomlDatasetConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - namespace ExportModelOperationMetadata { + /** + * Gets the default type url for MigrateAutomlDatasetConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of an OutputInfo. */ - interface IOutputInfo { + /** Properties of a MigrateDataLabelingDatasetConfig. */ + interface IMigrateDataLabelingDatasetConfig { - /** OutputInfo artifactOutputUri */ - artifactOutputUri?: (string|null); + /** MigrateDataLabelingDatasetConfig dataset */ + dataset?: (string|null); - /** OutputInfo imageOutputUri */ - imageOutputUri?: (string|null); + /** MigrateDataLabelingDatasetConfig datasetDisplayName */ + datasetDisplayName?: (string|null); + + /** MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs */ + migrateDataLabelingAnnotatedDatasetConfigs?: (google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig[]|null); } - /** Represents an OutputInfo. */ - class OutputInfo implements IOutputInfo { + /** Represents a MigrateDataLabelingDatasetConfig. */ + class MigrateDataLabelingDatasetConfig implements IMigrateDataLabelingDatasetConfig { /** - * Constructs a new OutputInfo. + * Constructs a new MigrateDataLabelingDatasetConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo); + constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig); - /** OutputInfo artifactOutputUri. */ - public artifactOutputUri: string; + /** MigrateDataLabelingDatasetConfig dataset. */ + public dataset: string; - /** OutputInfo imageOutputUri. */ - public imageOutputUri: string; + /** MigrateDataLabelingDatasetConfig datasetDisplayName. */ + public datasetDisplayName: string; + + /** MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs. */ + public migrateDataLabelingAnnotatedDatasetConfigs: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig[]; /** - * Creates a new OutputInfo instance using the specified properties. + * Creates a new MigrateDataLabelingDatasetConfig instance using the specified properties. * @param [properties] Properties to set - * @returns OutputInfo instance + * @returns MigrateDataLabelingDatasetConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo): google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo; + public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; /** - * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. - * @param message OutputInfo message or plain object to encode + * Encodes the specified MigrateDataLabelingDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * @param message MigrateDataLabelingDatasetConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. - * @param message OutputInfo message or plain object to encode + * Encodes the specified MigrateDataLabelingDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * @param message MigrateDataLabelingDatasetConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OutputInfo message from the specified reader or buffer. + * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OutputInfo + * @returns MigrateDataLabelingDatasetConfig * @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.ExportModelOperationMetadata.OutputInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; /** - * Decodes an OutputInfo message from the specified reader or buffer, length delimited. + * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OutputInfo + * @returns MigrateDataLabelingDatasetConfig * @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.ExportModelOperationMetadata.OutputInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; /** - * Verifies an OutputInfo message. + * Verifies a MigrateDataLabelingDatasetConfig 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 OutputInfo message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateDataLabelingDatasetConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OutputInfo + * @returns MigrateDataLabelingDatasetConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig; /** - * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. - * @param message OutputInfo + * Creates a plain object from a MigrateDataLabelingDatasetConfig message. Also converts values to other types if specified. + * @param message MigrateDataLabelingDatasetConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OutputInfo to JSON. + * Converts this MigrateDataLabelingDatasetConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OutputInfo + * Gets the default type url for MigrateDataLabelingDatasetConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + namespace MigrateDataLabelingDatasetConfig { + + /** Properties of a MigrateDataLabelingAnnotatedDatasetConfig. */ + interface IMigrateDataLabelingAnnotatedDatasetConfig { + + /** MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset */ + annotatedDataset?: (string|null); + } + + /** Represents a MigrateDataLabelingAnnotatedDatasetConfig. */ + class MigrateDataLabelingAnnotatedDatasetConfig implements IMigrateDataLabelingAnnotatedDatasetConfig { + + /** + * Constructs a new MigrateDataLabelingAnnotatedDatasetConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig); + + /** MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset. */ + public annotatedDataset: string; + + /** + * Creates a new MigrateDataLabelingAnnotatedDatasetConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MigrateDataLabelingAnnotatedDatasetConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + + /** + * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * @param message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * @param message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MigrateDataLabelingAnnotatedDatasetConfig + * @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.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + + /** + * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MigrateDataLabelingAnnotatedDatasetConfig + * @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.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + + /** + * Verifies a MigrateDataLabelingAnnotatedDatasetConfig 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 MigrateDataLabelingAnnotatedDatasetConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MigrateDataLabelingAnnotatedDatasetConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig; + + /** + * Creates a plain object from a MigrateDataLabelingAnnotatedDatasetConfig message. Also converts values to other types if specified. + * @param message MigrateDataLabelingAnnotatedDatasetConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MigrateDataLabelingAnnotatedDatasetConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MigrateDataLabelingAnnotatedDatasetConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } } - /** Properties of an ExportModelResponse. */ - interface IExportModelResponse { + /** Properties of a BatchMigrateResourcesResponse. */ + interface IBatchMigrateResourcesResponse { + + /** BatchMigrateResourcesResponse migrateResourceResponses */ + migrateResourceResponses?: (google.cloud.aiplatform.v1.IMigrateResourceResponse[]|null); } - /** Represents an ExportModelResponse. */ - class ExportModelResponse implements IExportModelResponse { + /** Represents a BatchMigrateResourcesResponse. */ + class BatchMigrateResourcesResponse implements IBatchMigrateResourcesResponse { /** - * Constructs a new ExportModelResponse. + * Constructs a new BatchMigrateResourcesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IExportModelResponse); + constructor(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse); + + /** BatchMigrateResourcesResponse migrateResourceResponses. */ + public migrateResourceResponses: google.cloud.aiplatform.v1.IMigrateResourceResponse[]; /** - * Creates a new ExportModelResponse instance using the specified properties. + * Creates a new BatchMigrateResourcesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExportModelResponse instance + * @returns BatchMigrateResourcesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IExportModelResponse): google.cloud.aiplatform.v1.ExportModelResponse; + public static create(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse): google.cloud.aiplatform.v1.BatchMigrateResourcesResponse; /** - * Encodes the specified ExportModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelResponse.verify|verify} messages. - * @param message ExportModelResponse message or plain object to encode + * Encodes the specified BatchMigrateResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.verify|verify} messages. + * @param message BatchMigrateResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IExportModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelResponse.verify|verify} messages. - * @param message ExportModelResponse message or plain object to encode + * Encodes the specified BatchMigrateResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.verify|verify} messages. + * @param message BatchMigrateResourcesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportModelResponse message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportModelResponse + * @returns BatchMigrateResourcesResponse * @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.ExportModelResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchMigrateResourcesResponse; /** - * Decodes an ExportModelResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportModelResponse + * @returns BatchMigrateResourcesResponse * @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.ExportModelResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchMigrateResourcesResponse; /** - * Verifies an ExportModelResponse message. + * Verifies a BatchMigrateResourcesResponse 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 ExportModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportModelResponse + * @returns BatchMigrateResourcesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchMigrateResourcesResponse; /** - * Creates a plain object from an ExportModelResponse message. Also converts values to other types if specified. - * @param message ExportModelResponse + * Creates a plain object from a BatchMigrateResourcesResponse message. Also converts values to other types if specified. + * @param message BatchMigrateResourcesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ExportModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchMigrateResourcesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportModelResponse to JSON. + * Converts this BatchMigrateResourcesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportModelResponse + * Gets the default type url for BatchMigrateResourcesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportModelEvaluationRequest. */ - interface IImportModelEvaluationRequest { + /** Properties of a MigrateResourceResponse. */ + interface IMigrateResourceResponse { - /** ImportModelEvaluationRequest parent */ - parent?: (string|null); + /** MigrateResourceResponse dataset */ + dataset?: (string|null); - /** ImportModelEvaluationRequest modelEvaluation */ - modelEvaluation?: (google.cloud.aiplatform.v1.IModelEvaluation|null); + /** MigrateResourceResponse model */ + model?: (string|null); + + /** MigrateResourceResponse migratableResource */ + migratableResource?: (google.cloud.aiplatform.v1.IMigratableResource|null); } - /** Represents an ImportModelEvaluationRequest. */ - class ImportModelEvaluationRequest implements IImportModelEvaluationRequest { + /** Represents a MigrateResourceResponse. */ + class MigrateResourceResponse implements IMigrateResourceResponse { /** - * Constructs a new ImportModelEvaluationRequest. + * Constructs a new MigrateResourceResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IImportModelEvaluationRequest); + constructor(properties?: google.cloud.aiplatform.v1.IMigrateResourceResponse); - /** ImportModelEvaluationRequest parent. */ - public parent: string; + /** MigrateResourceResponse dataset. */ + public dataset?: (string|null); - /** ImportModelEvaluationRequest modelEvaluation. */ - public modelEvaluation?: (google.cloud.aiplatform.v1.IModelEvaluation|null); + /** MigrateResourceResponse model. */ + public model?: (string|null); + + /** MigrateResourceResponse migratableResource. */ + public migratableResource?: (google.cloud.aiplatform.v1.IMigratableResource|null); + + /** MigrateResourceResponse migratedResource. */ + public migratedResource?: ("dataset"|"model"); /** - * Creates a new ImportModelEvaluationRequest instance using the specified properties. + * Creates a new MigrateResourceResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ImportModelEvaluationRequest instance + * @returns MigrateResourceResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IImportModelEvaluationRequest): google.cloud.aiplatform.v1.ImportModelEvaluationRequest; + public static create(properties?: google.cloud.aiplatform.v1.IMigrateResourceResponse): google.cloud.aiplatform.v1.MigrateResourceResponse; /** - * Encodes the specified ImportModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportModelEvaluationRequest.verify|verify} messages. - * @param message ImportModelEvaluationRequest message or plain object to encode + * Encodes the specified MigrateResourceResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceResponse.verify|verify} messages. + * @param message MigrateResourceResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IImportModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IMigrateResourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportModelEvaluationRequest.verify|verify} messages. - * @param message ImportModelEvaluationRequest message or plain object to encode + * Encodes the specified MigrateResourceResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceResponse.verify|verify} messages. + * @param message MigrateResourceResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IImportModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMigrateResourceResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer. + * Decodes a MigrateResourceResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportModelEvaluationRequest + * @returns MigrateResourceResponse * @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.ImportModelEvaluationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MigrateResourceResponse; /** - * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer, length delimited. + * Decodes a MigrateResourceResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportModelEvaluationRequest + * @returns MigrateResourceResponse * @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.ImportModelEvaluationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MigrateResourceResponse; /** - * Verifies an ImportModelEvaluationRequest message. + * Verifies a MigrateResourceResponse 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 ImportModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateResourceResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportModelEvaluationRequest + * @returns MigrateResourceResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ImportModelEvaluationRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MigrateResourceResponse; /** - * Creates a plain object from an ImportModelEvaluationRequest message. Also converts values to other types if specified. - * @param message ImportModelEvaluationRequest + * Creates a plain object from a MigrateResourceResponse message. Also converts values to other types if specified. + * @param message MigrateResourceResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ImportModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.MigrateResourceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportModelEvaluationRequest to JSON. + * Converts this MigrateResourceResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportModelEvaluationRequest + * Gets the default type url for MigrateResourceResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchImportModelEvaluationSlicesRequest. */ - interface IBatchImportModelEvaluationSlicesRequest { + /** Properties of a BatchMigrateResourcesOperationMetadata. */ + interface IBatchMigrateResourcesOperationMetadata { - /** BatchImportModelEvaluationSlicesRequest parent */ - parent?: (string|null); + /** BatchMigrateResourcesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** BatchImportModelEvaluationSlicesRequest modelEvaluationSlices */ - modelEvaluationSlices?: (google.cloud.aiplatform.v1.IModelEvaluationSlice[]|null); + /** BatchMigrateResourcesOperationMetadata partialResults */ + partialResults?: (google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult[]|null); } - /** Represents a BatchImportModelEvaluationSlicesRequest. */ - class BatchImportModelEvaluationSlicesRequest implements IBatchImportModelEvaluationSlicesRequest { + /** Represents a BatchMigrateResourcesOperationMetadata. */ + class BatchMigrateResourcesOperationMetadata implements IBatchMigrateResourcesOperationMetadata { /** - * Constructs a new BatchImportModelEvaluationSlicesRequest. + * Constructs a new BatchMigrateResourcesOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest); + constructor(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata); - /** BatchImportModelEvaluationSlicesRequest parent. */ - public parent: string; + /** BatchMigrateResourcesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** BatchImportModelEvaluationSlicesRequest modelEvaluationSlices. */ - public modelEvaluationSlices: google.cloud.aiplatform.v1.IModelEvaluationSlice[]; + /** BatchMigrateResourcesOperationMetadata partialResults. */ + public partialResults: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult[]; /** - * Creates a new BatchImportModelEvaluationSlicesRequest instance using the specified properties. + * Creates a new BatchMigrateResourcesOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns BatchImportModelEvaluationSlicesRequest instance + * @returns BatchMigrateResourcesOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata; /** - * Encodes the specified BatchImportModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. - * @param message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * Encodes the specified BatchMigrateResourcesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. + * @param message BatchMigrateResourcesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchImportModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. - * @param message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * Encodes the specified BatchMigrateResourcesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. + * @param message BatchMigrateResourcesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchImportModelEvaluationSlicesRequest + * @returns BatchMigrateResourcesOperationMetadata * @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.BatchImportModelEvaluationSlicesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata; /** - * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchImportModelEvaluationSlicesRequest + * @returns BatchMigrateResourcesOperationMetadata * @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.BatchImportModelEvaluationSlicesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata; /** - * Verifies a BatchImportModelEvaluationSlicesRequest message. + * Verifies a BatchMigrateResourcesOperationMetadata 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 BatchImportModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchImportModelEvaluationSlicesRequest + * @returns BatchMigrateResourcesOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata; /** - * Creates a plain object from a BatchImportModelEvaluationSlicesRequest message. Also converts values to other types if specified. - * @param message BatchImportModelEvaluationSlicesRequest + * Creates a plain object from a BatchMigrateResourcesOperationMetadata message. Also converts values to other types if specified. + * @param message BatchMigrateResourcesOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchImportModelEvaluationSlicesRequest to JSON. + * Converts this BatchMigrateResourcesOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchImportModelEvaluationSlicesRequest + * Gets the default type url for BatchMigrateResourcesOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchImportModelEvaluationSlicesResponse. */ - interface IBatchImportModelEvaluationSlicesResponse { + namespace BatchMigrateResourcesOperationMetadata { - /** BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices */ - importedModelEvaluationSlices?: (string[]|null); - } + /** Properties of a PartialResult. */ + interface IPartialResult { - /** Represents a BatchImportModelEvaluationSlicesResponse. */ - class BatchImportModelEvaluationSlicesResponse implements IBatchImportModelEvaluationSlicesResponse { + /** PartialResult error */ + error?: (google.rpc.IStatus|null); - /** - * Constructs a new BatchImportModelEvaluationSlicesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse); + /** PartialResult model */ + model?: (string|null); - /** BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices. */ - public importedModelEvaluationSlices: string[]; + /** PartialResult dataset */ + dataset?: (string|null); - /** - * Creates a new BatchImportModelEvaluationSlicesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns BatchImportModelEvaluationSlicesResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; + /** PartialResult request */ + request?: (google.cloud.aiplatform.v1.IMigrateResourceRequest|null); + } - /** - * Encodes the specified BatchImportModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. - * @param message BatchImportModelEvaluationSlicesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a PartialResult. */ + class PartialResult implements IPartialResult { - /** - * Encodes the specified BatchImportModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. - * @param message BatchImportModelEvaluationSlicesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new PartialResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult); - /** - * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BatchImportModelEvaluationSlicesResponse - * @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.BatchImportModelEvaluationSlicesResponse; + /** PartialResult error. */ + public error?: (google.rpc.IStatus|null); - /** - * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BatchImportModelEvaluationSlicesResponse - * @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.BatchImportModelEvaluationSlicesResponse; + /** PartialResult model. */ + public model?: (string|null); - /** - * Verifies a BatchImportModelEvaluationSlicesResponse 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); + /** PartialResult dataset. */ + public dataset?: (string|null); - /** - * Creates a BatchImportModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BatchImportModelEvaluationSlicesResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; + /** PartialResult request. */ + public request?: (google.cloud.aiplatform.v1.IMigrateResourceRequest|null); - /** - * Creates a plain object from a BatchImportModelEvaluationSlicesResponse message. Also converts values to other types if specified. - * @param message BatchImportModelEvaluationSlicesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** PartialResult result. */ + public result?: ("error"|"model"|"dataset"); - /** - * Converts this BatchImportModelEvaluationSlicesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new PartialResult instance using the specified properties. + * @param [properties] Properties to set + * @returns PartialResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult; - /** - * Gets the default type url for BatchImportModelEvaluationSlicesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Encodes the specified PartialResult message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. + * @param message PartialResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PartialResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. + * @param message PartialResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PartialResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PartialResult + * @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.BatchMigrateResourcesOperationMetadata.PartialResult; + + /** + * Decodes a PartialResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PartialResult + * @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.BatchMigrateResourcesOperationMetadata.PartialResult; + + /** + * Verifies a PartialResult 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 PartialResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PartialResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult; + + /** + * Creates a plain object from a PartialResult message. Also converts values to other types if specified. + * @param message PartialResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PartialResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PartialResult + * @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 { + /** Properties of a ModelEvaluation. */ + interface IModelEvaluation { - /** GetModelEvaluationRequest name */ + /** ModelEvaluation name */ name?: (string|null); + + /** ModelEvaluation displayName */ + displayName?: (string|null); + + /** ModelEvaluation metricsSchemaUri */ + metricsSchemaUri?: (string|null); + + /** ModelEvaluation metrics */ + metrics?: (google.protobuf.IValue|null); + + /** ModelEvaluation createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** ModelEvaluation sliceDimensions */ + sliceDimensions?: (string[]|null); + + /** ModelEvaluation dataItemSchemaUri */ + dataItemSchemaUri?: (string|null); + + /** ModelEvaluation annotationSchemaUri */ + annotationSchemaUri?: (string|null); + + /** ModelEvaluation modelExplanation */ + modelExplanation?: (google.cloud.aiplatform.v1.IModelExplanation|null); + + /** ModelEvaluation explanationSpecs */ + explanationSpecs?: (google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec[]|null); + + /** ModelEvaluation metadata */ + metadata?: (google.protobuf.IValue|null); } - /** Represents a GetModelEvaluationRequest. */ - class GetModelEvaluationRequest implements IGetModelEvaluationRequest { + /** Represents a ModelEvaluation. */ + class ModelEvaluation implements IModelEvaluation { /** - * Constructs a new GetModelEvaluationRequest. + * Constructs a new ModelEvaluation. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetModelEvaluationRequest); + constructor(properties?: google.cloud.aiplatform.v1.IModelEvaluation); - /** GetModelEvaluationRequest name. */ + /** ModelEvaluation name. */ public name: string; + /** ModelEvaluation displayName. */ + public displayName: string; + + /** ModelEvaluation metricsSchemaUri. */ + public metricsSchemaUri: string; + + /** ModelEvaluation metrics. */ + public metrics?: (google.protobuf.IValue|null); + + /** ModelEvaluation createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** ModelEvaluation sliceDimensions. */ + public sliceDimensions: string[]; + + /** ModelEvaluation dataItemSchemaUri. */ + public dataItemSchemaUri: string; + + /** ModelEvaluation annotationSchemaUri. */ + public annotationSchemaUri: string; + + /** ModelEvaluation modelExplanation. */ + public modelExplanation?: (google.cloud.aiplatform.v1.IModelExplanation|null); + + /** ModelEvaluation explanationSpecs. */ + public explanationSpecs: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec[]; + + /** ModelEvaluation metadata. */ + public metadata?: (google.protobuf.IValue|null); + /** - * Creates a new GetModelEvaluationRequest instance using the specified properties. + * Creates a new ModelEvaluation instance using the specified properties. * @param [properties] Properties to set - * @returns GetModelEvaluationRequest instance + * @returns ModelEvaluation instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetModelEvaluationRequest): google.cloud.aiplatform.v1.GetModelEvaluationRequest; + public static create(properties?: google.cloud.aiplatform.v1.IModelEvaluation): google.cloud.aiplatform.v1.ModelEvaluation; /** - * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. - * @param message GetModelEvaluationRequest message or plain object to encode + * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.verify|verify} messages. + * @param message ModelEvaluation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. - * @param message GetModelEvaluationRequest message or plain object to encode + * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.verify|verify} messages. + * @param message ModelEvaluation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelEvaluation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. + * Decodes a ModelEvaluation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetModelEvaluationRequest + * @returns ModelEvaluation * @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.GetModelEvaluationRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelEvaluation; /** - * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetModelEvaluationRequest + * @returns ModelEvaluation * @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.GetModelEvaluationRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelEvaluation; /** - * Verifies a GetModelEvaluationRequest message. + * Verifies a ModelEvaluation 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 GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelEvaluation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetModelEvaluationRequest + * @returns ModelEvaluation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetModelEvaluationRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluation; /** - * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. - * @param message GetModelEvaluationRequest + * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified. + * @param message ModelEvaluation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetModelEvaluationRequest to JSON. + * Converts this ModelEvaluation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetModelEvaluationRequest + * Gets the default type url for ModelEvaluation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelEvaluationsRequest. */ - interface IListModelEvaluationsRequest { + namespace ModelEvaluation { - /** ListModelEvaluationsRequest parent */ - parent?: (string|null); + /** Properties of a ModelEvaluationExplanationSpec. */ + interface IModelEvaluationExplanationSpec { - /** ListModelEvaluationsRequest filter */ - filter?: (string|null); + /** ModelEvaluationExplanationSpec explanationType */ + explanationType?: (string|null); - /** ListModelEvaluationsRequest pageSize */ - pageSize?: (number|null); + /** ModelEvaluationExplanationSpec explanationSpec */ + explanationSpec?: (google.cloud.aiplatform.v1.IExplanationSpec|null); + } - /** ListModelEvaluationsRequest pageToken */ - pageToken?: (string|null); + /** Represents a ModelEvaluationExplanationSpec. */ + class ModelEvaluationExplanationSpec implements IModelEvaluationExplanationSpec { - /** ListModelEvaluationsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** + * Constructs a new ModelEvaluationExplanationSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec); + + /** ModelEvaluationExplanationSpec explanationType. */ + public explanationType: string; + + /** ModelEvaluationExplanationSpec explanationSpec. */ + public explanationSpec?: (google.cloud.aiplatform.v1.IExplanationSpec|null); + + /** + * Creates a new ModelEvaluationExplanationSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelEvaluationExplanationSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec): google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec; + + /** + * Encodes the specified ModelEvaluationExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * @param message ModelEvaluationExplanationSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ModelEvaluationExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * @param message ModelEvaluationExplanationSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelEvaluationExplanationSpec + * @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.ModelEvaluation.ModelEvaluationExplanationSpec; + + /** + * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelEvaluationExplanationSpec + * @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.ModelEvaluation.ModelEvaluationExplanationSpec; + + /** + * Verifies a ModelEvaluationExplanationSpec 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 ModelEvaluationExplanationSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelEvaluationExplanationSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec; + + /** + * Creates a plain object from a ModelEvaluationExplanationSpec message. Also converts values to other types if specified. + * @param message ModelEvaluationExplanationSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ModelEvaluationExplanationSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ModelEvaluationExplanationSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a ListModelEvaluationsRequest. */ - class ListModelEvaluationsRequest implements IListModelEvaluationsRequest { + /** Properties of a ModelEvaluationSlice. */ + interface IModelEvaluationSlice { + + /** ModelEvaluationSlice name */ + name?: (string|null); + + /** ModelEvaluationSlice slice */ + slice?: (google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice|null); + + /** ModelEvaluationSlice metricsSchemaUri */ + metricsSchemaUri?: (string|null); + + /** ModelEvaluationSlice metrics */ + metrics?: (google.protobuf.IValue|null); + + /** ModelEvaluationSlice createTime */ + createTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a ModelEvaluationSlice. */ + class ModelEvaluationSlice implements IModelEvaluationSlice { /** - * Constructs a new ListModelEvaluationsRequest. + * Constructs a new ModelEvaluationSlice. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelEvaluationsRequest); + constructor(properties?: google.cloud.aiplatform.v1.IModelEvaluationSlice); - /** ListModelEvaluationsRequest parent. */ - public parent: string; + /** ModelEvaluationSlice name. */ + public name: string; - /** ListModelEvaluationsRequest filter. */ - public filter: string; + /** ModelEvaluationSlice slice. */ + public slice?: (google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice|null); - /** ListModelEvaluationsRequest pageSize. */ - public pageSize: number; + /** ModelEvaluationSlice metricsSchemaUri. */ + public metricsSchemaUri: string; - /** ListModelEvaluationsRequest pageToken. */ - public pageToken: string; + /** ModelEvaluationSlice metrics. */ + public metrics?: (google.protobuf.IValue|null); - /** ListModelEvaluationsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ModelEvaluationSlice createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new ListModelEvaluationsRequest instance using the specified properties. + * Creates a new ModelEvaluationSlice instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelEvaluationsRequest instance + * @returns ModelEvaluationSlice instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelEvaluationsRequest): google.cloud.aiplatform.v1.ListModelEvaluationsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IModelEvaluationSlice): google.cloud.aiplatform.v1.ModelEvaluationSlice; /** - * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. - * @param message ListModelEvaluationsRequest message or plain object to encode + * Encodes the specified ModelEvaluationSlice message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.verify|verify} messages. + * @param message ModelEvaluationSlice message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IModelEvaluationSlice, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. - * @param message ListModelEvaluationsRequest message or plain object to encode + * Encodes the specified ModelEvaluationSlice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.verify|verify} messages. + * @param message ModelEvaluationSlice message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IModelEvaluationSlice, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. + * Decodes a ModelEvaluationSlice message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelEvaluationsRequest + * @returns ModelEvaluationSlice * @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.ListModelEvaluationsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ModelEvaluationSlice; /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelEvaluationSlice message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelEvaluationsRequest + * @returns ModelEvaluationSlice * @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.ListModelEvaluationsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ModelEvaluationSlice; /** - * Verifies a ListModelEvaluationsRequest message. + * Verifies a ModelEvaluationSlice 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 ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelEvaluationSlice message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelEvaluationsRequest + * @returns ModelEvaluationSlice */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelEvaluationsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluationSlice; /** - * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. - * @param message ListModelEvaluationsRequest + * Creates a plain object from a ModelEvaluationSlice message. Also converts values to other types if specified. + * @param message ModelEvaluationSlice * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelEvaluationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluationSlice, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelEvaluationsRequest to JSON. + * Converts this ModelEvaluationSlice to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelEvaluationsRequest + * Gets the default type url for ModelEvaluationSlice * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelEvaluationsResponse. */ - interface IListModelEvaluationsResponse { + namespace ModelEvaluationSlice { - /** ListModelEvaluationsResponse modelEvaluations */ - modelEvaluations?: (google.cloud.aiplatform.v1.IModelEvaluation[]|null); + /** Properties of a Slice. */ + interface ISlice { - /** ListModelEvaluationsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** Slice dimension */ + dimension?: (string|null); - /** Represents a ListModelEvaluationsResponse. */ - class ListModelEvaluationsResponse implements IListModelEvaluationsResponse { + /** Slice value */ + value?: (string|null); + } - /** - * Constructs a new ListModelEvaluationsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelEvaluationsResponse); + /** Represents a Slice. */ + class Slice implements ISlice { - /** ListModelEvaluationsResponse modelEvaluations. */ - public modelEvaluations: google.cloud.aiplatform.v1.IModelEvaluation[]; + /** + * Constructs a new Slice. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice); - /** ListModelEvaluationsResponse nextPageToken. */ - public nextPageToken: string; + /** Slice dimension. */ + public dimension: string; + + /** Slice value. */ + public value: string; + + /** + * Creates a new Slice instance using the specified properties. + * @param [properties] Properties to set + * @returns Slice instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice): google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice; + + /** + * Encodes the specified Slice message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify|verify} messages. + * @param message Slice message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Slice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify|verify} messages. + * @param message Slice message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Slice message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Slice + * @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; + + /** + * Decodes a Slice message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Slice + * @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; + + /** + * Verifies a Slice 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 Slice message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Slice + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice; + + /** + * Creates a plain object from a Slice message. Also converts values to other types if specified. + * @param message Slice + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Slice to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Slice + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Represents a ModelService */ + class ModelService extends $protobuf.rpc.Service { /** - * Creates a new ListModelEvaluationsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListModelEvaluationsResponse instance + * Constructs a new ModelService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelEvaluationsResponse): google.cloud.aiplatform.v1.ListModelEvaluationsResponse; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. - * @param message ListModelEvaluationsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Creates new ModelService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static encode(message: google.cloud.aiplatform.v1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ModelService; /** - * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. - * @param message ListModelEvaluationsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UploadModel. + * @param request UploadModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public uploadModel(request: google.cloud.aiplatform.v1.IUploadModelRequest, callback: google.cloud.aiplatform.v1.ModelService.UploadModelCallback): void; /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListModelEvaluationsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UploadModel. + * @param request UploadModelRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelEvaluationsResponse; + public uploadModel(request: google.cloud.aiplatform.v1.IUploadModelRequest): Promise; /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListModelEvaluationsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetModel. + * @param request GetModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Model */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelEvaluationsResponse; + public getModel(request: google.cloud.aiplatform.v1.IGetModelRequest, callback: google.cloud.aiplatform.v1.ModelService.GetModelCallback): void; /** - * Verifies a ListModelEvaluationsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetModel. + * @param request GetModelRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public getModel(request: google.cloud.aiplatform.v1.IGetModelRequest): Promise; /** - * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListModelEvaluationsResponse + * Calls ListModels. + * @param request ListModelsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelEvaluationsResponse; + public listModels(request: google.cloud.aiplatform.v1.IListModelsRequest, callback: google.cloud.aiplatform.v1.ModelService.ListModelsCallback): void; /** - * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. - * @param message ListModelEvaluationsResponse - * @param [options] Conversion options - * @returns Plain object + * Calls ListModels. + * @param request ListModelsRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelEvaluationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listModels(request: google.cloud.aiplatform.v1.IListModelsRequest): Promise; /** - * Converts this ListModelEvaluationsResponse to JSON. - * @returns JSON object + * Calls ListModelVersions. + * @param request ListModelVersionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelVersionsResponse */ - public toJSON(): { [k: string]: any }; + public listModelVersions(request: google.cloud.aiplatform.v1.IListModelVersionsRequest, callback: google.cloud.aiplatform.v1.ModelService.ListModelVersionsCallback): void; /** - * Gets the default type url for ListModelEvaluationsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls ListModelVersions. + * @param request ListModelVersionsRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetModelEvaluationSliceRequest. */ - interface IGetModelEvaluationSliceRequest { - - /** GetModelEvaluationSliceRequest name */ - name?: (string|null); - } - - /** Represents a GetModelEvaluationSliceRequest. */ - class GetModelEvaluationSliceRequest implements IGetModelEvaluationSliceRequest { + public listModelVersions(request: google.cloud.aiplatform.v1.IListModelVersionsRequest): Promise; /** - * Constructs a new GetModelEvaluationSliceRequest. - * @param [properties] Properties to set + * Calls UpdateModel. + * @param request UpdateModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Model */ - constructor(properties?: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest); - - /** GetModelEvaluationSliceRequest name. */ - public name: string; + public updateModel(request: google.cloud.aiplatform.v1.IUpdateModelRequest, callback: google.cloud.aiplatform.v1.ModelService.UpdateModelCallback): void; /** - * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetModelEvaluationSliceRequest instance + * Calls UpdateModel. + * @param request UpdateModelRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest): google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest; + public updateModel(request: google.cloud.aiplatform.v1.IUpdateModelRequest): Promise; /** - * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. - * @param message GetModelEvaluationSliceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteModel. + * @param request DeleteModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encode(message: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteModel(request: google.cloud.aiplatform.v1.IDeleteModelRequest, callback: google.cloud.aiplatform.v1.ModelService.DeleteModelCallback): void; /** - * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. - * @param message GetModelEvaluationSliceRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteModel. + * @param request DeleteModelRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteModel(request: google.cloud.aiplatform.v1.IDeleteModelRequest): Promise; /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetModelEvaluationSliceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteModelVersion. + * @param request DeleteModelVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest; + public deleteModelVersion(request: google.cloud.aiplatform.v1.IDeleteModelVersionRequest, callback: google.cloud.aiplatform.v1.ModelService.DeleteModelVersionCallback): void; /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetModelEvaluationSliceRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteModelVersion. + * @param request DeleteModelVersionRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest; + public deleteModelVersion(request: google.cloud.aiplatform.v1.IDeleteModelVersionRequest): Promise; /** - * Verifies a GetModelEvaluationSliceRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls MergeVersionAliases. + * @param request MergeVersionAliasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Model */ - public static verify(message: { [k: string]: any }): (string|null); + public mergeVersionAliases(request: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, callback: google.cloud.aiplatform.v1.ModelService.MergeVersionAliasesCallback): void; /** - * Creates a GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetModelEvaluationSliceRequest + * Calls MergeVersionAliases. + * @param request MergeVersionAliasesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest; + public mergeVersionAliases(request: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest): Promise; /** - * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. - * @param message GetModelEvaluationSliceRequest - * @param [options] Conversion options - * @returns Plain object + * Calls ExportModel. + * @param request ExportModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static toObject(message: google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public exportModel(request: google.cloud.aiplatform.v1.IExportModelRequest, callback: google.cloud.aiplatform.v1.ModelService.ExportModelCallback): void; /** - * Converts this GetModelEvaluationSliceRequest to JSON. - * @returns JSON object + * Calls ExportModel. + * @param request ExportModelRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public exportModel(request: google.cloud.aiplatform.v1.IExportModelRequest): Promise; /** - * Gets the default type url for GetModelEvaluationSliceRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CopyModel. + * @param request CopyModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListModelEvaluationSlicesRequest. */ - interface IListModelEvaluationSlicesRequest { - - /** ListModelEvaluationSlicesRequest parent */ - parent?: (string|null); - - /** ListModelEvaluationSlicesRequest filter */ - filter?: (string|null); - - /** ListModelEvaluationSlicesRequest pageSize */ - pageSize?: (number|null); - - /** ListModelEvaluationSlicesRequest pageToken */ - pageToken?: (string|null); - - /** ListModelEvaluationSlicesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); - } - - /** Represents a ListModelEvaluationSlicesRequest. */ - class ListModelEvaluationSlicesRequest implements IListModelEvaluationSlicesRequest { + public copyModel(request: google.cloud.aiplatform.v1.ICopyModelRequest, callback: google.cloud.aiplatform.v1.ModelService.CopyModelCallback): void; /** - * Constructs a new ListModelEvaluationSlicesRequest. - * @param [properties] Properties to set + * Calls CopyModel. + * @param request CopyModelRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest); - - /** ListModelEvaluationSlicesRequest parent. */ - public parent: string; - - /** ListModelEvaluationSlicesRequest filter. */ - public filter: string; - - /** ListModelEvaluationSlicesRequest pageSize. */ - public pageSize: number; - - /** ListModelEvaluationSlicesRequest pageToken. */ - public pageToken: string; - - /** ListModelEvaluationSlicesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + public copyModel(request: google.cloud.aiplatform.v1.ICopyModelRequest): Promise; /** - * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListModelEvaluationSlicesRequest instance + * Calls ImportModelEvaluation. + * @param request ImportModelEvaluationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelEvaluation */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest): google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest; + public importModelEvaluation(request: google.cloud.aiplatform.v1.IImportModelEvaluationRequest, callback: google.cloud.aiplatform.v1.ModelService.ImportModelEvaluationCallback): void; /** - * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. - * @param message ListModelEvaluationSlicesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ImportModelEvaluation. + * @param request ImportModelEvaluationRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public importModelEvaluation(request: google.cloud.aiplatform.v1.IImportModelEvaluationRequest): Promise; /** - * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. - * @param message ListModelEvaluationSlicesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls BatchImportModelEvaluationSlices. + * @param request BatchImportModelEvaluationSlicesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchImportModelEvaluationSlicesResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, callback: google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlicesCallback): void; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListModelEvaluationSlicesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls BatchImportModelEvaluationSlices. + * @param request BatchImportModelEvaluationSlicesRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest; + public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest): Promise; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListModelEvaluationSlicesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetModelEvaluation. + * @param request GetModelEvaluationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelEvaluation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest; + public getModelEvaluation(request: google.cloud.aiplatform.v1.IGetModelEvaluationRequest, callback: google.cloud.aiplatform.v1.ModelService.GetModelEvaluationCallback): void; /** - * Verifies a ListModelEvaluationSlicesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetModelEvaluation. + * @param request GetModelEvaluationRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public getModelEvaluation(request: google.cloud.aiplatform.v1.IGetModelEvaluationRequest): Promise; /** - * Creates a ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListModelEvaluationSlicesRequest + * Calls ListModelEvaluations. + * @param request ListModelEvaluationsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest; + public listModelEvaluations(request: google.cloud.aiplatform.v1.IListModelEvaluationsRequest, callback: google.cloud.aiplatform.v1.ModelService.ListModelEvaluationsCallback): void; /** - * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. - * @param message ListModelEvaluationSlicesRequest - * @param [options] Conversion options - * @returns Plain object + * Calls ListModelEvaluations. + * @param request ListModelEvaluationsRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listModelEvaluations(request: google.cloud.aiplatform.v1.IListModelEvaluationsRequest): Promise; /** - * Converts this ListModelEvaluationSlicesRequest to JSON. - * @returns JSON object + * Calls GetModelEvaluationSlice. + * @param request GetModelEvaluationSliceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelEvaluationSlice */ - public toJSON(): { [k: string]: any }; + public getModelEvaluationSlice(request: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest, callback: google.cloud.aiplatform.v1.ModelService.GetModelEvaluationSliceCallback): void; /** - * Gets the default type url for ListModelEvaluationSlicesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls GetModelEvaluationSlice. + * @param request GetModelEvaluationSliceRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListModelEvaluationSlicesResponse. */ - interface IListModelEvaluationSlicesResponse { + public getModelEvaluationSlice(request: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest): Promise; - /** ListModelEvaluationSlicesResponse modelEvaluationSlices */ - modelEvaluationSlices?: (google.cloud.aiplatform.v1.IModelEvaluationSlice[]|null); + /** + * Calls ListModelEvaluationSlices. + * @param request ListModelEvaluationSlicesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelEvaluationSlicesResponse + */ + public listModelEvaluationSlices(request: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest, callback: google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlicesCallback): void; - /** ListModelEvaluationSlicesResponse nextPageToken */ - nextPageToken?: (string|null); + /** + * Calls ListModelEvaluationSlices. + * @param request ListModelEvaluationSlicesRequest message or plain object + * @returns Promise + */ + public listModelEvaluationSlices(request: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest): Promise; } - /** Represents a ListModelEvaluationSlicesResponse. */ - class ListModelEvaluationSlicesResponse implements IListModelEvaluationSlicesResponse { + namespace ModelService { /** - * Constructs a new ListModelEvaluationSlicesResponse. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|uploadModel}. + * @param error Error, if any + * @param [response] Operation */ - constructor(properties?: google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse); - - /** ListModelEvaluationSlicesResponse modelEvaluationSlices. */ - public modelEvaluationSlices: google.cloud.aiplatform.v1.IModelEvaluationSlice[]; - - /** ListModelEvaluationSlicesResponse nextPageToken. */ - public nextPageToken: string; + type UploadModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListModelEvaluationSlicesResponse instance + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModel}. + * @param error Error, if any + * @param [response] Model */ - public static create(properties?: google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse): google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse; + type GetModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Model) => void; /** - * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. - * @param message ListModelEvaluationSlicesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModels}. + * @param error Error, if any + * @param [response] ListModelsResponse */ - public static encode(message: google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type ListModelsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelsResponse) => void; /** - * Encodes the specified ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. - * @param message ListModelEvaluationSlicesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelVersions}. + * @param error Error, if any + * @param [response] ListModelVersionsResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type ListModelVersionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelVersionsResponse) => void; /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListModelEvaluationSlicesResponse + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|updateModel}. + * @param error Error, if any + * @param [response] Model + */ + type UpdateModelCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Model) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|deleteModel}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|deleteModelVersion}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteModelVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|mergeVersionAliases}. + * @param error Error, if any + * @param [response] Model + */ + type MergeVersionAliasesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Model) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|exportModel}. + * @param error Error, if any + * @param [response] Operation + */ + type ExportModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|copyModel}. + * @param error Error, if any + * @param [response] Operation + */ + type CopyModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|importModelEvaluation}. + * @param error Error, if any + * @param [response] ModelEvaluation + */ + type ImportModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ModelEvaluation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|batchImportModelEvaluationSlices}. + * @param error Error, if any + * @param [response] BatchImportModelEvaluationSlicesResponse + */ + type BatchImportModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModelEvaluation}. + * @param error Error, if any + * @param [response] ModelEvaluation + */ + type GetModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ModelEvaluation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelEvaluations}. + * @param error Error, if any + * @param [response] ListModelEvaluationsResponse + */ + type ListModelEvaluationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelEvaluationsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModelEvaluationSlice}. + * @param error Error, if any + * @param [response] ModelEvaluationSlice + */ + type GetModelEvaluationSliceCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ModelEvaluationSlice) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelEvaluationSlices}. + * @param error Error, if any + * @param [response] ListModelEvaluationSlicesResponse + */ + type ListModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse) => void; + } + + /** Properties of an UploadModelRequest. */ + interface IUploadModelRequest { + + /** UploadModelRequest parent */ + parent?: (string|null); + + /** UploadModelRequest parentModel */ + parentModel?: (string|null); + + /** UploadModelRequest modelId */ + modelId?: (string|null); + + /** UploadModelRequest model */ + model?: (google.cloud.aiplatform.v1.IModel|null); + + /** UploadModelRequest serviceAccount */ + serviceAccount?: (string|null); + } + + /** Represents an UploadModelRequest. */ + class UploadModelRequest implements IUploadModelRequest { + + /** + * Constructs a new UploadModelRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUploadModelRequest); + + /** UploadModelRequest parent. */ + public parent: string; + + /** UploadModelRequest parentModel. */ + public parentModel: string; + + /** UploadModelRequest modelId. */ + public modelId: string; + + /** UploadModelRequest model. */ + public model?: (google.cloud.aiplatform.v1.IModel|null); + + /** UploadModelRequest serviceAccount. */ + public serviceAccount: string; + + /** + * Creates a new UploadModelRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UploadModelRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUploadModelRequest): google.cloud.aiplatform.v1.UploadModelRequest; + + /** + * Encodes the specified UploadModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelRequest.verify|verify} messages. + * @param message UploadModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUploadModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UploadModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelRequest.verify|verify} messages. + * @param message UploadModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUploadModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UploadModelRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UploadModelRequest * @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.ListModelEvaluationSlicesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UploadModelRequest; /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. + * Decodes an UploadModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelEvaluationSlicesResponse + * @returns UploadModelRequest * @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.ListModelEvaluationSlicesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UploadModelRequest; /** - * Verifies a ListModelEvaluationSlicesResponse message. + * Verifies an UploadModelRequest 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 ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelEvaluationSlicesResponse + * @returns UploadModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UploadModelRequest; /** - * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. - * @param message ListModelEvaluationSlicesResponse + * Creates a plain object from an UploadModelRequest message. Also converts values to other types if specified. + * @param message UploadModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UploadModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelEvaluationSlicesResponse to JSON. + * Converts this UploadModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelEvaluationSlicesResponse + * Gets the default type url for UploadModelRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** PipelineFailurePolicy enum. */ - enum PipelineFailurePolicy { - PIPELINE_FAILURE_POLICY_UNSPECIFIED = 0, - PIPELINE_FAILURE_POLICY_FAIL_SLOW = 1, - PIPELINE_FAILURE_POLICY_FAIL_FAST = 2 - } - - /** Properties of a PipelineJob. */ - interface IPipelineJob { + /** Properties of an UploadModelOperationMetadata. */ + interface IUploadModelOperationMetadata { - /** PipelineJob name */ - name?: (string|null); + /** UploadModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } - /** PipelineJob displayName */ - displayName?: (string|null); + /** Represents an UploadModelOperationMetadata. */ + class UploadModelOperationMetadata implements IUploadModelOperationMetadata { - /** PipelineJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new UploadModelOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUploadModelOperationMetadata); - /** PipelineJob startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** UploadModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** PipelineJob endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a new UploadModelOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UploadModelOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUploadModelOperationMetadata): google.cloud.aiplatform.v1.UploadModelOperationMetadata; - /** PipelineJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified UploadModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelOperationMetadata.verify|verify} messages. + * @param message UploadModelOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUploadModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** PipelineJob pipelineSpec */ - pipelineSpec?: (google.protobuf.IStruct|null); + /** + * Encodes the specified UploadModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelOperationMetadata.verify|verify} messages. + * @param message UploadModelOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUploadModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** PipelineJob state */ - state?: (google.cloud.aiplatform.v1.PipelineState|keyof typeof google.cloud.aiplatform.v1.PipelineState|null); + /** + * Decodes an UploadModelOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UploadModelOperationMetadata + * @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.UploadModelOperationMetadata; - /** PipelineJob jobDetail */ - jobDetail?: (google.cloud.aiplatform.v1.IPipelineJobDetail|null); + /** + * Decodes an UploadModelOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UploadModelOperationMetadata + * @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.UploadModelOperationMetadata; - /** PipelineJob error */ - error?: (google.rpc.IStatus|null); + /** + * Verifies an UploadModelOperationMetadata 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); - /** PipelineJob labels */ - labels?: ({ [k: string]: string }|null); + /** + * Creates an UploadModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UploadModelOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UploadModelOperationMetadata; - /** PipelineJob runtimeConfig */ - runtimeConfig?: (google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null); + /** + * Creates a plain object from an UploadModelOperationMetadata message. Also converts values to other types if specified. + * @param message UploadModelOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UploadModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** PipelineJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** + * Converts this UploadModelOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** PipelineJob serviceAccount */ - serviceAccount?: (string|null); + /** + * Gets the default type url for UploadModelOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** PipelineJob network */ - network?: (string|null); + /** Properties of an UploadModelResponse. */ + interface IUploadModelResponse { - /** PipelineJob templateUri */ - templateUri?: (string|null); + /** UploadModelResponse model */ + model?: (string|null); - /** PipelineJob templateMetadata */ - templateMetadata?: (google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null); + /** UploadModelResponse modelVersionId */ + modelVersionId?: (string|null); } - /** Represents a PipelineJob. */ - class PipelineJob implements IPipelineJob { + /** Represents an UploadModelResponse. */ + class UploadModelResponse implements IUploadModelResponse { /** - * Constructs a new PipelineJob. + * Constructs a new UploadModelResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPipelineJob); + constructor(properties?: google.cloud.aiplatform.v1.IUploadModelResponse); - /** PipelineJob name. */ - public name: string; + /** UploadModelResponse model. */ + public model: string; - /** PipelineJob displayName. */ - public displayName: string; + /** UploadModelResponse modelVersionId. */ + public modelVersionId: string; - /** PipelineJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a new UploadModelResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UploadModelResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUploadModelResponse): google.cloud.aiplatform.v1.UploadModelResponse; - /** PipelineJob startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified UploadModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelResponse.verify|verify} messages. + * @param message UploadModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUploadModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** PipelineJob endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified UploadModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelResponse.verify|verify} messages. + * @param message UploadModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUploadModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** PipelineJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * Decodes an UploadModelResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UploadModelResponse + * @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.UploadModelResponse; - /** PipelineJob pipelineSpec. */ - public pipelineSpec?: (google.protobuf.IStruct|null); + /** + * Decodes an UploadModelResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UploadModelResponse + * @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.UploadModelResponse; - /** PipelineJob state. */ - public state: (google.cloud.aiplatform.v1.PipelineState|keyof typeof google.cloud.aiplatform.v1.PipelineState); + /** + * Verifies an UploadModelResponse 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); - /** PipelineJob jobDetail. */ - public jobDetail?: (google.cloud.aiplatform.v1.IPipelineJobDetail|null); + /** + * Creates an UploadModelResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UploadModelResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UploadModelResponse; - /** PipelineJob error. */ - public error?: (google.rpc.IStatus|null); + /** + * Creates a plain object from an UploadModelResponse message. Also converts values to other types if specified. + * @param message UploadModelResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UploadModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** PipelineJob labels. */ - public labels: { [k: string]: string }; + /** + * Converts this UploadModelResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** PipelineJob runtimeConfig. */ - public runtimeConfig?: (google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null); + /** + * Gets the default type url for UploadModelResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** PipelineJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** Properties of a GetModelRequest. */ + interface IGetModelRequest { - /** PipelineJob serviceAccount. */ - public serviceAccount: string; + /** GetModelRequest name */ + name?: (string|null); + } - /** PipelineJob network. */ - public network: string; + /** Represents a GetModelRequest. */ + class GetModelRequest implements IGetModelRequest { - /** PipelineJob templateUri. */ - public templateUri: string; + /** + * Constructs a new GetModelRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGetModelRequest); - /** PipelineJob templateMetadata. */ - public templateMetadata?: (google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null); + /** GetModelRequest name. */ + public name: string; /** - * Creates a new PipelineJob instance using the specified properties. + * Creates a new GetModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineJob instance + * @returns GetModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPipelineJob): google.cloud.aiplatform.v1.PipelineJob; + public static create(properties?: google.cloud.aiplatform.v1.IGetModelRequest): google.cloud.aiplatform.v1.GetModelRequest; /** - * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. - * @param message PipelineJob message or plain object to encode + * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelRequest.verify|verify} messages. + * @param message GetModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. - * @param message PipelineJob message or plain object to encode + * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelRequest.verify|verify} messages. + * @param message GetModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineJob message from the specified reader or buffer. + * Decodes a GetModelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineJob + * @returns GetModelRequest * @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.PipelineJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetModelRequest; /** - * Decodes a PipelineJob message from the specified reader or buffer, length delimited. + * Decodes a GetModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineJob + * @returns GetModelRequest * @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.PipelineJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetModelRequest; /** - * Verifies a PipelineJob message. + * Verifies a GetModelRequest 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 PipelineJob message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineJob + * @returns GetModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetModelRequest; /** - * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. - * @param message PipelineJob + * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified. + * @param message GetModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineJob to JSON. + * Converts this GetModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PipelineJob + * Gets the default type url for GetModelRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PipelineJob { + /** Properties of a ListModelsRequest. */ + interface IListModelsRequest { - /** Properties of a RuntimeConfig. */ - interface IRuntimeConfig { + /** ListModelsRequest parent */ + parent?: (string|null); - /** RuntimeConfig parameters */ - parameters?: ({ [k: string]: google.cloud.aiplatform.v1.IValue }|null); + /** ListModelsRequest filter */ + filter?: (string|null); - /** RuntimeConfig gcsOutputDirectory */ - gcsOutputDirectory?: (string|null); + /** ListModelsRequest pageSize */ + pageSize?: (number|null); - /** RuntimeConfig parameterValues */ - parameterValues?: ({ [k: string]: google.protobuf.IValue }|null); + /** ListModelsRequest pageToken */ + pageToken?: (string|null); - /** RuntimeConfig failurePolicy */ - failurePolicy?: (google.cloud.aiplatform.v1.PipelineFailurePolicy|keyof typeof google.cloud.aiplatform.v1.PipelineFailurePolicy|null); + /** ListModelsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); - /** RuntimeConfig inputArtifacts */ - inputArtifacts?: ({ [k: string]: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact }|null); - } - - /** Represents a RuntimeConfig. */ - class RuntimeConfig implements IRuntimeConfig { - - /** - * Constructs a new RuntimeConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig); - - /** RuntimeConfig parameters. */ - public parameters: { [k: string]: google.cloud.aiplatform.v1.IValue }; - - /** RuntimeConfig gcsOutputDirectory. */ - public gcsOutputDirectory: string; - - /** RuntimeConfig parameterValues. */ - public parameterValues: { [k: string]: google.protobuf.IValue }; - - /** RuntimeConfig failurePolicy. */ - public failurePolicy: (google.cloud.aiplatform.v1.PipelineFailurePolicy|keyof typeof google.cloud.aiplatform.v1.PipelineFailurePolicy); - - /** RuntimeConfig inputArtifacts. */ - public inputArtifacts: { [k: string]: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact }; - - /** - * Creates a new RuntimeConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns RuntimeConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig; - - /** - * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @param message RuntimeConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @param message RuntimeConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RuntimeConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RuntimeConfig - * @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.PipelineJob.RuntimeConfig; - - /** - * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RuntimeConfig - * @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.PipelineJob.RuntimeConfig; - - /** - * Verifies a RuntimeConfig 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 RuntimeConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RuntimeConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig; - - /** - * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. - * @param message RuntimeConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RuntimeConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RuntimeConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace RuntimeConfig { - - /** Properties of an InputArtifact. */ - interface IInputArtifact { - - /** InputArtifact artifactId */ - artifactId?: (string|null); - } - - /** Represents an InputArtifact. */ - class InputArtifact implements IInputArtifact { - - /** - * Constructs a new InputArtifact. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact); - - /** InputArtifact artifactId. */ - public artifactId?: (string|null); - - /** InputArtifact kind. */ - public kind?: "artifactId"; - - /** - * Creates a new InputArtifact instance using the specified properties. - * @param [properties] Properties to set - * @returns InputArtifact instance - */ - public static create(properties?: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact; - - /** - * Encodes the specified InputArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. - * @param message InputArtifact message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified InputArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. - * @param message InputArtifact message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InputArtifact message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InputArtifact - * @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.PipelineJob.RuntimeConfig.InputArtifact; - - /** - * Decodes an InputArtifact message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InputArtifact - * @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.PipelineJob.RuntimeConfig.InputArtifact; - - /** - * Verifies an InputArtifact 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 InputArtifact message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InputArtifact - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact; + /** ListModelsRequest orderBy */ + orderBy?: (string|null); + } - /** - * Creates a plain object from an InputArtifact message. Also converts values to other types if specified. - * @param message InputArtifact - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a ListModelsRequest. */ + class ListModelsRequest implements IListModelsRequest { - /** - * Converts this InputArtifact to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new ListModelsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListModelsRequest); - /** - * Gets the default type url for InputArtifact - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } + /** ListModelsRequest parent. */ + public parent: string; - /** Properties of a PipelineTemplateMetadata. */ - interface IPipelineTemplateMetadata { + /** ListModelsRequest filter. */ + public filter: string; - /** PipelineTemplateMetadata version */ - version?: (string|null); - } + /** ListModelsRequest pageSize. */ + public pageSize: number; - /** Represents a PipelineTemplateMetadata. */ - class PipelineTemplateMetadata implements IPipelineTemplateMetadata { + /** ListModelsRequest pageToken. */ + public pageToken: string; - /** - * Constructs a new PipelineTemplateMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IPipelineTemplateMetadata); + /** ListModelsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** PipelineTemplateMetadata version. */ - public version: string; + /** ListModelsRequest orderBy. */ + public orderBy: string; /** - * Creates a new PipelineTemplateMetadata instance using the specified properties. + * Creates a new ListModelsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineTemplateMetadata instance + * @returns ListModelsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPipelineTemplateMetadata): google.cloud.aiplatform.v1.PipelineTemplateMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IListModelsRequest): google.cloud.aiplatform.v1.ListModelsRequest; /** - * Encodes the specified PipelineTemplateMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. - * @param message PipelineTemplateMetadata message or plain object to encode + * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsRequest.verify|verify} messages. + * @param message ListModelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPipelineTemplateMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineTemplateMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. - * @param message PipelineTemplateMetadata message or plain object to encode + * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsRequest.verify|verify} messages. + * @param message ListModelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineTemplateMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineTemplateMetadata message from the specified reader or buffer. + * Decodes a ListModelsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineTemplateMetadata + * @returns ListModelsRequest * @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.PipelineTemplateMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelsRequest; /** - * Decodes a PipelineTemplateMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineTemplateMetadata + * @returns ListModelsRequest * @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.PipelineTemplateMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelsRequest; /** - * Verifies a PipelineTemplateMetadata message. + * Verifies a ListModelsRequest 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 PipelineTemplateMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineTemplateMetadata + * @returns ListModelsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTemplateMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelsRequest; /** - * Creates a plain object from a PipelineTemplateMetadata message. Also converts values to other types if specified. - * @param message PipelineTemplateMetadata + * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified. + * @param message ListModelsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineTemplateMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineTemplateMetadata to JSON. + * Converts this ListModelsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PipelineTemplateMetadata + * Gets the default type url for ListModelsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PipelineJobDetail. */ - interface IPipelineJobDetail { - - /** PipelineJobDetail pipelineContext */ - pipelineContext?: (google.cloud.aiplatform.v1.IContext|null); + /** Properties of a ListModelsResponse. */ + interface IListModelsResponse { - /** PipelineJobDetail pipelineRunContext */ - pipelineRunContext?: (google.cloud.aiplatform.v1.IContext|null); + /** ListModelsResponse models */ + models?: (google.cloud.aiplatform.v1.IModel[]|null); - /** PipelineJobDetail taskDetails */ - taskDetails?: (google.cloud.aiplatform.v1.IPipelineTaskDetail[]|null); + /** ListModelsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a PipelineJobDetail. */ - class PipelineJobDetail implements IPipelineJobDetail { + /** Represents a ListModelsResponse. */ + class ListModelsResponse implements IListModelsResponse { /** - * Constructs a new PipelineJobDetail. + * Constructs a new ListModelsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPipelineJobDetail); - - /** PipelineJobDetail pipelineContext. */ - public pipelineContext?: (google.cloud.aiplatform.v1.IContext|null); + constructor(properties?: google.cloud.aiplatform.v1.IListModelsResponse); - /** PipelineJobDetail pipelineRunContext. */ - public pipelineRunContext?: (google.cloud.aiplatform.v1.IContext|null); + /** ListModelsResponse models. */ + public models: google.cloud.aiplatform.v1.IModel[]; - /** PipelineJobDetail taskDetails. */ - public taskDetails: google.cloud.aiplatform.v1.IPipelineTaskDetail[]; + /** ListModelsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new PipelineJobDetail instance using the specified properties. + * Creates a new ListModelsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineJobDetail instance + * @returns ListModelsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPipelineJobDetail): google.cloud.aiplatform.v1.PipelineJobDetail; + public static create(properties?: google.cloud.aiplatform.v1.IListModelsResponse): google.cloud.aiplatform.v1.ListModelsResponse; /** - * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. - * @param message PipelineJobDetail message or plain object to encode + * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsResponse.verify|verify} messages. + * @param message ListModelsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. - * @param message PipelineJobDetail message or plain object to encode + * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsResponse.verify|verify} messages. + * @param message ListModelsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer. + * Decodes a ListModelsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineJobDetail + * @returns ListModelsResponse * @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.PipelineJobDetail; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelsResponse; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. + * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineJobDetail + * @returns ListModelsResponse * @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.PipelineJobDetail; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelsResponse; /** - * Verifies a PipelineJobDetail message. + * Verifies a ListModelsResponse 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 PipelineJobDetail message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineJobDetail + * @returns ListModelsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJobDetail; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelsResponse; /** - * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. - * @param message PipelineJobDetail + * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified. + * @param message ListModelsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineJobDetail to JSON. + * Converts this ListModelsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PipelineJobDetail + * Gets the default type url for ListModelsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PipelineTaskDetail. */ - interface IPipelineTaskDetail { - - /** PipelineTaskDetail taskId */ - taskId?: (number|Long|string|null); - - /** PipelineTaskDetail parentTaskId */ - parentTaskId?: (number|Long|string|null); - - /** PipelineTaskDetail taskName */ - taskName?: (string|null); - - /** PipelineTaskDetail createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskDetail startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskDetail endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskDetail executorDetail */ - executorDetail?: (google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null); + /** Properties of a ListModelVersionsRequest. */ + interface IListModelVersionsRequest { - /** PipelineTaskDetail state */ - state?: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State|null); + /** ListModelVersionsRequest name */ + name?: (string|null); - /** PipelineTaskDetail execution */ - execution?: (google.cloud.aiplatform.v1.IExecution|null); + /** ListModelVersionsRequest pageSize */ + pageSize?: (number|null); - /** PipelineTaskDetail error */ - error?: (google.rpc.IStatus|null); + /** ListModelVersionsRequest pageToken */ + pageToken?: (string|null); - /** PipelineTaskDetail pipelineTaskStatus */ - pipelineTaskStatus?: (google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus[]|null); + /** ListModelVersionsRequest filter */ + filter?: (string|null); - /** PipelineTaskDetail inputs */ - inputs?: ({ [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }|null); + /** ListModelVersionsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); - /** PipelineTaskDetail outputs */ - outputs?: ({ [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }|null); + /** ListModelVersionsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a PipelineTaskDetail. */ - class PipelineTaskDetail implements IPipelineTaskDetail { + /** Represents a ListModelVersionsRequest. */ + class ListModelVersionsRequest implements IListModelVersionsRequest { /** - * Constructs a new PipelineTaskDetail. + * Constructs a new ListModelVersionsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPipelineTaskDetail); - - /** PipelineTaskDetail taskId. */ - public taskId: (number|Long|string); - - /** PipelineTaskDetail parentTaskId. */ - public parentTaskId: (number|Long|string); - - /** PipelineTaskDetail taskName. */ - public taskName: string; - - /** PipelineTaskDetail createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskDetail startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskDetail endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** PipelineTaskDetail executorDetail. */ - public executorDetail?: (google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null); + constructor(properties?: google.cloud.aiplatform.v1.IListModelVersionsRequest); - /** PipelineTaskDetail state. */ - public state: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State); + /** ListModelVersionsRequest name. */ + public name: string; - /** PipelineTaskDetail execution. */ - public execution?: (google.cloud.aiplatform.v1.IExecution|null); + /** ListModelVersionsRequest pageSize. */ + public pageSize: number; - /** PipelineTaskDetail error. */ - public error?: (google.rpc.IStatus|null); + /** ListModelVersionsRequest pageToken. */ + public pageToken: string; - /** PipelineTaskDetail pipelineTaskStatus. */ - public pipelineTaskStatus: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus[]; + /** ListModelVersionsRequest filter. */ + public filter: string; - /** PipelineTaskDetail inputs. */ - public inputs: { [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }; + /** ListModelVersionsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** PipelineTaskDetail outputs. */ - public outputs: { [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }; + /** ListModelVersionsRequest orderBy. */ + public orderBy: string; /** - * Creates a new PipelineTaskDetail instance using the specified properties. + * Creates a new ListModelVersionsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineTaskDetail instance + * @returns ListModelVersionsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPipelineTaskDetail): google.cloud.aiplatform.v1.PipelineTaskDetail; + public static create(properties?: google.cloud.aiplatform.v1.IListModelVersionsRequest): google.cloud.aiplatform.v1.ListModelVersionsRequest; /** - * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. - * @param message PipelineTaskDetail message or plain object to encode + * Encodes the specified ListModelVersionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. + * @param message ListModelVersionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. - * @param message PipelineTaskDetail message or plain object to encode + * Encodes the specified ListModelVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. + * @param message ListModelVersionsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer. + * Decodes a ListModelVersionsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineTaskDetail + * @returns ListModelVersionsRequest * @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.PipelineTaskDetail; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelVersionsRequest; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. + * Decodes a ListModelVersionsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineTaskDetail + * @returns ListModelVersionsRequest * @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.PipelineTaskDetail; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelVersionsRequest; /** - * Verifies a PipelineTaskDetail message. + * Verifies a ListModelVersionsRequest 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 PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelVersionsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineTaskDetail + * @returns ListModelVersionsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskDetail; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelVersionsRequest; /** - * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. - * @param message PipelineTaskDetail - * @param [options] Conversion options + * Creates a plain object from a ListModelVersionsRequest message. Also converts values to other types if specified. + * @param message ListModelVersionsRequest + * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineTaskDetail to JSON. + * Converts this ListModelVersionsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PipelineTaskDetail + * Gets the default type url for ListModelVersionsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PipelineTaskDetail { - - /** Properties of a PipelineTaskStatus. */ - interface IPipelineTaskStatus { - - /** PipelineTaskStatus updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of a ListModelVersionsResponse. */ + interface IListModelVersionsResponse { - /** PipelineTaskStatus state */ - state?: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State|null); + /** ListModelVersionsResponse models */ + models?: (google.cloud.aiplatform.v1.IModel[]|null); - /** PipelineTaskStatus error */ - error?: (google.rpc.IStatus|null); - } + /** ListModelVersionsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Represents a PipelineTaskStatus. */ - class PipelineTaskStatus implements IPipelineTaskStatus { + /** Represents a ListModelVersionsResponse. */ + class ListModelVersionsResponse implements IListModelVersionsResponse { - /** - * Constructs a new PipelineTaskStatus. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus); + /** + * Constructs a new ListModelVersionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListModelVersionsResponse); - /** PipelineTaskStatus updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListModelVersionsResponse models. */ + public models: google.cloud.aiplatform.v1.IModel[]; - /** PipelineTaskStatus state. */ - public state: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State); + /** ListModelVersionsResponse nextPageToken. */ + public nextPageToken: string; - /** PipelineTaskStatus error. */ - public error?: (google.rpc.IStatus|null); + /** + * Creates a new ListModelVersionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListModelVersionsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListModelVersionsResponse): google.cloud.aiplatform.v1.ListModelVersionsResponse; - /** - * Creates a new PipelineTaskStatus instance using the specified properties. - * @param [properties] Properties to set - * @returns PipelineTaskStatus instance - */ - public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus): google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus; + /** + * Encodes the specified ListModelVersionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. + * @param message ListModelVersionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListModelVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. - * @param message PipelineTaskStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ListModelVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. + * @param message ListModelVersionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. - * @param message PipelineTaskStatus message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ListModelVersionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListModelVersionsResponse + * @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.ListModelVersionsResponse; - /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PipelineTaskStatus - * @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.PipelineTaskDetail.PipelineTaskStatus; + /** + * Decodes a ListModelVersionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListModelVersionsResponse + * @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.ListModelVersionsResponse; - /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PipelineTaskStatus - * @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.PipelineTaskDetail.PipelineTaskStatus; + /** + * Verifies a ListModelVersionsResponse 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); - /** - * Verifies a PipelineTaskStatus 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 ListModelVersionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListModelVersionsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelVersionsResponse; - /** - * Creates a PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PipelineTaskStatus - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus; + /** + * Creates a plain object from a ListModelVersionsResponse message. Also converts values to other types if specified. + * @param message ListModelVersionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListModelVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. - * @param message PipelineTaskStatus - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this ListModelVersionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this PipelineTaskStatus to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for ListModelVersionsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for PipelineTaskStatus - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of an UpdateModelRequest. */ + interface IUpdateModelRequest { - /** Properties of an ArtifactList. */ - interface IArtifactList { + /** UpdateModelRequest model */ + model?: (google.cloud.aiplatform.v1.IModel|null); - /** ArtifactList artifacts */ - artifacts?: (google.cloud.aiplatform.v1.IArtifact[]|null); - } + /** UpdateModelRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** Represents an ArtifactList. */ - class ArtifactList implements IArtifactList { + /** Represents an UpdateModelRequest. */ + class UpdateModelRequest implements IUpdateModelRequest { - /** - * Constructs a new ArtifactList. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList); + /** + * Constructs a new UpdateModelRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateModelRequest); - /** ArtifactList artifacts. */ - public artifacts: google.cloud.aiplatform.v1.IArtifact[]; + /** UpdateModelRequest model. */ + public model?: (google.cloud.aiplatform.v1.IModel|null); - /** - * Creates a new ArtifactList instance using the specified properties. - * @param [properties] Properties to set - * @returns ArtifactList instance - */ - public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList): google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList; + /** UpdateModelRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** - * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @param message ArtifactList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new UpdateModelRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateModelRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateModelRequest): google.cloud.aiplatform.v1.UpdateModelRequest; - /** - * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @param message ArtifactList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelRequest.verify|verify} messages. + * @param message UpdateModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an ArtifactList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ArtifactList - * @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.PipelineTaskDetail.ArtifactList; + /** + * Encodes the specified UpdateModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelRequest.verify|verify} messages. + * @param message UpdateModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an ArtifactList message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ArtifactList - * @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.PipelineTaskDetail.ArtifactList; + /** + * Decodes an UpdateModelRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateModelRequest + * @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.UpdateModelRequest; - /** - * Verifies an ArtifactList 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); + /** + * Decodes an UpdateModelRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateModelRequest + * @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.UpdateModelRequest; - /** - * Creates an ArtifactList message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ArtifactList - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList; + /** + * Verifies an UpdateModelRequest 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 plain object from an ArtifactList message. Also converts values to other types if specified. - * @param message ArtifactList - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates an UpdateModelRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateModelRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateModelRequest; - /** - * Converts this ArtifactList to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from an UpdateModelRequest message. Also converts values to other types if specified. + * @param message UpdateModelRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for ArtifactList - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this UpdateModelRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - PENDING = 1, - RUNNING = 2, - SUCCEEDED = 3, - CANCEL_PENDING = 4, - CANCELLING = 5, - CANCELLED = 6, - FAILED = 7, - SKIPPED = 8, - NOT_TRIGGERED = 9 - } + /** + * Gets the default type url for UpdateModelRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PipelineTaskExecutorDetail. */ - interface IPipelineTaskExecutorDetail { - - /** PipelineTaskExecutorDetail containerDetail */ - containerDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null); + /** Properties of a DeleteModelRequest. */ + interface IDeleteModelRequest { - /** PipelineTaskExecutorDetail customJobDetail */ - customJobDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null); + /** DeleteModelRequest name */ + name?: (string|null); } - /** Represents a PipelineTaskExecutorDetail. */ - class PipelineTaskExecutorDetail implements IPipelineTaskExecutorDetail { + /** Represents a DeleteModelRequest. */ + class DeleteModelRequest implements IDeleteModelRequest { /** - * Constructs a new PipelineTaskExecutorDetail. + * Constructs a new DeleteModelRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail); - - /** PipelineTaskExecutorDetail containerDetail. */ - public containerDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null); - - /** PipelineTaskExecutorDetail customJobDetail. */ - public customJobDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteModelRequest); - /** PipelineTaskExecutorDetail details. */ - public details?: ("containerDetail"|"customJobDetail"); + /** DeleteModelRequest name. */ + public name: string; /** - * Creates a new PipelineTaskExecutorDetail instance using the specified properties. + * Creates a new DeleteModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PipelineTaskExecutorDetail instance + * @returns DeleteModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteModelRequest): google.cloud.aiplatform.v1.DeleteModelRequest; /** - * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. - * @param message PipelineTaskExecutorDetail message or plain object to encode + * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelRequest.verify|verify} messages. + * @param message DeleteModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. - * @param message PipelineTaskExecutorDetail message or plain object to encode + * Encodes the specified DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelRequest.verify|verify} messages. + * @param message DeleteModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. + * Decodes a DeleteModelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PipelineTaskExecutorDetail + * @returns DeleteModelRequest * @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.PipelineTaskExecutorDetail; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteModelRequest; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PipelineTaskExecutorDetail + * @returns DeleteModelRequest * @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.PipelineTaskExecutorDetail; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteModelRequest; /** - * Verifies a PipelineTaskExecutorDetail message. + * Verifies a DeleteModelRequest 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 PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PipelineTaskExecutorDetail + * @returns DeleteModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteModelRequest; /** - * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. - * @param message PipelineTaskExecutorDetail + * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified. + * @param message DeleteModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PipelineTaskExecutorDetail to JSON. + * Converts this DeleteModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PipelineTaskExecutorDetail + * Gets the default type url for DeleteModelRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace PipelineTaskExecutorDetail { - - /** Properties of a ContainerDetail. */ - interface IContainerDetail { + /** Properties of a DeleteModelVersionRequest. */ + interface IDeleteModelVersionRequest { - /** ContainerDetail mainJob */ - mainJob?: (string|null); + /** DeleteModelVersionRequest name */ + name?: (string|null); + } - /** ContainerDetail preCachingCheckJob */ - preCachingCheckJob?: (string|null); + /** Represents a DeleteModelVersionRequest. */ + class DeleteModelVersionRequest implements IDeleteModelVersionRequest { - /** ContainerDetail failedMainJobs */ - failedMainJobs?: (string[]|null); + /** + * Constructs a new DeleteModelVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteModelVersionRequest); - /** ContainerDetail failedPreCachingCheckJobs */ - failedPreCachingCheckJobs?: (string[]|null); - } + /** DeleteModelVersionRequest name. */ + public name: string; - /** Represents a ContainerDetail. */ - class ContainerDetail implements IContainerDetail { + /** + * Creates a new DeleteModelVersionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteModelVersionRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteModelVersionRequest): google.cloud.aiplatform.v1.DeleteModelVersionRequest; - /** - * Constructs a new ContainerDetail. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail); + /** + * Encodes the specified DeleteModelVersionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. + * @param message DeleteModelVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteModelVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ContainerDetail mainJob. */ - public mainJob: string; + /** + * Encodes the specified DeleteModelVersionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. + * @param message DeleteModelVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteModelVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ContainerDetail preCachingCheckJob. */ - public preCachingCheckJob: string; + /** + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteModelVersionRequest + * @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.DeleteModelVersionRequest; - /** ContainerDetail failedMainJobs. */ - public failedMainJobs: string[]; + /** + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteModelVersionRequest + * @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.DeleteModelVersionRequest; - /** ContainerDetail failedPreCachingCheckJobs. */ - public failedPreCachingCheckJobs: string[]; + /** + * Verifies a DeleteModelVersionRequest 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 new ContainerDetail instance using the specified properties. - * @param [properties] Properties to set - * @returns ContainerDetail instance - */ - public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail; + /** + * Creates a DeleteModelVersionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteModelVersionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteModelVersionRequest; - /** - * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @param message ContainerDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a DeleteModelVersionRequest message. Also converts values to other types if specified. + * @param message DeleteModelVersionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteModelVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @param message ContainerDetail message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this DeleteModelVersionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a ContainerDetail message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ContainerDetail - * @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.PipelineTaskExecutorDetail.ContainerDetail; + /** + * Gets the default type url for DeleteModelVersionRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ContainerDetail - * @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.PipelineTaskExecutorDetail.ContainerDetail; + /** Properties of a MergeVersionAliasesRequest. */ + interface IMergeVersionAliasesRequest { - /** - * Verifies a ContainerDetail 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); + /** MergeVersionAliasesRequest name */ + name?: (string|null); - /** - * Creates a ContainerDetail message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ContainerDetail - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail; + /** MergeVersionAliasesRequest versionAliases */ + versionAliases?: (string[]|null); + } - /** - * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. - * @param message ContainerDetail - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a MergeVersionAliasesRequest. */ + class MergeVersionAliasesRequest implements IMergeVersionAliasesRequest { - /** - * Converts this ContainerDetail to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new MergeVersionAliasesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest); - /** - * Gets the default type url for ContainerDetail - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** MergeVersionAliasesRequest name. */ + public name: string; - /** Properties of a CustomJobDetail. */ - interface ICustomJobDetail { + /** MergeVersionAliasesRequest versionAliases. */ + public versionAliases: string[]; - /** CustomJobDetail job */ - job?: (string|null); + /** + * Creates a new MergeVersionAliasesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MergeVersionAliasesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest): google.cloud.aiplatform.v1.MergeVersionAliasesRequest; + + /** + * Encodes the specified MergeVersionAliasesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. + * @param message MergeVersionAliasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MergeVersionAliasesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. + * @param message MergeVersionAliasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MergeVersionAliasesRequest + * @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.MergeVersionAliasesRequest; + + /** + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MergeVersionAliasesRequest + * @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.MergeVersionAliasesRequest; + + /** + * Verifies a MergeVersionAliasesRequest 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 MergeVersionAliasesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MergeVersionAliasesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MergeVersionAliasesRequest; + + /** + * Creates a plain object from a MergeVersionAliasesRequest message. Also converts values to other types if specified. + * @param message MergeVersionAliasesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MergeVersionAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MergeVersionAliasesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MergeVersionAliasesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExportModelRequest. */ + interface IExportModelRequest { + + /** ExportModelRequest name */ + name?: (string|null); + + /** ExportModelRequest outputConfig */ + outputConfig?: (google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig|null); + } + + /** Represents an ExportModelRequest. */ + class ExportModelRequest implements IExportModelRequest { + + /** + * Constructs a new ExportModelRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IExportModelRequest); + + /** ExportModelRequest name. */ + public name: string; + + /** ExportModelRequest outputConfig. */ + public outputConfig?: (google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig|null); + + /** + * Creates a new ExportModelRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportModelRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IExportModelRequest): google.cloud.aiplatform.v1.ExportModelRequest; + + /** + * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.verify|verify} messages. + * @param message ExportModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.verify|verify} messages. + * @param message ExportModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExportModelRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportModelRequest + * @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.ExportModelRequest; + + /** + * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportModelRequest + * @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.ExportModelRequest; + + /** + * Verifies an ExportModelRequest 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 ExportModelRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportModelRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelRequest; + + /** + * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified. + * @param message ExportModelRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExportModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExportModelRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExportModelRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ExportModelRequest { + + /** Properties of an OutputConfig. */ + interface IOutputConfig { + + /** OutputConfig exportFormatId */ + exportFormatId?: (string|null); + + /** OutputConfig artifactDestination */ + artifactDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); + + /** OutputConfig imageDestination */ + imageDestination?: (google.cloud.aiplatform.v1.IContainerRegistryDestination|null); } - /** Represents a CustomJobDetail. */ - class CustomJobDetail implements ICustomJobDetail { + /** Represents an OutputConfig. */ + class OutputConfig implements IOutputConfig { /** - * Constructs a new CustomJobDetail. + * Constructs a new OutputConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail); + constructor(properties?: google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig); - /** CustomJobDetail job. */ - public job: string; + /** OutputConfig exportFormatId. */ + public exportFormatId: string; + + /** OutputConfig artifactDestination. */ + public artifactDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); + + /** OutputConfig imageDestination. */ + public imageDestination?: (google.cloud.aiplatform.v1.IContainerRegistryDestination|null); /** - * Creates a new CustomJobDetail instance using the specified properties. + * Creates a new OutputConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CustomJobDetail instance + * @returns OutputConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail; + public static create(properties?: google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig): google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig; /** - * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. - * @param message CustomJobDetail message or plain object to encode + * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify|verify} messages. + * @param message OutputConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. - * @param message CustomJobDetail message or plain object to encode + * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify|verify} messages. + * @param message OutputConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomJobDetail message from the specified reader or buffer. + * Decodes an OutputConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CustomJobDetail + * @returns OutputConfig * @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.PipelineTaskExecutorDetail.CustomJobDetail; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig; /** - * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. + * Decodes an OutputConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CustomJobDetail + * @returns OutputConfig * @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.PipelineTaskExecutorDetail.CustomJobDetail; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig; /** - * Verifies a CustomJobDetail message. + * Verifies an OutputConfig 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 CustomJobDetail message from a plain object. Also converts values to their respective internal types. + * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CustomJobDetail + * @returns OutputConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig; /** - * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. - * @param message CustomJobDetail + * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. + * @param message OutputConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomJobDetail to JSON. + * Converts this OutputConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CustomJobDetail + * Gets the default type url for OutputConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -50203,21349 +50235,27352 @@ export namespace google { } } - /** PipelineState enum. */ - enum PipelineState { - PIPELINE_STATE_UNSPECIFIED = 0, - PIPELINE_STATE_QUEUED = 1, - PIPELINE_STATE_PENDING = 2, - PIPELINE_STATE_RUNNING = 3, - PIPELINE_STATE_SUCCEEDED = 4, - PIPELINE_STATE_FAILED = 5, - PIPELINE_STATE_CANCELLING = 6, - PIPELINE_STATE_CANCELLED = 7, - PIPELINE_STATE_PAUSED = 8 - } - - /** Properties of a Value. */ - interface IValue { - - /** Value intValue */ - intValue?: (number|Long|string|null); + /** Properties of an ExportModelOperationMetadata. */ + interface IExportModelOperationMetadata { - /** Value doubleValue */ - doubleValue?: (number|null); + /** ExportModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** Value stringValue */ - stringValue?: (string|null); + /** ExportModelOperationMetadata outputInfo */ + outputInfo?: (google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo|null); } - /** Represents a Value. */ - class Value implements IValue { + /** Represents an ExportModelOperationMetadata. */ + class ExportModelOperationMetadata implements IExportModelOperationMetadata { /** - * Constructs a new Value. + * Constructs a new ExportModelOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IValue); - - /** Value intValue. */ - public intValue?: (number|Long|string|null); - - /** Value doubleValue. */ - public doubleValue?: (number|null); + constructor(properties?: google.cloud.aiplatform.v1.IExportModelOperationMetadata); - /** Value stringValue. */ - public stringValue?: (string|null); + /** ExportModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** Value value. */ - public value?: ("intValue"|"doubleValue"|"stringValue"); + /** ExportModelOperationMetadata outputInfo. */ + public outputInfo?: (google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo|null); /** - * Creates a new Value instance using the specified properties. + * Creates a new ExportModelOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns Value instance + * @returns ExportModelOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IValue): google.cloud.aiplatform.v1.Value; + public static create(properties?: google.cloud.aiplatform.v1.IExportModelOperationMetadata): google.cloud.aiplatform.v1.ExportModelOperationMetadata; /** - * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. - * @param message Value message or plain object to encode + * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.verify|verify} messages. + * @param message ExportModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. - * @param message Value message or plain object to encode + * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.verify|verify} messages. + * @param message ExportModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Value message from the specified reader or buffer. + * Decodes an ExportModelOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Value + * @returns ExportModelOperationMetadata * @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.Value; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportModelOperationMetadata; /** - * Decodes a Value message from the specified reader or buffer, length delimited. + * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Value + * @returns ExportModelOperationMetadata * @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.Value; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportModelOperationMetadata; /** - * Verifies a Value message. + * Verifies an ExportModelOperationMetadata 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. + * Creates an ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Value + * @returns ExportModelOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Value; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelOperationMetadata; /** - * Creates a plain object from a Value message. Also converts values to other types if specified. - * @param message Value + * Creates a plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified. + * @param message ExportModelOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ExportModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Value to JSON. + * Converts this ExportModelOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Value + * Gets the default type url for ExportModelOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a PipelineService */ - class PipelineService extends $protobuf.rpc.Service { - - /** - * Constructs a new PipelineService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + namespace ExportModelOperationMetadata { - /** - * Creates new PipelineService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PipelineService; + /** Properties of an OutputInfo. */ + interface IOutputInfo { - /** - * Calls CreateTrainingPipeline. - * @param request CreateTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TrainingPipeline - */ - public createTrainingPipeline(request: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipelineCallback): void; - - /** - * Calls CreateTrainingPipeline. - * @param request CreateTrainingPipelineRequest message or plain object - * @returns Promise - */ - public createTrainingPipeline(request: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest): Promise; + /** OutputInfo artifactOutputUri */ + artifactOutputUri?: (string|null); - /** - * Calls GetTrainingPipeline. - * @param request GetTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TrainingPipeline - */ - public getTrainingPipeline(request: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.GetTrainingPipelineCallback): void; + /** OutputInfo imageOutputUri */ + imageOutputUri?: (string|null); + } - /** - * Calls GetTrainingPipeline. - * @param request GetTrainingPipelineRequest message or plain object - * @returns Promise - */ - public getTrainingPipeline(request: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest): Promise; + /** Represents an OutputInfo. */ + class OutputInfo implements IOutputInfo { - /** - * Calls ListTrainingPipelines. - * @param request ListTrainingPipelinesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse - */ - public listTrainingPipelines(request: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, callback: google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelinesCallback): void; + /** + * Constructs a new OutputInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo); - /** - * Calls ListTrainingPipelines. - * @param request ListTrainingPipelinesRequest message or plain object - * @returns Promise - */ - public listTrainingPipelines(request: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest): Promise; + /** OutputInfo artifactOutputUri. */ + public artifactOutputUri: string; - /** - * Calls DeleteTrainingPipeline. - * @param request DeleteTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteTrainingPipeline(request: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipelineCallback): void; + /** OutputInfo imageOutputUri. */ + public imageOutputUri: string; - /** - * Calls DeleteTrainingPipeline. - * @param request DeleteTrainingPipelineRequest message or plain object - * @returns Promise - */ - public deleteTrainingPipeline(request: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest): Promise; + /** + * Creates a new OutputInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns OutputInfo instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo): google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo; - /** - * Calls CancelTrainingPipeline. - * @param request CancelTrainingPipelineRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public cancelTrainingPipeline(request: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipelineCallback): void; + /** + * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. + * @param message OutputInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls CancelTrainingPipeline. - * @param request CancelTrainingPipelineRequest message or plain object - * @returns Promise - */ - public cancelTrainingPipeline(request: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest): Promise; + /** + * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. + * @param message OutputInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls CreatePipelineJob. - * @param request CreatePipelineJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PipelineJob - */ - public createPipelineJob(request: google.cloud.aiplatform.v1.ICreatePipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.CreatePipelineJobCallback): void; + /** + * Decodes an OutputInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OutputInfo + * @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.ExportModelOperationMetadata.OutputInfo; - /** - * Calls CreatePipelineJob. - * @param request CreatePipelineJobRequest message or plain object - * @returns Promise - */ - public createPipelineJob(request: google.cloud.aiplatform.v1.ICreatePipelineJobRequest): Promise; + /** + * Decodes an OutputInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OutputInfo + * @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.ExportModelOperationMetadata.OutputInfo; - /** - * Calls GetPipelineJob. - * @param request GetPipelineJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PipelineJob - */ - public getPipelineJob(request: google.cloud.aiplatform.v1.IGetPipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.GetPipelineJobCallback): void; + /** + * Verifies an OutputInfo 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); - /** - * Calls GetPipelineJob. - * @param request GetPipelineJobRequest message or plain object - * @returns Promise - */ - public getPipelineJob(request: google.cloud.aiplatform.v1.IGetPipelineJobRequest): Promise; + /** + * Creates an OutputInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OutputInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo; - /** - * Calls ListPipelineJobs. - * @param request ListPipelineJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListPipelineJobsResponse - */ - public listPipelineJobs(request: google.cloud.aiplatform.v1.IListPipelineJobsRequest, callback: google.cloud.aiplatform.v1.PipelineService.ListPipelineJobsCallback): void; + /** + * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. + * @param message OutputInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Calls ListPipelineJobs. - * @param request ListPipelineJobsRequest message or plain object - * @returns Promise - */ - public listPipelineJobs(request: google.cloud.aiplatform.v1.IListPipelineJobsRequest): Promise; + /** + * Converts this OutputInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Calls DeletePipelineJob. - * @param request DeletePipelineJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deletePipelineJob(request: google.cloud.aiplatform.v1.IDeletePipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.DeletePipelineJobCallback): void; + /** + * Gets the default type url for OutputInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** - * Calls DeletePipelineJob. - * @param request DeletePipelineJobRequest message or plain object - * @returns Promise - */ - public deletePipelineJob(request: google.cloud.aiplatform.v1.IDeletePipelineJobRequest): Promise; + /** Properties of an ExportModelResponse. */ + interface IExportModelResponse { + } - /** - * Calls CancelPipelineJob. - * @param request CancelPipelineJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public cancelPipelineJob(request: google.cloud.aiplatform.v1.ICancelPipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.CancelPipelineJobCallback): void; + /** Represents an ExportModelResponse. */ + class ExportModelResponse implements IExportModelResponse { /** - * Calls CancelPipelineJob. - * @param request CancelPipelineJobRequest message or plain object - * @returns Promise + * Constructs a new ExportModelResponse. + * @param [properties] Properties to set */ - public cancelPipelineJob(request: google.cloud.aiplatform.v1.ICancelPipelineJobRequest): Promise; - } - - namespace PipelineService { + constructor(properties?: google.cloud.aiplatform.v1.IExportModelResponse); /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createTrainingPipeline}. - * @param error Error, if any - * @param [response] TrainingPipeline + * Creates a new ExportModelResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportModelResponse instance */ - type CreateTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TrainingPipeline) => void; + public static create(properties?: google.cloud.aiplatform.v1.IExportModelResponse): google.cloud.aiplatform.v1.ExportModelResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getTrainingPipeline}. - * @param error Error, if any - * @param [response] TrainingPipeline + * Encodes the specified ExportModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelResponse.verify|verify} messages. + * @param message ExportModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TrainingPipeline) => void; + public static encode(message: google.cloud.aiplatform.v1.IExportModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listTrainingPipelines}. - * @param error Error, if any - * @param [response] ListTrainingPipelinesResponse + * Encodes the specified ExportModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelResponse.verify|verify} messages. + * @param message ExportModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListTrainingPipelinesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTrainingPipelinesResponse) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deleteTrainingPipeline}. - * @param error Error, if any - * @param [response] Operation + * Decodes an ExportModelResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteTrainingPipelineCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportModelResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelTrainingPipeline}. - * @param error Error, if any - * @param [response] Empty + * Decodes an ExportModelResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type CancelTrainingPipelineCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportModelResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createPipelineJob}. - * @param error Error, if any - * @param [response] PipelineJob + * Verifies an ExportModelResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CreatePipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.PipelineJob) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getPipelineJob}. - * @param error Error, if any - * @param [response] PipelineJob + * Creates an ExportModelResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportModelResponse */ - type GetPipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.PipelineJob) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportModelResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listPipelineJobs}. - * @param error Error, if any - * @param [response] ListPipelineJobsResponse + * Creates a plain object from an ExportModelResponse message. Also converts values to other types if specified. + * @param message ExportModelResponse + * @param [options] Conversion options + * @returns Plain object */ - type ListPipelineJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListPipelineJobsResponse) => void; + public static toObject(message: google.cloud.aiplatform.v1.ExportModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deletePipelineJob}. - * @param error Error, if any - * @param [response] Operation + * Converts this ExportModelResponse to JSON. + * @returns JSON object */ - type DeletePipelineJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelPipelineJob}. - * @param error Error, if any - * @param [response] Empty + * Gets the default type url for ExportModelResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type CancelPipelineJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateTrainingPipelineRequest. */ - interface ICreateTrainingPipelineRequest { + /** Properties of a CopyModelRequest. */ + interface ICopyModelRequest { - /** CreateTrainingPipelineRequest parent */ + /** CopyModelRequest modelId */ + modelId?: (string|null); + + /** CopyModelRequest parentModel */ + parentModel?: (string|null); + + /** CopyModelRequest parent */ parent?: (string|null); - /** CreateTrainingPipelineRequest trainingPipeline */ - trainingPipeline?: (google.cloud.aiplatform.v1.ITrainingPipeline|null); + /** CopyModelRequest sourceModel */ + sourceModel?: (string|null); + + /** CopyModelRequest encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); } - /** Represents a CreateTrainingPipelineRequest. */ - class CreateTrainingPipelineRequest implements ICreateTrainingPipelineRequest { + /** Represents a CopyModelRequest. */ + class CopyModelRequest implements ICopyModelRequest { /** - * Constructs a new CreateTrainingPipelineRequest. + * Constructs a new CopyModelRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICopyModelRequest); - /** CreateTrainingPipelineRequest parent. */ + /** CopyModelRequest modelId. */ + public modelId?: (string|null); + + /** CopyModelRequest parentModel. */ + public parentModel?: (string|null); + + /** CopyModelRequest parent. */ public parent: string; - /** CreateTrainingPipelineRequest trainingPipeline. */ - public trainingPipeline?: (google.cloud.aiplatform.v1.ITrainingPipeline|null); + /** CopyModelRequest sourceModel. */ + public sourceModel: string; + + /** CopyModelRequest encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** CopyModelRequest destinationModel. */ + public destinationModel?: ("modelId"|"parentModel"); /** - * Creates a new CreateTrainingPipelineRequest instance using the specified properties. + * Creates a new CopyModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTrainingPipelineRequest instance + * @returns CopyModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest): google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICopyModelRequest): google.cloud.aiplatform.v1.CopyModelRequest; /** - * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. - * @param message CreateTrainingPipelineRequest message or plain object to encode + * Encodes the specified CopyModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelRequest.verify|verify} messages. + * @param message CopyModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICopyModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. - * @param message CreateTrainingPipelineRequest message or plain object to encode + * Encodes the specified CopyModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelRequest.verify|verify} messages. + * @param message CopyModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICopyModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a CopyModelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTrainingPipelineRequest + * @returns CopyModelRequest * @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.CreateTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CopyModelRequest; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a CopyModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTrainingPipelineRequest + * @returns CopyModelRequest * @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.CreateTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CopyModelRequest; /** - * Verifies a CreateTrainingPipelineRequest message. + * Verifies a CopyModelRequest 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 CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CopyModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTrainingPipelineRequest + * @returns CopyModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CopyModelRequest; /** - * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. - * @param message CreateTrainingPipelineRequest + * Creates a plain object from a CopyModelRequest message. Also converts values to other types if specified. + * @param message CopyModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CopyModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTrainingPipelineRequest to JSON. + * Converts this CopyModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateTrainingPipelineRequest + * Gets the default type url for CopyModelRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTrainingPipelineRequest. */ - interface IGetTrainingPipelineRequest { + /** Properties of a CopyModelOperationMetadata. */ + interface ICopyModelOperationMetadata { - /** GetTrainingPipelineRequest name */ - name?: (string|null); + /** CopyModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents a GetTrainingPipelineRequest. */ - class GetTrainingPipelineRequest implements IGetTrainingPipelineRequest { + /** Represents a CopyModelOperationMetadata. */ + class CopyModelOperationMetadata implements ICopyModelOperationMetadata { /** - * Constructs a new GetTrainingPipelineRequest. + * Constructs a new CopyModelOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICopyModelOperationMetadata); - /** GetTrainingPipelineRequest name. */ - public name: string; + /** CopyModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new GetTrainingPipelineRequest instance using the specified properties. + * Creates a new CopyModelOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GetTrainingPipelineRequest instance + * @returns CopyModelOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest): google.cloud.aiplatform.v1.GetTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICopyModelOperationMetadata): google.cloud.aiplatform.v1.CopyModelOperationMetadata; /** - * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. - * @param message GetTrainingPipelineRequest message or plain object to encode + * Encodes the specified CopyModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelOperationMetadata.verify|verify} messages. + * @param message CopyModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICopyModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. - * @param message GetTrainingPipelineRequest message or plain object to encode + * Encodes the specified CopyModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelOperationMetadata.verify|verify} messages. + * @param message CopyModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICopyModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTrainingPipelineRequest + * @returns CopyModelOperationMetadata * @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.GetTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CopyModelOperationMetadata; /** - * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTrainingPipelineRequest + * @returns CopyModelOperationMetadata * @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.GetTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CopyModelOperationMetadata; /** - * Verifies a GetTrainingPipelineRequest message. + * Verifies a CopyModelOperationMetadata 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 GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CopyModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTrainingPipelineRequest + * @returns CopyModelOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CopyModelOperationMetadata; /** - * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. - * @param message GetTrainingPipelineRequest + * Creates a plain object from a CopyModelOperationMetadata message. Also converts values to other types if specified. + * @param message CopyModelOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CopyModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTrainingPipelineRequest to JSON. + * Converts this CopyModelOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTrainingPipelineRequest + * Gets the default type url for CopyModelOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTrainingPipelinesRequest. */ - interface IListTrainingPipelinesRequest { - - /** ListTrainingPipelinesRequest parent */ - parent?: (string|null); - - /** ListTrainingPipelinesRequest filter */ - filter?: (string|null); - - /** ListTrainingPipelinesRequest pageSize */ - pageSize?: (number|null); + /** Properties of a CopyModelResponse. */ + interface ICopyModelResponse { - /** ListTrainingPipelinesRequest pageToken */ - pageToken?: (string|null); + /** CopyModelResponse model */ + model?: (string|null); - /** ListTrainingPipelinesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** CopyModelResponse modelVersionId */ + modelVersionId?: (string|null); } - /** Represents a ListTrainingPipelinesRequest. */ - class ListTrainingPipelinesRequest implements IListTrainingPipelinesRequest { + /** Represents a CopyModelResponse. */ + class CopyModelResponse implements ICopyModelResponse { /** - * Constructs a new ListTrainingPipelinesRequest. + * Constructs a new CopyModelResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest); - - /** ListTrainingPipelinesRequest parent. */ - public parent: string; - - /** ListTrainingPipelinesRequest filter. */ - public filter: string; + constructor(properties?: google.cloud.aiplatform.v1.ICopyModelResponse); - /** ListTrainingPipelinesRequest pageSize. */ - public pageSize: number; - - /** ListTrainingPipelinesRequest pageToken. */ - public pageToken: string; + /** CopyModelResponse model. */ + public model: string; - /** ListTrainingPipelinesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** CopyModelResponse modelVersionId. */ + public modelVersionId: string; /** - * Creates a new ListTrainingPipelinesRequest instance using the specified properties. + * Creates a new CopyModelResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListTrainingPipelinesRequest instance + * @returns CopyModelResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest): google.cloud.aiplatform.v1.ListTrainingPipelinesRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICopyModelResponse): google.cloud.aiplatform.v1.CopyModelResponse; /** - * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. - * @param message ListTrainingPipelinesRequest message or plain object to encode + * Encodes the specified CopyModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelResponse.verify|verify} messages. + * @param message CopyModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICopyModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. - * @param message ListTrainingPipelinesRequest message or plain object to encode + * Encodes the specified CopyModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelResponse.verify|verify} messages. + * @param message CopyModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICopyModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. + * Decodes a CopyModelResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTrainingPipelinesRequest + * @returns CopyModelResponse * @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.ListTrainingPipelinesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CopyModelResponse; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. + * Decodes a CopyModelResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTrainingPipelinesRequest + * @returns CopyModelResponse * @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.ListTrainingPipelinesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CopyModelResponse; /** - * Verifies a ListTrainingPipelinesRequest message. + * Verifies a CopyModelResponse 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 ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CopyModelResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTrainingPipelinesRequest + * @returns CopyModelResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrainingPipelinesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CopyModelResponse; /** - * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. - * @param message ListTrainingPipelinesRequest + * Creates a plain object from a CopyModelResponse message. Also converts values to other types if specified. + * @param message CopyModelResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTrainingPipelinesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CopyModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTrainingPipelinesRequest to JSON. + * Converts this CopyModelResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTrainingPipelinesRequest + * Gets the default type url for CopyModelResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTrainingPipelinesResponse. */ - interface IListTrainingPipelinesResponse { + /** Properties of an ImportModelEvaluationRequest. */ + interface IImportModelEvaluationRequest { - /** ListTrainingPipelinesResponse trainingPipelines */ - trainingPipelines?: (google.cloud.aiplatform.v1.ITrainingPipeline[]|null); + /** ImportModelEvaluationRequest parent */ + parent?: (string|null); - /** ListTrainingPipelinesResponse nextPageToken */ - nextPageToken?: (string|null); + /** ImportModelEvaluationRequest modelEvaluation */ + modelEvaluation?: (google.cloud.aiplatform.v1.IModelEvaluation|null); } - /** Represents a ListTrainingPipelinesResponse. */ - class ListTrainingPipelinesResponse implements IListTrainingPipelinesResponse { + /** Represents an ImportModelEvaluationRequest. */ + class ImportModelEvaluationRequest implements IImportModelEvaluationRequest { /** - * Constructs a new ListTrainingPipelinesResponse. + * Constructs a new ImportModelEvaluationRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse); + constructor(properties?: google.cloud.aiplatform.v1.IImportModelEvaluationRequest); - /** ListTrainingPipelinesResponse trainingPipelines. */ - public trainingPipelines: google.cloud.aiplatform.v1.ITrainingPipeline[]; + /** ImportModelEvaluationRequest parent. */ + public parent: string; - /** ListTrainingPipelinesResponse nextPageToken. */ - public nextPageToken: string; + /** ImportModelEvaluationRequest modelEvaluation. */ + public modelEvaluation?: (google.cloud.aiplatform.v1.IModelEvaluation|null); /** - * Creates a new ListTrainingPipelinesResponse instance using the specified properties. + * Creates a new ImportModelEvaluationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTrainingPipelinesResponse instance + * @returns ImportModelEvaluationRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse): google.cloud.aiplatform.v1.ListTrainingPipelinesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IImportModelEvaluationRequest): google.cloud.aiplatform.v1.ImportModelEvaluationRequest; /** - * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. - * @param message ListTrainingPipelinesResponse message or plain object to encode + * Encodes the specified ImportModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportModelEvaluationRequest.verify|verify} messages. + * @param message ImportModelEvaluationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IImportModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. - * @param message ListTrainingPipelinesResponse message or plain object to encode + * Encodes the specified ImportModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportModelEvaluationRequest.verify|verify} messages. + * @param message ImportModelEvaluationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IImportModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. + * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTrainingPipelinesResponse + * @returns ImportModelEvaluationRequest * @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.ListTrainingPipelinesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ImportModelEvaluationRequest; /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. + * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTrainingPipelinesResponse + * @returns ImportModelEvaluationRequest * @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.ListTrainingPipelinesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ImportModelEvaluationRequest; /** - * Verifies a ListTrainingPipelinesResponse message. + * Verifies an ImportModelEvaluationRequest 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 ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ImportModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTrainingPipelinesResponse + * @returns ImportModelEvaluationRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrainingPipelinesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ImportModelEvaluationRequest; /** - * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. - * @param message ListTrainingPipelinesResponse + * Creates a plain object from an ImportModelEvaluationRequest message. Also converts values to other types if specified. + * @param message ImportModelEvaluationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTrainingPipelinesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ImportModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTrainingPipelinesResponse to JSON. + * Converts this ImportModelEvaluationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTrainingPipelinesResponse + * Gets the default type url for ImportModelEvaluationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteTrainingPipelineRequest. */ - interface IDeleteTrainingPipelineRequest { + /** Properties of a BatchImportModelEvaluationSlicesRequest. */ + interface IBatchImportModelEvaluationSlicesRequest { - /** DeleteTrainingPipelineRequest name */ - name?: (string|null); + /** BatchImportModelEvaluationSlicesRequest parent */ + parent?: (string|null); + + /** BatchImportModelEvaluationSlicesRequest modelEvaluationSlices */ + modelEvaluationSlices?: (google.cloud.aiplatform.v1.IModelEvaluationSlice[]|null); } - /** Represents a DeleteTrainingPipelineRequest. */ - class DeleteTrainingPipelineRequest implements IDeleteTrainingPipelineRequest { + /** Represents a BatchImportModelEvaluationSlicesRequest. */ + class BatchImportModelEvaluationSlicesRequest implements IBatchImportModelEvaluationSlicesRequest { /** - * Constructs a new DeleteTrainingPipelineRequest. + * Constructs a new BatchImportModelEvaluationSlicesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest); - /** DeleteTrainingPipelineRequest name. */ - public name: string; + /** BatchImportModelEvaluationSlicesRequest parent. */ + public parent: string; + + /** BatchImportModelEvaluationSlicesRequest modelEvaluationSlices. */ + public modelEvaluationSlices: google.cloud.aiplatform.v1.IModelEvaluationSlice[]; /** - * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. + * Creates a new BatchImportModelEvaluationSlicesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTrainingPipelineRequest instance + * @returns BatchImportModelEvaluationSlicesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest): google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; /** - * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. - * @param message DeleteTrainingPipelineRequest message or plain object to encode + * Encodes the specified BatchImportModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. - * @param message DeleteTrainingPipelineRequest message or plain object to encode + * Encodes the specified BatchImportModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTrainingPipelineRequest + * @returns BatchImportModelEvaluationSlicesRequest * @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.DeleteTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTrainingPipelineRequest + * @returns BatchImportModelEvaluationSlicesRequest * @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.DeleteTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; /** - * Verifies a DeleteTrainingPipelineRequest message. + * Verifies a BatchImportModelEvaluationSlicesRequest 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 DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchImportModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTrainingPipelineRequest + * @returns BatchImportModelEvaluationSlicesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; /** - * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. - * @param message DeleteTrainingPipelineRequest + * Creates a plain object from a BatchImportModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * @param message BatchImportModelEvaluationSlicesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTrainingPipelineRequest to JSON. + * Converts this BatchImportModelEvaluationSlicesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTrainingPipelineRequest + * Gets the default type url for BatchImportModelEvaluationSlicesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelTrainingPipelineRequest. */ - interface ICancelTrainingPipelineRequest { + /** Properties of a BatchImportModelEvaluationSlicesResponse. */ + interface IBatchImportModelEvaluationSlicesResponse { - /** CancelTrainingPipelineRequest name */ - name?: (string|null); + /** BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices */ + importedModelEvaluationSlices?: (string[]|null); } - /** Represents a CancelTrainingPipelineRequest. */ - class CancelTrainingPipelineRequest implements ICancelTrainingPipelineRequest { + /** Represents a BatchImportModelEvaluationSlicesResponse. */ + class BatchImportModelEvaluationSlicesResponse implements IBatchImportModelEvaluationSlicesResponse { /** - * Constructs a new CancelTrainingPipelineRequest. + * Constructs a new BatchImportModelEvaluationSlicesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest); + constructor(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse); - /** CancelTrainingPipelineRequest name. */ - public name: string; + /** BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices. */ + public importedModelEvaluationSlices: string[]; /** - * Creates a new CancelTrainingPipelineRequest instance using the specified properties. + * Creates a new BatchImportModelEvaluationSlicesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CancelTrainingPipelineRequest instance + * @returns BatchImportModelEvaluationSlicesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest): google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; + public static create(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; /** - * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. - * @param message CancelTrainingPipelineRequest message or plain object to encode + * Encodes the specified BatchImportModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. - * @param message CancelTrainingPipelineRequest message or plain object to encode + * Encodes the specified BatchImportModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelTrainingPipelineRequest + * @returns BatchImportModelEvaluationSlicesResponse * @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.CancelTrainingPipelineRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelTrainingPipelineRequest + * @returns BatchImportModelEvaluationSlicesResponse * @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.CancelTrainingPipelineRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; /** - * Verifies a CancelTrainingPipelineRequest message. + * Verifies a BatchImportModelEvaluationSlicesResponse 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 CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchImportModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelTrainingPipelineRequest + * @returns BatchImportModelEvaluationSlicesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; /** - * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. - * @param message CancelTrainingPipelineRequest + * Creates a plain object from a BatchImportModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * @param message BatchImportModelEvaluationSlicesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CancelTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelTrainingPipelineRequest to JSON. + * Converts this BatchImportModelEvaluationSlicesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelTrainingPipelineRequest + * Gets the default type url for BatchImportModelEvaluationSlicesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreatePipelineJobRequest. */ - interface ICreatePipelineJobRequest { - - /** CreatePipelineJobRequest parent */ - parent?: (string|null); - - /** CreatePipelineJobRequest pipelineJob */ - pipelineJob?: (google.cloud.aiplatform.v1.IPipelineJob|null); + /** Properties of a GetModelEvaluationRequest. */ + interface IGetModelEvaluationRequest { - /** CreatePipelineJobRequest pipelineJobId */ - pipelineJobId?: (string|null); + /** GetModelEvaluationRequest name */ + name?: (string|null); } - /** Represents a CreatePipelineJobRequest. */ - class CreatePipelineJobRequest implements ICreatePipelineJobRequest { + /** Represents a GetModelEvaluationRequest. */ + class GetModelEvaluationRequest implements IGetModelEvaluationRequest { /** - * Constructs a new CreatePipelineJobRequest. + * Constructs a new GetModelEvaluationRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreatePipelineJobRequest); - - /** CreatePipelineJobRequest parent. */ - public parent: string; - - /** CreatePipelineJobRequest pipelineJob. */ - public pipelineJob?: (google.cloud.aiplatform.v1.IPipelineJob|null); + constructor(properties?: google.cloud.aiplatform.v1.IGetModelEvaluationRequest); - /** CreatePipelineJobRequest pipelineJobId. */ - public pipelineJobId: string; + /** GetModelEvaluationRequest name. */ + public name: string; /** - * Creates a new CreatePipelineJobRequest instance using the specified properties. + * Creates a new GetModelEvaluationRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreatePipelineJobRequest instance + * @returns GetModelEvaluationRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreatePipelineJobRequest): google.cloud.aiplatform.v1.CreatePipelineJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IGetModelEvaluationRequest): google.cloud.aiplatform.v1.GetModelEvaluationRequest; /** - * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. - * @param message CreatePipelineJobRequest message or plain object to encode + * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. + * @param message GetModelEvaluationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. - * @param message CreatePipelineJobRequest message or plain object to encode + * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. + * @param message GetModelEvaluationRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetModelEvaluationRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreatePipelineJobRequest + * @returns GetModelEvaluationRequest * @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.CreatePipelineJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetModelEvaluationRequest; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreatePipelineJobRequest + * @returns GetModelEvaluationRequest * @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.CreatePipelineJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetModelEvaluationRequest; /** - * Verifies a CreatePipelineJobRequest message. + * Verifies a GetModelEvaluationRequest 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 CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreatePipelineJobRequest + * @returns GetModelEvaluationRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreatePipelineJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetModelEvaluationRequest; /** - * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. - * @param message CreatePipelineJobRequest + * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. + * @param message GetModelEvaluationRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreatePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetModelEvaluationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreatePipelineJobRequest to JSON. + * Converts this GetModelEvaluationRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreatePipelineJobRequest + * Gets the default type url for GetModelEvaluationRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetPipelineJobRequest. */ - interface IGetPipelineJobRequest { + /** Properties of a ListModelEvaluationsRequest. */ + interface IListModelEvaluationsRequest { - /** GetPipelineJobRequest name */ - name?: (string|null); + /** ListModelEvaluationsRequest parent */ + parent?: (string|null); + + /** ListModelEvaluationsRequest filter */ + filter?: (string|null); + + /** ListModelEvaluationsRequest pageSize */ + pageSize?: (number|null); + + /** ListModelEvaluationsRequest pageToken */ + pageToken?: (string|null); + + /** ListModelEvaluationsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a GetPipelineJobRequest. */ - class GetPipelineJobRequest implements IGetPipelineJobRequest { + /** Represents a ListModelEvaluationsRequest. */ + class ListModelEvaluationsRequest implements IListModelEvaluationsRequest { /** - * Constructs a new GetPipelineJobRequest. + * Constructs a new ListModelEvaluationsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetPipelineJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListModelEvaluationsRequest); - /** GetPipelineJobRequest name. */ - public name: string; + /** ListModelEvaluationsRequest parent. */ + public parent: string; + + /** ListModelEvaluationsRequest filter. */ + public filter: string; + + /** ListModelEvaluationsRequest pageSize. */ + public pageSize: number; + + /** ListModelEvaluationsRequest pageToken. */ + public pageToken: string; + + /** ListModelEvaluationsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new GetPipelineJobRequest instance using the specified properties. + * Creates a new ListModelEvaluationsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetPipelineJobRequest instance + * @returns ListModelEvaluationsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetPipelineJobRequest): google.cloud.aiplatform.v1.GetPipelineJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListModelEvaluationsRequest): google.cloud.aiplatform.v1.ListModelEvaluationsRequest; /** - * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. - * @param message GetPipelineJobRequest message or plain object to encode + * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. + * @param message ListModelEvaluationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. - * @param message GetPipelineJobRequest message or plain object to encode + * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. + * @param message ListModelEvaluationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelEvaluationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetPipelineJobRequest + * @returns ListModelEvaluationsRequest * @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.GetPipelineJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelEvaluationsRequest; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetPipelineJobRequest + * @returns ListModelEvaluationsRequest * @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.GetPipelineJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelEvaluationsRequest; /** - * Verifies a GetPipelineJobRequest message. + * Verifies a ListModelEvaluationsRequest 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 GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetPipelineJobRequest + * @returns ListModelEvaluationsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetPipelineJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelEvaluationsRequest; /** - * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. - * @param message GetPipelineJobRequest + * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. + * @param message ListModelEvaluationsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelEvaluationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetPipelineJobRequest to JSON. + * Converts this ListModelEvaluationsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetPipelineJobRequest + * Gets the default type url for ListModelEvaluationsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPipelineJobsRequest. */ - interface IListPipelineJobsRequest { - - /** ListPipelineJobsRequest parent */ - parent?: (string|null); - - /** ListPipelineJobsRequest filter */ - filter?: (string|null); - - /** ListPipelineJobsRequest pageSize */ - pageSize?: (number|null); - - /** ListPipelineJobsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a ListModelEvaluationsResponse. */ + interface IListModelEvaluationsResponse { - /** ListPipelineJobsRequest orderBy */ - orderBy?: (string|null); + /** ListModelEvaluationsResponse modelEvaluations */ + modelEvaluations?: (google.cloud.aiplatform.v1.IModelEvaluation[]|null); - /** ListPipelineJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** ListModelEvaluationsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ListPipelineJobsRequest. */ - class ListPipelineJobsRequest implements IListPipelineJobsRequest { + /** Represents a ListModelEvaluationsResponse. */ + class ListModelEvaluationsResponse implements IListModelEvaluationsResponse { /** - * Constructs a new ListPipelineJobsRequest. + * Constructs a new ListModelEvaluationsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListPipelineJobsRequest); - - /** ListPipelineJobsRequest parent. */ - public parent: string; - - /** ListPipelineJobsRequest filter. */ - public filter: string; - - /** ListPipelineJobsRequest pageSize. */ - public pageSize: number; - - /** ListPipelineJobsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1.IListModelEvaluationsResponse); - /** ListPipelineJobsRequest orderBy. */ - public orderBy: string; + /** ListModelEvaluationsResponse modelEvaluations. */ + public modelEvaluations: google.cloud.aiplatform.v1.IModelEvaluation[]; - /** ListPipelineJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ListModelEvaluationsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ListPipelineJobsRequest instance using the specified properties. + * Creates a new ListModelEvaluationsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListPipelineJobsRequest instance + * @returns ListModelEvaluationsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListPipelineJobsRequest): google.cloud.aiplatform.v1.ListPipelineJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListModelEvaluationsResponse): google.cloud.aiplatform.v1.ListModelEvaluationsResponse; /** - * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. - * @param message ListPipelineJobsRequest message or plain object to encode + * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. + * @param message ListModelEvaluationsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. - * @param message ListPipelineJobsRequest message or plain object to encode + * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. + * @param message ListModelEvaluationsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelEvaluationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPipelineJobsRequest + * @returns ListModelEvaluationsResponse * @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.ListPipelineJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelEvaluationsResponse; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPipelineJobsRequest + * @returns ListModelEvaluationsResponse * @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.ListPipelineJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelEvaluationsResponse; /** - * Verifies a ListPipelineJobsRequest message. + * Verifies a ListModelEvaluationsResponse 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 ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPipelineJobsRequest + * @returns ListModelEvaluationsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListPipelineJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelEvaluationsResponse; /** - * Creates a plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. - * @param message ListPipelineJobsRequest + * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. + * @param message ListModelEvaluationsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListPipelineJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelEvaluationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPipelineJobsRequest to JSON. + * Converts this ListModelEvaluationsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPipelineJobsRequest + * Gets the default type url for ListModelEvaluationsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListPipelineJobsResponse. */ - interface IListPipelineJobsResponse { - - /** ListPipelineJobsResponse pipelineJobs */ - pipelineJobs?: (google.cloud.aiplatform.v1.IPipelineJob[]|null); + /** Properties of a GetModelEvaluationSliceRequest. */ + interface IGetModelEvaluationSliceRequest { - /** ListPipelineJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** GetModelEvaluationSliceRequest name */ + name?: (string|null); } - /** Represents a ListPipelineJobsResponse. */ - class ListPipelineJobsResponse implements IListPipelineJobsResponse { + /** Represents a GetModelEvaluationSliceRequest. */ + class GetModelEvaluationSliceRequest implements IGetModelEvaluationSliceRequest { /** - * Constructs a new ListPipelineJobsResponse. + * Constructs a new GetModelEvaluationSliceRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListPipelineJobsResponse); - - /** ListPipelineJobsResponse pipelineJobs. */ - public pipelineJobs: google.cloud.aiplatform.v1.IPipelineJob[]; + constructor(properties?: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest); - /** ListPipelineJobsResponse nextPageToken. */ - public nextPageToken: string; + /** GetModelEvaluationSliceRequest name. */ + public name: string; /** - * Creates a new ListPipelineJobsResponse instance using the specified properties. + * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListPipelineJobsResponse instance + * @returns GetModelEvaluationSliceRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListPipelineJobsResponse): google.cloud.aiplatform.v1.ListPipelineJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest): google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest; /** - * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. - * @param message ListPipelineJobsResponse message or plain object to encode + * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. + * @param message GetModelEvaluationSliceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. - * @param message ListPipelineJobsResponse message or plain object to encode + * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. + * @param message GetModelEvaluationSliceRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListPipelineJobsResponse + * @returns GetModelEvaluationSliceRequest * @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.ListPipelineJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest; /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListPipelineJobsResponse + * @returns GetModelEvaluationSliceRequest * @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.ListPipelineJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest; /** - * Verifies a ListPipelineJobsResponse message. + * Verifies a GetModelEvaluationSliceRequest 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 ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListPipelineJobsResponse + * @returns GetModelEvaluationSliceRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListPipelineJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest; /** - * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. - * @param message ListPipelineJobsResponse + * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. + * @param message GetModelEvaluationSliceRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListPipelineJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListPipelineJobsResponse to JSON. + * Converts this GetModelEvaluationSliceRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListPipelineJobsResponse + * Gets the default type url for GetModelEvaluationSliceRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeletePipelineJobRequest. */ - interface IDeletePipelineJobRequest { + /** Properties of a ListModelEvaluationSlicesRequest. */ + interface IListModelEvaluationSlicesRequest { - /** DeletePipelineJobRequest name */ - name?: (string|null); - } + /** ListModelEvaluationSlicesRequest parent */ + parent?: (string|null); - /** Represents a DeletePipelineJobRequest. */ - class DeletePipelineJobRequest implements IDeletePipelineJobRequest { + /** ListModelEvaluationSlicesRequest filter */ + filter?: (string|null); - /** - * Constructs a new DeletePipelineJobRequest. + /** ListModelEvaluationSlicesRequest pageSize */ + pageSize?: (number|null); + + /** ListModelEvaluationSlicesRequest pageToken */ + pageToken?: (string|null); + + /** ListModelEvaluationSlicesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListModelEvaluationSlicesRequest. */ + class ListModelEvaluationSlicesRequest implements IListModelEvaluationSlicesRequest { + + /** + * Constructs a new ListModelEvaluationSlicesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeletePipelineJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest); - /** DeletePipelineJobRequest name. */ - public name: string; + /** ListModelEvaluationSlicesRequest parent. */ + public parent: string; + + /** ListModelEvaluationSlicesRequest filter. */ + public filter: string; + + /** ListModelEvaluationSlicesRequest pageSize. */ + public pageSize: number; + + /** ListModelEvaluationSlicesRequest pageToken. */ + public pageToken: string; + + /** ListModelEvaluationSlicesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new DeletePipelineJobRequest instance using the specified properties. + * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeletePipelineJobRequest instance + * @returns ListModelEvaluationSlicesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeletePipelineJobRequest): google.cloud.aiplatform.v1.DeletePipelineJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest): google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest; /** - * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. - * @param message DeletePipelineJobRequest message or plain object to encode + * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * @param message ListModelEvaluationSlicesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. - * @param message DeletePipelineJobRequest message or plain object to encode + * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * @param message ListModelEvaluationSlicesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeletePipelineJobRequest + * @returns ListModelEvaluationSlicesRequest * @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.DeletePipelineJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeletePipelineJobRequest + * @returns ListModelEvaluationSlicesRequest * @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.DeletePipelineJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest; /** - * Verifies a DeletePipelineJobRequest message. + * Verifies a ListModelEvaluationSlicesRequest 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 DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeletePipelineJobRequest + * @returns ListModelEvaluationSlicesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeletePipelineJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest; /** - * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. - * @param message DeletePipelineJobRequest + * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * @param message ListModelEvaluationSlicesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeletePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeletePipelineJobRequest to JSON. + * Converts this ListModelEvaluationSlicesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeletePipelineJobRequest + * Gets the default type url for ListModelEvaluationSlicesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelPipelineJobRequest. */ - interface ICancelPipelineJobRequest { + /** Properties of a ListModelEvaluationSlicesResponse. */ + interface IListModelEvaluationSlicesResponse { - /** CancelPipelineJobRequest name */ - name?: (string|null); + /** ListModelEvaluationSlicesResponse modelEvaluationSlices */ + modelEvaluationSlices?: (google.cloud.aiplatform.v1.IModelEvaluationSlice[]|null); + + /** ListModelEvaluationSlicesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CancelPipelineJobRequest. */ - class CancelPipelineJobRequest implements ICancelPipelineJobRequest { + /** Represents a ListModelEvaluationSlicesResponse. */ + class ListModelEvaluationSlicesResponse implements IListModelEvaluationSlicesResponse { /** - * Constructs a new CancelPipelineJobRequest. + * Constructs a new ListModelEvaluationSlicesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICancelPipelineJobRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse); - /** CancelPipelineJobRequest name. */ - public name: string; + /** ListModelEvaluationSlicesResponse modelEvaluationSlices. */ + public modelEvaluationSlices: google.cloud.aiplatform.v1.IModelEvaluationSlice[]; + + /** ListModelEvaluationSlicesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CancelPipelineJobRequest instance using the specified properties. + * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CancelPipelineJobRequest instance + * @returns ListModelEvaluationSlicesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICancelPipelineJobRequest): google.cloud.aiplatform.v1.CancelPipelineJobRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse): google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse; /** - * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. - * @param message CancelPipelineJobRequest message or plain object to encode + * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. + * @param message ListModelEvaluationSlicesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. - * @param message CancelPipelineJobRequest message or plain object to encode + * Encodes the specified ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. + * @param message ListModelEvaluationSlicesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelPipelineJobRequest + * @returns ListModelEvaluationSlicesResponse * @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.CancelPipelineJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelPipelineJobRequest + * @returns ListModelEvaluationSlicesResponse * @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.CancelPipelineJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse; /** - * Verifies a CancelPipelineJobRequest message. + * Verifies a ListModelEvaluationSlicesResponse 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 CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelPipelineJobRequest + * @returns ListModelEvaluationSlicesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CancelPipelineJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse; /** - * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. - * @param message CancelPipelineJobRequest + * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * @param message ListModelEvaluationSlicesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CancelPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelPipelineJobRequest to JSON. + * Converts this ListModelEvaluationSlicesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelPipelineJobRequest + * Gets the default type url for ListModelEvaluationSlicesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TrainingPipeline. */ - interface ITrainingPipeline { + /** PipelineFailurePolicy enum. */ + enum PipelineFailurePolicy { + PIPELINE_FAILURE_POLICY_UNSPECIFIED = 0, + PIPELINE_FAILURE_POLICY_FAIL_SLOW = 1, + PIPELINE_FAILURE_POLICY_FAIL_FAST = 2 + } - /** TrainingPipeline name */ + /** Properties of a PipelineJob. */ + interface IPipelineJob { + + /** PipelineJob name */ name?: (string|null); - /** TrainingPipeline displayName */ + /** PipelineJob displayName */ displayName?: (string|null); - /** TrainingPipeline inputDataConfig */ - inputDataConfig?: (google.cloud.aiplatform.v1.IInputDataConfig|null); - - /** TrainingPipeline trainingTaskDefinition */ - trainingTaskDefinition?: (string|null); - - /** TrainingPipeline trainingTaskInputs */ - trainingTaskInputs?: (google.protobuf.IValue|null); + /** PipelineJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** TrainingPipeline trainingTaskMetadata */ - trainingTaskMetadata?: (google.protobuf.IValue|null); + /** PipelineJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** TrainingPipeline modelToUpload */ - modelToUpload?: (google.cloud.aiplatform.v1.IModel|null); + /** PipelineJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** TrainingPipeline modelId */ - modelId?: (string|null); + /** PipelineJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** TrainingPipeline parentModel */ - parentModel?: (string|null); + /** PipelineJob pipelineSpec */ + pipelineSpec?: (google.protobuf.IStruct|null); - /** TrainingPipeline state */ + /** PipelineJob state */ state?: (google.cloud.aiplatform.v1.PipelineState|keyof typeof google.cloud.aiplatform.v1.PipelineState|null); - /** TrainingPipeline error */ + /** PipelineJob jobDetail */ + jobDetail?: (google.cloud.aiplatform.v1.IPipelineJobDetail|null); + + /** PipelineJob error */ error?: (google.rpc.IStatus|null); - /** TrainingPipeline createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** PipelineJob labels */ + labels?: ({ [k: string]: string }|null); - /** TrainingPipeline startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** PipelineJob runtimeConfig */ + runtimeConfig?: (google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null); - /** TrainingPipeline endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** PipelineJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); - /** TrainingPipeline updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** PipelineJob serviceAccount */ + serviceAccount?: (string|null); - /** TrainingPipeline labels */ - labels?: ({ [k: string]: string }|null); + /** PipelineJob network */ + network?: (string|null); - /** TrainingPipeline encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** PipelineJob templateUri */ + templateUri?: (string|null); + + /** PipelineJob templateMetadata */ + templateMetadata?: (google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null); } - /** Represents a TrainingPipeline. */ - class TrainingPipeline implements ITrainingPipeline { + /** Represents a PipelineJob. */ + class PipelineJob implements IPipelineJob { /** - * Constructs a new TrainingPipeline. + * Constructs a new PipelineJob. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ITrainingPipeline); + constructor(properties?: google.cloud.aiplatform.v1.IPipelineJob); - /** TrainingPipeline name. */ + /** PipelineJob name. */ public name: string; - /** TrainingPipeline displayName. */ + /** PipelineJob displayName. */ public displayName: string; - /** TrainingPipeline inputDataConfig. */ - public inputDataConfig?: (google.cloud.aiplatform.v1.IInputDataConfig|null); - - /** TrainingPipeline trainingTaskDefinition. */ - public trainingTaskDefinition: string; - - /** TrainingPipeline trainingTaskInputs. */ - public trainingTaskInputs?: (google.protobuf.IValue|null); + /** PipelineJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** TrainingPipeline trainingTaskMetadata. */ - public trainingTaskMetadata?: (google.protobuf.IValue|null); + /** PipelineJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** TrainingPipeline modelToUpload. */ - public modelToUpload?: (google.cloud.aiplatform.v1.IModel|null); + /** PipelineJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** TrainingPipeline modelId. */ - public modelId: string; + /** PipelineJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** TrainingPipeline parentModel. */ - public parentModel: string; + /** PipelineJob pipelineSpec. */ + public pipelineSpec?: (google.protobuf.IStruct|null); - /** TrainingPipeline state. */ + /** PipelineJob state. */ public state: (google.cloud.aiplatform.v1.PipelineState|keyof typeof google.cloud.aiplatform.v1.PipelineState); - /** TrainingPipeline error. */ + /** PipelineJob jobDetail. */ + public jobDetail?: (google.cloud.aiplatform.v1.IPipelineJobDetail|null); + + /** PipelineJob error. */ public error?: (google.rpc.IStatus|null); - /** TrainingPipeline createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** PipelineJob labels. */ + public labels: { [k: string]: string }; - /** TrainingPipeline startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** PipelineJob runtimeConfig. */ + public runtimeConfig?: (google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null); - /** TrainingPipeline endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** PipelineJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); - /** TrainingPipeline updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** PipelineJob serviceAccount. */ + public serviceAccount: string; - /** TrainingPipeline labels. */ - public labels: { [k: string]: string }; + /** PipelineJob network. */ + public network: string; - /** TrainingPipeline encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** PipelineJob templateUri. */ + public templateUri: string; + + /** PipelineJob templateMetadata. */ + public templateMetadata?: (google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null); /** - * Creates a new TrainingPipeline instance using the specified properties. + * Creates a new PipelineJob instance using the specified properties. * @param [properties] Properties to set - * @returns TrainingPipeline instance + * @returns PipelineJob instance */ - public static create(properties?: google.cloud.aiplatform.v1.ITrainingPipeline): google.cloud.aiplatform.v1.TrainingPipeline; + public static create(properties?: google.cloud.aiplatform.v1.IPipelineJob): google.cloud.aiplatform.v1.PipelineJob; /** - * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. - * @param message TrainingPipeline message or plain object to encode + * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. + * @param message PipelineJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ITrainingPipeline, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. - * @param message TrainingPipeline message or plain object to encode + * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. + * @param message PipelineJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITrainingPipeline, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TrainingPipeline message from the specified reader or buffer. + * Decodes a PipelineJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TrainingPipeline + * @returns PipelineJob * @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.TrainingPipeline; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PipelineJob; /** - * Decodes a TrainingPipeline message from the specified reader or buffer, length delimited. + * Decodes a PipelineJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TrainingPipeline + * @returns PipelineJob * @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.TrainingPipeline; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PipelineJob; /** - * Verifies a TrainingPipeline message. + * Verifies a PipelineJob 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 TrainingPipeline message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TrainingPipeline + * @returns PipelineJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TrainingPipeline; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJob; /** - * Creates a plain object from a TrainingPipeline message. Also converts values to other types if specified. - * @param message TrainingPipeline + * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. + * @param message PipelineJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.TrainingPipeline, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PipelineJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TrainingPipeline to JSON. + * Converts this PipelineJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TrainingPipeline + * Gets the default type url for PipelineJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InputDataConfig. */ - interface IInputDataConfig { - - /** InputDataConfig fractionSplit */ - fractionSplit?: (google.cloud.aiplatform.v1.IFractionSplit|null); + namespace PipelineJob { - /** InputDataConfig filterSplit */ - filterSplit?: (google.cloud.aiplatform.v1.IFilterSplit|null); + /** Properties of a RuntimeConfig. */ + interface IRuntimeConfig { - /** InputDataConfig predefinedSplit */ - predefinedSplit?: (google.cloud.aiplatform.v1.IPredefinedSplit|null); + /** RuntimeConfig parameters */ + parameters?: ({ [k: string]: google.cloud.aiplatform.v1.IValue }|null); - /** InputDataConfig timestampSplit */ - timestampSplit?: (google.cloud.aiplatform.v1.ITimestampSplit|null); + /** RuntimeConfig gcsOutputDirectory */ + gcsOutputDirectory?: (string|null); - /** InputDataConfig stratifiedSplit */ - stratifiedSplit?: (google.cloud.aiplatform.v1.IStratifiedSplit|null); + /** RuntimeConfig parameterValues */ + parameterValues?: ({ [k: string]: google.protobuf.IValue }|null); - /** InputDataConfig gcsDestination */ - gcsDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** RuntimeConfig failurePolicy */ + failurePolicy?: (google.cloud.aiplatform.v1.PipelineFailurePolicy|keyof typeof google.cloud.aiplatform.v1.PipelineFailurePolicy|null); - /** InputDataConfig bigqueryDestination */ - bigqueryDestination?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + /** RuntimeConfig inputArtifacts */ + inputArtifacts?: ({ [k: string]: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact }|null); + } - /** InputDataConfig datasetId */ - datasetId?: (string|null); + /** Represents a RuntimeConfig. */ + class RuntimeConfig implements IRuntimeConfig { - /** InputDataConfig annotationsFilter */ - annotationsFilter?: (string|null); + /** + * Constructs a new RuntimeConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig); - /** InputDataConfig annotationSchemaUri */ - annotationSchemaUri?: (string|null); + /** RuntimeConfig parameters. */ + public parameters: { [k: string]: google.cloud.aiplatform.v1.IValue }; - /** InputDataConfig savedQueryId */ - savedQueryId?: (string|null); + /** RuntimeConfig gcsOutputDirectory. */ + public gcsOutputDirectory: string; - /** InputDataConfig persistMlUseAssignment */ - persistMlUseAssignment?: (boolean|null); - } + /** RuntimeConfig parameterValues. */ + public parameterValues: { [k: string]: google.protobuf.IValue }; - /** Represents an InputDataConfig. */ - class InputDataConfig implements IInputDataConfig { + /** RuntimeConfig failurePolicy. */ + public failurePolicy: (google.cloud.aiplatform.v1.PipelineFailurePolicy|keyof typeof google.cloud.aiplatform.v1.PipelineFailurePolicy); - /** - * Constructs a new InputDataConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IInputDataConfig); + /** RuntimeConfig inputArtifacts. */ + public inputArtifacts: { [k: string]: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact }; - /** InputDataConfig fractionSplit. */ - public fractionSplit?: (google.cloud.aiplatform.v1.IFractionSplit|null); + /** + * Creates a new RuntimeConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RuntimeConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig; - /** InputDataConfig filterSplit. */ - public filterSplit?: (google.cloud.aiplatform.v1.IFilterSplit|null); + /** + * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @param message RuntimeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** InputDataConfig predefinedSplit. */ - public predefinedSplit?: (google.cloud.aiplatform.v1.IPredefinedSplit|null); + /** + * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @param message RuntimeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** InputDataConfig timestampSplit. */ - public timestampSplit?: (google.cloud.aiplatform.v1.ITimestampSplit|null); + /** + * Decodes a RuntimeConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RuntimeConfig + * @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.PipelineJob.RuntimeConfig; - /** InputDataConfig stratifiedSplit. */ - public stratifiedSplit?: (google.cloud.aiplatform.v1.IStratifiedSplit|null); + /** + * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RuntimeConfig + * @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.PipelineJob.RuntimeConfig; - /** InputDataConfig gcsDestination. */ - public gcsDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); + /** + * Verifies a RuntimeConfig 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); - /** InputDataConfig bigqueryDestination. */ - public bigqueryDestination?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); + /** + * Creates a RuntimeConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RuntimeConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig; - /** InputDataConfig datasetId. */ - public datasetId: string; + /** + * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. + * @param message RuntimeConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** InputDataConfig annotationsFilter. */ - public annotationsFilter: string; + /** + * Converts this RuntimeConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** InputDataConfig annotationSchemaUri. */ - public annotationSchemaUri: string; + /** + * Gets the default type url for RuntimeConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** InputDataConfig savedQueryId. */ - public savedQueryId: string; + namespace RuntimeConfig { - /** InputDataConfig persistMlUseAssignment. */ - public persistMlUseAssignment: boolean; + /** Properties of an InputArtifact. */ + interface IInputArtifact { - /** InputDataConfig split. */ - public split?: ("fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"); + /** InputArtifact artifactId */ + artifactId?: (string|null); + } - /** InputDataConfig destination. */ - public destination?: ("gcsDestination"|"bigqueryDestination"); + /** Represents an InputArtifact. */ + class InputArtifact implements IInputArtifact { - /** - * Creates a new InputDataConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns InputDataConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IInputDataConfig): google.cloud.aiplatform.v1.InputDataConfig; + /** + * Constructs a new InputArtifact. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact); - /** - * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. - * @param message InputDataConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IInputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** InputArtifact artifactId. */ + public artifactId?: (string|null); - /** - * Encodes the specified InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. - * @param message InputDataConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IInputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** InputArtifact kind. */ + public kind?: "artifactId"; - /** - * Decodes an InputDataConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InputDataConfig - * @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.InputDataConfig; + /** + * Creates a new InputArtifact instance using the specified properties. + * @param [properties] Properties to set + * @returns InputArtifact instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact; - /** - * Decodes an InputDataConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InputDataConfig - * @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.InputDataConfig; + /** + * Encodes the specified InputArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @param message InputArtifact message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies an InputDataConfig 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); + /** + * Encodes the specified InputArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @param message InputArtifact message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an InputDataConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InputDataConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.InputDataConfig; + /** + * Decodes an InputArtifact message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InputArtifact + * @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.PipelineJob.RuntimeConfig.InputArtifact; - /** - * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. - * @param message InputDataConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.InputDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes an InputArtifact message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InputArtifact + * @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.PipelineJob.RuntimeConfig.InputArtifact; - /** - * Converts this InputDataConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies an InputArtifact 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); - /** - * Gets the default type url for InputDataConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates an InputArtifact message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InputArtifact + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact; - /** Properties of a FractionSplit. */ - interface IFractionSplit { + /** + * Creates a plain object from an InputArtifact message. Also converts values to other types if specified. + * @param message InputArtifact + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** FractionSplit trainingFraction */ - trainingFraction?: (number|null); + /** + * Converts this InputArtifact to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** FractionSplit validationFraction */ - validationFraction?: (number|null); + /** + * Gets the default type url for InputArtifact + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } - /** FractionSplit testFraction */ - testFraction?: (number|null); + /** Properties of a PipelineTemplateMetadata. */ + interface IPipelineTemplateMetadata { + + /** PipelineTemplateMetadata version */ + version?: (string|null); } - /** Represents a FractionSplit. */ - class FractionSplit implements IFractionSplit { + /** Represents a PipelineTemplateMetadata. */ + class PipelineTemplateMetadata implements IPipelineTemplateMetadata { /** - * Constructs a new FractionSplit. + * Constructs a new PipelineTemplateMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IFractionSplit); - - /** FractionSplit trainingFraction. */ - public trainingFraction: number; - - /** FractionSplit validationFraction. */ - public validationFraction: number; + constructor(properties?: google.cloud.aiplatform.v1.IPipelineTemplateMetadata); - /** FractionSplit testFraction. */ - public testFraction: number; + /** PipelineTemplateMetadata version. */ + public version: string; /** - * Creates a new FractionSplit instance using the specified properties. + * Creates a new PipelineTemplateMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns FractionSplit instance + * @returns PipelineTemplateMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IFractionSplit): google.cloud.aiplatform.v1.FractionSplit; + public static create(properties?: google.cloud.aiplatform.v1.IPipelineTemplateMetadata): google.cloud.aiplatform.v1.PipelineTemplateMetadata; /** - * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. - * @param message FractionSplit message or plain object to encode + * Encodes the specified PipelineTemplateMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. + * @param message PipelineTemplateMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPipelineTemplateMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. - * @param message FractionSplit message or plain object to encode + * Encodes the specified PipelineTemplateMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. + * @param message PipelineTemplateMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineTemplateMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FractionSplit message from the specified reader or buffer. + * Decodes a PipelineTemplateMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FractionSplit + * @returns PipelineTemplateMetadata * @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.FractionSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PipelineTemplateMetadata; /** - * Decodes a FractionSplit message from the specified reader or buffer, length delimited. + * Decodes a PipelineTemplateMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FractionSplit + * @returns PipelineTemplateMetadata * @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.FractionSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PipelineTemplateMetadata; /** - * Verifies a FractionSplit message. + * Verifies a PipelineTemplateMetadata 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 FractionSplit message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTemplateMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FractionSplit + * @returns PipelineTemplateMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FractionSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTemplateMetadata; /** - * Creates a plain object from a FractionSplit message. Also converts values to other types if specified. - * @param message FractionSplit + * Creates a plain object from a PipelineTemplateMetadata message. Also converts values to other types if specified. + * @param message PipelineTemplateMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.FractionSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PipelineTemplateMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FractionSplit to JSON. + * Converts this PipelineTemplateMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FractionSplit + * Gets the default type url for PipelineTemplateMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FilterSplit. */ - interface IFilterSplit { + /** Properties of a PipelineJobDetail. */ + interface IPipelineJobDetail { - /** FilterSplit trainingFilter */ - trainingFilter?: (string|null); + /** PipelineJobDetail pipelineContext */ + pipelineContext?: (google.cloud.aiplatform.v1.IContext|null); - /** FilterSplit validationFilter */ - validationFilter?: (string|null); + /** PipelineJobDetail pipelineRunContext */ + pipelineRunContext?: (google.cloud.aiplatform.v1.IContext|null); - /** FilterSplit testFilter */ - testFilter?: (string|null); + /** PipelineJobDetail taskDetails */ + taskDetails?: (google.cloud.aiplatform.v1.IPipelineTaskDetail[]|null); } - /** Represents a FilterSplit. */ - class FilterSplit implements IFilterSplit { + /** Represents a PipelineJobDetail. */ + class PipelineJobDetail implements IPipelineJobDetail { /** - * Constructs a new FilterSplit. + * Constructs a new PipelineJobDetail. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IFilterSplit); + constructor(properties?: google.cloud.aiplatform.v1.IPipelineJobDetail); - /** FilterSplit trainingFilter. */ - public trainingFilter: string; + /** PipelineJobDetail pipelineContext. */ + public pipelineContext?: (google.cloud.aiplatform.v1.IContext|null); - /** FilterSplit validationFilter. */ - public validationFilter: string; + /** PipelineJobDetail pipelineRunContext. */ + public pipelineRunContext?: (google.cloud.aiplatform.v1.IContext|null); - /** FilterSplit testFilter. */ - public testFilter: string; + /** PipelineJobDetail taskDetails. */ + public taskDetails: google.cloud.aiplatform.v1.IPipelineTaskDetail[]; /** - * Creates a new FilterSplit instance using the specified properties. + * Creates a new PipelineJobDetail instance using the specified properties. * @param [properties] Properties to set - * @returns FilterSplit instance + * @returns PipelineJobDetail instance */ - public static create(properties?: google.cloud.aiplatform.v1.IFilterSplit): google.cloud.aiplatform.v1.FilterSplit; + public static create(properties?: google.cloud.aiplatform.v1.IPipelineJobDetail): google.cloud.aiplatform.v1.PipelineJobDetail; /** - * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. - * @param message FilterSplit message or plain object to encode + * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. + * @param message PipelineJobDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IFilterSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. - * @param message FilterSplit message or plain object to encode + * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. + * @param message PipelineJobDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IFilterSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FilterSplit message from the specified reader or buffer. + * Decodes a PipelineJobDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FilterSplit + * @returns PipelineJobDetail * @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.FilterSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PipelineJobDetail; /** - * Decodes a FilterSplit message from the specified reader or buffer, length delimited. + * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FilterSplit + * @returns PipelineJobDetail * @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.FilterSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PipelineJobDetail; /** - * Verifies a FilterSplit message. + * Verifies a PipelineJobDetail 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 FilterSplit message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJobDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FilterSplit + * @returns PipelineJobDetail */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FilterSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineJobDetail; /** - * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. - * @param message FilterSplit + * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. + * @param message PipelineJobDetail * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.FilterSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PipelineJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FilterSplit to JSON. + * Converts this PipelineJobDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FilterSplit + * Gets the default type url for PipelineJobDetail * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PredefinedSplit. */ - interface IPredefinedSplit { + /** Properties of a PipelineTaskDetail. */ + interface IPipelineTaskDetail { - /** PredefinedSplit key */ - key?: (string|null); + /** PipelineTaskDetail taskId */ + taskId?: (number|Long|string|null); + + /** PipelineTaskDetail parentTaskId */ + parentTaskId?: (number|Long|string|null); + + /** PipelineTaskDetail taskName */ + taskName?: (string|null); + + /** PipelineTaskDetail createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail executorDetail */ + executorDetail?: (google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null); + + /** PipelineTaskDetail state */ + state?: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State|null); + + /** PipelineTaskDetail execution */ + execution?: (google.cloud.aiplatform.v1.IExecution|null); + + /** PipelineTaskDetail error */ + error?: (google.rpc.IStatus|null); + + /** PipelineTaskDetail pipelineTaskStatus */ + pipelineTaskStatus?: (google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus[]|null); + + /** PipelineTaskDetail inputs */ + inputs?: ({ [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }|null); + + /** PipelineTaskDetail outputs */ + outputs?: ({ [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }|null); } - /** Represents a PredefinedSplit. */ - class PredefinedSplit implements IPredefinedSplit { + /** Represents a PipelineTaskDetail. */ + class PipelineTaskDetail implements IPipelineTaskDetail { /** - * Constructs a new PredefinedSplit. + * Constructs a new PipelineTaskDetail. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPredefinedSplit); + constructor(properties?: google.cloud.aiplatform.v1.IPipelineTaskDetail); - /** PredefinedSplit key. */ - public key: string; + /** PipelineTaskDetail taskId. */ + public taskId: (number|Long|string); + + /** PipelineTaskDetail parentTaskId. */ + public parentTaskId: (number|Long|string); + + /** PipelineTaskDetail taskName. */ + public taskName: string; + + /** PipelineTaskDetail createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** PipelineTaskDetail executorDetail. */ + public executorDetail?: (google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null); + + /** PipelineTaskDetail state. */ + public state: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State); + + /** PipelineTaskDetail execution. */ + public execution?: (google.cloud.aiplatform.v1.IExecution|null); + + /** PipelineTaskDetail error. */ + public error?: (google.rpc.IStatus|null); + + /** PipelineTaskDetail pipelineTaskStatus. */ + public pipelineTaskStatus: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus[]; + + /** PipelineTaskDetail inputs. */ + public inputs: { [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }; + + /** PipelineTaskDetail outputs. */ + public outputs: { [k: string]: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList }; /** - * Creates a new PredefinedSplit instance using the specified properties. + * Creates a new PipelineTaskDetail instance using the specified properties. * @param [properties] Properties to set - * @returns PredefinedSplit instance + * @returns PipelineTaskDetail instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPredefinedSplit): google.cloud.aiplatform.v1.PredefinedSplit; + public static create(properties?: google.cloud.aiplatform.v1.IPipelineTaskDetail): google.cloud.aiplatform.v1.PipelineTaskDetail; /** - * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. - * @param message PredefinedSplit message or plain object to encode + * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. + * @param message PipelineTaskDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IPredefinedSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. - * @param message PredefinedSplit message or plain object to encode + * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. + * @param message PipelineTaskDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPredefinedSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineTaskDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PredefinedSplit message from the specified reader or buffer. + * Decodes a PipelineTaskDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PredefinedSplit + * @returns PipelineTaskDetail * @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.PredefinedSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PipelineTaskDetail; /** - * Decodes a PredefinedSplit message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PredefinedSplit + * @returns PipelineTaskDetail * @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.PredefinedSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PipelineTaskDetail; /** - * Verifies a PredefinedSplit message. + * Verifies a PipelineTaskDetail 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 PredefinedSplit message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PredefinedSplit + * @returns PipelineTaskDetail */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PredefinedSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskDetail; /** - * Creates a plain object from a PredefinedSplit message. Also converts values to other types if specified. - * @param message PredefinedSplit + * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. + * @param message PipelineTaskDetail * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.PredefinedSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PredefinedSplit to JSON. + * Converts this PipelineTaskDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PredefinedSplit + * Gets the default type url for PipelineTaskDetail * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TimestampSplit. */ - interface ITimestampSplit { - - /** TimestampSplit trainingFraction */ - trainingFraction?: (number|null); + namespace PipelineTaskDetail { - /** TimestampSplit validationFraction */ - validationFraction?: (number|null); + /** Properties of a PipelineTaskStatus. */ + interface IPipelineTaskStatus { - /** TimestampSplit testFraction */ - testFraction?: (number|null); + /** PipelineTaskStatus updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** TimestampSplit key */ - key?: (string|null); - } + /** PipelineTaskStatus state */ + state?: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State|null); - /** Represents a TimestampSplit. */ - class TimestampSplit implements ITimestampSplit { + /** PipelineTaskStatus error */ + error?: (google.rpc.IStatus|null); + } - /** - * Constructs a new TimestampSplit. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ITimestampSplit); + /** Represents a PipelineTaskStatus. */ + class PipelineTaskStatus implements IPipelineTaskStatus { - /** TimestampSplit trainingFraction. */ - public trainingFraction: number; + /** + * Constructs a new PipelineTaskStatus. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus); - /** TimestampSplit validationFraction. */ - public validationFraction: number; + /** PipelineTaskStatus updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** TimestampSplit testFraction. */ - public testFraction: number; + /** PipelineTaskStatus state. */ + public state: (google.cloud.aiplatform.v1.PipelineTaskDetail.State|keyof typeof google.cloud.aiplatform.v1.PipelineTaskDetail.State); - /** TimestampSplit key. */ - public key: string; + /** PipelineTaskStatus error. */ + public error?: (google.rpc.IStatus|null); - /** - * Creates a new TimestampSplit instance using the specified properties. - * @param [properties] Properties to set - * @returns TimestampSplit instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ITimestampSplit): google.cloud.aiplatform.v1.TimestampSplit; + /** + * Creates a new PipelineTaskStatus instance using the specified properties. + * @param [properties] Properties to set + * @returns PipelineTaskStatus instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus): google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus; - /** - * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. - * @param message TimestampSplit message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ITimestampSplit, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. + * @param message PipelineTaskStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. - * @param message TimestampSplit message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITimestampSplit, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. + * @param message PipelineTaskStatus message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TimestampSplit message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TimestampSplit - * @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.TimestampSplit; + /** + * Decodes a PipelineTaskStatus message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PipelineTaskStatus + * @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.PipelineTaskDetail.PipelineTaskStatus; - /** - * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TimestampSplit - * @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.TimestampSplit; + /** + * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PipelineTaskStatus + * @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.PipelineTaskDetail.PipelineTaskStatus; - /** - * Verifies a TimestampSplit 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); + /** + * Verifies a PipelineTaskStatus 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 TimestampSplit message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TimestampSplit - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TimestampSplit; + /** + * Creates a PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PipelineTaskStatus + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus; - /** - * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. - * @param message TimestampSplit - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.TimestampSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. + * @param message PipelineTaskStatus + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this TimestampSplit to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this PipelineTaskStatus to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for TimestampSplit - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for PipelineTaskStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a StratifiedSplit. */ - interface IStratifiedSplit { + /** Properties of an ArtifactList. */ + interface IArtifactList { - /** StratifiedSplit trainingFraction */ - trainingFraction?: (number|null); + /** ArtifactList artifacts */ + artifacts?: (google.cloud.aiplatform.v1.IArtifact[]|null); + } - /** StratifiedSplit validationFraction */ - validationFraction?: (number|null); + /** Represents an ArtifactList. */ + class ArtifactList implements IArtifactList { - /** StratifiedSplit testFraction */ - testFraction?: (number|null); + /** + * Constructs a new ArtifactList. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList); - /** StratifiedSplit key */ - key?: (string|null); + /** ArtifactList artifacts. */ + public artifacts: google.cloud.aiplatform.v1.IArtifact[]; + + /** + * Creates a new ArtifactList instance using the specified properties. + * @param [properties] Properties to set + * @returns ArtifactList instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList): google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList; + + /** + * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @param message ArtifactList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @param message ArtifactList message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ArtifactList message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ArtifactList + * @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.PipelineTaskDetail.ArtifactList; + + /** + * Decodes an ArtifactList message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ArtifactList + * @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.PipelineTaskDetail.ArtifactList; + + /** + * Verifies an ArtifactList 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 ArtifactList message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ArtifactList + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList; + + /** + * Creates a plain object from an ArtifactList message. Also converts values to other types if specified. + * @param message ArtifactList + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ArtifactList to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ArtifactList + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + PENDING = 1, + RUNNING = 2, + SUCCEEDED = 3, + CANCEL_PENDING = 4, + CANCELLING = 5, + CANCELLED = 6, + FAILED = 7, + SKIPPED = 8, + NOT_TRIGGERED = 9 + } } - /** Represents a StratifiedSplit. */ - class StratifiedSplit implements IStratifiedSplit { + /** Properties of a PipelineTaskExecutorDetail. */ + interface IPipelineTaskExecutorDetail { + + /** PipelineTaskExecutorDetail containerDetail */ + containerDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null); + + /** PipelineTaskExecutorDetail customJobDetail */ + customJobDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null); + } + + /** Represents a PipelineTaskExecutorDetail. */ + class PipelineTaskExecutorDetail implements IPipelineTaskExecutorDetail { /** - * Constructs a new StratifiedSplit. + * Constructs a new PipelineTaskExecutorDetail. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IStratifiedSplit); - - /** StratifiedSplit trainingFraction. */ - public trainingFraction: number; + constructor(properties?: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail); - /** StratifiedSplit validationFraction. */ - public validationFraction: number; + /** PipelineTaskExecutorDetail containerDetail. */ + public containerDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null); - /** StratifiedSplit testFraction. */ - public testFraction: number; + /** PipelineTaskExecutorDetail customJobDetail. */ + public customJobDetail?: (google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null); - /** StratifiedSplit key. */ - public key: string; + /** PipelineTaskExecutorDetail details. */ + public details?: ("containerDetail"|"customJobDetail"); /** - * Creates a new StratifiedSplit instance using the specified properties. + * Creates a new PipelineTaskExecutorDetail instance using the specified properties. * @param [properties] Properties to set - * @returns StratifiedSplit instance + * @returns PipelineTaskExecutorDetail instance */ - public static create(properties?: google.cloud.aiplatform.v1.IStratifiedSplit): google.cloud.aiplatform.v1.StratifiedSplit; + public static create(properties?: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail; /** - * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. - * @param message StratifiedSplit message or plain object to encode + * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. + * @param message PipelineTaskExecutorDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IStratifiedSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. - * @param message StratifiedSplit message or plain object to encode + * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. + * @param message PipelineTaskExecutorDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IStratifiedSplit, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StratifiedSplit message from the specified reader or buffer. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StratifiedSplit + * @returns PipelineTaskExecutorDetail * @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.StratifiedSplit; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail; /** - * Decodes a StratifiedSplit message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StratifiedSplit + * @returns PipelineTaskExecutorDetail * @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.StratifiedSplit; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail; /** - * Verifies a StratifiedSplit message. + * Verifies a PipelineTaskExecutorDetail 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 StratifiedSplit message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StratifiedSplit + * @returns PipelineTaskExecutorDetail */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StratifiedSplit; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail; /** - * Creates a plain object from a StratifiedSplit message. Also converts values to other types if specified. - * @param message StratifiedSplit + * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. + * @param message PipelineTaskExecutorDetail * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.StratifiedSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StratifiedSplit to JSON. + * Converts this PipelineTaskExecutorDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StratifiedSplit + * Gets the default type url for PipelineTaskExecutorDetail * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a PredictionService */ - class PredictionService extends $protobuf.rpc.Service { + namespace PipelineTaskExecutorDetail { - /** - * Constructs a new PredictionService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** Properties of a ContainerDetail. */ + interface IContainerDetail { - /** - * Creates new PredictionService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PredictionService; + /** ContainerDetail mainJob */ + mainJob?: (string|null); - /** - * Calls Predict. - * @param request PredictRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PredictResponse - */ - public predict(request: google.cloud.aiplatform.v1.IPredictRequest, callback: google.cloud.aiplatform.v1.PredictionService.PredictCallback): void; + /** ContainerDetail preCachingCheckJob */ + preCachingCheckJob?: (string|null); - /** - * Calls Predict. - * @param request PredictRequest message or plain object - * @returns Promise - */ - public predict(request: google.cloud.aiplatform.v1.IPredictRequest): Promise; + /** ContainerDetail failedMainJobs */ + failedMainJobs?: (string[]|null); - /** - * Calls RawPredict. - * @param request RawPredictRequest message or plain object - * @param callback Node-style callback called with the error, if any, and HttpBody - */ - public rawPredict(request: google.cloud.aiplatform.v1.IRawPredictRequest, callback: google.cloud.aiplatform.v1.PredictionService.RawPredictCallback): void; + /** ContainerDetail failedPreCachingCheckJobs */ + failedPreCachingCheckJobs?: (string[]|null); + } - /** - * Calls RawPredict. - * @param request RawPredictRequest message or plain object - * @returns Promise - */ - public rawPredict(request: google.cloud.aiplatform.v1.IRawPredictRequest): Promise; + /** Represents a ContainerDetail. */ + class ContainerDetail implements IContainerDetail { - /** - * Calls Explain. - * @param request ExplainRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExplainResponse - */ - public explain(request: google.cloud.aiplatform.v1.IExplainRequest, callback: google.cloud.aiplatform.v1.PredictionService.ExplainCallback): void; + /** + * Constructs a new ContainerDetail. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail); - /** - * Calls Explain. - * @param request ExplainRequest message or plain object - * @returns Promise - */ - public explain(request: google.cloud.aiplatform.v1.IExplainRequest): Promise; - } + /** ContainerDetail mainJob. */ + public mainJob: string; - namespace PredictionService { + /** ContainerDetail preCachingCheckJob. */ + public preCachingCheckJob: string; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|predict}. - * @param error Error, if any - * @param [response] PredictResponse - */ - type PredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.PredictResponse) => void; + /** ContainerDetail failedMainJobs. */ + public failedMainJobs: string[]; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|rawPredict}. - * @param error Error, if any - * @param [response] HttpBody - */ - type RawPredictCallback = (error: (Error|null), response?: google.api.HttpBody) => void; + /** ContainerDetail failedPreCachingCheckJobs. */ + public failedPreCachingCheckJobs: string[]; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|explain}. - * @param error Error, if any - * @param [response] ExplainResponse - */ - type ExplainCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ExplainResponse) => void; - } + /** + * Creates a new ContainerDetail instance using the specified properties. + * @param [properties] Properties to set + * @returns ContainerDetail instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail; - /** Properties of a PredictRequest. */ - interface IPredictRequest { + /** + * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @param message ContainerDetail message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail, writer?: $protobuf.Writer): $protobuf.Writer; - /** PredictRequest endpoint */ - endpoint?: (string|null); + /** + * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @param message ContainerDetail message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail, writer?: $protobuf.Writer): $protobuf.Writer; - /** PredictRequest instances */ - instances?: (google.protobuf.IValue[]|null); + /** + * Decodes a ContainerDetail message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContainerDetail + * @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.PipelineTaskExecutorDetail.ContainerDetail; - /** PredictRequest parameters */ - parameters?: (google.protobuf.IValue|null); - } + /** + * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ContainerDetail + * @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.PipelineTaskExecutorDetail.ContainerDetail; - /** Represents a PredictRequest. */ - class PredictRequest implements IPredictRequest { + /** + * Verifies a ContainerDetail 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); - /** - * Constructs a new PredictRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IPredictRequest); + /** + * Creates a ContainerDetail message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ContainerDetail + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail; - /** PredictRequest endpoint. */ - public endpoint: string; + /** + * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. + * @param message ContainerDetail + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** PredictRequest instances. */ - public instances: google.protobuf.IValue[]; + /** + * Converts this ContainerDetail to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** PredictRequest parameters. */ - public parameters?: (google.protobuf.IValue|null); + /** + * Gets the default type url for ContainerDetail + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a new PredictRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PredictRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IPredictRequest): google.cloud.aiplatform.v1.PredictRequest; + /** Properties of a CustomJobDetail. */ + interface ICustomJobDetail { - /** - * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. - * @param message PredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** CustomJobDetail job */ + job?: (string|null); - /** - * Encodes the specified PredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. - * @param message PredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** CustomJobDetail failedJobs */ + failedJobs?: (string[]|null); + } - /** - * Decodes a PredictRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PredictRequest - * @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.PredictRequest; + /** Represents a CustomJobDetail. */ + class CustomJobDetail implements ICustomJobDetail { - /** - * Decodes a PredictRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PredictRequest - * @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.PredictRequest; + /** + * Constructs a new CustomJobDetail. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail); - /** - * Verifies a PredictRequest 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); + /** CustomJobDetail job. */ + public job: string; - /** - * Creates a PredictRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PredictRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PredictRequest; + /** CustomJobDetail failedJobs. */ + public failedJobs: string[]; - /** - * Creates a plain object from a PredictRequest message. Also converts values to other types if specified. - * @param message PredictRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.PredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new CustomJobDetail instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomJobDetail instance + */ + public static create(properties?: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail; - /** - * Converts this PredictRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @param message CustomJobDetail message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for PredictRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @param message CustomJobDetail message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a PredictResponse. */ - interface IPredictResponse { + /** + * Decodes a CustomJobDetail message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomJobDetail + * @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.PipelineTaskExecutorDetail.CustomJobDetail; - /** PredictResponse predictions */ - predictions?: (google.protobuf.IValue[]|null); + /** + * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomJobDetail + * @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.PipelineTaskExecutorDetail.CustomJobDetail; - /** PredictResponse deployedModelId */ - deployedModelId?: (string|null); + /** + * Verifies a CustomJobDetail 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); - /** PredictResponse model */ - model?: (string|null); + /** + * Creates a CustomJobDetail message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomJobDetail + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail; - /** PredictResponse modelVersionId */ - modelVersionId?: (string|null); + /** + * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. + * @param message CustomJobDetail + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** PredictResponse modelDisplayName */ - modelDisplayName?: (string|null); + /** + * Converts this CustomJobDetail to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CustomJobDetail + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a PredictResponse. */ - class PredictResponse implements IPredictResponse { + /** PipelineState enum. */ + enum PipelineState { + PIPELINE_STATE_UNSPECIFIED = 0, + PIPELINE_STATE_QUEUED = 1, + PIPELINE_STATE_PENDING = 2, + PIPELINE_STATE_RUNNING = 3, + PIPELINE_STATE_SUCCEEDED = 4, + PIPELINE_STATE_FAILED = 5, + PIPELINE_STATE_CANCELLING = 6, + PIPELINE_STATE_CANCELLED = 7, + PIPELINE_STATE_PAUSED = 8 + } + + /** Properties of a Value. */ + interface IValue { + + /** Value intValue */ + intValue?: (number|Long|string|null); + + /** Value doubleValue */ + doubleValue?: (number|null); + + /** Value stringValue */ + stringValue?: (string|null); + } + + /** Represents a Value. */ + class Value implements IValue { /** - * Constructs a new PredictResponse. + * Constructs a new Value. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IPredictResponse); - - /** PredictResponse predictions. */ - public predictions: google.protobuf.IValue[]; + constructor(properties?: google.cloud.aiplatform.v1.IValue); - /** PredictResponse deployedModelId. */ - public deployedModelId: string; + /** Value intValue. */ + public intValue?: (number|Long|string|null); - /** PredictResponse model. */ - public model: string; + /** Value doubleValue. */ + public doubleValue?: (number|null); - /** PredictResponse modelVersionId. */ - public modelVersionId: string; + /** Value stringValue. */ + public stringValue?: (string|null); - /** PredictResponse modelDisplayName. */ - public modelDisplayName: string; + /** Value value. */ + public value?: ("intValue"|"doubleValue"|"stringValue"); /** - * Creates a new PredictResponse instance using the specified properties. + * Creates a new Value instance using the specified properties. * @param [properties] Properties to set - * @returns PredictResponse instance + * @returns Value instance */ - public static create(properties?: google.cloud.aiplatform.v1.IPredictResponse): google.cloud.aiplatform.v1.PredictResponse; + public static create(properties?: google.cloud.aiplatform.v1.IValue): google.cloud.aiplatform.v1.Value; /** - * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. - * @param message PredictResponse message or plain object to encode + * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1.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.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. - * @param message PredictResponse message or plain object to encode + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.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.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PredictResponse message from the specified reader or buffer. + * 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 PredictResponse + * @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.PredictResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Value; /** - * Decodes a PredictResponse message from the specified reader or buffer, length delimited. + * Decodes a Value message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PredictResponse + * @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.PredictResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Value; /** - * Verifies a PredictResponse message. + * 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 PredictResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Value message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PredictResponse + * @returns Value */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PredictResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Value; /** - * Creates a plain object from a PredictResponse message. Also converts values to other types if specified. - * @param message PredictResponse + * 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.PredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PredictResponse to JSON. + * Converts this Value to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PredictResponse + * 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; } - /** Properties of a RawPredictRequest. */ - interface IRawPredictRequest { - - /** RawPredictRequest endpoint */ - endpoint?: (string|null); - - /** RawPredictRequest httpBody */ - httpBody?: (google.api.IHttpBody|null); - } - - /** Represents a RawPredictRequest. */ - class RawPredictRequest implements IRawPredictRequest { + /** Represents a PipelineService */ + class PipelineService extends $protobuf.rpc.Service { /** - * Constructs a new RawPredictRequest. - * @param [properties] Properties to set + * Constructs a new PipelineService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.aiplatform.v1.IRawPredictRequest); - - /** RawPredictRequest endpoint. */ - public endpoint: string; - - /** RawPredictRequest httpBody. */ - public httpBody?: (google.api.IHttpBody|null); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new RawPredictRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns RawPredictRequest instance + * Creates new PipelineService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(properties?: google.cloud.aiplatform.v1.IRawPredictRequest): google.cloud.aiplatform.v1.RawPredictRequest; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PipelineService; /** - * Encodes the specified RawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. - * @param message RawPredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateTrainingPipeline. + * @param request CreateTrainingPipelineRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TrainingPipeline */ - public static encode(message: google.cloud.aiplatform.v1.IRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createTrainingPipeline(request: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipelineCallback): void; /** - * Encodes the specified RawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. - * @param message RawPredictRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateTrainingPipeline. + * @param request CreateTrainingPipelineRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createTrainingPipeline(request: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest): Promise; /** - * Decodes a RawPredictRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RawPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetTrainingPipeline. + * @param request GetTrainingPipelineRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TrainingPipeline */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.RawPredictRequest; + public getTrainingPipeline(request: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.GetTrainingPipelineCallback): void; /** - * Decodes a RawPredictRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RawPredictRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetTrainingPipeline. + * @param request GetTrainingPipelineRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.RawPredictRequest; + public getTrainingPipeline(request: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest): Promise; /** - * Verifies a RawPredictRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListTrainingPipelines. + * @param request ListTrainingPipelinesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public listTrainingPipelines(request: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, callback: google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelinesCallback): void; /** - * Creates a RawPredictRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RawPredictRequest + * Calls ListTrainingPipelines. + * @param request ListTrainingPipelinesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RawPredictRequest; + public listTrainingPipelines(request: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest): Promise; /** - * Creates a plain object from a RawPredictRequest message. Also converts values to other types if specified. - * @param message RawPredictRequest - * @param [options] Conversion options - * @returns Plain object + * Calls DeleteTrainingPipeline. + * @param request DeleteTrainingPipelineRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static toObject(message: google.cloud.aiplatform.v1.RawPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public deleteTrainingPipeline(request: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipelineCallback): void; /** - * Converts this RawPredictRequest to JSON. - * @returns JSON object + * Calls DeleteTrainingPipeline. + * @param request DeleteTrainingPipelineRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public deleteTrainingPipeline(request: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest): Promise; /** - * Gets the default type url for RawPredictRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CancelTrainingPipeline. + * @param request CancelTrainingPipelineRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExplainRequest. */ - interface IExplainRequest { - - /** ExplainRequest endpoint */ - endpoint?: (string|null); - - /** ExplainRequest instances */ - instances?: (google.protobuf.IValue[]|null); - - /** ExplainRequest parameters */ - parameters?: (google.protobuf.IValue|null); - - /** ExplainRequest explanationSpecOverride */ - explanationSpecOverride?: (google.cloud.aiplatform.v1.IExplanationSpecOverride|null); - - /** ExplainRequest deployedModelId */ - deployedModelId?: (string|null); - } - - /** Represents an ExplainRequest. */ - class ExplainRequest implements IExplainRequest { + public cancelTrainingPipeline(request: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest, callback: google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipelineCallback): void; /** - * Constructs a new ExplainRequest. - * @param [properties] Properties to set + * Calls CancelTrainingPipeline. + * @param request CancelTrainingPipelineRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1.IExplainRequest); - - /** ExplainRequest endpoint. */ - public endpoint: string; - - /** ExplainRequest instances. */ - public instances: google.protobuf.IValue[]; - - /** ExplainRequest parameters. */ - public parameters?: (google.protobuf.IValue|null); - - /** ExplainRequest explanationSpecOverride. */ - public explanationSpecOverride?: (google.cloud.aiplatform.v1.IExplanationSpecOverride|null); - - /** ExplainRequest deployedModelId. */ - public deployedModelId: string; + public cancelTrainingPipeline(request: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest): Promise; /** - * Creates a new ExplainRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExplainRequest instance + * Calls CreatePipelineJob. + * @param request CreatePipelineJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PipelineJob */ - public static create(properties?: google.cloud.aiplatform.v1.IExplainRequest): google.cloud.aiplatform.v1.ExplainRequest; + public createPipelineJob(request: google.cloud.aiplatform.v1.ICreatePipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.CreatePipelineJobCallback): void; /** - * Encodes the specified ExplainRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. - * @param message ExplainRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreatePipelineJob. + * @param request CreatePipelineJobRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1.IExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createPipelineJob(request: google.cloud.aiplatform.v1.ICreatePipelineJobRequest): Promise; /** - * Encodes the specified ExplainRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. - * @param message ExplainRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetPipelineJob. + * @param request GetPipelineJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PipelineJob */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public getPipelineJob(request: google.cloud.aiplatform.v1.IGetPipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.GetPipelineJobCallback): void; /** - * Decodes an ExplainRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExplainRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetPipelineJob. + * @param request GetPipelineJobRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExplainRequest; + public getPipelineJob(request: google.cloud.aiplatform.v1.IGetPipelineJobRequest): Promise; /** - * Decodes an ExplainRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExplainRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListPipelineJobs. + * @param request ListPipelineJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListPipelineJobsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExplainRequest; + public listPipelineJobs(request: google.cloud.aiplatform.v1.IListPipelineJobsRequest, callback: google.cloud.aiplatform.v1.PipelineService.ListPipelineJobsCallback): void; /** - * Verifies an ExplainRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListPipelineJobs. + * @param request ListPipelineJobsRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public listPipelineJobs(request: google.cloud.aiplatform.v1.IListPipelineJobsRequest): Promise; /** - * Creates an ExplainRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExplainRequest + * Calls DeletePipelineJob. + * @param request DeletePipelineJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExplainRequest; + public deletePipelineJob(request: google.cloud.aiplatform.v1.IDeletePipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.DeletePipelineJobCallback): void; /** - * Creates a plain object from an ExplainRequest message. Also converts values to other types if specified. - * @param message ExplainRequest - * @param [options] Conversion options - * @returns Plain object + * Calls DeletePipelineJob. + * @param request DeletePipelineJobRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1.ExplainRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public deletePipelineJob(request: google.cloud.aiplatform.v1.IDeletePipelineJobRequest): Promise; /** - * Converts this ExplainRequest to JSON. - * @returns JSON object + * Calls CancelPipelineJob. + * @param request CancelPipelineJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public toJSON(): { [k: string]: any }; + public cancelPipelineJob(request: google.cloud.aiplatform.v1.ICancelPipelineJobRequest, callback: google.cloud.aiplatform.v1.PipelineService.CancelPipelineJobCallback): void; /** - * Gets the default type url for ExplainRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CancelPipelineJob. + * @param request CancelPipelineJobRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; + public cancelPipelineJob(request: google.cloud.aiplatform.v1.ICancelPipelineJobRequest): Promise; } - /** Properties of an ExplainResponse. */ - interface IExplainResponse { + namespace PipelineService { - /** ExplainResponse explanations */ - explanations?: (google.cloud.aiplatform.v1.IExplanation[]|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createTrainingPipeline}. + * @param error Error, if any + * @param [response] TrainingPipeline + */ + type CreateTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TrainingPipeline) => void; - /** ExplainResponse deployedModelId */ - deployedModelId?: (string|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getTrainingPipeline}. + * @param error Error, if any + * @param [response] TrainingPipeline + */ + type GetTrainingPipelineCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TrainingPipeline) => void; - /** ExplainResponse predictions */ - predictions?: (google.protobuf.IValue[]|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listTrainingPipelines}. + * @param error Error, if any + * @param [response] ListTrainingPipelinesResponse + */ + type ListTrainingPipelinesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTrainingPipelinesResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deleteTrainingPipeline}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteTrainingPipelineCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelTrainingPipeline}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelTrainingPipelineCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createPipelineJob}. + * @param error Error, if any + * @param [response] PipelineJob + */ + type CreatePipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.PipelineJob) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getPipelineJob}. + * @param error Error, if any + * @param [response] PipelineJob + */ + type GetPipelineJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.PipelineJob) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listPipelineJobs}. + * @param error Error, if any + * @param [response] ListPipelineJobsResponse + */ + type ListPipelineJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListPipelineJobsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deletePipelineJob}. + * @param error Error, if any + * @param [response] Operation + */ + type DeletePipelineJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelPipelineJob}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelPipelineJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Represents an ExplainResponse. */ - class ExplainResponse implements IExplainResponse { + /** Properties of a CreateTrainingPipelineRequest. */ + interface ICreateTrainingPipelineRequest { + + /** CreateTrainingPipelineRequest parent */ + parent?: (string|null); + + /** CreateTrainingPipelineRequest trainingPipeline */ + trainingPipeline?: (google.cloud.aiplatform.v1.ITrainingPipeline|null); + } + + /** Represents a CreateTrainingPipelineRequest. */ + class CreateTrainingPipelineRequest implements ICreateTrainingPipelineRequest { /** - * Constructs a new ExplainResponse. + * Constructs a new CreateTrainingPipelineRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IExplainResponse); - - /** ExplainResponse explanations. */ - public explanations: google.cloud.aiplatform.v1.IExplanation[]; + constructor(properties?: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest); - /** ExplainResponse deployedModelId. */ - public deployedModelId: string; + /** CreateTrainingPipelineRequest parent. */ + public parent: string; - /** ExplainResponse predictions. */ - public predictions: google.protobuf.IValue[]; + /** CreateTrainingPipelineRequest trainingPipeline. */ + public trainingPipeline?: (google.cloud.aiplatform.v1.ITrainingPipeline|null); /** - * Creates a new ExplainResponse instance using the specified properties. + * Creates a new CreateTrainingPipelineRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExplainResponse instance + * @returns CreateTrainingPipelineRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IExplainResponse): google.cloud.aiplatform.v1.ExplainResponse; + public static create(properties?: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest): google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; /** - * Encodes the specified ExplainResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. - * @param message ExplainResponse message or plain object to encode + * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. + * @param message CreateTrainingPipelineRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExplainResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. - * @param message ExplainResponse message or plain object to encode + * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. + * @param message CreateTrainingPipelineRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExplainResponse message from the specified reader or buffer. + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExplainResponse + * @returns CreateTrainingPipelineRequest * @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.ExplainResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; /** - * Decodes an ExplainResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExplainResponse + * @returns CreateTrainingPipelineRequest * @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.ExplainResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; /** - * Verifies an ExplainResponse message. + * Verifies a CreateTrainingPipelineRequest 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 ExplainResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExplainResponse + * @returns CreateTrainingPipelineRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExplainResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTrainingPipelineRequest; /** - * Creates a plain object from an ExplainResponse message. Also converts values to other types if specified. - * @param message ExplainResponse + * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. + * @param message CreateTrainingPipelineRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ExplainResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExplainResponse to JSON. + * Converts this CreateTrainingPipelineRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExplainResponse + * Gets the default type url for CreateTrainingPipelineRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Namespace schema. */ - namespace schema { - - /** Namespace predict. */ - namespace predict { - - /** Namespace instance. */ - namespace instance { + /** Properties of a GetTrainingPipelineRequest. */ + interface IGetTrainingPipelineRequest { - /** Properties of an ImageClassificationPredictionInstance. */ - interface IImageClassificationPredictionInstance { + /** GetTrainingPipelineRequest name */ + name?: (string|null); + } - /** ImageClassificationPredictionInstance content */ - content?: (string|null); + /** Represents a GetTrainingPipelineRequest. */ + class GetTrainingPipelineRequest implements IGetTrainingPipelineRequest { - /** ImageClassificationPredictionInstance mimeType */ - mimeType?: (string|null); - } + /** + * Constructs a new GetTrainingPipelineRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest); - /** Represents an ImageClassificationPredictionInstance. */ - class ImageClassificationPredictionInstance implements IImageClassificationPredictionInstance { + /** GetTrainingPipelineRequest name. */ + public name: string; - /** - * Constructs a new ImageClassificationPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageClassificationPredictionInstance); + /** + * Creates a new GetTrainingPipelineRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTrainingPipelineRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest): google.cloud.aiplatform.v1.GetTrainingPipelineRequest; - /** ImageClassificationPredictionInstance content. */ - public content: string; + /** + * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. + * @param message GetTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ImageClassificationPredictionInstance mimeType. */ - public mimeType: string; + /** + * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. + * @param message GetTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ImageClassificationPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns ImageClassificationPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageClassificationPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance; + /** + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTrainingPipelineRequest + * @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.GetTrainingPipelineRequest; - /** - * Encodes the specified ImageClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance.verify|verify} messages. - * @param message ImageClassificationPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTrainingPipelineRequest + * @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.GetTrainingPipelineRequest; - /** - * Encodes the specified ImageClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance.verify|verify} messages. - * @param message ImageClassificationPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a GetTrainingPipelineRequest 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); - /** - * Decodes an ImageClassificationPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImageClassificationPredictionInstance - * @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.schema.predict.instance.ImageClassificationPredictionInstance; + /** + * Creates a GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTrainingPipelineRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTrainingPipelineRequest; - /** - * Decodes an ImageClassificationPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImageClassificationPredictionInstance - * @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.schema.predict.instance.ImageClassificationPredictionInstance; + /** + * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. + * @param message GetTrainingPipelineRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GetTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies an ImageClassificationPredictionInstance 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); + /** + * Converts this GetTrainingPipelineRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates an ImageClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImageClassificationPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance; + /** + * Gets the default type url for GetTrainingPipelineRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from an ImageClassificationPredictionInstance message. Also converts values to other types if specified. - * @param message ImageClassificationPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a ListTrainingPipelinesRequest. */ + interface IListTrainingPipelinesRequest { - /** - * Converts this ImageClassificationPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListTrainingPipelinesRequest parent */ + parent?: (string|null); - /** - * Gets the default type url for ImageClassificationPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ListTrainingPipelinesRequest filter */ + filter?: (string|null); - /** Properties of an ImageObjectDetectionPredictionInstance. */ - interface IImageObjectDetectionPredictionInstance { + /** ListTrainingPipelinesRequest pageSize */ + pageSize?: (number|null); - /** ImageObjectDetectionPredictionInstance content */ - content?: (string|null); + /** ListTrainingPipelinesRequest pageToken */ + pageToken?: (string|null); - /** ImageObjectDetectionPredictionInstance mimeType */ - mimeType?: (string|null); - } + /** ListTrainingPipelinesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } - /** Represents an ImageObjectDetectionPredictionInstance. */ - class ImageObjectDetectionPredictionInstance implements IImageObjectDetectionPredictionInstance { + /** Represents a ListTrainingPipelinesRequest. */ + class ListTrainingPipelinesRequest implements IListTrainingPipelinesRequest { - /** - * Constructs a new ImageObjectDetectionPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageObjectDetectionPredictionInstance); + /** + * Constructs a new ListTrainingPipelinesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest); - /** ImageObjectDetectionPredictionInstance content. */ - public content: string; + /** ListTrainingPipelinesRequest parent. */ + public parent: string; - /** ImageObjectDetectionPredictionInstance mimeType. */ - public mimeType: string; + /** ListTrainingPipelinesRequest filter. */ + public filter: string; - /** - * Creates a new ImageObjectDetectionPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns ImageObjectDetectionPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageObjectDetectionPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance; + /** ListTrainingPipelinesRequest pageSize. */ + public pageSize: number; - /** - * Encodes the specified ImageObjectDetectionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance.verify|verify} messages. - * @param message ImageObjectDetectionPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageObjectDetectionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListTrainingPipelinesRequest pageToken. */ + public pageToken: string; - /** - * Encodes the specified ImageObjectDetectionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance.verify|verify} messages. - * @param message ImageObjectDetectionPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageObjectDetectionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListTrainingPipelinesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** - * Decodes an ImageObjectDetectionPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImageObjectDetectionPredictionInstance - * @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.schema.predict.instance.ImageObjectDetectionPredictionInstance; + /** + * Creates a new ListTrainingPipelinesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTrainingPipelinesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest): google.cloud.aiplatform.v1.ListTrainingPipelinesRequest; - /** - * Decodes an ImageObjectDetectionPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImageObjectDetectionPredictionInstance - * @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.schema.predict.instance.ImageObjectDetectionPredictionInstance; + /** + * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. + * @param message ListTrainingPipelinesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies an ImageObjectDetectionPredictionInstance 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); + /** + * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. + * @param message ListTrainingPipelinesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrainingPipelinesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an ImageObjectDetectionPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImageObjectDetectionPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance; + /** + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTrainingPipelinesRequest + * @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.ListTrainingPipelinesRequest; - /** - * Creates a plain object from an ImageObjectDetectionPredictionInstance message. Also converts values to other types if specified. - * @param message ImageObjectDetectionPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTrainingPipelinesRequest + * @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.ListTrainingPipelinesRequest; - /** - * Converts this ImageObjectDetectionPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a ListTrainingPipelinesRequest 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); - /** - * Gets the default type url for ImageObjectDetectionPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTrainingPipelinesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrainingPipelinesRequest; - /** Properties of an ImageSegmentationPredictionInstance. */ - interface IImageSegmentationPredictionInstance { + /** + * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. + * @param message ListTrainingPipelinesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListTrainingPipelinesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ImageSegmentationPredictionInstance content */ - content?: (string|null); + /** + * Converts this ListTrainingPipelinesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ImageSegmentationPredictionInstance mimeType */ - mimeType?: (string|null); - } + /** + * Gets the default type url for ListTrainingPipelinesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Represents an ImageSegmentationPredictionInstance. */ - class ImageSegmentationPredictionInstance implements IImageSegmentationPredictionInstance { + /** Properties of a ListTrainingPipelinesResponse. */ + interface IListTrainingPipelinesResponse { - /** - * Constructs a new ImageSegmentationPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageSegmentationPredictionInstance); + /** ListTrainingPipelinesResponse trainingPipelines */ + trainingPipelines?: (google.cloud.aiplatform.v1.ITrainingPipeline[]|null); - /** ImageSegmentationPredictionInstance content. */ - public content: string; + /** ListTrainingPipelinesResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** ImageSegmentationPredictionInstance mimeType. */ - public mimeType: string; + /** Represents a ListTrainingPipelinesResponse. */ + class ListTrainingPipelinesResponse implements IListTrainingPipelinesResponse { - /** - * Creates a new ImageSegmentationPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns ImageSegmentationPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageSegmentationPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance; + /** + * Constructs a new ListTrainingPipelinesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse); - /** - * Encodes the specified ImageSegmentationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance.verify|verify} messages. - * @param message ImageSegmentationPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageSegmentationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListTrainingPipelinesResponse trainingPipelines. */ + public trainingPipelines: google.cloud.aiplatform.v1.ITrainingPipeline[]; - /** - * Encodes the specified ImageSegmentationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance.verify|verify} messages. - * @param message ImageSegmentationPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageSegmentationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListTrainingPipelinesResponse nextPageToken. */ + public nextPageToken: string; - /** - * Decodes an ImageSegmentationPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImageSegmentationPredictionInstance - * @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.schema.predict.instance.ImageSegmentationPredictionInstance; + /** + * Creates a new ListTrainingPipelinesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTrainingPipelinesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse): google.cloud.aiplatform.v1.ListTrainingPipelinesResponse; - /** - * Decodes an ImageSegmentationPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImageSegmentationPredictionInstance - * @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.schema.predict.instance.ImageSegmentationPredictionInstance; + /** + * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. + * @param message ListTrainingPipelinesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies an ImageSegmentationPredictionInstance 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); + /** + * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. + * @param message ListTrainingPipelinesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrainingPipelinesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an ImageSegmentationPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImageSegmentationPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance; + /** + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTrainingPipelinesResponse + * @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.ListTrainingPipelinesResponse; - /** - * Creates a plain object from an ImageSegmentationPredictionInstance message. Also converts values to other types if specified. - * @param message ImageSegmentationPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTrainingPipelinesResponse + * @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.ListTrainingPipelinesResponse; - /** - * Converts this ImageSegmentationPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a ListTrainingPipelinesResponse 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); - /** - * Gets the default type url for ImageSegmentationPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTrainingPipelinesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrainingPipelinesResponse; - /** Properties of a TextClassificationPredictionInstance. */ - interface ITextClassificationPredictionInstance { + /** + * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. + * @param message ListTrainingPipelinesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListTrainingPipelinesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TextClassificationPredictionInstance content */ - content?: (string|null); + /** + * Converts this ListTrainingPipelinesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TextClassificationPredictionInstance mimeType */ - mimeType?: (string|null); - } + /** + * Gets the default type url for ListTrainingPipelinesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Represents a TextClassificationPredictionInstance. */ - class TextClassificationPredictionInstance implements ITextClassificationPredictionInstance { + /** Properties of a DeleteTrainingPipelineRequest. */ + interface IDeleteTrainingPipelineRequest { - /** - * Constructs a new TextClassificationPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextClassificationPredictionInstance); + /** DeleteTrainingPipelineRequest name */ + name?: (string|null); + } - /** TextClassificationPredictionInstance content. */ - public content: string; + /** Represents a DeleteTrainingPipelineRequest. */ + class DeleteTrainingPipelineRequest implements IDeleteTrainingPipelineRequest { - /** TextClassificationPredictionInstance mimeType. */ - public mimeType: string; + /** + * Constructs a new DeleteTrainingPipelineRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest); - /** - * Creates a new TextClassificationPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns TextClassificationPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextClassificationPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance; + /** DeleteTrainingPipelineRequest name. */ + public name: string; - /** - * Encodes the specified TextClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance.verify|verify} messages. - * @param message TextClassificationPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTrainingPipelineRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest): google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest; - /** - * Encodes the specified TextClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance.verify|verify} messages. - * @param message TextClassificationPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. + * @param message DeleteTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TextClassificationPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TextClassificationPredictionInstance - * @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.schema.predict.instance.TextClassificationPredictionInstance; + /** + * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. + * @param message DeleteTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TextClassificationPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TextClassificationPredictionInstance - * @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.schema.predict.instance.TextClassificationPredictionInstance; + /** + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTrainingPipelineRequest + * @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.DeleteTrainingPipelineRequest; - /** - * Verifies a TextClassificationPredictionInstance 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); + /** + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteTrainingPipelineRequest + * @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.DeleteTrainingPipelineRequest; - /** - * Creates a TextClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TextClassificationPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance; + /** + * Verifies a DeleteTrainingPipelineRequest 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 plain object from a TextClassificationPredictionInstance message. Also converts values to other types if specified. - * @param message TextClassificationPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteTrainingPipelineRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest; - /** - * Converts this TextClassificationPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. + * @param message DeleteTrainingPipelineRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for TextClassificationPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this DeleteTrainingPipelineRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a TextExtractionPredictionInstance. */ - interface ITextExtractionPredictionInstance { + /** + * Gets the default type url for DeleteTrainingPipelineRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** TextExtractionPredictionInstance content */ - content?: (string|null); + /** Properties of a CancelTrainingPipelineRequest. */ + interface ICancelTrainingPipelineRequest { - /** TextExtractionPredictionInstance mimeType */ - mimeType?: (string|null); + /** CancelTrainingPipelineRequest name */ + name?: (string|null); + } - /** TextExtractionPredictionInstance key */ - key?: (string|null); - } + /** Represents a CancelTrainingPipelineRequest. */ + class CancelTrainingPipelineRequest implements ICancelTrainingPipelineRequest { - /** Represents a TextExtractionPredictionInstance. */ - class TextExtractionPredictionInstance implements ITextExtractionPredictionInstance { + /** + * Constructs a new CancelTrainingPipelineRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest); - /** - * Constructs a new TextExtractionPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextExtractionPredictionInstance); + /** CancelTrainingPipelineRequest name. */ + public name: string; - /** TextExtractionPredictionInstance content. */ - public content: string; + /** + * Creates a new CancelTrainingPipelineRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelTrainingPipelineRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest): google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; - /** TextExtractionPredictionInstance mimeType. */ - public mimeType: string; + /** + * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. + * @param message CancelTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** TextExtractionPredictionInstance key. */ - public key: string; + /** + * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. + * @param message CancelTrainingPipelineRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new TextExtractionPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns TextExtractionPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextExtractionPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance; + /** + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelTrainingPipelineRequest + * @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.CancelTrainingPipelineRequest; - /** - * Encodes the specified TextExtractionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance.verify|verify} messages. - * @param message TextExtractionPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextExtractionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelTrainingPipelineRequest + * @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.CancelTrainingPipelineRequest; - /** - * Encodes the specified TextExtractionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance.verify|verify} messages. - * @param message TextExtractionPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextExtractionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a CancelTrainingPipelineRequest 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); - /** - * Decodes a TextExtractionPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TextExtractionPredictionInstance - * @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.schema.predict.instance.TextExtractionPredictionInstance; + /** + * Creates a CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelTrainingPipelineRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CancelTrainingPipelineRequest; - /** - * Decodes a TextExtractionPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TextExtractionPredictionInstance - * @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.schema.predict.instance.TextExtractionPredictionInstance; + /** + * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. + * @param message CancelTrainingPipelineRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CancelTrainingPipelineRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a TextExtractionPredictionInstance 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); + /** + * Converts this CancelTrainingPipelineRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a TextExtractionPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TextExtractionPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance; + /** + * Gets the default type url for CancelTrainingPipelineRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a TextExtractionPredictionInstance message. Also converts values to other types if specified. - * @param message TextExtractionPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a CreatePipelineJobRequest. */ + interface ICreatePipelineJobRequest { - /** - * Converts this TextExtractionPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TextExtractionPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** CreatePipelineJobRequest parent */ + parent?: (string|null); - /** Properties of a TextSentimentPredictionInstance. */ - interface ITextSentimentPredictionInstance { + /** CreatePipelineJobRequest pipelineJob */ + pipelineJob?: (google.cloud.aiplatform.v1.IPipelineJob|null); - /** TextSentimentPredictionInstance content */ - content?: (string|null); + /** CreatePipelineJobRequest pipelineJobId */ + pipelineJobId?: (string|null); + } - /** TextSentimentPredictionInstance mimeType */ - mimeType?: (string|null); - } + /** Represents a CreatePipelineJobRequest. */ + class CreatePipelineJobRequest implements ICreatePipelineJobRequest { - /** Represents a TextSentimentPredictionInstance. */ - class TextSentimentPredictionInstance implements ITextSentimentPredictionInstance { + /** + * Constructs a new CreatePipelineJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreatePipelineJobRequest); - /** - * Constructs a new TextSentimentPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextSentimentPredictionInstance); + /** CreatePipelineJobRequest parent. */ + public parent: string; - /** TextSentimentPredictionInstance content. */ - public content: string; + /** CreatePipelineJobRequest pipelineJob. */ + public pipelineJob?: (google.cloud.aiplatform.v1.IPipelineJob|null); - /** TextSentimentPredictionInstance mimeType. */ - public mimeType: string; + /** CreatePipelineJobRequest pipelineJobId. */ + public pipelineJobId: string; - /** - * Creates a new TextSentimentPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns TextSentimentPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextSentimentPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance; + /** + * Creates a new CreatePipelineJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreatePipelineJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreatePipelineJobRequest): google.cloud.aiplatform.v1.CreatePipelineJobRequest; - /** - * Encodes the specified TextSentimentPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance.verify|verify} messages. - * @param message TextSentimentPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextSentimentPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. + * @param message CreatePipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TextSentimentPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance.verify|verify} messages. - * @param message TextSentimentPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextSentimentPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. + * @param message CreatePipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreatePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TextSentimentPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TextSentimentPredictionInstance - * @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.schema.predict.instance.TextSentimentPredictionInstance; + /** + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreatePipelineJobRequest + * @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.CreatePipelineJobRequest; - /** - * Decodes a TextSentimentPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TextSentimentPredictionInstance - * @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.schema.predict.instance.TextSentimentPredictionInstance; + /** + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreatePipelineJobRequest + * @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.CreatePipelineJobRequest; - /** - * Verifies a TextSentimentPredictionInstance 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); + /** + * Verifies a CreatePipelineJobRequest 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 TextSentimentPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TextSentimentPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance; + /** + * Creates a CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreatePipelineJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreatePipelineJobRequest; - /** - * Creates a plain object from a TextSentimentPredictionInstance message. Also converts values to other types if specified. - * @param message TextSentimentPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. + * @param message CreatePipelineJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreatePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this TextSentimentPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this CreatePipelineJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for TextSentimentPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for CreatePipelineJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a VideoActionRecognitionPredictionInstance. */ - interface IVideoActionRecognitionPredictionInstance { + /** Properties of a GetPipelineJobRequest. */ + interface IGetPipelineJobRequest { - /** VideoActionRecognitionPredictionInstance content */ - content?: (string|null); + /** GetPipelineJobRequest name */ + name?: (string|null); + } - /** VideoActionRecognitionPredictionInstance mimeType */ - mimeType?: (string|null); + /** Represents a GetPipelineJobRequest. */ + class GetPipelineJobRequest implements IGetPipelineJobRequest { - /** VideoActionRecognitionPredictionInstance timeSegmentStart */ - timeSegmentStart?: (string|null); + /** + * Constructs a new GetPipelineJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGetPipelineJobRequest); - /** VideoActionRecognitionPredictionInstance timeSegmentEnd */ - timeSegmentEnd?: (string|null); - } + /** GetPipelineJobRequest name. */ + public name: string; - /** Represents a VideoActionRecognitionPredictionInstance. */ - class VideoActionRecognitionPredictionInstance implements IVideoActionRecognitionPredictionInstance { + /** + * Creates a new GetPipelineJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetPipelineJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGetPipelineJobRequest): google.cloud.aiplatform.v1.GetPipelineJobRequest; - /** - * Constructs a new VideoActionRecognitionPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoActionRecognitionPredictionInstance); + /** + * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. + * @param message GetPipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** VideoActionRecognitionPredictionInstance content. */ - public content: string; + /** + * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. + * @param message GetPipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** VideoActionRecognitionPredictionInstance mimeType. */ - public mimeType: string; + /** + * Decodes a GetPipelineJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetPipelineJobRequest + * @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.GetPipelineJobRequest; - /** VideoActionRecognitionPredictionInstance timeSegmentStart. */ - public timeSegmentStart: string; + /** + * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetPipelineJobRequest + * @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.GetPipelineJobRequest; - /** VideoActionRecognitionPredictionInstance timeSegmentEnd. */ - public timeSegmentEnd: string; + /** + * Verifies a GetPipelineJobRequest 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 new VideoActionRecognitionPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns VideoActionRecognitionPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoActionRecognitionPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance; + /** + * Creates a GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetPipelineJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetPipelineJobRequest; - /** - * Encodes the specified VideoActionRecognitionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance.verify|verify} messages. - * @param message VideoActionRecognitionPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoActionRecognitionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. + * @param message GetPipelineJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GetPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified VideoActionRecognitionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance.verify|verify} messages. - * @param message VideoActionRecognitionPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoActionRecognitionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this GetPipelineJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a VideoActionRecognitionPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VideoActionRecognitionPredictionInstance - * @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.schema.predict.instance.VideoActionRecognitionPredictionInstance; + /** + * Gets the default type url for GetPipelineJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a VideoActionRecognitionPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VideoActionRecognitionPredictionInstance - * @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.schema.predict.instance.VideoActionRecognitionPredictionInstance; + /** Properties of a ListPipelineJobsRequest. */ + interface IListPipelineJobsRequest { - /** - * Verifies a VideoActionRecognitionPredictionInstance 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); + /** ListPipelineJobsRequest parent */ + parent?: (string|null); - /** - * Creates a VideoActionRecognitionPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VideoActionRecognitionPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance; + /** ListPipelineJobsRequest filter */ + filter?: (string|null); - /** - * Creates a plain object from a VideoActionRecognitionPredictionInstance message. Also converts values to other types if specified. - * @param message VideoActionRecognitionPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ListPipelineJobsRequest pageSize */ + pageSize?: (number|null); - /** - * Converts this VideoActionRecognitionPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListPipelineJobsRequest pageToken */ + pageToken?: (string|null); - /** - * Gets the default type url for VideoActionRecognitionPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ListPipelineJobsRequest orderBy */ + orderBy?: (string|null); - /** Properties of a VideoClassificationPredictionInstance. */ - interface IVideoClassificationPredictionInstance { + /** ListPipelineJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } - /** VideoClassificationPredictionInstance content */ - content?: (string|null); + /** Represents a ListPipelineJobsRequest. */ + class ListPipelineJobsRequest implements IListPipelineJobsRequest { - /** VideoClassificationPredictionInstance mimeType */ - mimeType?: (string|null); + /** + * Constructs a new ListPipelineJobsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListPipelineJobsRequest); - /** VideoClassificationPredictionInstance timeSegmentStart */ - timeSegmentStart?: (string|null); + /** ListPipelineJobsRequest parent. */ + public parent: string; - /** VideoClassificationPredictionInstance timeSegmentEnd */ - timeSegmentEnd?: (string|null); - } + /** ListPipelineJobsRequest filter. */ + public filter: string; - /** Represents a VideoClassificationPredictionInstance. */ - class VideoClassificationPredictionInstance implements IVideoClassificationPredictionInstance { + /** ListPipelineJobsRequest pageSize. */ + public pageSize: number; - /** - * Constructs a new VideoClassificationPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoClassificationPredictionInstance); + /** ListPipelineJobsRequest pageToken. */ + public pageToken: string; - /** VideoClassificationPredictionInstance content. */ - public content: string; + /** ListPipelineJobsRequest orderBy. */ + public orderBy: string; - /** VideoClassificationPredictionInstance mimeType. */ - public mimeType: string; + /** ListPipelineJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** VideoClassificationPredictionInstance timeSegmentStart. */ - public timeSegmentStart: string; + /** + * Creates a new ListPipelineJobsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPipelineJobsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListPipelineJobsRequest): google.cloud.aiplatform.v1.ListPipelineJobsRequest; - /** VideoClassificationPredictionInstance timeSegmentEnd. */ - public timeSegmentEnd: string; + /** + * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. + * @param message ListPipelineJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new VideoClassificationPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns VideoClassificationPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoClassificationPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance; + /** + * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. + * @param message ListPipelineJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListPipelineJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified VideoClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance.verify|verify} messages. - * @param message VideoClassificationPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPipelineJobsRequest + * @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.ListPipelineJobsRequest; - /** - * Encodes the specified VideoClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance.verify|verify} messages. - * @param message VideoClassificationPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPipelineJobsRequest + * @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.ListPipelineJobsRequest; - /** - * Decodes a VideoClassificationPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VideoClassificationPredictionInstance - * @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.schema.predict.instance.VideoClassificationPredictionInstance; + /** + * Verifies a ListPipelineJobsRequest 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); - /** - * Decodes a VideoClassificationPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VideoClassificationPredictionInstance - * @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.schema.predict.instance.VideoClassificationPredictionInstance; + /** + * Creates a ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPipelineJobsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListPipelineJobsRequest; - /** - * Verifies a VideoClassificationPredictionInstance 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 plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. + * @param message ListPipelineJobsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListPipelineJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a VideoClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VideoClassificationPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance; + /** + * Converts this ListPipelineJobsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a VideoClassificationPredictionInstance message. Also converts values to other types if specified. - * @param message VideoClassificationPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for ListPipelineJobsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this VideoClassificationPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a ListPipelineJobsResponse. */ + interface IListPipelineJobsResponse { - /** - * Gets the default type url for VideoClassificationPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ListPipelineJobsResponse pipelineJobs */ + pipelineJobs?: (google.cloud.aiplatform.v1.IPipelineJob[]|null); - /** Properties of a VideoObjectTrackingPredictionInstance. */ - interface IVideoObjectTrackingPredictionInstance { + /** ListPipelineJobsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** VideoObjectTrackingPredictionInstance content */ - content?: (string|null); + /** Represents a ListPipelineJobsResponse. */ + class ListPipelineJobsResponse implements IListPipelineJobsResponse { - /** VideoObjectTrackingPredictionInstance mimeType */ - mimeType?: (string|null); + /** + * Constructs a new ListPipelineJobsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListPipelineJobsResponse); - /** VideoObjectTrackingPredictionInstance timeSegmentStart */ - timeSegmentStart?: (string|null); + /** ListPipelineJobsResponse pipelineJobs. */ + public pipelineJobs: google.cloud.aiplatform.v1.IPipelineJob[]; - /** VideoObjectTrackingPredictionInstance timeSegmentEnd */ - timeSegmentEnd?: (string|null); - } + /** ListPipelineJobsResponse nextPageToken. */ + public nextPageToken: string; - /** Represents a VideoObjectTrackingPredictionInstance. */ - class VideoObjectTrackingPredictionInstance implements IVideoObjectTrackingPredictionInstance { + /** + * Creates a new ListPipelineJobsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListPipelineJobsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListPipelineJobsResponse): google.cloud.aiplatform.v1.ListPipelineJobsResponse; - /** - * Constructs a new VideoObjectTrackingPredictionInstance. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoObjectTrackingPredictionInstance); + /** + * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. + * @param message ListPipelineJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** VideoObjectTrackingPredictionInstance content. */ - public content: string; + /** + * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. + * @param message ListPipelineJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListPipelineJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** VideoObjectTrackingPredictionInstance mimeType. */ - public mimeType: string; + /** + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListPipelineJobsResponse + * @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.ListPipelineJobsResponse; - /** VideoObjectTrackingPredictionInstance timeSegmentStart. */ - public timeSegmentStart: string; + /** + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListPipelineJobsResponse + * @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.ListPipelineJobsResponse; - /** VideoObjectTrackingPredictionInstance timeSegmentEnd. */ - public timeSegmentEnd: string; + /** + * Verifies a ListPipelineJobsResponse 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 new VideoObjectTrackingPredictionInstance instance using the specified properties. - * @param [properties] Properties to set - * @returns VideoObjectTrackingPredictionInstance instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoObjectTrackingPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance; + /** + * Creates a ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListPipelineJobsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListPipelineJobsResponse; - /** - * Encodes the specified VideoObjectTrackingPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance.verify|verify} messages. - * @param message VideoObjectTrackingPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoObjectTrackingPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. + * @param message ListPipelineJobsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListPipelineJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified VideoObjectTrackingPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance.verify|verify} messages. - * @param message VideoObjectTrackingPredictionInstance message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoObjectTrackingPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ListPipelineJobsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a VideoObjectTrackingPredictionInstance message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VideoObjectTrackingPredictionInstance - * @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.schema.predict.instance.VideoObjectTrackingPredictionInstance; + /** + * Gets the default type url for ListPipelineJobsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a VideoObjectTrackingPredictionInstance message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VideoObjectTrackingPredictionInstance - * @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.schema.predict.instance.VideoObjectTrackingPredictionInstance; + /** Properties of a DeletePipelineJobRequest. */ + interface IDeletePipelineJobRequest { - /** - * Verifies a VideoObjectTrackingPredictionInstance 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); + /** DeletePipelineJobRequest name */ + name?: (string|null); + } - /** - * Creates a VideoObjectTrackingPredictionInstance message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VideoObjectTrackingPredictionInstance - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance; + /** Represents a DeletePipelineJobRequest. */ + class DeletePipelineJobRequest implements IDeletePipelineJobRequest { - /** - * Creates a plain object from a VideoObjectTrackingPredictionInstance message. Also converts values to other types if specified. - * @param message VideoObjectTrackingPredictionInstance - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new DeletePipelineJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeletePipelineJobRequest); - /** - * Converts this VideoObjectTrackingPredictionInstance to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** DeletePipelineJobRequest name. */ + public name: string; - /** - * Gets the default type url for VideoObjectTrackingPredictionInstance - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Creates a new DeletePipelineJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeletePipelineJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeletePipelineJobRequest): google.cloud.aiplatform.v1.DeletePipelineJobRequest; - /** Namespace params. */ - namespace params { + /** + * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. + * @param message DeletePipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of an ImageClassificationPredictionParams. */ - interface IImageClassificationPredictionParams { + /** + * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. + * @param message DeletePipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeletePipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ImageClassificationPredictionParams confidenceThreshold */ - confidenceThreshold?: (number|null); + /** + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeletePipelineJobRequest + * @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.DeletePipelineJobRequest; - /** ImageClassificationPredictionParams maxPredictions */ - maxPredictions?: (number|null); - } + /** + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeletePipelineJobRequest + * @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.DeletePipelineJobRequest; - /** Represents an ImageClassificationPredictionParams. */ - class ImageClassificationPredictionParams implements IImageClassificationPredictionParams { + /** + * Verifies a DeletePipelineJobRequest 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); - /** - * Constructs a new ImageClassificationPredictionParams. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageClassificationPredictionParams); + /** + * Creates a DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeletePipelineJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeletePipelineJobRequest; - /** ImageClassificationPredictionParams confidenceThreshold. */ - public confidenceThreshold: number; + /** + * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. + * @param message DeletePipelineJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeletePipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ImageClassificationPredictionParams maxPredictions. */ - public maxPredictions: number; + /** + * Converts this DeletePipelineJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new ImageClassificationPredictionParams instance using the specified properties. - * @param [properties] Properties to set - * @returns ImageClassificationPredictionParams instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageClassificationPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams; + /** + * Gets the default type url for DeletePipelineJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified ImageClassificationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams.verify|verify} messages. - * @param message ImageClassificationPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IImageClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a CancelPipelineJobRequest. */ + interface ICancelPipelineJobRequest { - /** - * Encodes the specified ImageClassificationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams.verify|verify} messages. - * @param message ImageClassificationPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IImageClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** CancelPipelineJobRequest name */ + name?: (string|null); + } - /** - * Decodes an ImageClassificationPredictionParams message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImageClassificationPredictionParams - * @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.schema.predict.params.ImageClassificationPredictionParams; + /** Represents a CancelPipelineJobRequest. */ + class CancelPipelineJobRequest implements ICancelPipelineJobRequest { - /** - * Decodes an ImageClassificationPredictionParams message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImageClassificationPredictionParams - * @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.schema.predict.params.ImageClassificationPredictionParams; + /** + * Constructs a new CancelPipelineJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICancelPipelineJobRequest); - /** - * Verifies an ImageClassificationPredictionParams 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); + /** CancelPipelineJobRequest name. */ + public name: string; - /** - * Creates an ImageClassificationPredictionParams message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImageClassificationPredictionParams - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams; + /** + * Creates a new CancelPipelineJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelPipelineJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICancelPipelineJobRequest): google.cloud.aiplatform.v1.CancelPipelineJobRequest; - /** - * Creates a plain object from an ImageClassificationPredictionParams message. Also converts values to other types if specified. - * @param message ImageClassificationPredictionParams - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. + * @param message CancelPipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this ImageClassificationPredictionParams to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. + * @param message CancelPipelineJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICancelPipelineJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for ImageClassificationPredictionParams - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelPipelineJobRequest + * @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.CancelPipelineJobRequest; - /** Properties of an ImageObjectDetectionPredictionParams. */ - interface IImageObjectDetectionPredictionParams { + /** + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelPipelineJobRequest + * @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.CancelPipelineJobRequest; - /** ImageObjectDetectionPredictionParams confidenceThreshold */ - confidenceThreshold?: (number|null); + /** + * Verifies a CancelPipelineJobRequest 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); - /** ImageObjectDetectionPredictionParams maxPredictions */ - maxPredictions?: (number|null); - } + /** + * Creates a CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelPipelineJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CancelPipelineJobRequest; - /** Represents an ImageObjectDetectionPredictionParams. */ - class ImageObjectDetectionPredictionParams implements IImageObjectDetectionPredictionParams { + /** + * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. + * @param message CancelPipelineJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CancelPipelineJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new ImageObjectDetectionPredictionParams. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageObjectDetectionPredictionParams); + /** + * Converts this CancelPipelineJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ImageObjectDetectionPredictionParams confidenceThreshold. */ - public confidenceThreshold: number; + /** + * Gets the default type url for CancelPipelineJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ImageObjectDetectionPredictionParams maxPredictions. */ - public maxPredictions: number; + /** Properties of a TrainingPipeline. */ + interface ITrainingPipeline { - /** - * Creates a new ImageObjectDetectionPredictionParams instance using the specified properties. - * @param [properties] Properties to set - * @returns ImageObjectDetectionPredictionParams instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageObjectDetectionPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams; + /** TrainingPipeline name */ + name?: (string|null); - /** - * Encodes the specified ImageObjectDetectionPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams.verify|verify} messages. - * @param message ImageObjectDetectionPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IImageObjectDetectionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** TrainingPipeline displayName */ + displayName?: (string|null); - /** - * Encodes the specified ImageObjectDetectionPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams.verify|verify} messages. - * @param message ImageObjectDetectionPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IImageObjectDetectionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** TrainingPipeline inputDataConfig */ + inputDataConfig?: (google.cloud.aiplatform.v1.IInputDataConfig|null); - /** - * Decodes an ImageObjectDetectionPredictionParams message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImageObjectDetectionPredictionParams - * @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.schema.predict.params.ImageObjectDetectionPredictionParams; + /** TrainingPipeline trainingTaskDefinition */ + trainingTaskDefinition?: (string|null); - /** - * Decodes an ImageObjectDetectionPredictionParams message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImageObjectDetectionPredictionParams - * @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.schema.predict.params.ImageObjectDetectionPredictionParams; + /** TrainingPipeline trainingTaskInputs */ + trainingTaskInputs?: (google.protobuf.IValue|null); - /** - * Verifies an ImageObjectDetectionPredictionParams 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); + /** TrainingPipeline trainingTaskMetadata */ + trainingTaskMetadata?: (google.protobuf.IValue|null); - /** - * Creates an ImageObjectDetectionPredictionParams message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImageObjectDetectionPredictionParams - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams; + /** TrainingPipeline modelToUpload */ + modelToUpload?: (google.cloud.aiplatform.v1.IModel|null); - /** - * Creates a plain object from an ImageObjectDetectionPredictionParams message. Also converts values to other types if specified. - * @param message ImageObjectDetectionPredictionParams - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** TrainingPipeline modelId */ + modelId?: (string|null); - /** - * Converts this ImageObjectDetectionPredictionParams to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** TrainingPipeline parentModel */ + parentModel?: (string|null); - /** - * Gets the default type url for ImageObjectDetectionPredictionParams - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** TrainingPipeline state */ + state?: (google.cloud.aiplatform.v1.PipelineState|keyof typeof google.cloud.aiplatform.v1.PipelineState|null); - /** Properties of an ImageSegmentationPredictionParams. */ - interface IImageSegmentationPredictionParams { + /** TrainingPipeline error */ + error?: (google.rpc.IStatus|null); - /** ImageSegmentationPredictionParams confidenceThreshold */ - confidenceThreshold?: (number|null); - } + /** TrainingPipeline createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** Represents an ImageSegmentationPredictionParams. */ - class ImageSegmentationPredictionParams implements IImageSegmentationPredictionParams { + /** TrainingPipeline startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new ImageSegmentationPredictionParams. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageSegmentationPredictionParams); + /** TrainingPipeline endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** ImageSegmentationPredictionParams confidenceThreshold. */ - public confidenceThreshold: number; + /** TrainingPipeline updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new ImageSegmentationPredictionParams instance using the specified properties. - * @param [properties] Properties to set - * @returns ImageSegmentationPredictionParams instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageSegmentationPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams; + /** TrainingPipeline labels */ + labels?: ({ [k: string]: string }|null); - /** - * Encodes the specified ImageSegmentationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams.verify|verify} messages. - * @param message ImageSegmentationPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IImageSegmentationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** TrainingPipeline encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + } - /** - * Encodes the specified ImageSegmentationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams.verify|verify} messages. - * @param message ImageSegmentationPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IImageSegmentationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a TrainingPipeline. */ + class TrainingPipeline implements ITrainingPipeline { - /** - * Decodes an ImageSegmentationPredictionParams message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImageSegmentationPredictionParams - * @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.schema.predict.params.ImageSegmentationPredictionParams; + /** + * Constructs a new TrainingPipeline. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITrainingPipeline); - /** - * Decodes an ImageSegmentationPredictionParams message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImageSegmentationPredictionParams - * @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.schema.predict.params.ImageSegmentationPredictionParams; + /** TrainingPipeline name. */ + public name: string; - /** - * Verifies an ImageSegmentationPredictionParams 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); + /** TrainingPipeline displayName. */ + public displayName: string; - /** - * Creates an ImageSegmentationPredictionParams message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImageSegmentationPredictionParams - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams; + /** TrainingPipeline inputDataConfig. */ + public inputDataConfig?: (google.cloud.aiplatform.v1.IInputDataConfig|null); - /** - * Creates a plain object from an ImageSegmentationPredictionParams message. Also converts values to other types if specified. - * @param message ImageSegmentationPredictionParams - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** TrainingPipeline trainingTaskDefinition. */ + public trainingTaskDefinition: string; - /** - * Converts this ImageSegmentationPredictionParams to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** TrainingPipeline trainingTaskInputs. */ + public trainingTaskInputs?: (google.protobuf.IValue|null); - /** - * Gets the default type url for ImageSegmentationPredictionParams - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** TrainingPipeline trainingTaskMetadata. */ + public trainingTaskMetadata?: (google.protobuf.IValue|null); - /** Properties of a VideoActionRecognitionPredictionParams. */ - interface IVideoActionRecognitionPredictionParams { + /** TrainingPipeline modelToUpload. */ + public modelToUpload?: (google.cloud.aiplatform.v1.IModel|null); - /** VideoActionRecognitionPredictionParams confidenceThreshold */ - confidenceThreshold?: (number|null); + /** TrainingPipeline modelId. */ + public modelId: string; - /** VideoActionRecognitionPredictionParams maxPredictions */ - maxPredictions?: (number|null); - } + /** TrainingPipeline parentModel. */ + public parentModel: string; - /** Represents a VideoActionRecognitionPredictionParams. */ - class VideoActionRecognitionPredictionParams implements IVideoActionRecognitionPredictionParams { + /** TrainingPipeline state. */ + public state: (google.cloud.aiplatform.v1.PipelineState|keyof typeof google.cloud.aiplatform.v1.PipelineState); - /** - * Constructs a new VideoActionRecognitionPredictionParams. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoActionRecognitionPredictionParams); + /** TrainingPipeline error. */ + public error?: (google.rpc.IStatus|null); - /** VideoActionRecognitionPredictionParams confidenceThreshold. */ - public confidenceThreshold: number; + /** TrainingPipeline createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** VideoActionRecognitionPredictionParams maxPredictions. */ - public maxPredictions: number; + /** TrainingPipeline startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new VideoActionRecognitionPredictionParams instance using the specified properties. - * @param [properties] Properties to set - * @returns VideoActionRecognitionPredictionParams instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoActionRecognitionPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams; + /** TrainingPipeline endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified VideoActionRecognitionPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams.verify|verify} messages. - * @param message VideoActionRecognitionPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoActionRecognitionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** TrainingPipeline updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified VideoActionRecognitionPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams.verify|verify} messages. - * @param message VideoActionRecognitionPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoActionRecognitionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** TrainingPipeline labels. */ + public labels: { [k: string]: string }; - /** - * Decodes a VideoActionRecognitionPredictionParams message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VideoActionRecognitionPredictionParams - * @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.schema.predict.params.VideoActionRecognitionPredictionParams; + /** TrainingPipeline encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); - /** - * Decodes a VideoActionRecognitionPredictionParams message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VideoActionRecognitionPredictionParams - * @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.schema.predict.params.VideoActionRecognitionPredictionParams; + /** + * Creates a new TrainingPipeline instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingPipeline instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITrainingPipeline): google.cloud.aiplatform.v1.TrainingPipeline; - /** - * Verifies a VideoActionRecognitionPredictionParams 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); + /** + * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. + * @param message TrainingPipeline message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITrainingPipeline, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a VideoActionRecognitionPredictionParams message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VideoActionRecognitionPredictionParams - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams; + /** + * Encodes the specified TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. + * @param message TrainingPipeline message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITrainingPipeline, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a VideoActionRecognitionPredictionParams message. Also converts values to other types if specified. - * @param message VideoActionRecognitionPredictionParams - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a TrainingPipeline message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingPipeline + * @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.TrainingPipeline; - /** - * Converts this VideoActionRecognitionPredictionParams to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a TrainingPipeline message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingPipeline + * @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.TrainingPipeline; - /** - * Gets the default type url for VideoActionRecognitionPredictionParams - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a TrainingPipeline 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); - /** Properties of a VideoClassificationPredictionParams. */ - interface IVideoClassificationPredictionParams { + /** + * Creates a TrainingPipeline message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingPipeline + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TrainingPipeline; - /** VideoClassificationPredictionParams confidenceThreshold */ - confidenceThreshold?: (number|null); + /** + * Creates a plain object from a TrainingPipeline message. Also converts values to other types if specified. + * @param message TrainingPipeline + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TrainingPipeline, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** VideoClassificationPredictionParams maxPredictions */ - maxPredictions?: (number|null); + /** + * Converts this TrainingPipeline to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** VideoClassificationPredictionParams segmentClassification */ - segmentClassification?: (boolean|null); + /** + * Gets the default type url for TrainingPipeline + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** VideoClassificationPredictionParams shotClassification */ - shotClassification?: (boolean|null); + /** Properties of an InputDataConfig. */ + interface IInputDataConfig { - /** VideoClassificationPredictionParams oneSecIntervalClassification */ - oneSecIntervalClassification?: (boolean|null); - } + /** InputDataConfig fractionSplit */ + fractionSplit?: (google.cloud.aiplatform.v1.IFractionSplit|null); - /** Represents a VideoClassificationPredictionParams. */ - class VideoClassificationPredictionParams implements IVideoClassificationPredictionParams { + /** InputDataConfig filterSplit */ + filterSplit?: (google.cloud.aiplatform.v1.IFilterSplit|null); - /** - * Constructs a new VideoClassificationPredictionParams. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoClassificationPredictionParams); + /** InputDataConfig predefinedSplit */ + predefinedSplit?: (google.cloud.aiplatform.v1.IPredefinedSplit|null); - /** VideoClassificationPredictionParams confidenceThreshold. */ - public confidenceThreshold: number; + /** InputDataConfig timestampSplit */ + timestampSplit?: (google.cloud.aiplatform.v1.ITimestampSplit|null); - /** VideoClassificationPredictionParams maxPredictions. */ - public maxPredictions: number; + /** InputDataConfig stratifiedSplit */ + stratifiedSplit?: (google.cloud.aiplatform.v1.IStratifiedSplit|null); - /** VideoClassificationPredictionParams segmentClassification. */ - public segmentClassification: boolean; + /** InputDataConfig gcsDestination */ + gcsDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); - /** VideoClassificationPredictionParams shotClassification. */ - public shotClassification: boolean; + /** InputDataConfig bigqueryDestination */ + bigqueryDestination?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); - /** VideoClassificationPredictionParams oneSecIntervalClassification. */ - public oneSecIntervalClassification: boolean; + /** InputDataConfig datasetId */ + datasetId?: (string|null); - /** - * Creates a new VideoClassificationPredictionParams instance using the specified properties. - * @param [properties] Properties to set - * @returns VideoClassificationPredictionParams instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoClassificationPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams; + /** InputDataConfig annotationsFilter */ + annotationsFilter?: (string|null); - /** - * Encodes the specified VideoClassificationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams.verify|verify} messages. - * @param message VideoClassificationPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** InputDataConfig annotationSchemaUri */ + annotationSchemaUri?: (string|null); - /** - * Encodes the specified VideoClassificationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams.verify|verify} messages. - * @param message VideoClassificationPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** InputDataConfig savedQueryId */ + savedQueryId?: (string|null); - /** - * Decodes a VideoClassificationPredictionParams message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VideoClassificationPredictionParams - * @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.schema.predict.params.VideoClassificationPredictionParams; + /** InputDataConfig persistMlUseAssignment */ + persistMlUseAssignment?: (boolean|null); + } - /** - * Decodes a VideoClassificationPredictionParams message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VideoClassificationPredictionParams - * @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.schema.predict.params.VideoClassificationPredictionParams; + /** Represents an InputDataConfig. */ + class InputDataConfig implements IInputDataConfig { - /** - * Verifies a VideoClassificationPredictionParams 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); + /** + * Constructs a new InputDataConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IInputDataConfig); - /** - * Creates a VideoClassificationPredictionParams message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VideoClassificationPredictionParams - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams; + /** InputDataConfig fractionSplit. */ + public fractionSplit?: (google.cloud.aiplatform.v1.IFractionSplit|null); - /** - * Creates a plain object from a VideoClassificationPredictionParams message. Also converts values to other types if specified. - * @param message VideoClassificationPredictionParams - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** InputDataConfig filterSplit. */ + public filterSplit?: (google.cloud.aiplatform.v1.IFilterSplit|null); - /** - * Converts this VideoClassificationPredictionParams to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** InputDataConfig predefinedSplit. */ + public predefinedSplit?: (google.cloud.aiplatform.v1.IPredefinedSplit|null); - /** - * Gets the default type url for VideoClassificationPredictionParams - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** InputDataConfig timestampSplit. */ + public timestampSplit?: (google.cloud.aiplatform.v1.ITimestampSplit|null); - /** Properties of a VideoObjectTrackingPredictionParams. */ - interface IVideoObjectTrackingPredictionParams { + /** InputDataConfig stratifiedSplit. */ + public stratifiedSplit?: (google.cloud.aiplatform.v1.IStratifiedSplit|null); - /** VideoObjectTrackingPredictionParams confidenceThreshold */ - confidenceThreshold?: (number|null); - - /** VideoObjectTrackingPredictionParams maxPredictions */ - maxPredictions?: (number|null); + /** InputDataConfig gcsDestination. */ + public gcsDestination?: (google.cloud.aiplatform.v1.IGcsDestination|null); - /** VideoObjectTrackingPredictionParams minBoundingBoxSize */ - minBoundingBoxSize?: (number|null); - } + /** InputDataConfig bigqueryDestination. */ + public bigqueryDestination?: (google.cloud.aiplatform.v1.IBigQueryDestination|null); - /** Represents a VideoObjectTrackingPredictionParams. */ - class VideoObjectTrackingPredictionParams implements IVideoObjectTrackingPredictionParams { + /** InputDataConfig datasetId. */ + public datasetId: string; - /** - * Constructs a new VideoObjectTrackingPredictionParams. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoObjectTrackingPredictionParams); + /** InputDataConfig annotationsFilter. */ + public annotationsFilter: string; - /** VideoObjectTrackingPredictionParams confidenceThreshold. */ - public confidenceThreshold: number; + /** InputDataConfig annotationSchemaUri. */ + public annotationSchemaUri: string; - /** VideoObjectTrackingPredictionParams maxPredictions. */ - public maxPredictions: number; + /** InputDataConfig savedQueryId. */ + public savedQueryId: string; - /** VideoObjectTrackingPredictionParams minBoundingBoxSize. */ - public minBoundingBoxSize: number; + /** InputDataConfig persistMlUseAssignment. */ + public persistMlUseAssignment: boolean; - /** - * Creates a new VideoObjectTrackingPredictionParams instance using the specified properties. - * @param [properties] Properties to set - * @returns VideoObjectTrackingPredictionParams instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoObjectTrackingPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams; + /** InputDataConfig split. */ + public split?: ("fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"); - /** - * Encodes the specified VideoObjectTrackingPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams.verify|verify} messages. - * @param message VideoObjectTrackingPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoObjectTrackingPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** InputDataConfig destination. */ + public destination?: ("gcsDestination"|"bigqueryDestination"); - /** - * Encodes the specified VideoObjectTrackingPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams.verify|verify} messages. - * @param message VideoObjectTrackingPredictionParams message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoObjectTrackingPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new InputDataConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns InputDataConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IInputDataConfig): google.cloud.aiplatform.v1.InputDataConfig; - /** - * Decodes a VideoObjectTrackingPredictionParams message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VideoObjectTrackingPredictionParams - * @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.schema.predict.params.VideoObjectTrackingPredictionParams; + /** + * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. + * @param message InputDataConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IInputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a VideoObjectTrackingPredictionParams message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VideoObjectTrackingPredictionParams - * @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.schema.predict.params.VideoObjectTrackingPredictionParams; + /** + * Encodes the specified InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. + * @param message InputDataConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IInputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a VideoObjectTrackingPredictionParams 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); + /** + * Decodes an InputDataConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InputDataConfig + * @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.InputDataConfig; - /** - * Creates a VideoObjectTrackingPredictionParams message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VideoObjectTrackingPredictionParams - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams; + /** + * Decodes an InputDataConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InputDataConfig + * @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.InputDataConfig; - /** - * Creates a plain object from a VideoObjectTrackingPredictionParams message. Also converts values to other types if specified. - * @param message VideoObjectTrackingPredictionParams - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies an InputDataConfig 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); - /** - * Converts this VideoObjectTrackingPredictionParams to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates an InputDataConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InputDataConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.InputDataConfig; - /** - * Gets the default type url for VideoObjectTrackingPredictionParams - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. + * @param message InputDataConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.InputDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Namespace prediction. */ - namespace prediction { + /** + * Converts this InputDataConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a ClassificationPredictionResult. */ - interface IClassificationPredictionResult { + /** + * Gets the default type url for InputDataConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ClassificationPredictionResult ids */ - ids?: ((number|Long|string)[]|null); + /** Properties of a FractionSplit. */ + interface IFractionSplit { - /** ClassificationPredictionResult displayNames */ - displayNames?: (string[]|null); + /** FractionSplit trainingFraction */ + trainingFraction?: (number|null); - /** ClassificationPredictionResult confidences */ - confidences?: (number[]|null); - } + /** FractionSplit validationFraction */ + validationFraction?: (number|null); - /** Represents a ClassificationPredictionResult. */ - class ClassificationPredictionResult implements IClassificationPredictionResult { + /** FractionSplit testFraction */ + testFraction?: (number|null); + } - /** - * Constructs a new ClassificationPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IClassificationPredictionResult); + /** Represents a FractionSplit. */ + class FractionSplit implements IFractionSplit { - /** ClassificationPredictionResult ids. */ - public ids: (number|Long|string)[]; + /** + * Constructs a new FractionSplit. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IFractionSplit); - /** ClassificationPredictionResult displayNames. */ - public displayNames: string[]; + /** FractionSplit trainingFraction. */ + public trainingFraction: number; - /** ClassificationPredictionResult confidences. */ - public confidences: number[]; + /** FractionSplit validationFraction. */ + public validationFraction: number; - /** - * Creates a new ClassificationPredictionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns ClassificationPredictionResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IClassificationPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult; + /** FractionSplit testFraction. */ + public testFraction: number; - /** - * Encodes the specified ClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult.verify|verify} messages. - * @param message ClassificationPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new FractionSplit instance using the specified properties. + * @param [properties] Properties to set + * @returns FractionSplit instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IFractionSplit): google.cloud.aiplatform.v1.FractionSplit; - /** - * Encodes the specified ClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult.verify|verify} messages. - * @param message ClassificationPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. + * @param message FractionSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ClassificationPredictionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClassificationPredictionResult - * @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.schema.predict.prediction.ClassificationPredictionResult; + /** + * Encodes the specified FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. + * @param message FractionSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFractionSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ClassificationPredictionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ClassificationPredictionResult - * @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.schema.predict.prediction.ClassificationPredictionResult; + /** + * Decodes a FractionSplit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FractionSplit + * @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.FractionSplit; - /** - * Verifies a ClassificationPredictionResult 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); + /** + * Decodes a FractionSplit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FractionSplit + * @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.FractionSplit; - /** - * Creates a ClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ClassificationPredictionResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult; + /** + * Verifies a FractionSplit 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 plain object from a ClassificationPredictionResult message. Also converts values to other types if specified. - * @param message ClassificationPredictionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a FractionSplit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FractionSplit + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FractionSplit; - /** - * Converts this ClassificationPredictionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a FractionSplit message. Also converts values to other types if specified. + * @param message FractionSplit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FractionSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for ClassificationPredictionResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this FractionSplit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of an ImageObjectDetectionPredictionResult. */ - interface IImageObjectDetectionPredictionResult { + /** + * Gets the default type url for FractionSplit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ImageObjectDetectionPredictionResult ids */ - ids?: ((number|Long|string)[]|null); + /** Properties of a FilterSplit. */ + interface IFilterSplit { - /** ImageObjectDetectionPredictionResult displayNames */ - displayNames?: (string[]|null); + /** FilterSplit trainingFilter */ + trainingFilter?: (string|null); - /** ImageObjectDetectionPredictionResult confidences */ - confidences?: (number[]|null); + /** FilterSplit validationFilter */ + validationFilter?: (string|null); - /** ImageObjectDetectionPredictionResult bboxes */ - bboxes?: (google.protobuf.IListValue[]|null); - } + /** FilterSplit testFilter */ + testFilter?: (string|null); + } - /** Represents an ImageObjectDetectionPredictionResult. */ - class ImageObjectDetectionPredictionResult implements IImageObjectDetectionPredictionResult { + /** Represents a FilterSplit. */ + class FilterSplit implements IFilterSplit { - /** - * Constructs a new ImageObjectDetectionPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IImageObjectDetectionPredictionResult); + /** + * Constructs a new FilterSplit. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IFilterSplit); - /** ImageObjectDetectionPredictionResult ids. */ - public ids: (number|Long|string)[]; + /** FilterSplit trainingFilter. */ + public trainingFilter: string; - /** ImageObjectDetectionPredictionResult displayNames. */ - public displayNames: string[]; + /** FilterSplit validationFilter. */ + public validationFilter: string; - /** ImageObjectDetectionPredictionResult confidences. */ - public confidences: number[]; + /** FilterSplit testFilter. */ + public testFilter: string; - /** ImageObjectDetectionPredictionResult bboxes. */ - public bboxes: google.protobuf.IListValue[]; + /** + * Creates a new FilterSplit instance using the specified properties. + * @param [properties] Properties to set + * @returns FilterSplit instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IFilterSplit): google.cloud.aiplatform.v1.FilterSplit; - /** - * Creates a new ImageObjectDetectionPredictionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns ImageObjectDetectionPredictionResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IImageObjectDetectionPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult; + /** + * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. + * @param message FilterSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IFilterSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ImageObjectDetectionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult.verify|verify} messages. - * @param message ImageObjectDetectionPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IImageObjectDetectionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. + * @param message FilterSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IFilterSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ImageObjectDetectionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult.verify|verify} messages. - * @param message ImageObjectDetectionPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IImageObjectDetectionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a FilterSplit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FilterSplit + * @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.FilterSplit; - /** - * Decodes an ImageObjectDetectionPredictionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImageObjectDetectionPredictionResult - * @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.schema.predict.prediction.ImageObjectDetectionPredictionResult; + /** + * Decodes a FilterSplit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FilterSplit + * @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.FilterSplit; - /** - * Decodes an ImageObjectDetectionPredictionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImageObjectDetectionPredictionResult - * @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.schema.predict.prediction.ImageObjectDetectionPredictionResult; + /** + * Verifies a FilterSplit 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); - /** - * Verifies an ImageObjectDetectionPredictionResult 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 FilterSplit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FilterSplit + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.FilterSplit; - /** - * Creates an ImageObjectDetectionPredictionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImageObjectDetectionPredictionResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult; + /** + * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. + * @param message FilterSplit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.FilterSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from an ImageObjectDetectionPredictionResult message. Also converts values to other types if specified. - * @param message ImageObjectDetectionPredictionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ImageObjectDetectionPredictionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this FilterSplit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for ImageObjectDetectionPredictionResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for FilterSplit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of an ImageSegmentationPredictionResult. */ - interface IImageSegmentationPredictionResult { + /** Properties of a PredefinedSplit. */ + interface IPredefinedSplit { - /** ImageSegmentationPredictionResult categoryMask */ - categoryMask?: (string|null); + /** PredefinedSplit key */ + key?: (string|null); + } - /** ImageSegmentationPredictionResult confidenceMask */ - confidenceMask?: (string|null); - } + /** Represents a PredefinedSplit. */ + class PredefinedSplit implements IPredefinedSplit { - /** Represents an ImageSegmentationPredictionResult. */ - class ImageSegmentationPredictionResult implements IImageSegmentationPredictionResult { + /** + * Constructs a new PredefinedSplit. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPredefinedSplit); - /** - * Constructs a new ImageSegmentationPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IImageSegmentationPredictionResult); + /** PredefinedSplit key. */ + public key: string; - /** ImageSegmentationPredictionResult categoryMask. */ - public categoryMask: string; + /** + * Creates a new PredefinedSplit instance using the specified properties. + * @param [properties] Properties to set + * @returns PredefinedSplit instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPredefinedSplit): google.cloud.aiplatform.v1.PredefinedSplit; - /** ImageSegmentationPredictionResult confidenceMask. */ - public confidenceMask: string; + /** + * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. + * @param message PredefinedSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPredefinedSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ImageSegmentationPredictionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns ImageSegmentationPredictionResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IImageSegmentationPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult; + /** + * Encodes the specified PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. + * @param message PredefinedSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPredefinedSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ImageSegmentationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult.verify|verify} messages. - * @param message ImageSegmentationPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IImageSegmentationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a PredefinedSplit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PredefinedSplit + * @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.PredefinedSplit; - /** - * Encodes the specified ImageSegmentationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult.verify|verify} messages. - * @param message ImageSegmentationPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IImageSegmentationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a PredefinedSplit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PredefinedSplit + * @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.PredefinedSplit; - /** - * Decodes an ImageSegmentationPredictionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImageSegmentationPredictionResult - * @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.schema.predict.prediction.ImageSegmentationPredictionResult; + /** + * Verifies a PredefinedSplit 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); - /** - * Decodes an ImageSegmentationPredictionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImageSegmentationPredictionResult - * @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.schema.predict.prediction.ImageSegmentationPredictionResult; + /** + * Creates a PredefinedSplit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PredefinedSplit + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PredefinedSplit; - /** - * Verifies an ImageSegmentationPredictionResult 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 plain object from a PredefinedSplit message. Also converts values to other types if specified. + * @param message PredefinedSplit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PredefinedSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates an ImageSegmentationPredictionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImageSegmentationPredictionResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult; + /** + * Converts this PredefinedSplit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from an ImageSegmentationPredictionResult message. Also converts values to other types if specified. - * @param message ImageSegmentationPredictionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for PredefinedSplit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this ImageSegmentationPredictionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a TimestampSplit. */ + interface ITimestampSplit { - /** - * Gets the default type url for ImageSegmentationPredictionResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** TimestampSplit trainingFraction */ + trainingFraction?: (number|null); - /** Properties of a TabularClassificationPredictionResult. */ - interface ITabularClassificationPredictionResult { + /** TimestampSplit validationFraction */ + validationFraction?: (number|null); - /** TabularClassificationPredictionResult classes */ - classes?: (string[]|null); + /** TimestampSplit testFraction */ + testFraction?: (number|null); - /** TabularClassificationPredictionResult scores */ - scores?: (number[]|null); - } + /** TimestampSplit key */ + key?: (string|null); + } - /** Represents a TabularClassificationPredictionResult. */ - class TabularClassificationPredictionResult implements ITabularClassificationPredictionResult { + /** Represents a TimestampSplit. */ + class TimestampSplit implements ITimestampSplit { - /** - * Constructs a new TabularClassificationPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularClassificationPredictionResult); + /** + * Constructs a new TimestampSplit. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITimestampSplit); - /** TabularClassificationPredictionResult classes. */ - public classes: string[]; + /** TimestampSplit trainingFraction. */ + public trainingFraction: number; - /** TabularClassificationPredictionResult scores. */ - public scores: number[]; + /** TimestampSplit validationFraction. */ + public validationFraction: number; - /** - * Creates a new TabularClassificationPredictionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns TabularClassificationPredictionResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularClassificationPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult; + /** TimestampSplit testFraction. */ + public testFraction: number; - /** - * Encodes the specified TabularClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult.verify|verify} messages. - * @param message TabularClassificationPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** TimestampSplit key. */ + public key: string; - /** - * Encodes the specified TabularClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult.verify|verify} messages. - * @param message TabularClassificationPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new TimestampSplit instance using the specified properties. + * @param [properties] Properties to set + * @returns TimestampSplit instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITimestampSplit): google.cloud.aiplatform.v1.TimestampSplit; - /** - * Decodes a TabularClassificationPredictionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TabularClassificationPredictionResult - * @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.schema.predict.prediction.TabularClassificationPredictionResult; + /** + * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. + * @param message TimestampSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITimestampSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TabularClassificationPredictionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TabularClassificationPredictionResult - * @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.schema.predict.prediction.TabularClassificationPredictionResult; + /** + * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. + * @param message TimestampSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITimestampSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a TabularClassificationPredictionResult 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); + /** + * Decodes a TimestampSplit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimestampSplit + * @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.TimestampSplit; - /** - * Creates a TabularClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TabularClassificationPredictionResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult; + /** + * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TimestampSplit + * @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.TimestampSplit; - /** - * Creates a plain object from a TabularClassificationPredictionResult message. Also converts values to other types if specified. - * @param message TabularClassificationPredictionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a TimestampSplit 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); - /** - * Converts this TabularClassificationPredictionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a TimestampSplit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimestampSplit + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TimestampSplit; - /** - * Gets the default type url for TabularClassificationPredictionResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. + * @param message TimestampSplit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TimestampSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a TabularRegressionPredictionResult. */ - interface ITabularRegressionPredictionResult { + /** + * Converts this TimestampSplit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TabularRegressionPredictionResult value */ - value?: (number|null); + /** + * Gets the default type url for TimestampSplit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** TabularRegressionPredictionResult lowerBound */ - lowerBound?: (number|null); + /** Properties of a StratifiedSplit. */ + interface IStratifiedSplit { - /** TabularRegressionPredictionResult upperBound */ - upperBound?: (number|null); - } + /** StratifiedSplit trainingFraction */ + trainingFraction?: (number|null); - /** Represents a TabularRegressionPredictionResult. */ - class TabularRegressionPredictionResult implements ITabularRegressionPredictionResult { + /** StratifiedSplit validationFraction */ + validationFraction?: (number|null); - /** - * Constructs a new TabularRegressionPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularRegressionPredictionResult); + /** StratifiedSplit testFraction */ + testFraction?: (number|null); - /** TabularRegressionPredictionResult value. */ - public value: number; + /** StratifiedSplit key */ + key?: (string|null); + } - /** TabularRegressionPredictionResult lowerBound. */ - public lowerBound: number; + /** Represents a StratifiedSplit. */ + class StratifiedSplit implements IStratifiedSplit { - /** TabularRegressionPredictionResult upperBound. */ - public upperBound: number; + /** + * Constructs a new StratifiedSplit. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IStratifiedSplit); - /** - * Creates a new TabularRegressionPredictionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns TabularRegressionPredictionResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularRegressionPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult; + /** StratifiedSplit trainingFraction. */ + public trainingFraction: number; - /** - * Encodes the specified TabularRegressionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult.verify|verify} messages. - * @param message TabularRegressionPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularRegressionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** StratifiedSplit validationFraction. */ + public validationFraction: number; - /** - * Encodes the specified TabularRegressionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult.verify|verify} messages. - * @param message TabularRegressionPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularRegressionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** StratifiedSplit testFraction. */ + public testFraction: number; - /** - * Decodes a TabularRegressionPredictionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TabularRegressionPredictionResult - * @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.schema.predict.prediction.TabularRegressionPredictionResult; + /** StratifiedSplit key. */ + public key: string; - /** - * Decodes a TabularRegressionPredictionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TabularRegressionPredictionResult - * @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.schema.predict.prediction.TabularRegressionPredictionResult; + /** + * Creates a new StratifiedSplit instance using the specified properties. + * @param [properties] Properties to set + * @returns StratifiedSplit instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IStratifiedSplit): google.cloud.aiplatform.v1.StratifiedSplit; - /** - * Verifies a TabularRegressionPredictionResult 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); + /** + * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. + * @param message StratifiedSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IStratifiedSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a TabularRegressionPredictionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TabularRegressionPredictionResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult; + /** + * Encodes the specified StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. + * @param message StratifiedSplit message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IStratifiedSplit, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a TabularRegressionPredictionResult message. Also converts values to other types if specified. - * @param message TabularRegressionPredictionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a StratifiedSplit message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StratifiedSplit + * @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.StratifiedSplit; - /** - * Converts this TabularRegressionPredictionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a StratifiedSplit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StratifiedSplit + * @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.StratifiedSplit; - /** - * Gets the default type url for TabularRegressionPredictionResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a StratifiedSplit 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); - /** Properties of a TextExtractionPredictionResult. */ - interface ITextExtractionPredictionResult { + /** + * Creates a StratifiedSplit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StratifiedSplit + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StratifiedSplit; - /** TextExtractionPredictionResult ids */ - ids?: ((number|Long|string)[]|null); + /** + * Creates a plain object from a StratifiedSplit message. Also converts values to other types if specified. + * @param message StratifiedSplit + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.StratifiedSplit, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TextExtractionPredictionResult displayNames */ - displayNames?: (string[]|null); + /** + * Converts this StratifiedSplit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TextExtractionPredictionResult textSegmentStartOffsets */ - textSegmentStartOffsets?: ((number|Long|string)[]|null); + /** + * Gets the default type url for StratifiedSplit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** TextExtractionPredictionResult textSegmentEndOffsets */ - textSegmentEndOffsets?: ((number|Long|string)[]|null); + /** Represents a PredictionService */ + class PredictionService extends $protobuf.rpc.Service { - /** TextExtractionPredictionResult confidences */ - confidences?: (number[]|null); - } + /** + * Constructs a new PredictionService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** Represents a TextExtractionPredictionResult. */ - class TextExtractionPredictionResult implements ITextExtractionPredictionResult { + /** + * Creates new PredictionService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): PredictionService; - /** - * Constructs a new TextExtractionPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITextExtractionPredictionResult); + /** + * Calls Predict. + * @param request PredictRequest message or plain object + * @param callback Node-style callback called with the error, if any, and PredictResponse + */ + public predict(request: google.cloud.aiplatform.v1.IPredictRequest, callback: google.cloud.aiplatform.v1.PredictionService.PredictCallback): void; - /** TextExtractionPredictionResult ids. */ - public ids: (number|Long|string)[]; + /** + * Calls Predict. + * @param request PredictRequest message or plain object + * @returns Promise + */ + public predict(request: google.cloud.aiplatform.v1.IPredictRequest): Promise; - /** TextExtractionPredictionResult displayNames. */ - public displayNames: string[]; + /** + * Calls RawPredict. + * @param request RawPredictRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HttpBody + */ + public rawPredict(request: google.cloud.aiplatform.v1.IRawPredictRequest, callback: google.cloud.aiplatform.v1.PredictionService.RawPredictCallback): void; - /** TextExtractionPredictionResult textSegmentStartOffsets. */ - public textSegmentStartOffsets: (number|Long|string)[]; + /** + * Calls RawPredict. + * @param request RawPredictRequest message or plain object + * @returns Promise + */ + public rawPredict(request: google.cloud.aiplatform.v1.IRawPredictRequest): Promise; - /** TextExtractionPredictionResult textSegmentEndOffsets. */ - public textSegmentEndOffsets: (number|Long|string)[]; + /** + * Calls Explain. + * @param request ExplainRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExplainResponse + */ + public explain(request: google.cloud.aiplatform.v1.IExplainRequest, callback: google.cloud.aiplatform.v1.PredictionService.ExplainCallback): void; - /** TextExtractionPredictionResult confidences. */ - public confidences: number[]; + /** + * Calls Explain. + * @param request ExplainRequest message or plain object + * @returns Promise + */ + public explain(request: google.cloud.aiplatform.v1.IExplainRequest): Promise; + } - /** - * Creates a new TextExtractionPredictionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns TextExtractionPredictionResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITextExtractionPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult; + namespace PredictionService { - /** - * Encodes the specified TextExtractionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult.verify|verify} messages. - * @param message TextExtractionPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITextExtractionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|predict}. + * @param error Error, if any + * @param [response] PredictResponse + */ + type PredictCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.PredictResponse) => void; - /** - * Encodes the specified TextExtractionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult.verify|verify} messages. - * @param message TextExtractionPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITextExtractionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|rawPredict}. + * @param error Error, if any + * @param [response] HttpBody + */ + type RawPredictCallback = (error: (Error|null), response?: google.api.HttpBody) => void; - /** - * Decodes a TextExtractionPredictionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TextExtractionPredictionResult - * @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.schema.predict.prediction.TextExtractionPredictionResult; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|explain}. + * @param error Error, if any + * @param [response] ExplainResponse + */ + type ExplainCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ExplainResponse) => void; + } - /** - * Decodes a TextExtractionPredictionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TextExtractionPredictionResult - * @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.schema.predict.prediction.TextExtractionPredictionResult; + /** Properties of a PredictRequest. */ + interface IPredictRequest { - /** - * Verifies a TextExtractionPredictionResult 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); + /** PredictRequest endpoint */ + endpoint?: (string|null); - /** - * Creates a TextExtractionPredictionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TextExtractionPredictionResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult; + /** PredictRequest instances */ + instances?: (google.protobuf.IValue[]|null); - /** - * Creates a plain object from a TextExtractionPredictionResult message. Also converts values to other types if specified. - * @param message TextExtractionPredictionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** PredictRequest parameters */ + parameters?: (google.protobuf.IValue|null); + } - /** - * Converts this TextExtractionPredictionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a PredictRequest. */ + class PredictRequest implements IPredictRequest { - /** - * Gets the default type url for TextExtractionPredictionResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new PredictRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPredictRequest); - /** Properties of a TextSentimentPredictionResult. */ - interface ITextSentimentPredictionResult { + /** PredictRequest endpoint. */ + public endpoint: string; - /** TextSentimentPredictionResult sentiment */ - sentiment?: (number|null); - } + /** PredictRequest instances. */ + public instances: google.protobuf.IValue[]; - /** Represents a TextSentimentPredictionResult. */ - class TextSentimentPredictionResult implements ITextSentimentPredictionResult { + /** PredictRequest parameters. */ + public parameters?: (google.protobuf.IValue|null); - /** - * Constructs a new TextSentimentPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITextSentimentPredictionResult); + /** + * Creates a new PredictRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns PredictRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPredictRequest): google.cloud.aiplatform.v1.PredictRequest; - /** TextSentimentPredictionResult sentiment. */ - public sentiment: number; + /** + * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. + * @param message PredictRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new TextSentimentPredictionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns TextSentimentPredictionResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITextSentimentPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult; + /** + * Encodes the specified PredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. + * @param message PredictRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified TextSentimentPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult.verify|verify} messages. - * @param message TextSentimentPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITextSentimentPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a PredictRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PredictRequest + * @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.PredictRequest; - /** - * Encodes the specified TextSentimentPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult.verify|verify} messages. - * @param message TextSentimentPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITextSentimentPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a PredictRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PredictRequest + * @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.PredictRequest; - /** - * Decodes a TextSentimentPredictionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TextSentimentPredictionResult - * @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.schema.predict.prediction.TextSentimentPredictionResult; + /** + * Verifies a PredictRequest 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); - /** - * Decodes a TextSentimentPredictionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TextSentimentPredictionResult - * @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.schema.predict.prediction.TextSentimentPredictionResult; + /** + * Creates a PredictRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PredictRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PredictRequest; - /** - * Verifies a TextSentimentPredictionResult 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 plain object from a PredictRequest message. Also converts values to other types if specified. + * @param message PredictRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a TextSentimentPredictionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TextSentimentPredictionResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult; + /** + * Converts this PredictRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a TextSentimentPredictionResult message. Also converts values to other types if specified. - * @param message TextSentimentPredictionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for PredictRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this TextSentimentPredictionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a PredictResponse. */ + interface IPredictResponse { - /** - * Gets the default type url for TextSentimentPredictionResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** PredictResponse predictions */ + predictions?: (google.protobuf.IValue[]|null); - /** Properties of a VideoActionRecognitionPredictionResult. */ - interface IVideoActionRecognitionPredictionResult { + /** PredictResponse deployedModelId */ + deployedModelId?: (string|null); - /** VideoActionRecognitionPredictionResult id */ - id?: (string|null); + /** PredictResponse model */ + model?: (string|null); - /** VideoActionRecognitionPredictionResult displayName */ - displayName?: (string|null); + /** PredictResponse modelVersionId */ + modelVersionId?: (string|null); - /** VideoActionRecognitionPredictionResult timeSegmentStart */ - timeSegmentStart?: (google.protobuf.IDuration|null); + /** PredictResponse modelDisplayName */ + modelDisplayName?: (string|null); + } - /** VideoActionRecognitionPredictionResult timeSegmentEnd */ - timeSegmentEnd?: (google.protobuf.IDuration|null); + /** Represents a PredictResponse. */ + class PredictResponse implements IPredictResponse { - /** VideoActionRecognitionPredictionResult confidence */ - confidence?: (google.protobuf.IFloatValue|null); - } + /** + * Constructs a new PredictResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IPredictResponse); - /** Represents a VideoActionRecognitionPredictionResult. */ - class VideoActionRecognitionPredictionResult implements IVideoActionRecognitionPredictionResult { + /** PredictResponse predictions. */ + public predictions: google.protobuf.IValue[]; - /** - * Constructs a new VideoActionRecognitionPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoActionRecognitionPredictionResult); + /** PredictResponse deployedModelId. */ + public deployedModelId: string; - /** VideoActionRecognitionPredictionResult id. */ - public id: string; + /** PredictResponse model. */ + public model: string; - /** VideoActionRecognitionPredictionResult displayName. */ - public displayName: string; + /** PredictResponse modelVersionId. */ + public modelVersionId: string; - /** VideoActionRecognitionPredictionResult timeSegmentStart. */ - public timeSegmentStart?: (google.protobuf.IDuration|null); + /** PredictResponse modelDisplayName. */ + public modelDisplayName: string; - /** VideoActionRecognitionPredictionResult timeSegmentEnd. */ - public timeSegmentEnd?: (google.protobuf.IDuration|null); + /** + * Creates a new PredictResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns PredictResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IPredictResponse): google.cloud.aiplatform.v1.PredictResponse; - /** VideoActionRecognitionPredictionResult confidence. */ - public confidence?: (google.protobuf.IFloatValue|null); + /** + * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. + * @param message PredictResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new VideoActionRecognitionPredictionResult instance using the specified properties. - * @param [properties] Properties to set - * @returns VideoActionRecognitionPredictionResult instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoActionRecognitionPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult; + /** + * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. + * @param message PredictResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IPredictResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified VideoActionRecognitionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult.verify|verify} messages. - * @param message VideoActionRecognitionPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoActionRecognitionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a PredictResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PredictResponse + * @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.PredictResponse; - /** - * Encodes the specified VideoActionRecognitionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult.verify|verify} messages. - * @param message VideoActionRecognitionPredictionResult message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoActionRecognitionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a PredictResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PredictResponse + * @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.PredictResponse; - /** - * Decodes a VideoActionRecognitionPredictionResult message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VideoActionRecognitionPredictionResult - * @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.schema.predict.prediction.VideoActionRecognitionPredictionResult; + /** + * Verifies a PredictResponse 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); - /** - * Decodes a VideoActionRecognitionPredictionResult message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns VideoActionRecognitionPredictionResult - * @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.schema.predict.prediction.VideoActionRecognitionPredictionResult; + /** + * Creates a PredictResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PredictResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PredictResponse; - /** - * Verifies a VideoActionRecognitionPredictionResult 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 plain object from a PredictResponse message. Also converts values to other types if specified. + * @param message PredictResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.PredictResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a VideoActionRecognitionPredictionResult message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns VideoActionRecognitionPredictionResult - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult; + /** + * Converts this PredictResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a VideoActionRecognitionPredictionResult message. Also converts values to other types if specified. - * @param message VideoActionRecognitionPredictionResult - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for PredictResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this VideoActionRecognitionPredictionResult to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a RawPredictRequest. */ + interface IRawPredictRequest { - /** - * Gets the default type url for VideoActionRecognitionPredictionResult - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** RawPredictRequest endpoint */ + endpoint?: (string|null); - /** Properties of a VideoClassificationPredictionResult. */ - interface IVideoClassificationPredictionResult { + /** RawPredictRequest httpBody */ + httpBody?: (google.api.IHttpBody|null); + } - /** VideoClassificationPredictionResult id */ - id?: (string|null); + /** Represents a RawPredictRequest. */ + class RawPredictRequest implements IRawPredictRequest { - /** VideoClassificationPredictionResult displayName */ - displayName?: (string|null); + /** + * Constructs a new RawPredictRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IRawPredictRequest); - /** VideoClassificationPredictionResult type */ - type?: (string|null); + /** RawPredictRequest endpoint. */ + public endpoint: string; - /** VideoClassificationPredictionResult timeSegmentStart */ - timeSegmentStart?: (google.protobuf.IDuration|null); + /** RawPredictRequest httpBody. */ + public httpBody?: (google.api.IHttpBody|null); - /** VideoClassificationPredictionResult timeSegmentEnd */ - timeSegmentEnd?: (google.protobuf.IDuration|null); + /** + * Creates a new RawPredictRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RawPredictRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IRawPredictRequest): google.cloud.aiplatform.v1.RawPredictRequest; - /** VideoClassificationPredictionResult confidence */ - confidence?: (google.protobuf.IFloatValue|null); - } + /** + * Encodes the specified RawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. + * @param message RawPredictRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a VideoClassificationPredictionResult. */ - class VideoClassificationPredictionResult implements IVideoClassificationPredictionResult { + /** + * Encodes the specified RawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. + * @param message RawPredictRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IRawPredictRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new VideoClassificationPredictionResult. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoClassificationPredictionResult); + /** + * Decodes a RawPredictRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RawPredictRequest + * @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.RawPredictRequest; - /** VideoClassificationPredictionResult id. */ - public id: string; + /** + * Decodes a RawPredictRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RawPredictRequest + * @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.RawPredictRequest; - /** VideoClassificationPredictionResult displayName. */ - public displayName: string; + /** + * Verifies a RawPredictRequest 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); - /** VideoClassificationPredictionResult type. */ - public type: string; + /** + * Creates a RawPredictRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RawPredictRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.RawPredictRequest; - /** VideoClassificationPredictionResult timeSegmentStart. */ - public timeSegmentStart?: (google.protobuf.IDuration|null); + /** + * Creates a plain object from a RawPredictRequest message. Also converts values to other types if specified. + * @param message RawPredictRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.RawPredictRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** VideoClassificationPredictionResult timeSegmentEnd. */ - public timeSegmentEnd?: (google.protobuf.IDuration|null); + /** + * Converts this RawPredictRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** VideoClassificationPredictionResult confidence. */ - public confidence?: (google.protobuf.IFloatValue|null); + /** + * Gets the default type url for RawPredictRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExplainRequest. */ + interface IExplainRequest { + + /** ExplainRequest endpoint */ + endpoint?: (string|null); + + /** ExplainRequest instances */ + instances?: (google.protobuf.IValue[]|null); + + /** ExplainRequest parameters */ + parameters?: (google.protobuf.IValue|null); + + /** ExplainRequest explanationSpecOverride */ + explanationSpecOverride?: (google.cloud.aiplatform.v1.IExplanationSpecOverride|null); + + /** ExplainRequest deployedModelId */ + deployedModelId?: (string|null); + } + + /** Represents an ExplainRequest. */ + class ExplainRequest implements IExplainRequest { + + /** + * Constructs a new ExplainRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IExplainRequest); + + /** ExplainRequest endpoint. */ + public endpoint: string; + + /** ExplainRequest instances. */ + public instances: google.protobuf.IValue[]; + + /** ExplainRequest parameters. */ + public parameters?: (google.protobuf.IValue|null); + + /** ExplainRequest explanationSpecOverride. */ + public explanationSpecOverride?: (google.cloud.aiplatform.v1.IExplanationSpecOverride|null); + + /** ExplainRequest deployedModelId. */ + public deployedModelId: string; + + /** + * Creates a new ExplainRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ExplainRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IExplainRequest): google.cloud.aiplatform.v1.ExplainRequest; + + /** + * Encodes the specified ExplainRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * @param message ExplainRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExplainRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * @param message ExplainRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExplainRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExplainRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExplainRequest + * @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.ExplainRequest; + + /** + * Decodes an ExplainRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExplainRequest + * @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.ExplainRequest; + + /** + * Verifies an ExplainRequest 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 ExplainRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExplainRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExplainRequest; + + /** + * Creates a plain object from an ExplainRequest message. Also converts values to other types if specified. + * @param message ExplainRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExplainRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExplainRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExplainRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an ExplainResponse. */ + interface IExplainResponse { + + /** ExplainResponse explanations */ + explanations?: (google.cloud.aiplatform.v1.IExplanation[]|null); + + /** ExplainResponse deployedModelId */ + deployedModelId?: (string|null); + + /** ExplainResponse predictions */ + predictions?: (google.protobuf.IValue[]|null); + } + + /** Represents an ExplainResponse. */ + class ExplainResponse implements IExplainResponse { + + /** + * Constructs a new ExplainResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IExplainResponse); + + /** ExplainResponse explanations. */ + public explanations: google.cloud.aiplatform.v1.IExplanation[]; + + /** ExplainResponse deployedModelId. */ + public deployedModelId: string; + + /** ExplainResponse predictions. */ + public predictions: google.protobuf.IValue[]; + + /** + * Creates a new ExplainResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ExplainResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IExplainResponse): google.cloud.aiplatform.v1.ExplainResponse; + + /** + * Encodes the specified ExplainResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. + * @param message ExplainResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExplainResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. + * @param message ExplainResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExplainResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExplainResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExplainResponse + * @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.ExplainResponse; + + /** + * Decodes an ExplainResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExplainResponse + * @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.ExplainResponse; + + /** + * Verifies an ExplainResponse 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 ExplainResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExplainResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExplainResponse; + + /** + * Creates a plain object from an ExplainResponse message. Also converts values to other types if specified. + * @param message ExplainResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExplainResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExplainResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExplainResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Namespace schema. */ + namespace schema { + + /** Namespace predict. */ + namespace predict { + + /** Namespace instance. */ + namespace instance { + + /** Properties of an ImageClassificationPredictionInstance. */ + interface IImageClassificationPredictionInstance { + + /** ImageClassificationPredictionInstance content */ + content?: (string|null); + + /** ImageClassificationPredictionInstance mimeType */ + mimeType?: (string|null); + } + + /** Represents an ImageClassificationPredictionInstance. */ + class ImageClassificationPredictionInstance implements IImageClassificationPredictionInstance { /** - * Creates a new VideoClassificationPredictionResult instance using the specified properties. + * Constructs a new ImageClassificationPredictionInstance. * @param [properties] Properties to set - * @returns VideoClassificationPredictionResult instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoClassificationPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult; + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageClassificationPredictionInstance); + + /** ImageClassificationPredictionInstance content. */ + public content: string; + + /** ImageClassificationPredictionInstance mimeType. */ + public mimeType: string; /** - * Encodes the specified VideoClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult.verify|verify} messages. - * @param message VideoClassificationPredictionResult message or plain object to encode + * Creates a new ImageClassificationPredictionInstance instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageClassificationPredictionInstance instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageClassificationPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance; + + /** + * Encodes the specified ImageClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance.verify|verify} messages. + * @param message ImageClassificationPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VideoClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult.verify|verify} messages. - * @param message VideoClassificationPredictionResult message or plain object to encode + * Encodes the specified ImageClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance.verify|verify} messages. + * @param message ImageClassificationPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VideoClassificationPredictionResult message from the specified reader or buffer. + * Decodes an ImageClassificationPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VideoClassificationPredictionResult + * @returns ImageClassificationPredictionInstance * @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.schema.predict.prediction.VideoClassificationPredictionResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance; /** - * Decodes a VideoClassificationPredictionResult message from the specified reader or buffer, length delimited. + * Decodes an ImageClassificationPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VideoClassificationPredictionResult + * @returns ImageClassificationPredictionInstance * @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.schema.predict.prediction.VideoClassificationPredictionResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance; /** - * Verifies a VideoClassificationPredictionResult message. + * Verifies an ImageClassificationPredictionInstance 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 VideoClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. + * Creates an ImageClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VideoClassificationPredictionResult + * @returns ImageClassificationPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance; /** - * Creates a plain object from a VideoClassificationPredictionResult message. Also converts values to other types if specified. - * @param message VideoClassificationPredictionResult + * Creates a plain object from an ImageClassificationPredictionInstance message. Also converts values to other types if specified. + * @param message ImageClassificationPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.ImageClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VideoClassificationPredictionResult to JSON. + * Converts this ImageClassificationPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VideoClassificationPredictionResult + * Gets the default type url for ImageClassificationPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a VideoObjectTrackingPredictionResult. */ - interface IVideoObjectTrackingPredictionResult { - - /** VideoObjectTrackingPredictionResult id */ - id?: (string|null); - - /** VideoObjectTrackingPredictionResult displayName */ - displayName?: (string|null); - - /** VideoObjectTrackingPredictionResult timeSegmentStart */ - timeSegmentStart?: (google.protobuf.IDuration|null); - - /** VideoObjectTrackingPredictionResult timeSegmentEnd */ - timeSegmentEnd?: (google.protobuf.IDuration|null); + /** Properties of an ImageObjectDetectionPredictionInstance. */ + interface IImageObjectDetectionPredictionInstance { - /** VideoObjectTrackingPredictionResult confidence */ - confidence?: (google.protobuf.IFloatValue|null); + /** ImageObjectDetectionPredictionInstance content */ + content?: (string|null); - /** VideoObjectTrackingPredictionResult frames */ - frames?: (google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame[]|null); + /** ImageObjectDetectionPredictionInstance mimeType */ + mimeType?: (string|null); } - /** Represents a VideoObjectTrackingPredictionResult. */ - class VideoObjectTrackingPredictionResult implements IVideoObjectTrackingPredictionResult { + /** Represents an ImageObjectDetectionPredictionInstance. */ + class ImageObjectDetectionPredictionInstance implements IImageObjectDetectionPredictionInstance { /** - * Constructs a new VideoObjectTrackingPredictionResult. + * Constructs a new ImageObjectDetectionPredictionInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoObjectTrackingPredictionResult); - - /** VideoObjectTrackingPredictionResult id. */ - public id: string; - - /** VideoObjectTrackingPredictionResult displayName. */ - public displayName: string; - - /** VideoObjectTrackingPredictionResult timeSegmentStart. */ - public timeSegmentStart?: (google.protobuf.IDuration|null); - - /** VideoObjectTrackingPredictionResult timeSegmentEnd. */ - public timeSegmentEnd?: (google.protobuf.IDuration|null); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageObjectDetectionPredictionInstance); - /** VideoObjectTrackingPredictionResult confidence. */ - public confidence?: (google.protobuf.IFloatValue|null); + /** ImageObjectDetectionPredictionInstance content. */ + public content: string; - /** VideoObjectTrackingPredictionResult frames. */ - public frames: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame[]; + /** ImageObjectDetectionPredictionInstance mimeType. */ + public mimeType: string; /** - * Creates a new VideoObjectTrackingPredictionResult instance using the specified properties. + * Creates a new ImageObjectDetectionPredictionInstance instance using the specified properties. * @param [properties] Properties to set - * @returns VideoObjectTrackingPredictionResult instance + * @returns ImageObjectDetectionPredictionInstance instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoObjectTrackingPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageObjectDetectionPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance; /** - * Encodes the specified VideoObjectTrackingPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.verify|verify} messages. - * @param message VideoObjectTrackingPredictionResult message or plain object to encode + * Encodes the specified ImageObjectDetectionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance.verify|verify} messages. + * @param message ImageObjectDetectionPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoObjectTrackingPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageObjectDetectionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified VideoObjectTrackingPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.verify|verify} messages. - * @param message VideoObjectTrackingPredictionResult message or plain object to encode + * Encodes the specified ImageObjectDetectionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance.verify|verify} messages. + * @param message ImageObjectDetectionPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoObjectTrackingPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageObjectDetectionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a VideoObjectTrackingPredictionResult message from the specified reader or buffer. + * Decodes an ImageObjectDetectionPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns VideoObjectTrackingPredictionResult + * @returns ImageObjectDetectionPredictionInstance * @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.schema.predict.prediction.VideoObjectTrackingPredictionResult; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance; /** - * Decodes a VideoObjectTrackingPredictionResult message from the specified reader or buffer, length delimited. + * Decodes an ImageObjectDetectionPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns VideoObjectTrackingPredictionResult + * @returns ImageObjectDetectionPredictionInstance * @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.schema.predict.prediction.VideoObjectTrackingPredictionResult; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance; /** - * Verifies a VideoObjectTrackingPredictionResult message. + * Verifies an ImageObjectDetectionPredictionInstance 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 VideoObjectTrackingPredictionResult message from a plain object. Also converts values to their respective internal types. + * Creates an ImageObjectDetectionPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns VideoObjectTrackingPredictionResult + * @returns ImageObjectDetectionPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance; /** - * Creates a plain object from a VideoObjectTrackingPredictionResult message. Also converts values to other types if specified. - * @param message VideoObjectTrackingPredictionResult + * Creates a plain object from an ImageObjectDetectionPredictionInstance message. Also converts values to other types if specified. + * @param message ImageObjectDetectionPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.ImageObjectDetectionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this VideoObjectTrackingPredictionResult to JSON. + * Converts this ImageObjectDetectionPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for VideoObjectTrackingPredictionResult + * Gets the default type url for ImageObjectDetectionPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace VideoObjectTrackingPredictionResult { - - /** Properties of a Frame. */ - interface IFrame { - - /** Frame timeOffset */ - timeOffset?: (google.protobuf.IDuration|null); - - /** Frame xMin */ - xMin?: (google.protobuf.IFloatValue|null); - - /** Frame xMax */ - xMax?: (google.protobuf.IFloatValue|null); - - /** Frame yMin */ - yMin?: (google.protobuf.IFloatValue|null); - - /** Frame yMax */ - yMax?: (google.protobuf.IFloatValue|null); - } - - /** Represents a Frame. */ - class Frame implements IFrame { - - /** - * Constructs a new Frame. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame); - - /** Frame timeOffset. */ - public timeOffset?: (google.protobuf.IDuration|null); - - /** Frame xMin. */ - public xMin?: (google.protobuf.IFloatValue|null); - - /** Frame xMax. */ - public xMax?: (google.protobuf.IFloatValue|null); - - /** Frame yMin. */ - public yMin?: (google.protobuf.IFloatValue|null); - - /** Frame yMax. */ - public yMax?: (google.protobuf.IFloatValue|null); - - /** - * Creates a new Frame instance using the specified properties. - * @param [properties] Properties to set - * @returns Frame instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; - - /** - * Encodes the specified Frame message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.verify|verify} messages. - * @param message Frame message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Frame message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.verify|verify} messages. - * @param message Frame message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Frame message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Frame - * @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.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; - - /** - * Decodes a Frame message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Frame - * @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.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; - - /** - * Verifies a Frame 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 Frame message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Frame - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; - - /** - * Creates a plain object from a Frame message. Also converts values to other types if specified. - * @param message Frame - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Frame to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Frame - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } - } - - /** Namespace trainingjob. */ - namespace trainingjob { - - /** Namespace definition. */ - namespace definition { - - /** Properties of an AutoMlImageClassification. */ - interface IAutoMlImageClassification { + /** Properties of an ImageSegmentationPredictionInstance. */ + interface IImageSegmentationPredictionInstance { - /** AutoMlImageClassification inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs|null); + /** ImageSegmentationPredictionInstance content */ + content?: (string|null); - /** AutoMlImageClassification metadata */ - metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata|null); + /** ImageSegmentationPredictionInstance mimeType */ + mimeType?: (string|null); } - /** Represents an AutoMlImageClassification. */ - class AutoMlImageClassification implements IAutoMlImageClassification { + /** Represents an ImageSegmentationPredictionInstance. */ + class ImageSegmentationPredictionInstance implements IImageSegmentationPredictionInstance { /** - * Constructs a new AutoMlImageClassification. + * Constructs a new ImageSegmentationPredictionInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassification); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageSegmentationPredictionInstance); - /** AutoMlImageClassification inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs|null); + /** ImageSegmentationPredictionInstance content. */ + public content: string; - /** AutoMlImageClassification metadata. */ - public metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata|null); + /** ImageSegmentationPredictionInstance mimeType. */ + public mimeType: string; /** - * Creates a new AutoMlImageClassification instance using the specified properties. + * Creates a new ImageSegmentationPredictionInstance instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageClassification instance + * @returns ImageSegmentationPredictionInstance instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassification): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IImageSegmentationPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance; /** - * Encodes the specified AutoMlImageClassification message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification.verify|verify} messages. - * @param message AutoMlImageClassification message or plain object to encode + * Encodes the specified ImageSegmentationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance.verify|verify} messages. + * @param message ImageSegmentationPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageSegmentationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification.verify|verify} messages. - * @param message AutoMlImageClassification message or plain object to encode + * Encodes the specified ImageSegmentationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance.verify|verify} messages. + * @param message ImageSegmentationPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IImageSegmentationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageClassification message from the specified reader or buffer. + * Decodes an ImageSegmentationPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageClassification + * @returns ImageSegmentationPredictionInstance * @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.schema.trainingjob.definition.AutoMlImageClassification; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance; /** - * Decodes an AutoMlImageClassification message from the specified reader or buffer, length delimited. + * Decodes an ImageSegmentationPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageClassification + * @returns ImageSegmentationPredictionInstance * @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.schema.trainingjob.definition.AutoMlImageClassification; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance; /** - * Verifies an AutoMlImageClassification message. + * Verifies an ImageSegmentationPredictionInstance 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 AutoMlImageClassification message from a plain object. Also converts values to their respective internal types. + * Creates an ImageSegmentationPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageClassification + * @returns ImageSegmentationPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance; /** - * Creates a plain object from an AutoMlImageClassification message. Also converts values to other types if specified. - * @param message AutoMlImageClassification + * Creates a plain object from an ImageSegmentationPredictionInstance message. Also converts values to other types if specified. + * @param message ImageSegmentationPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.ImageSegmentationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageClassification to JSON. + * Converts this ImageSegmentationPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageClassification + * Gets the default type url for ImageSegmentationPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlImageClassificationInputs. */ - interface IAutoMlImageClassificationInputs { - - /** AutoMlImageClassificationInputs modelType */ - modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType|null); - - /** AutoMlImageClassificationInputs baseModelId */ - baseModelId?: (string|null); - - /** AutoMlImageClassificationInputs budgetMilliNodeHours */ - budgetMilliNodeHours?: (number|Long|string|null); + /** Properties of a TextClassificationPredictionInstance. */ + interface ITextClassificationPredictionInstance { - /** AutoMlImageClassificationInputs disableEarlyStopping */ - disableEarlyStopping?: (boolean|null); + /** TextClassificationPredictionInstance content */ + content?: (string|null); - /** AutoMlImageClassificationInputs multiLabel */ - multiLabel?: (boolean|null); + /** TextClassificationPredictionInstance mimeType */ + mimeType?: (string|null); } - /** Represents an AutoMlImageClassificationInputs. */ - class AutoMlImageClassificationInputs implements IAutoMlImageClassificationInputs { + /** Represents a TextClassificationPredictionInstance. */ + class TextClassificationPredictionInstance implements ITextClassificationPredictionInstance { /** - * Constructs a new AutoMlImageClassificationInputs. + * Constructs a new TextClassificationPredictionInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs); - - /** AutoMlImageClassificationInputs modelType. */ - public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType); - - /** AutoMlImageClassificationInputs baseModelId. */ - public baseModelId: string; - - /** AutoMlImageClassificationInputs budgetMilliNodeHours. */ - public budgetMilliNodeHours: (number|Long|string); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextClassificationPredictionInstance); - /** AutoMlImageClassificationInputs disableEarlyStopping. */ - public disableEarlyStopping: boolean; + /** TextClassificationPredictionInstance content. */ + public content: string; - /** AutoMlImageClassificationInputs multiLabel. */ - public multiLabel: boolean; + /** TextClassificationPredictionInstance mimeType. */ + public mimeType: string; /** - * Creates a new AutoMlImageClassificationInputs instance using the specified properties. + * Creates a new TextClassificationPredictionInstance instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageClassificationInputs instance + * @returns TextClassificationPredictionInstance instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextClassificationPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance; /** - * Encodes the specified AutoMlImageClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.verify|verify} messages. - * @param message AutoMlImageClassificationInputs message or plain object to encode + * Encodes the specified TextClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance.verify|verify} messages. + * @param message TextClassificationPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.verify|verify} messages. - * @param message AutoMlImageClassificationInputs message or plain object to encode + * Encodes the specified TextClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance.verify|verify} messages. + * @param message TextClassificationPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageClassificationInputs message from the specified reader or buffer. + * Decodes a TextClassificationPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageClassificationInputs + * @returns TextClassificationPredictionInstance * @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.schema.trainingjob.definition.AutoMlImageClassificationInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance; /** - * Decodes an AutoMlImageClassificationInputs message from the specified reader or buffer, length delimited. + * Decodes a TextClassificationPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageClassificationInputs + * @returns TextClassificationPredictionInstance * @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.schema.trainingjob.definition.AutoMlImageClassificationInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance; /** - * Verifies an AutoMlImageClassificationInputs message. + * Verifies a TextClassificationPredictionInstance 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 AutoMlImageClassificationInputs message from a plain object. Also converts values to their respective internal types. + * Creates a TextClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageClassificationInputs + * @returns TextClassificationPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance; /** - * Creates a plain object from an AutoMlImageClassificationInputs message. Also converts values to other types if specified. - * @param message AutoMlImageClassificationInputs + * Creates a plain object from a TextClassificationPredictionInstance message. Also converts values to other types if specified. + * @param message TextClassificationPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.TextClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageClassificationInputs to JSON. + * Converts this TextClassificationPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageClassificationInputs + * Gets the default type url for TextClassificationPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlImageClassificationInputs { - - /** ModelType enum. */ - enum ModelType { - MODEL_TYPE_UNSPECIFIED = 0, - CLOUD = 1, - MOBILE_TF_LOW_LATENCY_1 = 2, - MOBILE_TF_VERSATILE_1 = 3, - MOBILE_TF_HIGH_ACCURACY_1 = 4 - } - } + /** Properties of a TextExtractionPredictionInstance. */ + interface ITextExtractionPredictionInstance { - /** Properties of an AutoMlImageClassificationMetadata. */ - interface IAutoMlImageClassificationMetadata { + /** TextExtractionPredictionInstance content */ + content?: (string|null); - /** AutoMlImageClassificationMetadata costMilliNodeHours */ - costMilliNodeHours?: (number|Long|string|null); + /** TextExtractionPredictionInstance mimeType */ + mimeType?: (string|null); - /** AutoMlImageClassificationMetadata successfulStopReason */ - successfulStopReason?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason|null); + /** TextExtractionPredictionInstance key */ + key?: (string|null); } - /** Represents an AutoMlImageClassificationMetadata. */ - class AutoMlImageClassificationMetadata implements IAutoMlImageClassificationMetadata { + /** Represents a TextExtractionPredictionInstance. */ + class TextExtractionPredictionInstance implements ITextExtractionPredictionInstance { /** - * Constructs a new AutoMlImageClassificationMetadata. + * Constructs a new TextExtractionPredictionInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextExtractionPredictionInstance); - /** AutoMlImageClassificationMetadata costMilliNodeHours. */ - public costMilliNodeHours: (number|Long|string); + /** TextExtractionPredictionInstance content. */ + public content: string; - /** AutoMlImageClassificationMetadata successfulStopReason. */ - public successfulStopReason: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason); + /** TextExtractionPredictionInstance mimeType. */ + public mimeType: string; + + /** TextExtractionPredictionInstance key. */ + public key: string; /** - * Creates a new AutoMlImageClassificationMetadata instance using the specified properties. + * Creates a new TextExtractionPredictionInstance instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageClassificationMetadata instance + * @returns TextExtractionPredictionInstance instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextExtractionPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance; /** - * Encodes the specified AutoMlImageClassificationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.verify|verify} messages. - * @param message AutoMlImageClassificationMetadata message or plain object to encode + * Encodes the specified TextExtractionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance.verify|verify} messages. + * @param message TextExtractionPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextExtractionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageClassificationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.verify|verify} messages. - * @param message AutoMlImageClassificationMetadata message or plain object to encode + * Encodes the specified TextExtractionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance.verify|verify} messages. + * @param message TextExtractionPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextExtractionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageClassificationMetadata message from the specified reader or buffer. + * Decodes a TextExtractionPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageClassificationMetadata + * @returns TextExtractionPredictionInstance * @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.schema.trainingjob.definition.AutoMlImageClassificationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance; /** - * Decodes an AutoMlImageClassificationMetadata message from the specified reader or buffer, length delimited. + * Decodes a TextExtractionPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageClassificationMetadata + * @returns TextExtractionPredictionInstance * @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.schema.trainingjob.definition.AutoMlImageClassificationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance; /** - * Verifies an AutoMlImageClassificationMetadata message. + * Verifies a TextExtractionPredictionInstance 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 AutoMlImageClassificationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a TextExtractionPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageClassificationMetadata + * @returns TextExtractionPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance; /** - * Creates a plain object from an AutoMlImageClassificationMetadata message. Also converts values to other types if specified. - * @param message AutoMlImageClassificationMetadata + * Creates a plain object from a TextExtractionPredictionInstance message. Also converts values to other types if specified. + * @param message TextExtractionPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.TextExtractionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageClassificationMetadata to JSON. + * Converts this TextExtractionPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageClassificationMetadata + * Gets the default type url for TextExtractionPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlImageClassificationMetadata { + /** Properties of a TextSentimentPredictionInstance. */ + interface ITextSentimentPredictionInstance { - /** SuccessfulStopReason enum. */ - enum SuccessfulStopReason { - SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0, - BUDGET_REACHED = 1, - MODEL_CONVERGED = 2 - } + /** TextSentimentPredictionInstance content */ + content?: (string|null); + + /** TextSentimentPredictionInstance mimeType */ + mimeType?: (string|null); } - /** Properties of an AutoMlImageObjectDetection. */ - interface IAutoMlImageObjectDetection { - - /** AutoMlImageObjectDetection inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs|null); - - /** AutoMlImageObjectDetection metadata */ - metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata|null); - } - - /** Represents an AutoMlImageObjectDetection. */ - class AutoMlImageObjectDetection implements IAutoMlImageObjectDetection { + /** Represents a TextSentimentPredictionInstance. */ + class TextSentimentPredictionInstance implements ITextSentimentPredictionInstance { /** - * Constructs a new AutoMlImageObjectDetection. + * Constructs a new TextSentimentPredictionInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetection); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextSentimentPredictionInstance); - /** AutoMlImageObjectDetection inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs|null); + /** TextSentimentPredictionInstance content. */ + public content: string; - /** AutoMlImageObjectDetection metadata. */ - public metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata|null); + /** TextSentimentPredictionInstance mimeType. */ + public mimeType: string; /** - * Creates a new AutoMlImageObjectDetection instance using the specified properties. + * Creates a new TextSentimentPredictionInstance instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageObjectDetection instance + * @returns TextSentimentPredictionInstance instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetection): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.ITextSentimentPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance; /** - * Encodes the specified AutoMlImageObjectDetection message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection.verify|verify} messages. - * @param message AutoMlImageObjectDetection message or plain object to encode + * Encodes the specified TextSentimentPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance.verify|verify} messages. + * @param message TextSentimentPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetection, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextSentimentPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageObjectDetection message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection.verify|verify} messages. - * @param message AutoMlImageObjectDetection message or plain object to encode + * Encodes the specified TextSentimentPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance.verify|verify} messages. + * @param message TextSentimentPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetection, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.ITextSentimentPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageObjectDetection message from the specified reader or buffer. + * Decodes a TextSentimentPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageObjectDetection + * @returns TextSentimentPredictionInstance * @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.schema.trainingjob.definition.AutoMlImageObjectDetection; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance; /** - * Decodes an AutoMlImageObjectDetection message from the specified reader or buffer, length delimited. + * Decodes a TextSentimentPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageObjectDetection + * @returns TextSentimentPredictionInstance * @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.schema.trainingjob.definition.AutoMlImageObjectDetection; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance; /** - * Verifies an AutoMlImageObjectDetection message. + * Verifies a TextSentimentPredictionInstance 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 AutoMlImageObjectDetection message from a plain object. Also converts values to their respective internal types. + * Creates a TextSentimentPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageObjectDetection + * @returns TextSentimentPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance; /** - * Creates a plain object from an AutoMlImageObjectDetection message. Also converts values to other types if specified. - * @param message AutoMlImageObjectDetection + * Creates a plain object from a TextSentimentPredictionInstance message. Also converts values to other types if specified. + * @param message TextSentimentPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.TextSentimentPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageObjectDetection to JSON. + * Converts this TextSentimentPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageObjectDetection + * Gets the default type url for TextSentimentPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlImageObjectDetectionInputs. */ - interface IAutoMlImageObjectDetectionInputs { + /** Properties of a VideoActionRecognitionPredictionInstance. */ + interface IVideoActionRecognitionPredictionInstance { - /** AutoMlImageObjectDetectionInputs modelType */ - modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType|null); + /** VideoActionRecognitionPredictionInstance content */ + content?: (string|null); - /** AutoMlImageObjectDetectionInputs budgetMilliNodeHours */ - budgetMilliNodeHours?: (number|Long|string|null); + /** VideoActionRecognitionPredictionInstance mimeType */ + mimeType?: (string|null); - /** AutoMlImageObjectDetectionInputs disableEarlyStopping */ - disableEarlyStopping?: (boolean|null); + /** VideoActionRecognitionPredictionInstance timeSegmentStart */ + timeSegmentStart?: (string|null); + + /** VideoActionRecognitionPredictionInstance timeSegmentEnd */ + timeSegmentEnd?: (string|null); } - /** Represents an AutoMlImageObjectDetectionInputs. */ - class AutoMlImageObjectDetectionInputs implements IAutoMlImageObjectDetectionInputs { + /** Represents a VideoActionRecognitionPredictionInstance. */ + class VideoActionRecognitionPredictionInstance implements IVideoActionRecognitionPredictionInstance { /** - * Constructs a new AutoMlImageObjectDetectionInputs. + * Constructs a new VideoActionRecognitionPredictionInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoActionRecognitionPredictionInstance); - /** AutoMlImageObjectDetectionInputs modelType. */ - public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType); + /** VideoActionRecognitionPredictionInstance content. */ + public content: string; - /** AutoMlImageObjectDetectionInputs budgetMilliNodeHours. */ - public budgetMilliNodeHours: (number|Long|string); + /** VideoActionRecognitionPredictionInstance mimeType. */ + public mimeType: string; - /** AutoMlImageObjectDetectionInputs disableEarlyStopping. */ - public disableEarlyStopping: boolean; + /** VideoActionRecognitionPredictionInstance timeSegmentStart. */ + public timeSegmentStart: string; + + /** VideoActionRecognitionPredictionInstance timeSegmentEnd. */ + public timeSegmentEnd: string; /** - * Creates a new AutoMlImageObjectDetectionInputs instance using the specified properties. + * Creates a new VideoActionRecognitionPredictionInstance instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageObjectDetectionInputs instance + * @returns VideoActionRecognitionPredictionInstance instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoActionRecognitionPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance; /** - * Encodes the specified AutoMlImageObjectDetectionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.verify|verify} messages. - * @param message AutoMlImageObjectDetectionInputs message or plain object to encode + * Encodes the specified VideoActionRecognitionPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance.verify|verify} messages. + * @param message VideoActionRecognitionPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoActionRecognitionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageObjectDetectionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.verify|verify} messages. - * @param message AutoMlImageObjectDetectionInputs message or plain object to encode + * Encodes the specified VideoActionRecognitionPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance.verify|verify} messages. + * @param message VideoActionRecognitionPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoActionRecognitionPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageObjectDetectionInputs message from the specified reader or buffer. + * Decodes a VideoActionRecognitionPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageObjectDetectionInputs + * @returns VideoActionRecognitionPredictionInstance * @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.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance; /** - * Decodes an AutoMlImageObjectDetectionInputs message from the specified reader or buffer, length delimited. + * Decodes a VideoActionRecognitionPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageObjectDetectionInputs + * @returns VideoActionRecognitionPredictionInstance * @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.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance; /** - * Verifies an AutoMlImageObjectDetectionInputs message. + * Verifies a VideoActionRecognitionPredictionInstance 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 AutoMlImageObjectDetectionInputs message from a plain object. Also converts values to their respective internal types. + * Creates a VideoActionRecognitionPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageObjectDetectionInputs + * @returns VideoActionRecognitionPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance; /** - * Creates a plain object from an AutoMlImageObjectDetectionInputs message. Also converts values to other types if specified. - * @param message AutoMlImageObjectDetectionInputs + * Creates a plain object from a VideoActionRecognitionPredictionInstance message. Also converts values to other types if specified. + * @param message VideoActionRecognitionPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.VideoActionRecognitionPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageObjectDetectionInputs to JSON. + * Converts this VideoActionRecognitionPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageObjectDetectionInputs + * Gets the default type url for VideoActionRecognitionPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlImageObjectDetectionInputs { + /** Properties of a VideoClassificationPredictionInstance. */ + interface IVideoClassificationPredictionInstance { - /** ModelType enum. */ - enum ModelType { - MODEL_TYPE_UNSPECIFIED = 0, - CLOUD_HIGH_ACCURACY_1 = 1, - CLOUD_LOW_LATENCY_1 = 2, - MOBILE_TF_LOW_LATENCY_1 = 3, - MOBILE_TF_VERSATILE_1 = 4, - MOBILE_TF_HIGH_ACCURACY_1 = 5 - } - } + /** VideoClassificationPredictionInstance content */ + content?: (string|null); - /** Properties of an AutoMlImageObjectDetectionMetadata. */ - interface IAutoMlImageObjectDetectionMetadata { + /** VideoClassificationPredictionInstance mimeType */ + mimeType?: (string|null); - /** AutoMlImageObjectDetectionMetadata costMilliNodeHours */ - costMilliNodeHours?: (number|Long|string|null); + /** VideoClassificationPredictionInstance timeSegmentStart */ + timeSegmentStart?: (string|null); - /** AutoMlImageObjectDetectionMetadata successfulStopReason */ - successfulStopReason?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason|null); + /** VideoClassificationPredictionInstance timeSegmentEnd */ + timeSegmentEnd?: (string|null); } - /** Represents an AutoMlImageObjectDetectionMetadata. */ - class AutoMlImageObjectDetectionMetadata implements IAutoMlImageObjectDetectionMetadata { + /** Represents a VideoClassificationPredictionInstance. */ + class VideoClassificationPredictionInstance implements IVideoClassificationPredictionInstance { /** - * Constructs a new AutoMlImageObjectDetectionMetadata. + * Constructs a new VideoClassificationPredictionInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoClassificationPredictionInstance); - /** AutoMlImageObjectDetectionMetadata costMilliNodeHours. */ - public costMilliNodeHours: (number|Long|string); + /** VideoClassificationPredictionInstance content. */ + public content: string; - /** AutoMlImageObjectDetectionMetadata successfulStopReason. */ - public successfulStopReason: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason); + /** VideoClassificationPredictionInstance mimeType. */ + public mimeType: string; + + /** VideoClassificationPredictionInstance timeSegmentStart. */ + public timeSegmentStart: string; + + /** VideoClassificationPredictionInstance timeSegmentEnd. */ + public timeSegmentEnd: string; /** - * Creates a new AutoMlImageObjectDetectionMetadata instance using the specified properties. + * Creates a new VideoClassificationPredictionInstance instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageObjectDetectionMetadata instance + * @returns VideoClassificationPredictionInstance instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoClassificationPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance; /** - * Encodes the specified AutoMlImageObjectDetectionMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.verify|verify} messages. - * @param message AutoMlImageObjectDetectionMetadata message or plain object to encode + * Encodes the specified VideoClassificationPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance.verify|verify} messages. + * @param message VideoClassificationPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageObjectDetectionMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.verify|verify} messages. - * @param message AutoMlImageObjectDetectionMetadata message or plain object to encode + * Encodes the specified VideoClassificationPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance.verify|verify} messages. + * @param message VideoClassificationPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoClassificationPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageObjectDetectionMetadata message from the specified reader or buffer. + * Decodes a VideoClassificationPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageObjectDetectionMetadata + * @returns VideoClassificationPredictionInstance * @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.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance; /** - * Decodes an AutoMlImageObjectDetectionMetadata message from the specified reader or buffer, length delimited. + * Decodes a VideoClassificationPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageObjectDetectionMetadata + * @returns VideoClassificationPredictionInstance * @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.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance; /** - * Verifies an AutoMlImageObjectDetectionMetadata message. + * Verifies a VideoClassificationPredictionInstance 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 AutoMlImageObjectDetectionMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a VideoClassificationPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageObjectDetectionMetadata + * @returns VideoClassificationPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance; /** - * Creates a plain object from an AutoMlImageObjectDetectionMetadata message. Also converts values to other types if specified. - * @param message AutoMlImageObjectDetectionMetadata + * Creates a plain object from a VideoClassificationPredictionInstance message. Also converts values to other types if specified. + * @param message VideoClassificationPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.VideoClassificationPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageObjectDetectionMetadata to JSON. + * Converts this VideoClassificationPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageObjectDetectionMetadata + * Gets the default type url for VideoClassificationPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlImageObjectDetectionMetadata { + /** Properties of a VideoObjectTrackingPredictionInstance. */ + interface IVideoObjectTrackingPredictionInstance { - /** SuccessfulStopReason enum. */ - enum SuccessfulStopReason { - SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0, - BUDGET_REACHED = 1, - MODEL_CONVERGED = 2 - } - } + /** VideoObjectTrackingPredictionInstance content */ + content?: (string|null); - /** Properties of an AutoMlImageSegmentation. */ - interface IAutoMlImageSegmentation { + /** VideoObjectTrackingPredictionInstance mimeType */ + mimeType?: (string|null); - /** AutoMlImageSegmentation inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs|null); + /** VideoObjectTrackingPredictionInstance timeSegmentStart */ + timeSegmentStart?: (string|null); - /** AutoMlImageSegmentation metadata */ - metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata|null); + /** VideoObjectTrackingPredictionInstance timeSegmentEnd */ + timeSegmentEnd?: (string|null); } - /** Represents an AutoMlImageSegmentation. */ - class AutoMlImageSegmentation implements IAutoMlImageSegmentation { + /** Represents a VideoObjectTrackingPredictionInstance. */ + class VideoObjectTrackingPredictionInstance implements IVideoObjectTrackingPredictionInstance { /** - * Constructs a new AutoMlImageSegmentation. + * Constructs a new VideoObjectTrackingPredictionInstance. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentation); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoObjectTrackingPredictionInstance); - /** AutoMlImageSegmentation inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs|null); + /** VideoObjectTrackingPredictionInstance content. */ + public content: string; - /** AutoMlImageSegmentation metadata. */ - public metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata|null); + /** VideoObjectTrackingPredictionInstance mimeType. */ + public mimeType: string; + + /** VideoObjectTrackingPredictionInstance timeSegmentStart. */ + public timeSegmentStart: string; + + /** VideoObjectTrackingPredictionInstance timeSegmentEnd. */ + public timeSegmentEnd: string; /** - * Creates a new AutoMlImageSegmentation instance using the specified properties. + * Creates a new VideoObjectTrackingPredictionInstance instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageSegmentation instance + * @returns VideoObjectTrackingPredictionInstance instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.instance.IVideoObjectTrackingPredictionInstance): google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance; /** - * Encodes the specified AutoMlImageSegmentation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation.verify|verify} messages. - * @param message AutoMlImageSegmentation message or plain object to encode + * Encodes the specified VideoObjectTrackingPredictionInstance message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance.verify|verify} messages. + * @param message VideoObjectTrackingPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoObjectTrackingPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageSegmentation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation.verify|verify} messages. - * @param message AutoMlImageSegmentation message or plain object to encode + * Encodes the specified VideoObjectTrackingPredictionInstance message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance.verify|verify} messages. + * @param message VideoObjectTrackingPredictionInstance message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.instance.IVideoObjectTrackingPredictionInstance, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageSegmentation message from the specified reader or buffer. + * Decodes a VideoObjectTrackingPredictionInstance message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageSegmentation + * @returns VideoObjectTrackingPredictionInstance * @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.schema.trainingjob.definition.AutoMlImageSegmentation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance; /** - * Decodes an AutoMlImageSegmentation message from the specified reader or buffer, length delimited. + * Decodes a VideoObjectTrackingPredictionInstance message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageSegmentation + * @returns VideoObjectTrackingPredictionInstance * @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.schema.trainingjob.definition.AutoMlImageSegmentation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance; /** - * Verifies an AutoMlImageSegmentation message. + * Verifies a VideoObjectTrackingPredictionInstance 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 AutoMlImageSegmentation message from a plain object. Also converts values to their respective internal types. + * Creates a VideoObjectTrackingPredictionInstance message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageSegmentation + * @returns VideoObjectTrackingPredictionInstance */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance; /** - * Creates a plain object from an AutoMlImageSegmentation message. Also converts values to other types if specified. - * @param message AutoMlImageSegmentation + * Creates a plain object from a VideoObjectTrackingPredictionInstance message. Also converts values to other types if specified. + * @param message VideoObjectTrackingPredictionInstance * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.instance.VideoObjectTrackingPredictionInstance, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageSegmentation to JSON. + * Converts this VideoObjectTrackingPredictionInstance to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageSegmentation + * Gets the default type url for VideoObjectTrackingPredictionInstance * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - /** Properties of an AutoMlImageSegmentationInputs. */ - interface IAutoMlImageSegmentationInputs { + /** Namespace params. */ + namespace params { - /** AutoMlImageSegmentationInputs modelType */ - modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType|null); + /** Properties of an ImageClassificationPredictionParams. */ + interface IImageClassificationPredictionParams { - /** AutoMlImageSegmentationInputs budgetMilliNodeHours */ - budgetMilliNodeHours?: (number|Long|string|null); + /** ImageClassificationPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); - /** AutoMlImageSegmentationInputs baseModelId */ - baseModelId?: (string|null); + /** ImageClassificationPredictionParams maxPredictions */ + maxPredictions?: (number|null); } - /** Represents an AutoMlImageSegmentationInputs. */ - class AutoMlImageSegmentationInputs implements IAutoMlImageSegmentationInputs { + /** Represents an ImageClassificationPredictionParams. */ + class ImageClassificationPredictionParams implements IImageClassificationPredictionParams { /** - * Constructs a new AutoMlImageSegmentationInputs. + * Constructs a new ImageClassificationPredictionParams. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs); - - /** AutoMlImageSegmentationInputs modelType. */ - public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageClassificationPredictionParams); - /** AutoMlImageSegmentationInputs budgetMilliNodeHours. */ - public budgetMilliNodeHours: (number|Long|string); + /** ImageClassificationPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; - /** AutoMlImageSegmentationInputs baseModelId. */ - public baseModelId: string; + /** ImageClassificationPredictionParams maxPredictions. */ + public maxPredictions: number; /** - * Creates a new AutoMlImageSegmentationInputs instance using the specified properties. + * Creates a new ImageClassificationPredictionParams instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageSegmentationInputs instance + * @returns ImageClassificationPredictionParams instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageClassificationPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams; /** - * Encodes the specified AutoMlImageSegmentationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.verify|verify} messages. - * @param message AutoMlImageSegmentationInputs message or plain object to encode + * Encodes the specified ImageClassificationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams.verify|verify} messages. + * @param message ImageClassificationPredictionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IImageClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageSegmentationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.verify|verify} messages. - * @param message AutoMlImageSegmentationInputs message or plain object to encode + * Encodes the specified ImageClassificationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams.verify|verify} messages. + * @param message ImageClassificationPredictionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IImageClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageSegmentationInputs message from the specified reader or buffer. + * Decodes an ImageClassificationPredictionParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageSegmentationInputs + * @returns ImageClassificationPredictionParams * @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.schema.trainingjob.definition.AutoMlImageSegmentationInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams; /** - * Decodes an AutoMlImageSegmentationInputs message from the specified reader or buffer, length delimited. + * Decodes an ImageClassificationPredictionParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageSegmentationInputs + * @returns ImageClassificationPredictionParams * @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.schema.trainingjob.definition.AutoMlImageSegmentationInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams; /** - * Verifies an AutoMlImageSegmentationInputs message. + * Verifies an ImageClassificationPredictionParams 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 AutoMlImageSegmentationInputs message from a plain object. Also converts values to their respective internal types. + * Creates an ImageClassificationPredictionParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageSegmentationInputs + * @returns ImageClassificationPredictionParams */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams; /** - * Creates a plain object from an AutoMlImageSegmentationInputs message. Also converts values to other types if specified. - * @param message AutoMlImageSegmentationInputs + * Creates a plain object from an ImageClassificationPredictionParams message. Also converts values to other types if specified. + * @param message ImageClassificationPredictionParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.ImageClassificationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageSegmentationInputs to JSON. + * Converts this ImageClassificationPredictionParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageSegmentationInputs + * Gets the default type url for ImageClassificationPredictionParams * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlImageSegmentationInputs { - - /** ModelType enum. */ - enum ModelType { - MODEL_TYPE_UNSPECIFIED = 0, - CLOUD_HIGH_ACCURACY_1 = 1, - CLOUD_LOW_ACCURACY_1 = 2, - MOBILE_TF_LOW_LATENCY_1 = 3 - } - } - - /** Properties of an AutoMlImageSegmentationMetadata. */ - interface IAutoMlImageSegmentationMetadata { + /** Properties of an ImageObjectDetectionPredictionParams. */ + interface IImageObjectDetectionPredictionParams { - /** AutoMlImageSegmentationMetadata costMilliNodeHours */ - costMilliNodeHours?: (number|Long|string|null); + /** ImageObjectDetectionPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); - /** AutoMlImageSegmentationMetadata successfulStopReason */ - successfulStopReason?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason|null); + /** ImageObjectDetectionPredictionParams maxPredictions */ + maxPredictions?: (number|null); } - /** Represents an AutoMlImageSegmentationMetadata. */ - class AutoMlImageSegmentationMetadata implements IAutoMlImageSegmentationMetadata { + /** Represents an ImageObjectDetectionPredictionParams. */ + class ImageObjectDetectionPredictionParams implements IImageObjectDetectionPredictionParams { /** - * Constructs a new AutoMlImageSegmentationMetadata. + * Constructs a new ImageObjectDetectionPredictionParams. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageObjectDetectionPredictionParams); - /** AutoMlImageSegmentationMetadata costMilliNodeHours. */ - public costMilliNodeHours: (number|Long|string); + /** ImageObjectDetectionPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; - /** AutoMlImageSegmentationMetadata successfulStopReason. */ - public successfulStopReason: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason); + /** ImageObjectDetectionPredictionParams maxPredictions. */ + public maxPredictions: number; /** - * Creates a new AutoMlImageSegmentationMetadata instance using the specified properties. + * Creates a new ImageObjectDetectionPredictionParams instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlImageSegmentationMetadata instance + * @returns ImageObjectDetectionPredictionParams instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageObjectDetectionPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams; /** - * Encodes the specified AutoMlImageSegmentationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.verify|verify} messages. - * @param message AutoMlImageSegmentationMetadata message or plain object to encode + * Encodes the specified ImageObjectDetectionPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams.verify|verify} messages. + * @param message ImageObjectDetectionPredictionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IImageObjectDetectionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlImageSegmentationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.verify|verify} messages. - * @param message AutoMlImageSegmentationMetadata message or plain object to encode + * Encodes the specified ImageObjectDetectionPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams.verify|verify} messages. + * @param message ImageObjectDetectionPredictionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IImageObjectDetectionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlImageSegmentationMetadata message from the specified reader or buffer. + * Decodes an ImageObjectDetectionPredictionParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlImageSegmentationMetadata + * @returns ImageObjectDetectionPredictionParams * @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.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams; /** - * Decodes an AutoMlImageSegmentationMetadata message from the specified reader or buffer, length delimited. + * Decodes an ImageObjectDetectionPredictionParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlImageSegmentationMetadata + * @returns ImageObjectDetectionPredictionParams * @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.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams; /** - * Verifies an AutoMlImageSegmentationMetadata message. + * Verifies an ImageObjectDetectionPredictionParams 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 AutoMlImageSegmentationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an ImageObjectDetectionPredictionParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlImageSegmentationMetadata + * @returns ImageObjectDetectionPredictionParams */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams; /** - * Creates a plain object from an AutoMlImageSegmentationMetadata message. Also converts values to other types if specified. - * @param message AutoMlImageSegmentationMetadata + * Creates a plain object from an ImageObjectDetectionPredictionParams message. Also converts values to other types if specified. + * @param message ImageObjectDetectionPredictionParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.ImageObjectDetectionPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlImageSegmentationMetadata to JSON. + * Converts this ImageObjectDetectionPredictionParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlImageSegmentationMetadata + * Gets the default type url for ImageObjectDetectionPredictionParams * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlImageSegmentationMetadata { - - /** SuccessfulStopReason enum. */ - enum SuccessfulStopReason { - SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0, - BUDGET_REACHED = 1, - MODEL_CONVERGED = 2 - } - } - - /** Properties of an AutoMlTables. */ - interface IAutoMlTables { - - /** AutoMlTables inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs|null); + /** Properties of an ImageSegmentationPredictionParams. */ + interface IImageSegmentationPredictionParams { - /** AutoMlTables metadata */ - metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata|null); + /** ImageSegmentationPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); } - /** Represents an AutoMlTables. */ - class AutoMlTables implements IAutoMlTables { + /** Represents an ImageSegmentationPredictionParams. */ + class ImageSegmentationPredictionParams implements IImageSegmentationPredictionParams { /** - * Constructs a new AutoMlTables. + * Constructs a new ImageSegmentationPredictionParams. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTables); - - /** AutoMlTables inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs|null); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageSegmentationPredictionParams); - /** AutoMlTables metadata. */ - public metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata|null); + /** ImageSegmentationPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; /** - * Creates a new AutoMlTables instance using the specified properties. + * Creates a new ImageSegmentationPredictionParams instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlTables instance + * @returns ImageSegmentationPredictionParams instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTables): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IImageSegmentationPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams; /** - * Encodes the specified AutoMlTables message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables.verify|verify} messages. - * @param message AutoMlTables message or plain object to encode + * Encodes the specified ImageSegmentationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams.verify|verify} messages. + * @param message ImageSegmentationPredictionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTables, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IImageSegmentationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTables message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables.verify|verify} messages. - * @param message AutoMlTables message or plain object to encode + * Encodes the specified ImageSegmentationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams.verify|verify} messages. + * @param message ImageSegmentationPredictionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTables, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IImageSegmentationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTables message from the specified reader or buffer. + * Decodes an ImageSegmentationPredictionParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTables + * @returns ImageSegmentationPredictionParams * @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.schema.trainingjob.definition.AutoMlTables; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams; /** - * Decodes an AutoMlTables message from the specified reader or buffer, length delimited. + * Decodes an ImageSegmentationPredictionParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTables + * @returns ImageSegmentationPredictionParams * @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.schema.trainingjob.definition.AutoMlTables; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams; /** - * Verifies an AutoMlTables message. + * Verifies an ImageSegmentationPredictionParams 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 AutoMlTables message from a plain object. Also converts values to their respective internal types. + * Creates an ImageSegmentationPredictionParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTables + * @returns ImageSegmentationPredictionParams */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams; /** - * Creates a plain object from an AutoMlTables message. Also converts values to other types if specified. - * @param message AutoMlTables + * Creates a plain object from an ImageSegmentationPredictionParams message. Also converts values to other types if specified. + * @param message ImageSegmentationPredictionParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.ImageSegmentationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTables to JSON. + * Converts this ImageSegmentationPredictionParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTables + * Gets the default type url for ImageSegmentationPredictionParams * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlTablesInputs. */ - interface IAutoMlTablesInputs { + /** Properties of a VideoActionRecognitionPredictionParams. */ + interface IVideoActionRecognitionPredictionParams { - /** AutoMlTablesInputs optimizationObjectiveRecallValue */ - optimizationObjectiveRecallValue?: (number|null); + /** VideoActionRecognitionPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); - /** AutoMlTablesInputs optimizationObjectivePrecisionValue */ - optimizationObjectivePrecisionValue?: (number|null); + /** VideoActionRecognitionPredictionParams maxPredictions */ + maxPredictions?: (number|null); + } - /** AutoMlTablesInputs predictionType */ - predictionType?: (string|null); + /** Represents a VideoActionRecognitionPredictionParams. */ + class VideoActionRecognitionPredictionParams implements IVideoActionRecognitionPredictionParams { - /** AutoMlTablesInputs targetColumn */ - targetColumn?: (string|null); + /** + * Constructs a new VideoActionRecognitionPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoActionRecognitionPredictionParams); - /** AutoMlTablesInputs transformations */ - transformations?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation[]|null); + /** VideoActionRecognitionPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; - /** AutoMlTablesInputs optimizationObjective */ - optimizationObjective?: (string|null); + /** VideoActionRecognitionPredictionParams maxPredictions. */ + public maxPredictions: number; - /** AutoMlTablesInputs trainBudgetMilliNodeHours */ - trainBudgetMilliNodeHours?: (number|Long|string|null); + /** + * Creates a new VideoActionRecognitionPredictionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoActionRecognitionPredictionParams instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoActionRecognitionPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams; - /** AutoMlTablesInputs disableEarlyStopping */ - disableEarlyStopping?: (boolean|null); + /** + * Encodes the specified VideoActionRecognitionPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams.verify|verify} messages. + * @param message VideoActionRecognitionPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoActionRecognitionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** AutoMlTablesInputs weightColumnName */ - weightColumnName?: (string|null); + /** + * Encodes the specified VideoActionRecognitionPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams.verify|verify} messages. + * @param message VideoActionRecognitionPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoActionRecognitionPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** AutoMlTablesInputs exportEvaluatedDataItemsConfig */ - exportEvaluatedDataItemsConfig?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null); + /** + * Decodes a VideoActionRecognitionPredictionParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoActionRecognitionPredictionParams + * @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.schema.predict.params.VideoActionRecognitionPredictionParams; - /** AutoMlTablesInputs additionalExperiments */ - additionalExperiments?: (string[]|null); - } + /** + * Decodes a VideoActionRecognitionPredictionParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoActionRecognitionPredictionParams + * @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.schema.predict.params.VideoActionRecognitionPredictionParams; - /** Represents an AutoMlTablesInputs. */ - class AutoMlTablesInputs implements IAutoMlTablesInputs { + /** + * Verifies a VideoActionRecognitionPredictionParams 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); /** - * Constructs a new AutoMlTablesInputs. - * @param [properties] Properties to set + * Creates a VideoActionRecognitionPredictionParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoActionRecognitionPredictionParams */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs); + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams; - /** AutoMlTablesInputs optimizationObjectiveRecallValue. */ - public optimizationObjectiveRecallValue?: (number|null); + /** + * Creates a plain object from a VideoActionRecognitionPredictionParams message. Also converts values to other types if specified. + * @param message VideoActionRecognitionPredictionParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.VideoActionRecognitionPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** AutoMlTablesInputs optimizationObjectivePrecisionValue. */ - public optimizationObjectivePrecisionValue?: (number|null); + /** + * Converts this VideoActionRecognitionPredictionParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** AutoMlTablesInputs predictionType. */ - public predictionType: string; + /** + * Gets the default type url for VideoActionRecognitionPredictionParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** AutoMlTablesInputs targetColumn. */ - public targetColumn: string; + /** Properties of a VideoClassificationPredictionParams. */ + interface IVideoClassificationPredictionParams { - /** AutoMlTablesInputs transformations. */ - public transformations: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation[]; + /** VideoClassificationPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); - /** AutoMlTablesInputs optimizationObjective. */ - public optimizationObjective: string; + /** VideoClassificationPredictionParams maxPredictions */ + maxPredictions?: (number|null); - /** AutoMlTablesInputs trainBudgetMilliNodeHours. */ - public trainBudgetMilliNodeHours: (number|Long|string); + /** VideoClassificationPredictionParams segmentClassification */ + segmentClassification?: (boolean|null); - /** AutoMlTablesInputs disableEarlyStopping. */ - public disableEarlyStopping: boolean; + /** VideoClassificationPredictionParams shotClassification */ + shotClassification?: (boolean|null); - /** AutoMlTablesInputs weightColumnName. */ - public weightColumnName: string; + /** VideoClassificationPredictionParams oneSecIntervalClassification */ + oneSecIntervalClassification?: (boolean|null); + } - /** AutoMlTablesInputs exportEvaluatedDataItemsConfig. */ - public exportEvaluatedDataItemsConfig?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null); + /** Represents a VideoClassificationPredictionParams. */ + class VideoClassificationPredictionParams implements IVideoClassificationPredictionParams { - /** AutoMlTablesInputs additionalExperiments. */ - public additionalExperiments: string[]; + /** + * Constructs a new VideoClassificationPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoClassificationPredictionParams); - /** AutoMlTablesInputs additionalOptimizationObjectiveConfig. */ - public additionalOptimizationObjectiveConfig?: ("optimizationObjectiveRecallValue"|"optimizationObjectivePrecisionValue"); + /** VideoClassificationPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; + + /** VideoClassificationPredictionParams maxPredictions. */ + public maxPredictions: number; + + /** VideoClassificationPredictionParams segmentClassification. */ + public segmentClassification: boolean; + + /** VideoClassificationPredictionParams shotClassification. */ + public shotClassification: boolean; + + /** VideoClassificationPredictionParams oneSecIntervalClassification. */ + public oneSecIntervalClassification: boolean; /** - * Creates a new AutoMlTablesInputs instance using the specified properties. + * Creates a new VideoClassificationPredictionParams instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlTablesInputs instance + * @returns VideoClassificationPredictionParams instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoClassificationPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams; /** - * Encodes the specified AutoMlTablesInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.verify|verify} messages. - * @param message AutoMlTablesInputs message or plain object to encode + * Encodes the specified VideoClassificationPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams.verify|verify} messages. + * @param message VideoClassificationPredictionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTablesInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.verify|verify} messages. - * @param message AutoMlTablesInputs message or plain object to encode + * Encodes the specified VideoClassificationPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams.verify|verify} messages. + * @param message VideoClassificationPredictionParams message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoClassificationPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTablesInputs message from the specified reader or buffer. + * Decodes a VideoClassificationPredictionParams message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTablesInputs + * @returns VideoClassificationPredictionParams * @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.schema.trainingjob.definition.AutoMlTablesInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams; /** - * Decodes an AutoMlTablesInputs message from the specified reader or buffer, length delimited. + * Decodes a VideoClassificationPredictionParams message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTablesInputs + * @returns VideoClassificationPredictionParams * @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.schema.trainingjob.definition.AutoMlTablesInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams; /** - * Verifies an AutoMlTablesInputs message. + * Verifies a VideoClassificationPredictionParams 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 AutoMlTablesInputs message from a plain object. Also converts values to their respective internal types. + * Creates a VideoClassificationPredictionParams message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTablesInputs + * @returns VideoClassificationPredictionParams */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams; /** - * Creates a plain object from an AutoMlTablesInputs message. Also converts values to other types if specified. - * @param message AutoMlTablesInputs + * Creates a plain object from a VideoClassificationPredictionParams message. Also converts values to other types if specified. + * @param message VideoClassificationPredictionParams * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.VideoClassificationPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTablesInputs to JSON. + * Converts this VideoClassificationPredictionParams to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTablesInputs + * Gets the default type url for VideoClassificationPredictionParams * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlTablesInputs { + /** Properties of a VideoObjectTrackingPredictionParams. */ + interface IVideoObjectTrackingPredictionParams { - /** Properties of a Transformation. */ - interface ITransformation { + /** VideoObjectTrackingPredictionParams confidenceThreshold */ + confidenceThreshold?: (number|null); - /** Transformation auto */ - auto?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation|null); + /** VideoObjectTrackingPredictionParams maxPredictions */ + maxPredictions?: (number|null); - /** Transformation numeric */ - numeric?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation|null); + /** VideoObjectTrackingPredictionParams minBoundingBoxSize */ + minBoundingBoxSize?: (number|null); + } - /** Transformation categorical */ - categorical?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation|null); + /** Represents a VideoObjectTrackingPredictionParams. */ + class VideoObjectTrackingPredictionParams implements IVideoObjectTrackingPredictionParams { - /** Transformation timestamp */ - timestamp?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation|null); + /** + * Constructs a new VideoObjectTrackingPredictionParams. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoObjectTrackingPredictionParams); - /** Transformation text */ - text?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation|null); + /** VideoObjectTrackingPredictionParams confidenceThreshold. */ + public confidenceThreshold: number; - /** Transformation repeatedNumeric */ - repeatedNumeric?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation|null); + /** VideoObjectTrackingPredictionParams maxPredictions. */ + public maxPredictions: number; - /** Transformation repeatedCategorical */ - repeatedCategorical?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation|null); + /** VideoObjectTrackingPredictionParams minBoundingBoxSize. */ + public minBoundingBoxSize: number; - /** Transformation repeatedText */ - repeatedText?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation|null); - } + /** + * Creates a new VideoObjectTrackingPredictionParams instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoObjectTrackingPredictionParams instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.params.IVideoObjectTrackingPredictionParams): google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams; - /** Represents a Transformation. */ - class Transformation implements ITransformation { + /** + * Encodes the specified VideoObjectTrackingPredictionParams message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams.verify|verify} messages. + * @param message VideoObjectTrackingPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoObjectTrackingPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new Transformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation); + /** + * Encodes the specified VideoObjectTrackingPredictionParams message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams.verify|verify} messages. + * @param message VideoObjectTrackingPredictionParams message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.params.IVideoObjectTrackingPredictionParams, writer?: $protobuf.Writer): $protobuf.Writer; - /** Transformation auto. */ - public auto?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation|null); + /** + * Decodes a VideoObjectTrackingPredictionParams message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VideoObjectTrackingPredictionParams + * @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.schema.predict.params.VideoObjectTrackingPredictionParams; - /** Transformation numeric. */ - public numeric?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation|null); + /** + * Decodes a VideoObjectTrackingPredictionParams message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VideoObjectTrackingPredictionParams + * @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.schema.predict.params.VideoObjectTrackingPredictionParams; - /** Transformation categorical. */ - public categorical?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation|null); + /** + * Verifies a VideoObjectTrackingPredictionParams 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); - /** Transformation timestamp. */ - public timestamp?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation|null); + /** + * Creates a VideoObjectTrackingPredictionParams message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VideoObjectTrackingPredictionParams + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams; - /** Transformation text. */ - public text?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation|null); + /** + * Creates a plain object from a VideoObjectTrackingPredictionParams message. Also converts values to other types if specified. + * @param message VideoObjectTrackingPredictionParams + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.params.VideoObjectTrackingPredictionParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Transformation repeatedNumeric. */ - public repeatedNumeric?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation|null); + /** + * Converts this VideoObjectTrackingPredictionParams to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Transformation repeatedCategorical. */ - public repeatedCategorical?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation|null); + /** + * Gets the default type url for VideoObjectTrackingPredictionParams + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** Transformation repeatedText. */ - public repeatedText?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation|null); + /** Namespace prediction. */ + namespace prediction { - /** Transformation transformationDetail. */ - public transformationDetail?: ("auto"|"numeric"|"categorical"|"timestamp"|"text"|"repeatedNumeric"|"repeatedCategorical"|"repeatedText"); + /** Properties of a ClassificationPredictionResult. */ + interface IClassificationPredictionResult { - /** - * Creates a new Transformation instance using the specified properties. - * @param [properties] Properties to set - * @returns Transformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; + /** ClassificationPredictionResult ids */ + ids?: ((number|Long|string)[]|null); - /** - * Encodes the specified Transformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.verify|verify} messages. - * @param message Transformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** ClassificationPredictionResult displayNames */ + displayNames?: (string[]|null); - /** - * Encodes the specified Transformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.verify|verify} messages. - * @param message Transformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** ClassificationPredictionResult confidences */ + confidences?: (number[]|null); + } - /** - * Decodes a Transformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Transformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; + /** Represents a ClassificationPredictionResult. */ + class ClassificationPredictionResult implements IClassificationPredictionResult { - /** - * Decodes a Transformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Transformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; + /** + * Constructs a new ClassificationPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IClassificationPredictionResult); - /** - * Verifies a Transformation 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); + /** ClassificationPredictionResult ids. */ + public ids: (number|Long|string)[]; - /** - * Creates a Transformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Transformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; - - /** - * Creates a plain object from a Transformation message. Also converts values to other types if specified. - * @param message Transformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ClassificationPredictionResult displayNames. */ + public displayNames: string[]; - /** - * Converts this Transformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ClassificationPredictionResult confidences. */ + public confidences: number[]; - /** - * Gets the default type url for Transformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a new ClassificationPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns ClassificationPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IClassificationPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult; - namespace Transformation { + /** + * Encodes the specified ClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult.verify|verify} messages. + * @param message ClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of an AutoTransformation. */ - interface IAutoTransformation { + /** + * Encodes the specified ClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult.verify|verify} messages. + * @param message ClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** AutoTransformation columnName */ - columnName?: (string|null); - } + /** + * Decodes a ClassificationPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ClassificationPredictionResult + * @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.schema.predict.prediction.ClassificationPredictionResult; - /** Represents an AutoTransformation. */ - class AutoTransformation implements IAutoTransformation { + /** + * Decodes a ClassificationPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ClassificationPredictionResult + * @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.schema.predict.prediction.ClassificationPredictionResult; - /** - * Constructs a new AutoTransformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation); + /** + * Verifies a ClassificationPredictionResult 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); - /** AutoTransformation columnName. */ - public columnName: string; + /** + * Creates a ClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ClassificationPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult; - /** - * Creates a new AutoTransformation instance using the specified properties. - * @param [properties] Properties to set - * @returns AutoTransformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; + /** + * Creates a plain object from a ClassificationPredictionResult message. Also converts values to other types if specified. + * @param message ClassificationPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.ClassificationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified AutoTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation.verify|verify} messages. - * @param message AutoTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ClassificationPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified AutoTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation.verify|verify} messages. - * @param message AutoTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for ClassificationPredictionResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes an AutoTransformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AutoTransformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; + /** Properties of an ImageObjectDetectionPredictionResult. */ + interface IImageObjectDetectionPredictionResult { - /** - * Decodes an AutoTransformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AutoTransformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; + /** ImageObjectDetectionPredictionResult ids */ + ids?: ((number|Long|string)[]|null); - /** - * Verifies an AutoTransformation 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); + /** ImageObjectDetectionPredictionResult displayNames */ + displayNames?: (string[]|null); - /** - * Creates an AutoTransformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AutoTransformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; + /** ImageObjectDetectionPredictionResult confidences */ + confidences?: (number[]|null); - /** - * Creates a plain object from an AutoTransformation message. Also converts values to other types if specified. - * @param message AutoTransformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ImageObjectDetectionPredictionResult bboxes */ + bboxes?: (google.protobuf.IListValue[]|null); + } - /** - * Converts this AutoTransformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents an ImageObjectDetectionPredictionResult. */ + class ImageObjectDetectionPredictionResult implements IImageObjectDetectionPredictionResult { - /** - * Gets the default type url for AutoTransformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new ImageObjectDetectionPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IImageObjectDetectionPredictionResult); - /** Properties of a NumericTransformation. */ - interface INumericTransformation { + /** ImageObjectDetectionPredictionResult ids. */ + public ids: (number|Long|string)[]; - /** NumericTransformation columnName */ - columnName?: (string|null); + /** ImageObjectDetectionPredictionResult displayNames. */ + public displayNames: string[]; - /** NumericTransformation invalidValuesAllowed */ - invalidValuesAllowed?: (boolean|null); - } + /** ImageObjectDetectionPredictionResult confidences. */ + public confidences: number[]; - /** Represents a NumericTransformation. */ - class NumericTransformation implements INumericTransformation { + /** ImageObjectDetectionPredictionResult bboxes. */ + public bboxes: google.protobuf.IListValue[]; - /** - * Constructs a new NumericTransformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation); + /** + * Creates a new ImageObjectDetectionPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageObjectDetectionPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IImageObjectDetectionPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult; - /** NumericTransformation columnName. */ - public columnName: string; + /** + * Encodes the specified ImageObjectDetectionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult.verify|verify} messages. + * @param message ImageObjectDetectionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IImageObjectDetectionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** NumericTransformation invalidValuesAllowed. */ - public invalidValuesAllowed: boolean; + /** + * Encodes the specified ImageObjectDetectionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult.verify|verify} messages. + * @param message ImageObjectDetectionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IImageObjectDetectionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new NumericTransformation instance using the specified properties. - * @param [properties] Properties to set - * @returns NumericTransformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; + /** + * Decodes an ImageObjectDetectionPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageObjectDetectionPredictionResult + * @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.schema.predict.prediction.ImageObjectDetectionPredictionResult; - /** - * Encodes the specified NumericTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation.verify|verify} messages. - * @param message NumericTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an ImageObjectDetectionPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageObjectDetectionPredictionResult + * @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.schema.predict.prediction.ImageObjectDetectionPredictionResult; - /** - * Encodes the specified NumericTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation.verify|verify} messages. - * @param message NumericTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies an ImageObjectDetectionPredictionResult 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); - /** - * Decodes a NumericTransformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NumericTransformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; + /** + * Creates an ImageObjectDetectionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageObjectDetectionPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult; - /** - * Decodes a NumericTransformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NumericTransformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; + /** + * Creates a plain object from an ImageObjectDetectionPredictionResult message. Also converts values to other types if specified. + * @param message ImageObjectDetectionPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.ImageObjectDetectionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a NumericTransformation 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); + /** + * Converts this ImageObjectDetectionPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a NumericTransformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NumericTransformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; + /** + * Gets the default type url for ImageObjectDetectionPredictionResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a NumericTransformation message. Also converts values to other types if specified. - * @param message NumericTransformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of an ImageSegmentationPredictionResult. */ + interface IImageSegmentationPredictionResult { - /** - * Converts this NumericTransformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ImageSegmentationPredictionResult categoryMask */ + categoryMask?: (string|null); - /** - * Gets the default type url for NumericTransformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ImageSegmentationPredictionResult confidenceMask */ + confidenceMask?: (string|null); + } - /** Properties of a CategoricalTransformation. */ - interface ICategoricalTransformation { + /** Represents an ImageSegmentationPredictionResult. */ + class ImageSegmentationPredictionResult implements IImageSegmentationPredictionResult { - /** CategoricalTransformation columnName */ - columnName?: (string|null); - } + /** + * Constructs a new ImageSegmentationPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IImageSegmentationPredictionResult); - /** Represents a CategoricalTransformation. */ - class CategoricalTransformation implements ICategoricalTransformation { + /** ImageSegmentationPredictionResult categoryMask. */ + public categoryMask: string; - /** - * Constructs a new CategoricalTransformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation); + /** ImageSegmentationPredictionResult confidenceMask. */ + public confidenceMask: string; - /** CategoricalTransformation columnName. */ - public columnName: string; + /** + * Creates a new ImageSegmentationPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns ImageSegmentationPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IImageSegmentationPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult; - /** - * Creates a new CategoricalTransformation instance using the specified properties. - * @param [properties] Properties to set - * @returns CategoricalTransformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; + /** + * Encodes the specified ImageSegmentationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult.verify|verify} messages. + * @param message ImageSegmentationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IImageSegmentationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CategoricalTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation.verify|verify} messages. - * @param message CategoricalTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ImageSegmentationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult.verify|verify} messages. + * @param message ImageSegmentationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IImageSegmentationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CategoricalTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation.verify|verify} messages. - * @param message CategoricalTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an ImageSegmentationPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImageSegmentationPredictionResult + * @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.schema.predict.prediction.ImageSegmentationPredictionResult; - /** - * Decodes a CategoricalTransformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CategoricalTransformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; + /** + * Decodes an ImageSegmentationPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImageSegmentationPredictionResult + * @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.schema.predict.prediction.ImageSegmentationPredictionResult; - /** - * Decodes a CategoricalTransformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CategoricalTransformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; + /** + * Verifies an ImageSegmentationPredictionResult 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); - /** - * Verifies a CategoricalTransformation 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 ImageSegmentationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImageSegmentationPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult; - /** - * Creates a CategoricalTransformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CategoricalTransformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; + /** + * Creates a plain object from an ImageSegmentationPredictionResult message. Also converts values to other types if specified. + * @param message ImageSegmentationPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.ImageSegmentationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a CategoricalTransformation message. Also converts values to other types if specified. - * @param message CategoricalTransformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this ImageSegmentationPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this CategoricalTransformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for ImageSegmentationPredictionResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for CategoricalTransformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of a TabularClassificationPredictionResult. */ + interface ITabularClassificationPredictionResult { - /** Properties of a TimestampTransformation. */ - interface ITimestampTransformation { + /** TabularClassificationPredictionResult classes */ + classes?: (string[]|null); - /** TimestampTransformation columnName */ - columnName?: (string|null); + /** TabularClassificationPredictionResult scores */ + scores?: (number[]|null); + } - /** TimestampTransformation timeFormat */ - timeFormat?: (string|null); + /** Represents a TabularClassificationPredictionResult. */ + class TabularClassificationPredictionResult implements ITabularClassificationPredictionResult { - /** TimestampTransformation invalidValuesAllowed */ - invalidValuesAllowed?: (boolean|null); - } + /** + * Constructs a new TabularClassificationPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularClassificationPredictionResult); - /** Represents a TimestampTransformation. */ - class TimestampTransformation implements ITimestampTransformation { + /** TabularClassificationPredictionResult classes. */ + public classes: string[]; - /** - * Constructs a new TimestampTransformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation); + /** TabularClassificationPredictionResult scores. */ + public scores: number[]; - /** TimestampTransformation columnName. */ - public columnName: string; + /** + * Creates a new TabularClassificationPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TabularClassificationPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularClassificationPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult; - /** TimestampTransformation timeFormat. */ - public timeFormat: string; + /** + * Encodes the specified TabularClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult.verify|verify} messages. + * @param message TabularClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** TimestampTransformation invalidValuesAllowed. */ - public invalidValuesAllowed: boolean; + /** + * Encodes the specified TabularClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult.verify|verify} messages. + * @param message TabularClassificationPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new TimestampTransformation instance using the specified properties. - * @param [properties] Properties to set - * @returns TimestampTransformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; + /** + * Decodes a TabularClassificationPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TabularClassificationPredictionResult + * @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.schema.predict.prediction.TabularClassificationPredictionResult; - /** - * Encodes the specified TimestampTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation.verify|verify} messages. - * @param message TimestampTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a TabularClassificationPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TabularClassificationPredictionResult + * @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.schema.predict.prediction.TabularClassificationPredictionResult; - /** - * Encodes the specified TimestampTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation.verify|verify} messages. - * @param message TimestampTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a TabularClassificationPredictionResult 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); - /** - * Decodes a TimestampTransformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TimestampTransformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; + /** + * Creates a TabularClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TabularClassificationPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult; - /** - * Decodes a TimestampTransformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TimestampTransformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; + /** + * Creates a plain object from a TabularClassificationPredictionResult message. Also converts values to other types if specified. + * @param message TabularClassificationPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.TabularClassificationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a TimestampTransformation 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); + /** + * Converts this TabularClassificationPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a TimestampTransformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TimestampTransformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; + /** + * Gets the default type url for TabularClassificationPredictionResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a TimestampTransformation message. Also converts values to other types if specified. - * @param message TimestampTransformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a TabularRegressionPredictionResult. */ + interface ITabularRegressionPredictionResult { - /** - * Converts this TimestampTransformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** TabularRegressionPredictionResult value */ + value?: (number|null); - /** - * Gets the default type url for TimestampTransformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** TabularRegressionPredictionResult lowerBound */ + lowerBound?: (number|null); - /** Properties of a TextTransformation. */ - interface ITextTransformation { + /** TabularRegressionPredictionResult upperBound */ + upperBound?: (number|null); + } - /** TextTransformation columnName */ - columnName?: (string|null); - } + /** Represents a TabularRegressionPredictionResult. */ + class TabularRegressionPredictionResult implements ITabularRegressionPredictionResult { - /** Represents a TextTransformation. */ - class TextTransformation implements ITextTransformation { + /** + * Constructs a new TabularRegressionPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularRegressionPredictionResult); - /** - * Constructs a new TextTransformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation); + /** TabularRegressionPredictionResult value. */ + public value: number; - /** TextTransformation columnName. */ - public columnName: string; + /** TabularRegressionPredictionResult lowerBound. */ + public lowerBound: number; - /** - * Creates a new TextTransformation instance using the specified properties. - * @param [properties] Properties to set - * @returns TextTransformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; + /** TabularRegressionPredictionResult upperBound. */ + public upperBound: number; - /** - * Encodes the specified TextTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation.verify|verify} messages. - * @param message TextTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new TabularRegressionPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TabularRegressionPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularRegressionPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult; - /** - * Encodes the specified TextTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation.verify|verify} messages. - * @param message TextTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified TabularRegressionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult.verify|verify} messages. + * @param message TabularRegressionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularRegressionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TextTransformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TextTransformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; + /** + * Encodes the specified TabularRegressionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult.verify|verify} messages. + * @param message TabularRegressionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITabularRegressionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a TextTransformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TextTransformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; + /** + * Decodes a TabularRegressionPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TabularRegressionPredictionResult + * @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.schema.predict.prediction.TabularRegressionPredictionResult; - /** - * Verifies a TextTransformation 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); + /** + * Decodes a TabularRegressionPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TabularRegressionPredictionResult + * @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.schema.predict.prediction.TabularRegressionPredictionResult; - /** - * Creates a TextTransformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TextTransformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; + /** + * Verifies a TabularRegressionPredictionResult 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 plain object from a TextTransformation message. Also converts values to other types if specified. - * @param message TextTransformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a TabularRegressionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TabularRegressionPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult; - /** - * Converts this TextTransformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a TabularRegressionPredictionResult message. Also converts values to other types if specified. + * @param message TabularRegressionPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.TabularRegressionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for TextTransformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this TabularRegressionPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of a NumericArrayTransformation. */ - interface INumericArrayTransformation { + /** + * Gets the default type url for TabularRegressionPredictionResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** NumericArrayTransformation columnName */ - columnName?: (string|null); + /** Properties of a TextExtractionPredictionResult. */ + interface ITextExtractionPredictionResult { - /** NumericArrayTransformation invalidValuesAllowed */ - invalidValuesAllowed?: (boolean|null); - } + /** TextExtractionPredictionResult ids */ + ids?: ((number|Long|string)[]|null); - /** Represents a NumericArrayTransformation. */ - class NumericArrayTransformation implements INumericArrayTransformation { + /** TextExtractionPredictionResult displayNames */ + displayNames?: (string[]|null); - /** - * Constructs a new NumericArrayTransformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation); + /** TextExtractionPredictionResult textSegmentStartOffsets */ + textSegmentStartOffsets?: ((number|Long|string)[]|null); - /** NumericArrayTransformation columnName. */ - public columnName: string; + /** TextExtractionPredictionResult textSegmentEndOffsets */ + textSegmentEndOffsets?: ((number|Long|string)[]|null); - /** NumericArrayTransformation invalidValuesAllowed. */ - public invalidValuesAllowed: boolean; + /** TextExtractionPredictionResult confidences */ + confidences?: (number[]|null); + } - /** - * Creates a new NumericArrayTransformation instance using the specified properties. - * @param [properties] Properties to set - * @returns NumericArrayTransformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; + /** Represents a TextExtractionPredictionResult. */ + class TextExtractionPredictionResult implements ITextExtractionPredictionResult { - /** - * Encodes the specified NumericArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation.verify|verify} messages. - * @param message NumericArrayTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new TextExtractionPredictionResult. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITextExtractionPredictionResult); - /** - * Encodes the specified NumericArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation.verify|verify} messages. - * @param message NumericArrayTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; + /** TextExtractionPredictionResult ids. */ + public ids: (number|Long|string)[]; - /** - * Decodes a NumericArrayTransformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NumericArrayTransformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; + /** TextExtractionPredictionResult displayNames. */ + public displayNames: string[]; - /** - * Decodes a NumericArrayTransformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NumericArrayTransformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; + /** TextExtractionPredictionResult textSegmentStartOffsets. */ + public textSegmentStartOffsets: (number|Long|string)[]; - /** - * Verifies a NumericArrayTransformation 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); + /** TextExtractionPredictionResult textSegmentEndOffsets. */ + public textSegmentEndOffsets: (number|Long|string)[]; - /** - * Creates a NumericArrayTransformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NumericArrayTransformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; + /** TextExtractionPredictionResult confidences. */ + public confidences: number[]; - /** - * Creates a plain object from a NumericArrayTransformation message. Also converts values to other types if specified. - * @param message NumericArrayTransformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new TextExtractionPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns TextExtractionPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITextExtractionPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult; - /** - * Converts this NumericArrayTransformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified TextExtractionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult.verify|verify} messages. + * @param message TextExtractionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITextExtractionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for NumericArrayTransformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified TextExtractionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult.verify|verify} messages. + * @param message TextExtractionPredictionResult message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITextExtractionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a CategoricalArrayTransformation. */ - interface ICategoricalArrayTransformation { + /** + * Decodes a TextExtractionPredictionResult message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextExtractionPredictionResult + * @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.schema.predict.prediction.TextExtractionPredictionResult; - /** CategoricalArrayTransformation columnName */ - columnName?: (string|null); - } - - /** Represents a CategoricalArrayTransformation. */ - class CategoricalArrayTransformation implements ICategoricalArrayTransformation { - - /** - * Constructs a new CategoricalArrayTransformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation); - - /** CategoricalArrayTransformation columnName. */ - public columnName: string; - - /** - * Creates a new CategoricalArrayTransformation instance using the specified properties. - * @param [properties] Properties to set - * @returns CategoricalArrayTransformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; - - /** - * Encodes the specified CategoricalArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation.verify|verify} messages. - * @param message CategoricalArrayTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CategoricalArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation.verify|verify} messages. - * @param message CategoricalArrayTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CategoricalArrayTransformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CategoricalArrayTransformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; - - /** - * Decodes a CategoricalArrayTransformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CategoricalArrayTransformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; - - /** - * Verifies a CategoricalArrayTransformation 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 CategoricalArrayTransformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CategoricalArrayTransformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; - - /** - * Creates a plain object from a CategoricalArrayTransformation message. Also converts values to other types if specified. - * @param message CategoricalArrayTransformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CategoricalArrayTransformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CategoricalArrayTransformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a TextArrayTransformation. */ - interface ITextArrayTransformation { - - /** TextArrayTransformation columnName */ - columnName?: (string|null); - } - - /** Represents a TextArrayTransformation. */ - class TextArrayTransformation implements ITextArrayTransformation { - - /** - * Constructs a new TextArrayTransformation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation); - - /** TextArrayTransformation columnName. */ - public columnName: string; - - /** - * Creates a new TextArrayTransformation instance using the specified properties. - * @param [properties] Properties to set - * @returns TextArrayTransformation instance - */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; - - /** - * Encodes the specified TextArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation.verify|verify} messages. - * @param message TextArrayTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TextArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation.verify|verify} messages. - * @param message TextArrayTransformation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TextArrayTransformation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TextArrayTransformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; - - /** - * Decodes a TextArrayTransformation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TextArrayTransformation - * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; + /** + * Decodes a TextExtractionPredictionResult message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextExtractionPredictionResult + * @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.schema.predict.prediction.TextExtractionPredictionResult; - /** - * Verifies a TextArrayTransformation 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); + /** + * Verifies a TextExtractionPredictionResult 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 TextArrayTransformation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TextArrayTransformation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; + /** + * Creates a TextExtractionPredictionResult message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextExtractionPredictionResult + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult; - /** - * Creates a plain object from a TextArrayTransformation message. Also converts values to other types if specified. - * @param message TextArrayTransformation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a TextExtractionPredictionResult message. Also converts values to other types if specified. + * @param message TextExtractionPredictionResult + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.TextExtractionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this TextArrayTransformation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this TextExtractionPredictionResult to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for TextArrayTransformation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Gets the default type url for TextExtractionPredictionResult + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlTablesMetadata. */ - interface IAutoMlTablesMetadata { + /** Properties of a TextSentimentPredictionResult. */ + interface ITextSentimentPredictionResult { - /** AutoMlTablesMetadata trainCostMilliNodeHours */ - trainCostMilliNodeHours?: (number|Long|string|null); + /** TextSentimentPredictionResult sentiment */ + sentiment?: (number|null); } - /** Represents an AutoMlTablesMetadata. */ - class AutoMlTablesMetadata implements IAutoMlTablesMetadata { + /** Represents a TextSentimentPredictionResult. */ + class TextSentimentPredictionResult implements ITextSentimentPredictionResult { /** - * Constructs a new AutoMlTablesMetadata. + * Constructs a new TextSentimentPredictionResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITextSentimentPredictionResult); - /** AutoMlTablesMetadata trainCostMilliNodeHours. */ - public trainCostMilliNodeHours: (number|Long|string); + /** TextSentimentPredictionResult sentiment. */ + public sentiment: number; /** - * Creates a new AutoMlTablesMetadata instance using the specified properties. + * Creates a new TextSentimentPredictionResult instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlTablesMetadata instance + * @returns TextSentimentPredictionResult instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.ITextSentimentPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult; /** - * Encodes the specified AutoMlTablesMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata.verify|verify} messages. - * @param message AutoMlTablesMetadata message or plain object to encode + * Encodes the specified TextSentimentPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult.verify|verify} messages. + * @param message TextSentimentPredictionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITextSentimentPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTablesMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata.verify|verify} messages. - * @param message AutoMlTablesMetadata message or plain object to encode + * Encodes the specified TextSentimentPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult.verify|verify} messages. + * @param message TextSentimentPredictionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.ITextSentimentPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTablesMetadata message from the specified reader or buffer. + * Decodes a TextSentimentPredictionResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTablesMetadata + * @returns TextSentimentPredictionResult * @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.schema.trainingjob.definition.AutoMlTablesMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult; /** - * Decodes an AutoMlTablesMetadata message from the specified reader or buffer, length delimited. + * Decodes a TextSentimentPredictionResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTablesMetadata + * @returns TextSentimentPredictionResult * @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.schema.trainingjob.definition.AutoMlTablesMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult; /** - * Verifies an AutoMlTablesMetadata message. + * Verifies a TextSentimentPredictionResult 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 AutoMlTablesMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a TextSentimentPredictionResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTablesMetadata + * @returns TextSentimentPredictionResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult; /** - * Creates a plain object from an AutoMlTablesMetadata message. Also converts values to other types if specified. - * @param message AutoMlTablesMetadata + * Creates a plain object from a TextSentimentPredictionResult message. Also converts values to other types if specified. + * @param message TextSentimentPredictionResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.TextSentimentPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTablesMetadata to JSON. + * Converts this TextSentimentPredictionResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTablesMetadata + * Gets the default type url for TextSentimentPredictionResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportEvaluatedDataItemsConfig. */ - interface IExportEvaluatedDataItemsConfig { + /** Properties of a VideoActionRecognitionPredictionResult. */ + interface IVideoActionRecognitionPredictionResult { - /** ExportEvaluatedDataItemsConfig destinationBigqueryUri */ - destinationBigqueryUri?: (string|null); + /** VideoActionRecognitionPredictionResult id */ + id?: (string|null); - /** ExportEvaluatedDataItemsConfig overrideExistingTable */ - overrideExistingTable?: (boolean|null); + /** VideoActionRecognitionPredictionResult displayName */ + displayName?: (string|null); + + /** VideoActionRecognitionPredictionResult timeSegmentStart */ + timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoActionRecognitionPredictionResult timeSegmentEnd */ + timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoActionRecognitionPredictionResult confidence */ + confidence?: (google.protobuf.IFloatValue|null); } - /** Represents an ExportEvaluatedDataItemsConfig. */ - class ExportEvaluatedDataItemsConfig implements IExportEvaluatedDataItemsConfig { + /** Represents a VideoActionRecognitionPredictionResult. */ + class VideoActionRecognitionPredictionResult implements IVideoActionRecognitionPredictionResult { /** - * Constructs a new ExportEvaluatedDataItemsConfig. + * Constructs a new VideoActionRecognitionPredictionResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoActionRecognitionPredictionResult); - /** ExportEvaluatedDataItemsConfig destinationBigqueryUri. */ - public destinationBigqueryUri: string; + /** VideoActionRecognitionPredictionResult id. */ + public id: string; - /** ExportEvaluatedDataItemsConfig overrideExistingTable. */ - public overrideExistingTable: boolean; + /** VideoActionRecognitionPredictionResult displayName. */ + public displayName: string; + + /** VideoActionRecognitionPredictionResult timeSegmentStart. */ + public timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoActionRecognitionPredictionResult timeSegmentEnd. */ + public timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoActionRecognitionPredictionResult confidence. */ + public confidence?: (google.protobuf.IFloatValue|null); /** - * Creates a new ExportEvaluatedDataItemsConfig instance using the specified properties. + * Creates a new VideoActionRecognitionPredictionResult instance using the specified properties. * @param [properties] Properties to set - * @returns ExportEvaluatedDataItemsConfig instance + * @returns VideoActionRecognitionPredictionResult instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig): google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoActionRecognitionPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult; /** - * Encodes the specified ExportEvaluatedDataItemsConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.verify|verify} messages. - * @param message ExportEvaluatedDataItemsConfig message or plain object to encode + * Encodes the specified VideoActionRecognitionPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult.verify|verify} messages. + * @param message VideoActionRecognitionPredictionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoActionRecognitionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportEvaluatedDataItemsConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.verify|verify} messages. - * @param message ExportEvaluatedDataItemsConfig message or plain object to encode + * Encodes the specified VideoActionRecognitionPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult.verify|verify} messages. + * @param message VideoActionRecognitionPredictionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoActionRecognitionPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportEvaluatedDataItemsConfig message from the specified reader or buffer. + * Decodes a VideoActionRecognitionPredictionResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportEvaluatedDataItemsConfig + * @returns VideoActionRecognitionPredictionResult * @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.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult; /** - * Decodes an ExportEvaluatedDataItemsConfig message from the specified reader or buffer, length delimited. + * Decodes a VideoActionRecognitionPredictionResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportEvaluatedDataItemsConfig + * @returns VideoActionRecognitionPredictionResult * @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.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult; /** - * Verifies an ExportEvaluatedDataItemsConfig message. + * Verifies a VideoActionRecognitionPredictionResult 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 ExportEvaluatedDataItemsConfig message from a plain object. Also converts values to their respective internal types. + * Creates a VideoActionRecognitionPredictionResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportEvaluatedDataItemsConfig + * @returns VideoActionRecognitionPredictionResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult; /** - * Creates a plain object from an ExportEvaluatedDataItemsConfig message. Also converts values to other types if specified. - * @param message ExportEvaluatedDataItemsConfig + * Creates a plain object from a VideoActionRecognitionPredictionResult message. Also converts values to other types if specified. + * @param message VideoActionRecognitionPredictionResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoActionRecognitionPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportEvaluatedDataItemsConfig to JSON. + * Converts this VideoActionRecognitionPredictionResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportEvaluatedDataItemsConfig + * Gets the default type url for VideoActionRecognitionPredictionResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlTextClassification. */ - interface IAutoMlTextClassification { + /** Properties of a VideoClassificationPredictionResult. */ + interface IVideoClassificationPredictionResult { - /** AutoMlTextClassification inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs|null); + /** VideoClassificationPredictionResult id */ + id?: (string|null); + + /** VideoClassificationPredictionResult displayName */ + displayName?: (string|null); + + /** VideoClassificationPredictionResult type */ + type?: (string|null); + + /** VideoClassificationPredictionResult timeSegmentStart */ + timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoClassificationPredictionResult timeSegmentEnd */ + timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoClassificationPredictionResult confidence */ + confidence?: (google.protobuf.IFloatValue|null); } - /** Represents an AutoMlTextClassification. */ - class AutoMlTextClassification implements IAutoMlTextClassification { + /** Represents a VideoClassificationPredictionResult. */ + class VideoClassificationPredictionResult implements IVideoClassificationPredictionResult { /** - * Constructs a new AutoMlTextClassification. + * Constructs a new VideoClassificationPredictionResult. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassification); + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoClassificationPredictionResult); - /** AutoMlTextClassification inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs|null); + /** VideoClassificationPredictionResult id. */ + public id: string; + + /** VideoClassificationPredictionResult displayName. */ + public displayName: string; + + /** VideoClassificationPredictionResult type. */ + public type: string; + + /** VideoClassificationPredictionResult timeSegmentStart. */ + public timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoClassificationPredictionResult timeSegmentEnd. */ + public timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoClassificationPredictionResult confidence. */ + public confidence?: (google.protobuf.IFloatValue|null); /** - * Creates a new AutoMlTextClassification instance using the specified properties. + * Creates a new VideoClassificationPredictionResult instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlTextClassification instance + * @returns VideoClassificationPredictionResult instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassification): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification; + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoClassificationPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult; /** - * Encodes the specified AutoMlTextClassification message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification.verify|verify} messages. - * @param message AutoMlTextClassification message or plain object to encode + * Encodes the specified VideoClassificationPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult.verify|verify} messages. + * @param message VideoClassificationPredictionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTextClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification.verify|verify} messages. - * @param message AutoMlTextClassification message or plain object to encode + * Encodes the specified VideoClassificationPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult.verify|verify} messages. + * @param message VideoClassificationPredictionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoClassificationPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTextClassification message from the specified reader or buffer. + * Decodes a VideoClassificationPredictionResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTextClassification + * @returns VideoClassificationPredictionResult * @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.schema.trainingjob.definition.AutoMlTextClassification; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult; /** - * Decodes an AutoMlTextClassification message from the specified reader or buffer, length delimited. + * Decodes a VideoClassificationPredictionResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTextClassification + * @returns VideoClassificationPredictionResult * @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.schema.trainingjob.definition.AutoMlTextClassification; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult; /** - * Verifies an AutoMlTextClassification message. + * Verifies a VideoClassificationPredictionResult 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 AutoMlTextClassification message from a plain object. Also converts values to their respective internal types. + * Creates a VideoClassificationPredictionResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTextClassification + * @returns VideoClassificationPredictionResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult; /** - * Creates a plain object from an AutoMlTextClassification message. Also converts values to other types if specified. - * @param message AutoMlTextClassification + * Creates a plain object from a VideoClassificationPredictionResult message. Also converts values to other types if specified. + * @param message VideoClassificationPredictionResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoClassificationPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTextClassification to JSON. + * Converts this VideoClassificationPredictionResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTextClassification + * Gets the default type url for VideoClassificationPredictionResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlTextClassificationInputs. */ - interface IAutoMlTextClassificationInputs { + /** Properties of a VideoObjectTrackingPredictionResult. */ + interface IVideoObjectTrackingPredictionResult { - /** AutoMlTextClassificationInputs multiLabel */ - multiLabel?: (boolean|null); - } + /** VideoObjectTrackingPredictionResult id */ + id?: (string|null); - /** Represents an AutoMlTextClassificationInputs. */ - class AutoMlTextClassificationInputs implements IAutoMlTextClassificationInputs { + /** VideoObjectTrackingPredictionResult displayName */ + displayName?: (string|null); - /** - * Constructs a new AutoMlTextClassificationInputs. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs); + /** VideoObjectTrackingPredictionResult timeSegmentStart */ + timeSegmentStart?: (google.protobuf.IDuration|null); - /** AutoMlTextClassificationInputs multiLabel. */ - public multiLabel: boolean; + /** VideoObjectTrackingPredictionResult timeSegmentEnd */ + timeSegmentEnd?: (google.protobuf.IDuration|null); - /** - * Creates a new AutoMlTextClassificationInputs instance using the specified properties. - * @param [properties] Properties to set - * @returns AutoMlTextClassificationInputs instance + /** VideoObjectTrackingPredictionResult confidence */ + confidence?: (google.protobuf.IFloatValue|null); + + /** VideoObjectTrackingPredictionResult frames */ + frames?: (google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame[]|null); + } + + /** Represents a VideoObjectTrackingPredictionResult. */ + class VideoObjectTrackingPredictionResult implements IVideoObjectTrackingPredictionResult { + + /** + * Constructs a new VideoObjectTrackingPredictionResult. + * @param [properties] Properties to set */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs; + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoObjectTrackingPredictionResult); + + /** VideoObjectTrackingPredictionResult id. */ + public id: string; + + /** VideoObjectTrackingPredictionResult displayName. */ + public displayName: string; + + /** VideoObjectTrackingPredictionResult timeSegmentStart. */ + public timeSegmentStart?: (google.protobuf.IDuration|null); + + /** VideoObjectTrackingPredictionResult timeSegmentEnd. */ + public timeSegmentEnd?: (google.protobuf.IDuration|null); + + /** VideoObjectTrackingPredictionResult confidence. */ + public confidence?: (google.protobuf.IFloatValue|null); + + /** VideoObjectTrackingPredictionResult frames. */ + public frames: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame[]; /** - * Encodes the specified AutoMlTextClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs.verify|verify} messages. - * @param message AutoMlTextClassificationInputs message or plain object to encode + * Creates a new VideoObjectTrackingPredictionResult instance using the specified properties. + * @param [properties] Properties to set + * @returns VideoObjectTrackingPredictionResult instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoObjectTrackingPredictionResult): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult; + + /** + * Encodes the specified VideoObjectTrackingPredictionResult message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.verify|verify} messages. + * @param message VideoObjectTrackingPredictionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoObjectTrackingPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTextClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs.verify|verify} messages. - * @param message AutoMlTextClassificationInputs message or plain object to encode + * Encodes the specified VideoObjectTrackingPredictionResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.verify|verify} messages. + * @param message VideoObjectTrackingPredictionResult message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.IVideoObjectTrackingPredictionResult, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTextClassificationInputs message from the specified reader or buffer. + * Decodes a VideoObjectTrackingPredictionResult message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTextClassificationInputs + * @returns VideoObjectTrackingPredictionResult * @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.schema.trainingjob.definition.AutoMlTextClassificationInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult; /** - * Decodes an AutoMlTextClassificationInputs message from the specified reader or buffer, length delimited. + * Decodes a VideoObjectTrackingPredictionResult message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTextClassificationInputs + * @returns VideoObjectTrackingPredictionResult * @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.schema.trainingjob.definition.AutoMlTextClassificationInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult; /** - * Verifies an AutoMlTextClassificationInputs message. + * Verifies a VideoObjectTrackingPredictionResult 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 AutoMlTextClassificationInputs message from a plain object. Also converts values to their respective internal types. + * Creates a VideoObjectTrackingPredictionResult message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTextClassificationInputs + * @returns VideoObjectTrackingPredictionResult */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult; /** - * Creates a plain object from an AutoMlTextClassificationInputs message. Also converts values to other types if specified. - * @param message AutoMlTextClassificationInputs + * Creates a plain object from a VideoObjectTrackingPredictionResult message. Also converts values to other types if specified. + * @param message VideoObjectTrackingPredictionResult * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTextClassificationInputs to JSON. + * Converts this VideoObjectTrackingPredictionResult to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTextClassificationInputs + * Gets the default type url for VideoObjectTrackingPredictionResult * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlTextExtraction. */ - interface IAutoMlTextExtraction { + namespace VideoObjectTrackingPredictionResult { - /** AutoMlTextExtraction inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs|null); + /** Properties of a Frame. */ + interface IFrame { + + /** Frame timeOffset */ + timeOffset?: (google.protobuf.IDuration|null); + + /** Frame xMin */ + xMin?: (google.protobuf.IFloatValue|null); + + /** Frame xMax */ + xMax?: (google.protobuf.IFloatValue|null); + + /** Frame yMin */ + yMin?: (google.protobuf.IFloatValue|null); + + /** Frame yMax */ + yMax?: (google.protobuf.IFloatValue|null); + } + + /** Represents a Frame. */ + class Frame implements IFrame { + + /** + * Constructs a new Frame. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame); + + /** Frame timeOffset. */ + public timeOffset?: (google.protobuf.IDuration|null); + + /** Frame xMin. */ + public xMin?: (google.protobuf.IFloatValue|null); + + /** Frame xMax. */ + public xMax?: (google.protobuf.IFloatValue|null); + + /** Frame yMin. */ + public yMin?: (google.protobuf.IFloatValue|null); + + /** Frame yMax. */ + public yMax?: (google.protobuf.IFloatValue|null); + + /** + * Creates a new Frame instance using the specified properties. + * @param [properties] Properties to set + * @returns Frame instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; + + /** + * Encodes the specified Frame message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.verify|verify} messages. + * @param message Frame message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Frame message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame.verify|verify} messages. + * @param message Frame message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.IFrame, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Frame message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Frame + * @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.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; + + /** + * Decodes a Frame message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Frame + * @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.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; + + /** + * Verifies a Frame 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 Frame message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Frame + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame; + + /** + * Creates a plain object from a Frame message. Also converts values to other types if specified. + * @param message Frame + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.predict.prediction.VideoObjectTrackingPredictionResult.Frame, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Frame to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Frame + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } + } + } - /** Represents an AutoMlTextExtraction. */ - class AutoMlTextExtraction implements IAutoMlTextExtraction { + /** Namespace trainingjob. */ + namespace trainingjob { + + /** Namespace definition. */ + namespace definition { + + /** Properties of an AutoMlImageClassification. */ + interface IAutoMlImageClassification { + + /** AutoMlImageClassification inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs|null); + + /** AutoMlImageClassification metadata */ + metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata|null); + } + + /** Represents an AutoMlImageClassification. */ + class AutoMlImageClassification implements IAutoMlImageClassification { /** - * Constructs a new AutoMlTextExtraction. + * Constructs a new AutoMlImageClassification. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtraction); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassification); - /** AutoMlTextExtraction inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs|null); + /** AutoMlImageClassification inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs|null); + + /** AutoMlImageClassification metadata. */ + public metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata|null); /** - * Creates a new AutoMlTextExtraction instance using the specified properties. + * Creates a new AutoMlImageClassification instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlTextExtraction instance + * @returns AutoMlImageClassification instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtraction): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassification): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification; /** - * Encodes the specified AutoMlTextExtraction message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction.verify|verify} messages. - * @param message AutoMlTextExtraction message or plain object to encode + * Encodes the specified AutoMlImageClassification message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification.verify|verify} messages. + * @param message AutoMlImageClassification message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtraction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassification, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTextExtraction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction.verify|verify} messages. - * @param message AutoMlTextExtraction message or plain object to encode + * Encodes the specified AutoMlImageClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification.verify|verify} messages. + * @param message AutoMlImageClassification message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtraction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassification, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTextExtraction message from the specified reader or buffer. + * Decodes an AutoMlImageClassification message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTextExtraction + * @returns AutoMlImageClassification * @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.schema.trainingjob.definition.AutoMlTextExtraction; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification; /** - * Decodes an AutoMlTextExtraction message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageClassification message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTextExtraction + * @returns AutoMlImageClassification * @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.schema.trainingjob.definition.AutoMlTextExtraction; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification; /** - * Verifies an AutoMlTextExtraction message. + * Verifies an AutoMlImageClassification 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 AutoMlTextExtraction message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageClassification message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTextExtraction + * @returns AutoMlImageClassification */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification; /** - * Creates a plain object from an AutoMlTextExtraction message. Also converts values to other types if specified. - * @param message AutoMlTextExtraction + * Creates a plain object from an AutoMlImageClassification message. Also converts values to other types if specified. + * @param message AutoMlImageClassification * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassification, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTextExtraction to JSON. + * Converts this AutoMlImageClassification to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTextExtraction + * Gets the default type url for AutoMlImageClassification * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlTextExtractionInputs. */ - interface IAutoMlTextExtractionInputs { + /** Properties of an AutoMlImageClassificationInputs. */ + interface IAutoMlImageClassificationInputs { + + /** AutoMlImageClassificationInputs modelType */ + modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType|null); + + /** AutoMlImageClassificationInputs baseModelId */ + baseModelId?: (string|null); + + /** AutoMlImageClassificationInputs budgetMilliNodeHours */ + budgetMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageClassificationInputs disableEarlyStopping */ + disableEarlyStopping?: (boolean|null); + + /** AutoMlImageClassificationInputs multiLabel */ + multiLabel?: (boolean|null); } - /** Represents an AutoMlTextExtractionInputs. */ - class AutoMlTextExtractionInputs implements IAutoMlTextExtractionInputs { + /** Represents an AutoMlImageClassificationInputs. */ + class AutoMlImageClassificationInputs implements IAutoMlImageClassificationInputs { /** - * Constructs a new AutoMlTextExtractionInputs. + * Constructs a new AutoMlImageClassificationInputs. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs); + + /** AutoMlImageClassificationInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.ModelType); + + /** AutoMlImageClassificationInputs baseModelId. */ + public baseModelId: string; + + /** AutoMlImageClassificationInputs budgetMilliNodeHours. */ + public budgetMilliNodeHours: (number|Long|string); + + /** AutoMlImageClassificationInputs disableEarlyStopping. */ + public disableEarlyStopping: boolean; + + /** AutoMlImageClassificationInputs multiLabel. */ + public multiLabel: boolean; /** - * Creates a new AutoMlTextExtractionInputs instance using the specified properties. + * Creates a new AutoMlImageClassificationInputs instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlTextExtractionInputs instance + * @returns AutoMlImageClassificationInputs instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs; /** - * Encodes the specified AutoMlTextExtractionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs.verify|verify} messages. - * @param message AutoMlTextExtractionInputs message or plain object to encode + * Encodes the specified AutoMlImageClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.verify|verify} messages. + * @param message AutoMlImageClassificationInputs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTextExtractionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs.verify|verify} messages. - * @param message AutoMlTextExtractionInputs message or plain object to encode + * Encodes the specified AutoMlImageClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs.verify|verify} messages. + * @param message AutoMlImageClassificationInputs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTextExtractionInputs message from the specified reader or buffer. + * Decodes an AutoMlImageClassificationInputs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTextExtractionInputs + * @returns AutoMlImageClassificationInputs * @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.schema.trainingjob.definition.AutoMlTextExtractionInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs; /** - * Decodes an AutoMlTextExtractionInputs message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageClassificationInputs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTextExtractionInputs + * @returns AutoMlImageClassificationInputs * @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.schema.trainingjob.definition.AutoMlTextExtractionInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs; /** - * Verifies an AutoMlTextExtractionInputs message. + * Verifies an AutoMlImageClassificationInputs 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 AutoMlTextExtractionInputs message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageClassificationInputs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTextExtractionInputs + * @returns AutoMlImageClassificationInputs */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs; /** - * Creates a plain object from an AutoMlTextExtractionInputs message. Also converts values to other types if specified. - * @param message AutoMlTextExtractionInputs + * Creates a plain object from an AutoMlImageClassificationInputs message. Also converts values to other types if specified. + * @param message AutoMlImageClassificationInputs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTextExtractionInputs to JSON. + * Converts this AutoMlImageClassificationInputs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTextExtractionInputs + * Gets the default type url for AutoMlImageClassificationInputs * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlTextSentiment. */ - interface IAutoMlTextSentiment { + namespace AutoMlImageClassificationInputs { - /** AutoMlTextSentiment inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs|null); + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + CLOUD = 1, + MOBILE_TF_LOW_LATENCY_1 = 2, + MOBILE_TF_VERSATILE_1 = 3, + MOBILE_TF_HIGH_ACCURACY_1 = 4 + } } - /** Represents an AutoMlTextSentiment. */ - class AutoMlTextSentiment implements IAutoMlTextSentiment { + /** Properties of an AutoMlImageClassificationMetadata. */ + interface IAutoMlImageClassificationMetadata { + + /** AutoMlImageClassificationMetadata costMilliNodeHours */ + costMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageClassificationMetadata successfulStopReason */ + successfulStopReason?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason|null); + } + + /** Represents an AutoMlImageClassificationMetadata. */ + class AutoMlImageClassificationMetadata implements IAutoMlImageClassificationMetadata { /** - * Constructs a new AutoMlTextSentiment. + * Constructs a new AutoMlImageClassificationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentiment); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata); - /** AutoMlTextSentiment inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs|null); + /** AutoMlImageClassificationMetadata costMilliNodeHours. */ + public costMilliNodeHours: (number|Long|string); + + /** AutoMlImageClassificationMetadata successfulStopReason. */ + public successfulStopReason: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.SuccessfulStopReason); /** - * Creates a new AutoMlTextSentiment instance using the specified properties. + * Creates a new AutoMlImageClassificationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlTextSentiment instance + * @returns AutoMlImageClassificationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentiment): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; /** - * Encodes the specified AutoMlTextSentiment message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment.verify|verify} messages. - * @param message AutoMlTextSentiment message or plain object to encode + * Encodes the specified AutoMlImageClassificationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.verify|verify} messages. + * @param message AutoMlImageClassificationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTextSentiment message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment.verify|verify} messages. - * @param message AutoMlTextSentiment message or plain object to encode + * Encodes the specified AutoMlImageClassificationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata.verify|verify} messages. + * @param message AutoMlImageClassificationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageClassificationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTextSentiment message from the specified reader or buffer. + * Decodes an AutoMlImageClassificationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTextSentiment + * @returns AutoMlImageClassificationMetadata * @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.schema.trainingjob.definition.AutoMlTextSentiment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; /** - * Decodes an AutoMlTextSentiment message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageClassificationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTextSentiment + * @returns AutoMlImageClassificationMetadata * @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.schema.trainingjob.definition.AutoMlTextSentiment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; /** - * Verifies an AutoMlTextSentiment message. + * Verifies an AutoMlImageClassificationMetadata 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 AutoMlTextSentiment message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageClassificationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTextSentiment + * @returns AutoMlImageClassificationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata; /** - * Creates a plain object from an AutoMlTextSentiment message. Also converts values to other types if specified. - * @param message AutoMlTextSentiment + * Creates a plain object from an AutoMlImageClassificationMetadata message. Also converts values to other types if specified. + * @param message AutoMlImageClassificationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageClassificationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTextSentiment to JSON. + * Converts this AutoMlImageClassificationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTextSentiment + * Gets the default type url for AutoMlImageClassificationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlTextSentimentInputs. */ - interface IAutoMlTextSentimentInputs { + namespace AutoMlImageClassificationMetadata { - /** AutoMlTextSentimentInputs sentimentMax */ - sentimentMax?: (number|null); + /** SuccessfulStopReason enum. */ + enum SuccessfulStopReason { + SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0, + BUDGET_REACHED = 1, + MODEL_CONVERGED = 2 + } } - /** Represents an AutoMlTextSentimentInputs. */ - class AutoMlTextSentimentInputs implements IAutoMlTextSentimentInputs { + /** Properties of an AutoMlImageObjectDetection. */ + interface IAutoMlImageObjectDetection { + + /** AutoMlImageObjectDetection inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs|null); + + /** AutoMlImageObjectDetection metadata */ + metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata|null); + } + + /** Represents an AutoMlImageObjectDetection. */ + class AutoMlImageObjectDetection implements IAutoMlImageObjectDetection { /** - * Constructs a new AutoMlTextSentimentInputs. + * Constructs a new AutoMlImageObjectDetection. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetection); - /** AutoMlTextSentimentInputs sentimentMax. */ - public sentimentMax: number; + /** AutoMlImageObjectDetection inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs|null); + + /** AutoMlImageObjectDetection metadata. */ + public metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata|null); /** - * Creates a new AutoMlTextSentimentInputs instance using the specified properties. + * Creates a new AutoMlImageObjectDetection instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlTextSentimentInputs instance + * @returns AutoMlImageObjectDetection instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetection): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection; /** - * Encodes the specified AutoMlTextSentimentInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs.verify|verify} messages. - * @param message AutoMlTextSentimentInputs message or plain object to encode + * Encodes the specified AutoMlImageObjectDetection message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection.verify|verify} messages. + * @param message AutoMlImageObjectDetection message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetection, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlTextSentimentInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs.verify|verify} messages. - * @param message AutoMlTextSentimentInputs message or plain object to encode + * Encodes the specified AutoMlImageObjectDetection message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection.verify|verify} messages. + * @param message AutoMlImageObjectDetection message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetection, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlTextSentimentInputs message from the specified reader or buffer. + * Decodes an AutoMlImageObjectDetection message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlTextSentimentInputs + * @returns AutoMlImageObjectDetection * @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.schema.trainingjob.definition.AutoMlTextSentimentInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection; /** - * Decodes an AutoMlTextSentimentInputs message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageObjectDetection message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlTextSentimentInputs + * @returns AutoMlImageObjectDetection * @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.schema.trainingjob.definition.AutoMlTextSentimentInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection; /** - * Verifies an AutoMlTextSentimentInputs message. + * Verifies an AutoMlImageObjectDetection 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 AutoMlTextSentimentInputs message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageObjectDetection message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlTextSentimentInputs + * @returns AutoMlImageObjectDetection */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection; /** - * Creates a plain object from an AutoMlTextSentimentInputs message. Also converts values to other types if specified. - * @param message AutoMlTextSentimentInputs + * Creates a plain object from an AutoMlImageObjectDetection message. Also converts values to other types if specified. + * @param message AutoMlImageObjectDetection * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetection, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlTextSentimentInputs to JSON. + * Converts this AutoMlImageObjectDetection to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlTextSentimentInputs + * Gets the default type url for AutoMlImageObjectDetection * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlVideoActionRecognition. */ - interface IAutoMlVideoActionRecognition { + /** Properties of an AutoMlImageObjectDetectionInputs. */ + interface IAutoMlImageObjectDetectionInputs { - /** AutoMlVideoActionRecognition inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs|null); + /** AutoMlImageObjectDetectionInputs modelType */ + modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType|null); + + /** AutoMlImageObjectDetectionInputs budgetMilliNodeHours */ + budgetMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageObjectDetectionInputs disableEarlyStopping */ + disableEarlyStopping?: (boolean|null); } - /** Represents an AutoMlVideoActionRecognition. */ - class AutoMlVideoActionRecognition implements IAutoMlVideoActionRecognition { + /** Represents an AutoMlImageObjectDetectionInputs. */ + class AutoMlImageObjectDetectionInputs implements IAutoMlImageObjectDetectionInputs { /** - * Constructs a new AutoMlVideoActionRecognition. + * Constructs a new AutoMlImageObjectDetectionInputs. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognition); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs); - /** AutoMlVideoActionRecognition inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs|null); + /** AutoMlImageObjectDetectionInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.ModelType); + + /** AutoMlImageObjectDetectionInputs budgetMilliNodeHours. */ + public budgetMilliNodeHours: (number|Long|string); + + /** AutoMlImageObjectDetectionInputs disableEarlyStopping. */ + public disableEarlyStopping: boolean; /** - * Creates a new AutoMlVideoActionRecognition instance using the specified properties. + * Creates a new AutoMlImageObjectDetectionInputs instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlVideoActionRecognition instance + * @returns AutoMlImageObjectDetectionInputs instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognition): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; /** - * Encodes the specified AutoMlVideoActionRecognition message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition.verify|verify} messages. - * @param message AutoMlVideoActionRecognition message or plain object to encode + * Encodes the specified AutoMlImageObjectDetectionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.verify|verify} messages. + * @param message AutoMlImageObjectDetectionInputs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlVideoActionRecognition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition.verify|verify} messages. - * @param message AutoMlVideoActionRecognition message or plain object to encode + * Encodes the specified AutoMlImageObjectDetectionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs.verify|verify} messages. + * @param message AutoMlImageObjectDetectionInputs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognition, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionInputs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlVideoActionRecognition message from the specified reader or buffer. + * Decodes an AutoMlImageObjectDetectionInputs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlVideoActionRecognition + * @returns AutoMlImageObjectDetectionInputs * @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.schema.trainingjob.definition.AutoMlVideoActionRecognition; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; /** - * Decodes an AutoMlVideoActionRecognition message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageObjectDetectionInputs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlVideoActionRecognition + * @returns AutoMlImageObjectDetectionInputs * @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.schema.trainingjob.definition.AutoMlVideoActionRecognition; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; /** - * Verifies an AutoMlVideoActionRecognition message. + * Verifies an AutoMlImageObjectDetectionInputs 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 AutoMlVideoActionRecognition message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageObjectDetectionInputs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlVideoActionRecognition + * @returns AutoMlImageObjectDetectionInputs */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs; /** - * Creates a plain object from an AutoMlVideoActionRecognition message. Also converts values to other types if specified. - * @param message AutoMlVideoActionRecognition + * Creates a plain object from an AutoMlImageObjectDetectionInputs message. Also converts values to other types if specified. + * @param message AutoMlImageObjectDetectionInputs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlVideoActionRecognition to JSON. + * Converts this AutoMlImageObjectDetectionInputs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlVideoActionRecognition + * Gets the default type url for AutoMlImageObjectDetectionInputs * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlVideoActionRecognitionInputs. */ - interface IAutoMlVideoActionRecognitionInputs { + namespace AutoMlImageObjectDetectionInputs { - /** AutoMlVideoActionRecognitionInputs modelType */ - modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType|null); + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + CLOUD_HIGH_ACCURACY_1 = 1, + CLOUD_LOW_LATENCY_1 = 2, + MOBILE_TF_LOW_LATENCY_1 = 3, + MOBILE_TF_VERSATILE_1 = 4, + MOBILE_TF_HIGH_ACCURACY_1 = 5 + } } - /** Represents an AutoMlVideoActionRecognitionInputs. */ - class AutoMlVideoActionRecognitionInputs implements IAutoMlVideoActionRecognitionInputs { + /** Properties of an AutoMlImageObjectDetectionMetadata. */ + interface IAutoMlImageObjectDetectionMetadata { + + /** AutoMlImageObjectDetectionMetadata costMilliNodeHours */ + costMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageObjectDetectionMetadata successfulStopReason */ + successfulStopReason?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason|null); + } + + /** Represents an AutoMlImageObjectDetectionMetadata. */ + class AutoMlImageObjectDetectionMetadata implements IAutoMlImageObjectDetectionMetadata { /** - * Constructs a new AutoMlVideoActionRecognitionInputs. + * Constructs a new AutoMlImageObjectDetectionMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata); - /** AutoMlVideoActionRecognitionInputs modelType. */ - public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType); + /** AutoMlImageObjectDetectionMetadata costMilliNodeHours. */ + public costMilliNodeHours: (number|Long|string); + + /** AutoMlImageObjectDetectionMetadata successfulStopReason. */ + public successfulStopReason: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.SuccessfulStopReason); /** - * Creates a new AutoMlVideoActionRecognitionInputs instance using the specified properties. + * Creates a new AutoMlImageObjectDetectionMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlVideoActionRecognitionInputs instance + * @returns AutoMlImageObjectDetectionMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; /** - * Encodes the specified AutoMlVideoActionRecognitionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.verify|verify} messages. - * @param message AutoMlVideoActionRecognitionInputs message or plain object to encode + * Encodes the specified AutoMlImageObjectDetectionMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.verify|verify} messages. + * @param message AutoMlImageObjectDetectionMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlVideoActionRecognitionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.verify|verify} messages. - * @param message AutoMlVideoActionRecognitionInputs message or plain object to encode + * Encodes the specified AutoMlImageObjectDetectionMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata.verify|verify} messages. + * @param message AutoMlImageObjectDetectionMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageObjectDetectionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlVideoActionRecognitionInputs message from the specified reader or buffer. + * Decodes an AutoMlImageObjectDetectionMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlVideoActionRecognitionInputs + * @returns AutoMlImageObjectDetectionMetadata * @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.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; /** - * Decodes an AutoMlVideoActionRecognitionInputs message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageObjectDetectionMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlVideoActionRecognitionInputs + * @returns AutoMlImageObjectDetectionMetadata * @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.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; /** - * Verifies an AutoMlVideoActionRecognitionInputs message. + * Verifies an AutoMlImageObjectDetectionMetadata 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 AutoMlVideoActionRecognitionInputs message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageObjectDetectionMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlVideoActionRecognitionInputs + * @returns AutoMlImageObjectDetectionMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata; /** - * Creates a plain object from an AutoMlVideoActionRecognitionInputs message. Also converts values to other types if specified. - * @param message AutoMlVideoActionRecognitionInputs + * Creates a plain object from an AutoMlImageObjectDetectionMetadata message. Also converts values to other types if specified. + * @param message AutoMlImageObjectDetectionMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageObjectDetectionMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlVideoActionRecognitionInputs to JSON. + * Converts this AutoMlImageObjectDetectionMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlVideoActionRecognitionInputs + * Gets the default type url for AutoMlImageObjectDetectionMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlVideoActionRecognitionInputs { + namespace AutoMlImageObjectDetectionMetadata { - /** ModelType enum. */ - enum ModelType { - MODEL_TYPE_UNSPECIFIED = 0, - CLOUD = 1, - MOBILE_VERSATILE_1 = 2, - MOBILE_JETSON_VERSATILE_1 = 3, - MOBILE_CORAL_VERSATILE_1 = 4 + /** SuccessfulStopReason enum. */ + enum SuccessfulStopReason { + SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0, + BUDGET_REACHED = 1, + MODEL_CONVERGED = 2 } } - /** Properties of an AutoMlVideoClassification. */ - interface IAutoMlVideoClassification { + /** Properties of an AutoMlImageSegmentation. */ + interface IAutoMlImageSegmentation { - /** AutoMlVideoClassification inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs|null); + /** AutoMlImageSegmentation inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs|null); + + /** AutoMlImageSegmentation metadata */ + metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata|null); } - /** Represents an AutoMlVideoClassification. */ - class AutoMlVideoClassification implements IAutoMlVideoClassification { + /** Represents an AutoMlImageSegmentation. */ + class AutoMlImageSegmentation implements IAutoMlImageSegmentation { /** - * Constructs a new AutoMlVideoClassification. + * Constructs a new AutoMlImageSegmentation. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassification); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentation); - /** AutoMlVideoClassification inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs|null); + /** AutoMlImageSegmentation inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs|null); + + /** AutoMlImageSegmentation metadata. */ + public metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata|null); /** - * Creates a new AutoMlVideoClassification instance using the specified properties. + * Creates a new AutoMlImageSegmentation instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlVideoClassification instance + * @returns AutoMlImageSegmentation instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassification): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation; /** - * Encodes the specified AutoMlVideoClassification message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification.verify|verify} messages. - * @param message AutoMlVideoClassification message or plain object to encode + * Encodes the specified AutoMlImageSegmentation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation.verify|verify} messages. + * @param message AutoMlImageSegmentation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlVideoClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification.verify|verify} messages. - * @param message AutoMlVideoClassification message or plain object to encode + * Encodes the specified AutoMlImageSegmentation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation.verify|verify} messages. + * @param message AutoMlImageSegmentation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlVideoClassification message from the specified reader or buffer. + * Decodes an AutoMlImageSegmentation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlVideoClassification + * @returns AutoMlImageSegmentation * @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.schema.trainingjob.definition.AutoMlVideoClassification; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation; /** - * Decodes an AutoMlVideoClassification message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageSegmentation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlVideoClassification + * @returns AutoMlImageSegmentation * @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.schema.trainingjob.definition.AutoMlVideoClassification; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation; /** - * Verifies an AutoMlVideoClassification message. + * Verifies an AutoMlImageSegmentation 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 AutoMlVideoClassification message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageSegmentation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlVideoClassification + * @returns AutoMlImageSegmentation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation; /** - * Creates a plain object from an AutoMlVideoClassification message. Also converts values to other types if specified. - * @param message AutoMlVideoClassification + * Creates a plain object from an AutoMlImageSegmentation message. Also converts values to other types if specified. + * @param message AutoMlImageSegmentation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlVideoClassification to JSON. + * Converts this AutoMlImageSegmentation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlVideoClassification + * Gets the default type url for AutoMlImageSegmentation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlVideoClassificationInputs. */ - interface IAutoMlVideoClassificationInputs { + /** Properties of an AutoMlImageSegmentationInputs. */ + interface IAutoMlImageSegmentationInputs { - /** AutoMlVideoClassificationInputs modelType */ - modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType|null); + /** AutoMlImageSegmentationInputs modelType */ + modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType|null); + + /** AutoMlImageSegmentationInputs budgetMilliNodeHours */ + budgetMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageSegmentationInputs baseModelId */ + baseModelId?: (string|null); } - /** Represents an AutoMlVideoClassificationInputs. */ - class AutoMlVideoClassificationInputs implements IAutoMlVideoClassificationInputs { + /** Represents an AutoMlImageSegmentationInputs. */ + class AutoMlImageSegmentationInputs implements IAutoMlImageSegmentationInputs { /** - * Constructs a new AutoMlVideoClassificationInputs. + * Constructs a new AutoMlImageSegmentationInputs. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs); - /** AutoMlVideoClassificationInputs modelType. */ - public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType); + /** AutoMlImageSegmentationInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.ModelType); + + /** AutoMlImageSegmentationInputs budgetMilliNodeHours. */ + public budgetMilliNodeHours: (number|Long|string); + + /** AutoMlImageSegmentationInputs baseModelId. */ + public baseModelId: string; /** - * Creates a new AutoMlVideoClassificationInputs instance using the specified properties. + * Creates a new AutoMlImageSegmentationInputs instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlVideoClassificationInputs instance + * @returns AutoMlImageSegmentationInputs instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; /** - * Encodes the specified AutoMlVideoClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.verify|verify} messages. - * @param message AutoMlVideoClassificationInputs message or plain object to encode + * Encodes the specified AutoMlImageSegmentationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.verify|verify} messages. + * @param message AutoMlImageSegmentationInputs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlVideoClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.verify|verify} messages. - * @param message AutoMlVideoClassificationInputs message or plain object to encode + * Encodes the specified AutoMlImageSegmentationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs.verify|verify} messages. + * @param message AutoMlImageSegmentationInputs message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationInputs, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlVideoClassificationInputs message from the specified reader or buffer. + * Decodes an AutoMlImageSegmentationInputs message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlVideoClassificationInputs + * @returns AutoMlImageSegmentationInputs * @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.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; /** - * Decodes an AutoMlVideoClassificationInputs message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageSegmentationInputs message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlVideoClassificationInputs + * @returns AutoMlImageSegmentationInputs * @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.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; /** - * Verifies an AutoMlVideoClassificationInputs message. + * Verifies an AutoMlImageSegmentationInputs 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 AutoMlVideoClassificationInputs message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageSegmentationInputs message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlVideoClassificationInputs + * @returns AutoMlImageSegmentationInputs */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs; /** - * Creates a plain object from an AutoMlVideoClassificationInputs message. Also converts values to other types if specified. - * @param message AutoMlVideoClassificationInputs + * Creates a plain object from an AutoMlImageSegmentationInputs message. Also converts values to other types if specified. + * @param message AutoMlImageSegmentationInputs * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlVideoClassificationInputs to JSON. + * Converts this AutoMlImageSegmentationInputs to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlVideoClassificationInputs + * Gets the default type url for AutoMlImageSegmentationInputs * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlVideoClassificationInputs { + namespace AutoMlImageSegmentationInputs { /** ModelType enum. */ enum ModelType { MODEL_TYPE_UNSPECIFIED = 0, - CLOUD = 1, - MOBILE_VERSATILE_1 = 2, - MOBILE_JETSON_VERSATILE_1 = 3 + CLOUD_HIGH_ACCURACY_1 = 1, + CLOUD_LOW_ACCURACY_1 = 2, + MOBILE_TF_LOW_LATENCY_1 = 3 } } - /** Properties of an AutoMlVideoObjectTracking. */ - interface IAutoMlVideoObjectTracking { + /** Properties of an AutoMlImageSegmentationMetadata. */ + interface IAutoMlImageSegmentationMetadata { - /** AutoMlVideoObjectTracking inputs */ - inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs|null); + /** AutoMlImageSegmentationMetadata costMilliNodeHours */ + costMilliNodeHours?: (number|Long|string|null); + + /** AutoMlImageSegmentationMetadata successfulStopReason */ + successfulStopReason?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason|null); } - /** Represents an AutoMlVideoObjectTracking. */ - class AutoMlVideoObjectTracking implements IAutoMlVideoObjectTracking { + /** Represents an AutoMlImageSegmentationMetadata. */ + class AutoMlImageSegmentationMetadata implements IAutoMlImageSegmentationMetadata { /** - * Constructs a new AutoMlVideoObjectTracking. + * Constructs a new AutoMlImageSegmentationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTracking); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata); - /** AutoMlVideoObjectTracking inputs. */ - public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs|null); + /** AutoMlImageSegmentationMetadata costMilliNodeHours. */ + public costMilliNodeHours: (number|Long|string); + + /** AutoMlImageSegmentationMetadata successfulStopReason. */ + public successfulStopReason: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.SuccessfulStopReason); /** - * Creates a new AutoMlVideoObjectTracking instance using the specified properties. + * Creates a new AutoMlImageSegmentationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlVideoObjectTracking instance + * @returns AutoMlImageSegmentationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTracking): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; /** - * Encodes the specified AutoMlVideoObjectTracking message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking.verify|verify} messages. - * @param message AutoMlVideoObjectTracking message or plain object to encode + * Encodes the specified AutoMlImageSegmentationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.verify|verify} messages. + * @param message AutoMlImageSegmentationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTracking, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlVideoObjectTracking message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking.verify|verify} messages. - * @param message AutoMlVideoObjectTracking message or plain object to encode + * Encodes the specified AutoMlImageSegmentationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata.verify|verify} messages. + * @param message AutoMlImageSegmentationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTracking, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlImageSegmentationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlVideoObjectTracking message from the specified reader or buffer. + * Decodes an AutoMlImageSegmentationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlVideoObjectTracking + * @returns AutoMlImageSegmentationMetadata * @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.schema.trainingjob.definition.AutoMlVideoObjectTracking; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; /** - * Decodes an AutoMlVideoObjectTracking message from the specified reader or buffer, length delimited. + * Decodes an AutoMlImageSegmentationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlVideoObjectTracking + * @returns AutoMlImageSegmentationMetadata * @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.schema.trainingjob.definition.AutoMlVideoObjectTracking; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; /** - * Verifies an AutoMlVideoObjectTracking message. + * Verifies an AutoMlImageSegmentationMetadata 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 AutoMlVideoObjectTracking message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlImageSegmentationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlVideoObjectTracking + * @returns AutoMlImageSegmentationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata; /** - * Creates a plain object from an AutoMlVideoObjectTracking message. Also converts values to other types if specified. - * @param message AutoMlVideoObjectTracking + * Creates a plain object from an AutoMlImageSegmentationMetadata message. Also converts values to other types if specified. + * @param message AutoMlImageSegmentationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlImageSegmentationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlVideoObjectTracking to JSON. + * Converts this AutoMlImageSegmentationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlVideoObjectTracking + * Gets the default type url for AutoMlImageSegmentationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoMlVideoObjectTrackingInputs. */ - interface IAutoMlVideoObjectTrackingInputs { + namespace AutoMlImageSegmentationMetadata { - /** AutoMlVideoObjectTrackingInputs modelType */ - modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType|null); + /** SuccessfulStopReason enum. */ + enum SuccessfulStopReason { + SUCCESSFUL_STOP_REASON_UNSPECIFIED = 0, + BUDGET_REACHED = 1, + MODEL_CONVERGED = 2 + } } - /** Represents an AutoMlVideoObjectTrackingInputs. */ - class AutoMlVideoObjectTrackingInputs implements IAutoMlVideoObjectTrackingInputs { + /** Properties of an AutoMlTables. */ + interface IAutoMlTables { + + /** AutoMlTables inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs|null); + + /** AutoMlTables metadata */ + metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata|null); + } + + /** Represents an AutoMlTables. */ + class AutoMlTables implements IAutoMlTables { /** - * Constructs a new AutoMlVideoObjectTrackingInputs. + * Constructs a new AutoMlTables. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs); + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTables); - /** AutoMlVideoObjectTrackingInputs modelType. */ - public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType); + /** AutoMlTables inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs|null); + + /** AutoMlTables metadata. */ + public metadata?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata|null); /** - * Creates a new AutoMlVideoObjectTrackingInputs instance using the specified properties. + * Creates a new AutoMlTables instance using the specified properties. * @param [properties] Properties to set - * @returns AutoMlVideoObjectTrackingInputs instance + * @returns AutoMlTables instance */ - public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTables): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables; /** - * Encodes the specified AutoMlVideoObjectTrackingInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.verify|verify} messages. - * @param message AutoMlVideoObjectTrackingInputs message or plain object to encode + * Encodes the specified AutoMlTables message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables.verify|verify} messages. + * @param message AutoMlTables message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTables, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoMlVideoObjectTrackingInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.verify|verify} messages. - * @param message AutoMlVideoObjectTrackingInputs message or plain object to encode + * Encodes the specified AutoMlTables message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables.verify|verify} messages. + * @param message AutoMlTables message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTables, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoMlVideoObjectTrackingInputs message from the specified reader or buffer. + * Decodes an AutoMlTables message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoMlVideoObjectTrackingInputs + * @returns AutoMlTables * @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.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables; /** - * Decodes an AutoMlVideoObjectTrackingInputs message from the specified reader or buffer, length delimited. + * Decodes an AutoMlTables message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoMlVideoObjectTrackingInputs + * @returns AutoMlTables * @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.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables; /** - * Verifies an AutoMlVideoObjectTrackingInputs message. + * Verifies an AutoMlTables 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 AutoMlVideoObjectTrackingInputs message from a plain object. Also converts values to their respective internal types. + * Creates an AutoMlTables message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoMlVideoObjectTrackingInputs + * @returns AutoMlTables */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables; /** - * Creates a plain object from an AutoMlVideoObjectTrackingInputs message. Also converts values to other types if specified. - * @param message AutoMlVideoObjectTrackingInputs + * Creates a plain object from an AutoMlTables message. Also converts values to other types if specified. + * @param message AutoMlTables * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTables, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoMlVideoObjectTrackingInputs to JSON. + * Converts this AutoMlTables to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoMlVideoObjectTrackingInputs + * Gets the default type url for AutoMlTables * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace AutoMlVideoObjectTrackingInputs { + /** Properties of an AutoMlTablesInputs. */ + interface IAutoMlTablesInputs { - /** ModelType enum. */ - enum ModelType { - MODEL_TYPE_UNSPECIFIED = 0, - CLOUD = 1, - MOBILE_VERSATILE_1 = 2, - MOBILE_CORAL_VERSATILE_1 = 3, - MOBILE_CORAL_LOW_LATENCY_1 = 4, - MOBILE_JETSON_VERSATILE_1 = 5, - MOBILE_JETSON_LOW_LATENCY_1 = 6 - } - } - } - } - } + /** AutoMlTablesInputs optimizationObjectiveRecallValue */ + optimizationObjectiveRecallValue?: (number|null); - /** Properties of a SpecialistPool. */ - interface ISpecialistPool { + /** AutoMlTablesInputs optimizationObjectivePrecisionValue */ + optimizationObjectivePrecisionValue?: (number|null); - /** SpecialistPool name */ - name?: (string|null); + /** AutoMlTablesInputs predictionType */ + predictionType?: (string|null); - /** SpecialistPool displayName */ - displayName?: (string|null); + /** AutoMlTablesInputs targetColumn */ + targetColumn?: (string|null); - /** SpecialistPool specialistManagersCount */ - specialistManagersCount?: (number|null); + /** AutoMlTablesInputs transformations */ + transformations?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation[]|null); - /** SpecialistPool specialistManagerEmails */ - specialistManagerEmails?: (string[]|null); + /** AutoMlTablesInputs optimizationObjective */ + optimizationObjective?: (string|null); - /** SpecialistPool pendingDataLabelingJobs */ - pendingDataLabelingJobs?: (string[]|null); + /** AutoMlTablesInputs trainBudgetMilliNodeHours */ + trainBudgetMilliNodeHours?: (number|Long|string|null); - /** SpecialistPool specialistWorkerEmails */ - specialistWorkerEmails?: (string[]|null); - } + /** AutoMlTablesInputs disableEarlyStopping */ + disableEarlyStopping?: (boolean|null); - /** Represents a SpecialistPool. */ - class SpecialistPool implements ISpecialistPool { + /** AutoMlTablesInputs weightColumnName */ + weightColumnName?: (string|null); - /** - * Constructs a new SpecialistPool. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ISpecialistPool); + /** AutoMlTablesInputs exportEvaluatedDataItemsConfig */ + exportEvaluatedDataItemsConfig?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null); - /** SpecialistPool name. */ - public name: string; + /** AutoMlTablesInputs additionalExperiments */ + additionalExperiments?: (string[]|null); + } - /** SpecialistPool displayName. */ - public displayName: string; + /** Represents an AutoMlTablesInputs. */ + class AutoMlTablesInputs implements IAutoMlTablesInputs { - /** SpecialistPool specialistManagersCount. */ - public specialistManagersCount: number; + /** + * Constructs a new AutoMlTablesInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs); - /** SpecialistPool specialistManagerEmails. */ - public specialistManagerEmails: string[]; + /** AutoMlTablesInputs optimizationObjectiveRecallValue. */ + public optimizationObjectiveRecallValue?: (number|null); - /** SpecialistPool pendingDataLabelingJobs. */ - public pendingDataLabelingJobs: string[]; + /** AutoMlTablesInputs optimizationObjectivePrecisionValue. */ + public optimizationObjectivePrecisionValue?: (number|null); - /** SpecialistPool specialistWorkerEmails. */ - public specialistWorkerEmails: string[]; + /** AutoMlTablesInputs predictionType. */ + public predictionType: string; - /** - * Creates a new SpecialistPool instance using the specified properties. - * @param [properties] Properties to set - * @returns SpecialistPool instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ISpecialistPool): google.cloud.aiplatform.v1.SpecialistPool; + /** AutoMlTablesInputs targetColumn. */ + public targetColumn: string; - /** - * Encodes the specified SpecialistPool message. Does not implicitly {@link google.cloud.aiplatform.v1.SpecialistPool.verify|verify} messages. - * @param message SpecialistPool message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ISpecialistPool, writer?: $protobuf.Writer): $protobuf.Writer; + /** AutoMlTablesInputs transformations. */ + public transformations: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation[]; - /** - * Encodes the specified SpecialistPool message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SpecialistPool.verify|verify} messages. - * @param message SpecialistPool message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISpecialistPool, writer?: $protobuf.Writer): $protobuf.Writer; + /** AutoMlTablesInputs optimizationObjective. */ + public optimizationObjective: string; - /** - * Decodes a SpecialistPool message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SpecialistPool - * @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.SpecialistPool; + /** AutoMlTablesInputs trainBudgetMilliNodeHours. */ + public trainBudgetMilliNodeHours: (number|Long|string); - /** - * Decodes a SpecialistPool message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SpecialistPool - * @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.SpecialistPool; + /** AutoMlTablesInputs disableEarlyStopping. */ + public disableEarlyStopping: boolean; - /** - * Verifies a SpecialistPool 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); + /** AutoMlTablesInputs weightColumnName. */ + public weightColumnName: string; - /** - * Creates a SpecialistPool message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SpecialistPool - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SpecialistPool; + /** AutoMlTablesInputs exportEvaluatedDataItemsConfig. */ + public exportEvaluatedDataItemsConfig?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig|null); - /** - * Creates a plain object from a SpecialistPool message. Also converts values to other types if specified. - * @param message SpecialistPool - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.SpecialistPool, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** AutoMlTablesInputs additionalExperiments. */ + public additionalExperiments: string[]; - /** - * Converts this SpecialistPool to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** AutoMlTablesInputs additionalOptimizationObjectiveConfig. */ + public additionalOptimizationObjectiveConfig?: ("optimizationObjectiveRecallValue"|"optimizationObjectivePrecisionValue"); - /** - * Gets the default type url for SpecialistPool - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a new AutoMlTablesInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTablesInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs; - /** Represents a SpecialistPoolService */ - class SpecialistPoolService extends $protobuf.rpc.Service { + /** + * Encodes the specified AutoMlTablesInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.verify|verify} messages. + * @param message AutoMlTablesInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new SpecialistPoolService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** + * Encodes the specified AutoMlTablesInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.verify|verify} messages. + * @param message AutoMlTablesInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesInputs, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates new SpecialistPoolService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SpecialistPoolService; + /** + * Decodes an AutoMlTablesInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTablesInputs + * @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.schema.trainingjob.definition.AutoMlTablesInputs; - /** - * Calls CreateSpecialistPool. - * @param request CreateSpecialistPoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createSpecialistPool(request: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.CreateSpecialistPoolCallback): void; + /** + * Decodes an AutoMlTablesInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTablesInputs + * @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.schema.trainingjob.definition.AutoMlTablesInputs; - /** - * Calls CreateSpecialistPool. - * @param request CreateSpecialistPoolRequest message or plain object - * @returns Promise - */ - public createSpecialistPool(request: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest): Promise; + /** + * Verifies an AutoMlTablesInputs 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); - /** - * Calls GetSpecialistPool. - * @param request GetSpecialistPoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SpecialistPool - */ - public getSpecialistPool(request: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.GetSpecialistPoolCallback): void; + /** + * Creates an AutoMlTablesInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTablesInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs; - /** - * Calls GetSpecialistPool. - * @param request GetSpecialistPoolRequest message or plain object - * @returns Promise - */ - public getSpecialistPool(request: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest): Promise; + /** + * Creates a plain object from an AutoMlTablesInputs message. Also converts values to other types if specified. + * @param message AutoMlTablesInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Calls ListSpecialistPools. - * @param request ListSpecialistPoolsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListSpecialistPoolsResponse - */ - public listSpecialistPools(request: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.ListSpecialistPoolsCallback): void; + /** + * Converts this AutoMlTablesInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Calls ListSpecialistPools. - * @param request ListSpecialistPoolsRequest message or plain object - * @returns Promise - */ - public listSpecialistPools(request: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest): Promise; + /** + * Gets the default type url for AutoMlTablesInputs + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls DeleteSpecialistPool. - * @param request DeleteSpecialistPoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteSpecialistPool(request: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.DeleteSpecialistPoolCallback): void; + namespace AutoMlTablesInputs { - /** - * Calls DeleteSpecialistPool. - * @param request DeleteSpecialistPoolRequest message or plain object - * @returns Promise - */ - public deleteSpecialistPool(request: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest): Promise; + /** Properties of a Transformation. */ + interface ITransformation { - /** - * Calls UpdateSpecialistPool. - * @param request UpdateSpecialistPoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public updateSpecialistPool(request: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.UpdateSpecialistPoolCallback): void; + /** Transformation auto */ + auto?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation|null); - /** - * Calls UpdateSpecialistPool. - * @param request UpdateSpecialistPoolRequest message or plain object - * @returns Promise - */ - public updateSpecialistPool(request: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest): Promise; - } + /** Transformation numeric */ + numeric?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation|null); - namespace SpecialistPoolService { + /** Transformation categorical */ + categorical?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|createSpecialistPool}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Transformation timestamp */ + timestamp?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|getSpecialistPool}. - * @param error Error, if any - * @param [response] SpecialistPool - */ - type GetSpecialistPoolCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.SpecialistPool) => void; + /** Transformation text */ + text?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|listSpecialistPools}. - * @param error Error, if any - * @param [response] ListSpecialistPoolsResponse - */ - type ListSpecialistPoolsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListSpecialistPoolsResponse) => void; + /** Transformation repeatedNumeric */ + repeatedNumeric?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|deleteSpecialistPool}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Transformation repeatedCategorical */ + repeatedCategorical?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|updateSpecialistPool}. - * @param error Error, if any - * @param [response] Operation - */ - type UpdateSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - } + /** Transformation repeatedText */ + repeatedText?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation|null); + } - /** Properties of a CreateSpecialistPoolRequest. */ - interface ICreateSpecialistPoolRequest { + /** Represents a Transformation. */ + class Transformation implements ITransformation { - /** CreateSpecialistPoolRequest parent */ - parent?: (string|null); + /** + * Constructs a new Transformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation); - /** CreateSpecialistPoolRequest specialistPool */ - specialistPool?: (google.cloud.aiplatform.v1.ISpecialistPool|null); - } + /** Transformation auto. */ + public auto?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation|null); - /** Represents a CreateSpecialistPoolRequest. */ - class CreateSpecialistPoolRequest implements ICreateSpecialistPoolRequest { + /** Transformation numeric. */ + public numeric?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation|null); - /** - * Constructs a new CreateSpecialistPoolRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest); + /** Transformation categorical. */ + public categorical?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation|null); - /** CreateSpecialistPoolRequest parent. */ - public parent: string; + /** Transformation timestamp. */ + public timestamp?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation|null); - /** CreateSpecialistPoolRequest specialistPool. */ - public specialistPool?: (google.cloud.aiplatform.v1.ISpecialistPool|null); + /** Transformation text. */ + public text?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation|null); - /** - * Creates a new CreateSpecialistPoolRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateSpecialistPoolRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest): google.cloud.aiplatform.v1.CreateSpecialistPoolRequest; + /** Transformation repeatedNumeric. */ + public repeatedNumeric?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation|null); - /** - * Encodes the specified CreateSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateSpecialistPoolRequest.verify|verify} messages. - * @param message CreateSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Transformation repeatedCategorical. */ + public repeatedCategorical?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation|null); - /** - * Encodes the specified CreateSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateSpecialistPoolRequest.verify|verify} messages. - * @param message CreateSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Transformation repeatedText. */ + public repeatedText?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation|null); - /** - * Decodes a CreateSpecialistPoolRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateSpecialistPoolRequest - * @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.CreateSpecialistPoolRequest; + /** Transformation transformationDetail. */ + public transformationDetail?: ("auto"|"numeric"|"categorical"|"timestamp"|"text"|"repeatedNumeric"|"repeatedCategorical"|"repeatedText"); - /** - * Decodes a CreateSpecialistPoolRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateSpecialistPoolRequest - * @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.CreateSpecialistPoolRequest; + /** + * Creates a new Transformation instance using the specified properties. + * @param [properties] Properties to set + * @returns Transformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; - /** - * Verifies a CreateSpecialistPoolRequest 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); + /** + * Encodes the specified Transformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.verify|verify} messages. + * @param message Transformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a CreateSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateSpecialistPoolRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateSpecialistPoolRequest; + /** + * Encodes the specified Transformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.verify|verify} messages. + * @param message Transformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.ITransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a CreateSpecialistPoolRequest message. Also converts values to other types if specified. - * @param message CreateSpecialistPoolRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.CreateSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CreateSpecialistPoolRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a Transformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Transformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; - /** - * Gets the default type url for CreateSpecialistPoolRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a Transformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Transformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; - /** Properties of a CreateSpecialistPoolOperationMetadata. */ - interface ICreateSpecialistPoolOperationMetadata { + /** + * Verifies a Transformation 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); - /** CreateSpecialistPoolOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - } + /** + * Creates a Transformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Transformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation; - /** Represents a CreateSpecialistPoolOperationMetadata. */ - class CreateSpecialistPoolOperationMetadata implements ICreateSpecialistPoolOperationMetadata { + /** + * Creates a plain object from a Transformation message. Also converts values to other types if specified. + * @param message Transformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new CreateSpecialistPoolOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateSpecialistPoolOperationMetadata); + /** + * Converts this Transformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** CreateSpecialistPoolOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** + * Gets the default type url for Transformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a new CreateSpecialistPoolOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateSpecialistPoolOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateSpecialistPoolOperationMetadata): google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata; + namespace Transformation { - /** - * Encodes the specified CreateSpecialistPoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata.verify|verify} messages. - * @param message CreateSpecialistPoolOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ICreateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an AutoTransformation. */ + interface IAutoTransformation { - /** - * Encodes the specified CreateSpecialistPoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata.verify|verify} messages. - * @param message CreateSpecialistPoolOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** AutoTransformation columnName */ + columnName?: (string|null); + } - /** - * Decodes a CreateSpecialistPoolOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateSpecialistPoolOperationMetadata - * @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.CreateSpecialistPoolOperationMetadata; + /** Represents an AutoTransformation. */ + class AutoTransformation implements IAutoTransformation { - /** - * Decodes a CreateSpecialistPoolOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateSpecialistPoolOperationMetadata - * @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.CreateSpecialistPoolOperationMetadata; + /** + * Constructs a new AutoTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation); - /** - * Verifies a CreateSpecialistPoolOperationMetadata 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); + /** AutoTransformation columnName. */ + public columnName: string; - /** - * Creates a CreateSpecialistPoolOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateSpecialistPoolOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata; + /** + * Creates a new AutoTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; - /** - * Creates a plain object from a CreateSpecialistPoolOperationMetadata message. Also converts values to other types if specified. - * @param message CreateSpecialistPoolOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified AutoTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation.verify|verify} messages. + * @param message AutoTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this CreateSpecialistPoolOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified AutoTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation.verify|verify} messages. + * @param message AutoTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.IAutoTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for CreateSpecialistPoolOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes an AutoTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoTransformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; - /** Properties of a GetSpecialistPoolRequest. */ - interface IGetSpecialistPoolRequest { + /** + * Decodes an AutoTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoTransformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; - /** GetSpecialistPoolRequest name */ - name?: (string|null); - } + /** + * Verifies an AutoTransformation 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); - /** Represents a GetSpecialistPoolRequest. */ - class GetSpecialistPoolRequest implements IGetSpecialistPoolRequest { + /** + * Creates an AutoTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation; - /** - * Constructs a new GetSpecialistPoolRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest); + /** + * Creates a plain object from an AutoTransformation message. Also converts values to other types if specified. + * @param message AutoTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.AutoTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** GetSpecialistPoolRequest name. */ - public name: string; + /** + * Converts this AutoTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new GetSpecialistPoolRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetSpecialistPoolRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest): google.cloud.aiplatform.v1.GetSpecialistPoolRequest; + /** + * Gets the default type url for AutoTransformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified GetSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetSpecialistPoolRequest.verify|verify} messages. - * @param message GetSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a NumericTransformation. */ + interface INumericTransformation { - /** - * Encodes the specified GetSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetSpecialistPoolRequest.verify|verify} messages. - * @param message GetSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** NumericTransformation columnName */ + columnName?: (string|null); - /** - * Decodes a GetSpecialistPoolRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetSpecialistPoolRequest - * @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.GetSpecialistPoolRequest; + /** NumericTransformation invalidValuesAllowed */ + invalidValuesAllowed?: (boolean|null); + } - /** - * Decodes a GetSpecialistPoolRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetSpecialistPoolRequest - * @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.GetSpecialistPoolRequest; + /** Represents a NumericTransformation. */ + class NumericTransformation implements INumericTransformation { - /** - * Verifies a GetSpecialistPoolRequest 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); + /** + * Constructs a new NumericTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation); - /** - * Creates a GetSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetSpecialistPoolRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetSpecialistPoolRequest; + /** NumericTransformation columnName. */ + public columnName: string; - /** - * Creates a plain object from a GetSpecialistPoolRequest message. Also converts values to other types if specified. - * @param message GetSpecialistPoolRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.GetSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** NumericTransformation invalidValuesAllowed. */ + public invalidValuesAllowed: boolean; - /** - * Converts this GetSpecialistPoolRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new NumericTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns NumericTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; - /** - * Gets the default type url for GetSpecialistPoolRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified NumericTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation.verify|verify} messages. + * @param message NumericTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a ListSpecialistPoolsRequest. */ - interface IListSpecialistPoolsRequest { + /** + * Encodes the specified NumericTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation.verify|verify} messages. + * @param message NumericTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListSpecialistPoolsRequest parent */ - parent?: (string|null); + /** + * Decodes a NumericTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NumericTransformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; - /** ListSpecialistPoolsRequest pageSize */ - pageSize?: (number|null); + /** + * Decodes a NumericTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NumericTransformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; - /** ListSpecialistPoolsRequest pageToken */ - pageToken?: (string|null); + /** + * Verifies a NumericTransformation 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); - /** ListSpecialistPoolsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); - } + /** + * Creates a NumericTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NumericTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation; - /** Represents a ListSpecialistPoolsRequest. */ - class ListSpecialistPoolsRequest implements IListSpecialistPoolsRequest { + /** + * Creates a plain object from a NumericTransformation message. Also converts values to other types if specified. + * @param message NumericTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new ListSpecialistPoolsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest); + /** + * Converts this NumericTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ListSpecialistPoolsRequest parent. */ - public parent: string; + /** + * Gets the default type url for NumericTransformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ListSpecialistPoolsRequest pageSize. */ - public pageSize: number; + /** Properties of a CategoricalTransformation. */ + interface ICategoricalTransformation { - /** ListSpecialistPoolsRequest pageToken. */ - public pageToken: string; + /** CategoricalTransformation columnName */ + columnName?: (string|null); + } - /** ListSpecialistPoolsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** Represents a CategoricalTransformation. */ + class CategoricalTransformation implements ICategoricalTransformation { - /** - * Creates a new ListSpecialistPoolsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListSpecialistPoolsRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest): google.cloud.aiplatform.v1.ListSpecialistPoolsRequest; + /** + * Constructs a new CategoricalTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation); - /** - * Encodes the specified ListSpecialistPoolsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListSpecialistPoolsRequest.verify|verify} messages. - * @param message ListSpecialistPoolsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** CategoricalTransformation columnName. */ + public columnName: string; - /** - * Encodes the specified ListSpecialistPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListSpecialistPoolsRequest.verify|verify} messages. - * @param message ListSpecialistPoolsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new CategoricalTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns CategoricalTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; - /** - * Decodes a ListSpecialistPoolsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListSpecialistPoolsRequest - * @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.ListSpecialistPoolsRequest; + /** + * Encodes the specified CategoricalTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation.verify|verify} messages. + * @param message CategoricalTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ListSpecialistPoolsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListSpecialistPoolsRequest - * @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.ListSpecialistPoolsRequest; + /** + * Encodes the specified CategoricalTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation.verify|verify} messages. + * @param message CategoricalTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a ListSpecialistPoolsRequest 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); + /** + * Decodes a CategoricalTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CategoricalTransformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; - /** - * Creates a ListSpecialistPoolsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListSpecialistPoolsRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListSpecialistPoolsRequest; - - /** - * Creates a plain object from a ListSpecialistPoolsRequest message. Also converts values to other types if specified. - * @param message ListSpecialistPoolsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ListSpecialistPoolsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ListSpecialistPoolsRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a CategoricalTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CategoricalTransformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; - /** - * Gets the default type url for ListSpecialistPoolsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a CategoricalTransformation 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); - /** Properties of a ListSpecialistPoolsResponse. */ - interface IListSpecialistPoolsResponse { + /** + * Creates a CategoricalTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CategoricalTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation; - /** ListSpecialistPoolsResponse specialistPools */ - specialistPools?: (google.cloud.aiplatform.v1.ISpecialistPool[]|null); + /** + * Creates a plain object from a CategoricalTransformation message. Also converts values to other types if specified. + * @param message CategoricalTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ListSpecialistPoolsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** + * Converts this CategoricalTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a ListSpecialistPoolsResponse. */ - class ListSpecialistPoolsResponse implements IListSpecialistPoolsResponse { + /** + * Gets the default type url for CategoricalTransformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new ListSpecialistPoolsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListSpecialistPoolsResponse); + /** Properties of a TimestampTransformation. */ + interface ITimestampTransformation { - /** ListSpecialistPoolsResponse specialistPools. */ - public specialistPools: google.cloud.aiplatform.v1.ISpecialistPool[]; + /** TimestampTransformation columnName */ + columnName?: (string|null); - /** ListSpecialistPoolsResponse nextPageToken. */ - public nextPageToken: string; + /** TimestampTransformation timeFormat */ + timeFormat?: (string|null); - /** - * Creates a new ListSpecialistPoolsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListSpecialistPoolsResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IListSpecialistPoolsResponse): google.cloud.aiplatform.v1.ListSpecialistPoolsResponse; + /** TimestampTransformation invalidValuesAllowed */ + invalidValuesAllowed?: (boolean|null); + } - /** - * Encodes the specified ListSpecialistPoolsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListSpecialistPoolsResponse.verify|verify} messages. - * @param message ListSpecialistPoolsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IListSpecialistPoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a TimestampTransformation. */ + class TimestampTransformation implements ITimestampTransformation { - /** - * Encodes the specified ListSpecialistPoolsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListSpecialistPoolsResponse.verify|verify} messages. - * @param message ListSpecialistPoolsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListSpecialistPoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new TimestampTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation); - /** - * Decodes a ListSpecialistPoolsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListSpecialistPoolsResponse - * @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.ListSpecialistPoolsResponse; + /** TimestampTransformation columnName. */ + public columnName: string; - /** - * Decodes a ListSpecialistPoolsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListSpecialistPoolsResponse - * @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.ListSpecialistPoolsResponse; + /** TimestampTransformation timeFormat. */ + public timeFormat: string; - /** - * Verifies a ListSpecialistPoolsResponse 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); + /** TimestampTransformation invalidValuesAllowed. */ + public invalidValuesAllowed: boolean; - /** - * Creates a ListSpecialistPoolsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListSpecialistPoolsResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListSpecialistPoolsResponse; + /** + * Creates a new TimestampTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns TimestampTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; - /** - * Creates a plain object from a ListSpecialistPoolsResponse message. Also converts values to other types if specified. - * @param message ListSpecialistPoolsResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ListSpecialistPoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified TimestampTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation.verify|verify} messages. + * @param message TimestampTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this ListSpecialistPoolsResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified TimestampTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation.verify|verify} messages. + * @param message TimestampTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITimestampTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for ListSpecialistPoolsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a TimestampTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimestampTransformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; - /** Properties of a DeleteSpecialistPoolRequest. */ - interface IDeleteSpecialistPoolRequest { + /** + * Decodes a TimestampTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TimestampTransformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; - /** DeleteSpecialistPoolRequest name */ - name?: (string|null); + /** + * Verifies a TimestampTransformation 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); - /** DeleteSpecialistPoolRequest force */ - force?: (boolean|null); - } + /** + * Creates a TimestampTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimestampTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation; - /** Represents a DeleteSpecialistPoolRequest. */ - class DeleteSpecialistPoolRequest implements IDeleteSpecialistPoolRequest { + /** + * Creates a plain object from a TimestampTransformation message. Also converts values to other types if specified. + * @param message TimestampTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TimestampTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new DeleteSpecialistPoolRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest); + /** + * Converts this TimestampTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** DeleteSpecialistPoolRequest name. */ - public name: string; + /** + * Gets the default type url for TimestampTransformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** DeleteSpecialistPoolRequest force. */ - public force: boolean; + /** Properties of a TextTransformation. */ + interface ITextTransformation { - /** - * Creates a new DeleteSpecialistPoolRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteSpecialistPoolRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest): google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest; + /** TextTransformation columnName */ + columnName?: (string|null); + } - /** - * Encodes the specified DeleteSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest.verify|verify} messages. - * @param message DeleteSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a TextTransformation. */ + class TextTransformation implements ITextTransformation { - /** - * Encodes the specified DeleteSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest.verify|verify} messages. - * @param message DeleteSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new TextTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation); - /** - * Decodes a DeleteSpecialistPoolRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteSpecialistPoolRequest - * @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.DeleteSpecialistPoolRequest; + /** TextTransformation columnName. */ + public columnName: string; - /** - * Decodes a DeleteSpecialistPoolRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteSpecialistPoolRequest - * @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.DeleteSpecialistPoolRequest; + /** + * Creates a new TextTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns TextTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; - /** - * Verifies a DeleteSpecialistPoolRequest 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); + /** + * Encodes the specified TextTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation.verify|verify} messages. + * @param message TextTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a DeleteSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteSpecialistPoolRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest; + /** + * Encodes the specified TextTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation.verify|verify} messages. + * @param message TextTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a DeleteSpecialistPoolRequest message. Also converts values to other types if specified. - * @param message DeleteSpecialistPoolRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a TextTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextTransformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; - /** - * Converts this DeleteSpecialistPoolRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a TextTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextTransformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; - /** - * Gets the default type url for DeleteSpecialistPoolRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a TextTransformation 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); - /** Properties of an UpdateSpecialistPoolRequest. */ - interface IUpdateSpecialistPoolRequest { + /** + * Creates a TextTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation; - /** UpdateSpecialistPoolRequest specialistPool */ - specialistPool?: (google.cloud.aiplatform.v1.ISpecialistPool|null); + /** + * Creates a plain object from a TextTransformation message. Also converts values to other types if specified. + * @param message TextTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** UpdateSpecialistPoolRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } + /** + * Converts this TextTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents an UpdateSpecialistPoolRequest. */ - class UpdateSpecialistPoolRequest implements IUpdateSpecialistPoolRequest { + /** + * Gets the default type url for TextTransformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new UpdateSpecialistPoolRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest); + /** Properties of a NumericArrayTransformation. */ + interface INumericArrayTransformation { - /** UpdateSpecialistPoolRequest specialistPool. */ - public specialistPool?: (google.cloud.aiplatform.v1.ISpecialistPool|null); + /** NumericArrayTransformation columnName */ + columnName?: (string|null); - /** UpdateSpecialistPoolRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** NumericArrayTransformation invalidValuesAllowed */ + invalidValuesAllowed?: (boolean|null); + } - /** - * Creates a new UpdateSpecialistPoolRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateSpecialistPoolRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest): google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest; + /** Represents a NumericArrayTransformation. */ + class NumericArrayTransformation implements INumericArrayTransformation { - /** - * Encodes the specified UpdateSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest.verify|verify} messages. - * @param message UpdateSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new NumericArrayTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation); - /** - * Encodes the specified UpdateSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest.verify|verify} messages. - * @param message UpdateSpecialistPoolRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** NumericArrayTransformation columnName. */ + public columnName: string; - /** - * Decodes an UpdateSpecialistPoolRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateSpecialistPoolRequest - * @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.UpdateSpecialistPoolRequest; + /** NumericArrayTransformation invalidValuesAllowed. */ + public invalidValuesAllowed: boolean; - /** - * Decodes an UpdateSpecialistPoolRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateSpecialistPoolRequest - * @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.UpdateSpecialistPoolRequest; + /** + * Creates a new NumericArrayTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns NumericArrayTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; - /** - * Verifies an UpdateSpecialistPoolRequest 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); + /** + * Encodes the specified NumericArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation.verify|verify} messages. + * @param message NumericArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an UpdateSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateSpecialistPoolRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest; + /** + * Encodes the specified NumericArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation.verify|verify} messages. + * @param message NumericArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.INumericArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from an UpdateSpecialistPoolRequest message. Also converts values to other types if specified. - * @param message UpdateSpecialistPoolRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a NumericArrayTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NumericArrayTransformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; - /** - * Converts this UpdateSpecialistPoolRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a NumericArrayTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NumericArrayTransformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; - /** - * Gets the default type url for UpdateSpecialistPoolRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a NumericArrayTransformation 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); - /** Properties of an UpdateSpecialistPoolOperationMetadata. */ - interface IUpdateSpecialistPoolOperationMetadata { + /** + * Creates a NumericArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NumericArrayTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation; - /** UpdateSpecialistPoolOperationMetadata specialistPool */ - specialistPool?: (string|null); + /** + * Creates a plain object from a NumericArrayTransformation message. Also converts values to other types if specified. + * @param message NumericArrayTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.NumericArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** UpdateSpecialistPoolOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - } + /** + * Converts this NumericArrayTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents an UpdateSpecialistPoolOperationMetadata. */ - class UpdateSpecialistPoolOperationMetadata implements IUpdateSpecialistPoolOperationMetadata { + /** + * Gets the default type url for NumericArrayTransformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new UpdateSpecialistPoolOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateSpecialistPoolOperationMetadata); + /** Properties of a CategoricalArrayTransformation. */ + interface ICategoricalArrayTransformation { - /** UpdateSpecialistPoolOperationMetadata specialistPool. */ - public specialistPool: string; + /** CategoricalArrayTransformation columnName */ + columnName?: (string|null); + } - /** UpdateSpecialistPoolOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** Represents a CategoricalArrayTransformation. */ + class CategoricalArrayTransformation implements ICategoricalArrayTransformation { - /** - * Creates a new UpdateSpecialistPoolOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateSpecialistPoolOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateSpecialistPoolOperationMetadata): google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata; + /** + * Constructs a new CategoricalArrayTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation); - /** - * Encodes the specified UpdateSpecialistPoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata.verify|verify} messages. - * @param message UpdateSpecialistPoolOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** CategoricalArrayTransformation columnName. */ + public columnName: string; - /** - * Encodes the specified UpdateSpecialistPoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata.verify|verify} messages. - * @param message UpdateSpecialistPoolOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new CategoricalArrayTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns CategoricalArrayTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; - /** - * Decodes an UpdateSpecialistPoolOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateSpecialistPoolOperationMetadata - * @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.UpdateSpecialistPoolOperationMetadata; + /** + * Encodes the specified CategoricalArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation.verify|verify} messages. + * @param message CategoricalArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an UpdateSpecialistPoolOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateSpecialistPoolOperationMetadata - * @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.UpdateSpecialistPoolOperationMetadata; + /** + * Encodes the specified CategoricalArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation.verify|verify} messages. + * @param message CategoricalArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ICategoricalArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies an UpdateSpecialistPoolOperationMetadata 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); + /** + * Decodes a CategoricalArrayTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CategoricalArrayTransformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; - /** - * Creates an UpdateSpecialistPoolOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateSpecialistPoolOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata; + /** + * Decodes a CategoricalArrayTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CategoricalArrayTransformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; - /** - * Creates a plain object from an UpdateSpecialistPoolOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateSpecialistPoolOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a CategoricalArrayTransformation 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); - /** - * Converts this UpdateSpecialistPoolOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a CategoricalArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CategoricalArrayTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation; - /** - * Gets the default type url for UpdateSpecialistPoolOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates a plain object from a CategoricalArrayTransformation message. Also converts values to other types if specified. + * @param message CategoricalArrayTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.CategoricalArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a Tensorboard. */ - interface ITensorboard { + /** + * Converts this CategoricalArrayTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Tensorboard name */ - name?: (string|null); + /** + * Gets the default type url for CategoricalArrayTransformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Tensorboard displayName */ - displayName?: (string|null); + /** Properties of a TextArrayTransformation. */ + interface ITextArrayTransformation { - /** Tensorboard description */ - description?: (string|null); + /** TextArrayTransformation columnName */ + columnName?: (string|null); + } - /** Tensorboard encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** Represents a TextArrayTransformation. */ + class TextArrayTransformation implements ITextArrayTransformation { - /** Tensorboard blobStoragePathPrefix */ - blobStoragePathPrefix?: (string|null); + /** + * Constructs a new TextArrayTransformation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation); - /** Tensorboard runCount */ - runCount?: (number|null); + /** TextArrayTransformation columnName. */ + public columnName: string; - /** Tensorboard createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a new TextArrayTransformation instance using the specified properties. + * @param [properties] Properties to set + * @returns TextArrayTransformation instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; - /** Tensorboard updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified TextArrayTransformation message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation.verify|verify} messages. + * @param message TextArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** Tensorboard labels */ - labels?: ({ [k: string]: string }|null); + /** + * Encodes the specified TextArrayTransformation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation.verify|verify} messages. + * @param message TextArrayTransformation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.ITextArrayTransformation, writer?: $protobuf.Writer): $protobuf.Writer; - /** Tensorboard etag */ - etag?: (string|null); - } + /** + * Decodes a TextArrayTransformation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TextArrayTransformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; - /** Represents a Tensorboard. */ - class Tensorboard implements ITensorboard { + /** + * Decodes a TextArrayTransformation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TextArrayTransformation + * @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.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; - /** - * Constructs a new Tensorboard. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ITensorboard); + /** + * Verifies a TextArrayTransformation 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); - /** Tensorboard name. */ - public name: string; + /** + * Creates a TextArrayTransformation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TextArrayTransformation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation; - /** Tensorboard displayName. */ - public displayName: string; + /** + * Creates a plain object from a TextArrayTransformation message. Also converts values to other types if specified. + * @param message TextArrayTransformation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesInputs.Transformation.TextArrayTransformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Tensorboard description. */ - public description: string; + /** + * Converts this TextArrayTransformation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Tensorboard encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + /** + * Gets the default type url for TextArrayTransformation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + } - /** Tensorboard blobStoragePathPrefix. */ - public blobStoragePathPrefix: string; + /** Properties of an AutoMlTablesMetadata. */ + interface IAutoMlTablesMetadata { - /** Tensorboard runCount. */ - public runCount: number; + /** AutoMlTablesMetadata trainCostMilliNodeHours */ + trainCostMilliNodeHours?: (number|Long|string|null); + } - /** Tensorboard createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** Represents an AutoMlTablesMetadata. */ + class AutoMlTablesMetadata implements IAutoMlTablesMetadata { - /** Tensorboard updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new AutoMlTablesMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata); - /** Tensorboard labels. */ - public labels: { [k: string]: string }; + /** AutoMlTablesMetadata trainCostMilliNodeHours. */ + public trainCostMilliNodeHours: (number|Long|string); - /** Tensorboard etag. */ - public etag: string; + /** + * Creates a new AutoMlTablesMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTablesMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata; - /** - * Creates a new Tensorboard instance using the specified properties. - * @param [properties] Properties to set - * @returns Tensorboard instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ITensorboard): google.cloud.aiplatform.v1.Tensorboard; + /** + * Encodes the specified AutoMlTablesMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata.verify|verify} messages. + * @param message AutoMlTablesMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Tensorboard message. Does not implicitly {@link google.cloud.aiplatform.v1.Tensorboard.verify|verify} messages. - * @param message Tensorboard message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ITensorboard, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified AutoMlTablesMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata.verify|verify} messages. + * @param message AutoMlTablesMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTablesMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Tensorboard message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Tensorboard.verify|verify} messages. - * @param message Tensorboard message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboard, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an AutoMlTablesMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTablesMetadata + * @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.schema.trainingjob.definition.AutoMlTablesMetadata; - /** - * Decodes a Tensorboard message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Tensorboard - * @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.Tensorboard; + /** + * Decodes an AutoMlTablesMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTablesMetadata + * @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.schema.trainingjob.definition.AutoMlTablesMetadata; - /** - * Decodes a Tensorboard message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Tensorboard - * @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.Tensorboard; + /** + * Verifies an AutoMlTablesMetadata 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); - /** - * Verifies a Tensorboard 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 AutoMlTablesMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTablesMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata; - /** - * Creates a Tensorboard message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Tensorboard - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Tensorboard; + /** + * Creates a plain object from an AutoMlTablesMetadata message. Also converts values to other types if specified. + * @param message AutoMlTablesMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTablesMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a Tensorboard message. Also converts values to other types if specified. - * @param message Tensorboard - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.Tensorboard, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this AutoMlTablesMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Converts this Tensorboard to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Gets the default type url for AutoMlTablesMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Gets the default type url for Tensorboard - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Properties of an ExportEvaluatedDataItemsConfig. */ + interface IExportEvaluatedDataItemsConfig { - /** Properties of a TimeSeriesData. */ - interface ITimeSeriesData { + /** ExportEvaluatedDataItemsConfig destinationBigqueryUri */ + destinationBigqueryUri?: (string|null); - /** TimeSeriesData tensorboardTimeSeriesId */ - tensorboardTimeSeriesId?: (string|null); + /** ExportEvaluatedDataItemsConfig overrideExistingTable */ + overrideExistingTable?: (boolean|null); + } - /** TimeSeriesData valueType */ - valueType?: (google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|keyof typeof google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|null); + /** Represents an ExportEvaluatedDataItemsConfig. */ + class ExportEvaluatedDataItemsConfig implements IExportEvaluatedDataItemsConfig { - /** TimeSeriesData values */ - values?: (google.cloud.aiplatform.v1.ITimeSeriesDataPoint[]|null); - } + /** + * Constructs a new ExportEvaluatedDataItemsConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig); - /** Represents a TimeSeriesData. */ - class TimeSeriesData implements ITimeSeriesData { + /** ExportEvaluatedDataItemsConfig destinationBigqueryUri. */ + public destinationBigqueryUri: string; - /** - * Constructs a new TimeSeriesData. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ITimeSeriesData); + /** ExportEvaluatedDataItemsConfig overrideExistingTable. */ + public overrideExistingTable: boolean; - /** TimeSeriesData tensorboardTimeSeriesId. */ - public tensorboardTimeSeriesId: string; + /** + * Creates a new ExportEvaluatedDataItemsConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportEvaluatedDataItemsConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig): google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; - /** TimeSeriesData valueType. */ - public valueType: (google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|keyof typeof google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType); + /** + * Encodes the specified ExportEvaluatedDataItemsConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.verify|verify} messages. + * @param message ExportEvaluatedDataItemsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** TimeSeriesData values. */ - public values: google.cloud.aiplatform.v1.ITimeSeriesDataPoint[]; + /** + * Encodes the specified ExportEvaluatedDataItemsConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig.verify|verify} messages. + * @param message ExportEvaluatedDataItemsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IExportEvaluatedDataItemsConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new TimeSeriesData instance using the specified properties. - * @param [properties] Properties to set - * @returns TimeSeriesData instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ITimeSeriesData): google.cloud.aiplatform.v1.TimeSeriesData; + /** + * Decodes an ExportEvaluatedDataItemsConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportEvaluatedDataItemsConfig + * @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.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; - /** - * Encodes the specified TimeSeriesData message. Does not implicitly {@link google.cloud.aiplatform.v1.TimeSeriesData.verify|verify} messages. - * @param message TimeSeriesData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ITimeSeriesData, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an ExportEvaluatedDataItemsConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportEvaluatedDataItemsConfig + * @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.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; - /** - * Encodes the specified TimeSeriesData message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimeSeriesData.verify|verify} messages. - * @param message TimeSeriesData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITimeSeriesData, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies an ExportEvaluatedDataItemsConfig 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); - /** - * Decodes a TimeSeriesData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TimeSeriesData - * @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.TimeSeriesData; + /** + * Creates an ExportEvaluatedDataItemsConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportEvaluatedDataItemsConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig; - /** - * Decodes a TimeSeriesData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TimeSeriesData - * @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.TimeSeriesData; + /** + * Creates a plain object from an ExportEvaluatedDataItemsConfig message. Also converts values to other types if specified. + * @param message ExportEvaluatedDataItemsConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.ExportEvaluatedDataItemsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a TimeSeriesData 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); + /** + * Converts this ExportEvaluatedDataItemsConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a TimeSeriesData message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TimeSeriesData - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TimeSeriesData; + /** + * Gets the default type url for ExportEvaluatedDataItemsConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a plain object from a TimeSeriesData message. Also converts values to other types if specified. - * @param message TimeSeriesData - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.TimeSeriesData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of an AutoMlTextClassification. */ + interface IAutoMlTextClassification { - /** - * Converts this TimeSeriesData to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** AutoMlTextClassification inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs|null); + } - /** - * Gets the default type url for TimeSeriesData - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Represents an AutoMlTextClassification. */ + class AutoMlTextClassification implements IAutoMlTextClassification { - /** Properties of a TimeSeriesDataPoint. */ - interface ITimeSeriesDataPoint { + /** + * Constructs a new AutoMlTextClassification. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassification); - /** TimeSeriesDataPoint scalar */ - scalar?: (google.cloud.aiplatform.v1.IScalar|null); + /** AutoMlTextClassification inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs|null); - /** TimeSeriesDataPoint tensor */ - tensor?: (google.cloud.aiplatform.v1.ITensorboardTensor|null); + /** + * Creates a new AutoMlTextClassification instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextClassification instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassification): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification; - /** TimeSeriesDataPoint blobs */ - blobs?: (google.cloud.aiplatform.v1.ITensorboardBlobSequence|null); + /** + * Encodes the specified AutoMlTextClassification message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification.verify|verify} messages. + * @param message AutoMlTextClassification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassification, writer?: $protobuf.Writer): $protobuf.Writer; - /** TimeSeriesDataPoint wallTime */ - wallTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified AutoMlTextClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification.verify|verify} messages. + * @param message AutoMlTextClassification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassification, writer?: $protobuf.Writer): $protobuf.Writer; - /** TimeSeriesDataPoint step */ - step?: (number|Long|string|null); - } + /** + * Decodes an AutoMlTextClassification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextClassification + * @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.schema.trainingjob.definition.AutoMlTextClassification; - /** Represents a TimeSeriesDataPoint. */ - class TimeSeriesDataPoint implements ITimeSeriesDataPoint { + /** + * Decodes an AutoMlTextClassification message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextClassification + * @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.schema.trainingjob.definition.AutoMlTextClassification; - /** - * Constructs a new TimeSeriesDataPoint. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ITimeSeriesDataPoint); + /** + * Verifies an AutoMlTextClassification 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); - /** TimeSeriesDataPoint scalar. */ - public scalar?: (google.cloud.aiplatform.v1.IScalar|null); + /** + * Creates an AutoMlTextClassification message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextClassification + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification; - /** TimeSeriesDataPoint tensor. */ - public tensor?: (google.cloud.aiplatform.v1.ITensorboardTensor|null); + /** + * Creates a plain object from an AutoMlTextClassification message. Also converts values to other types if specified. + * @param message AutoMlTextClassification + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassification, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** TimeSeriesDataPoint blobs. */ - public blobs?: (google.cloud.aiplatform.v1.ITensorboardBlobSequence|null); + /** + * Converts this AutoMlTextClassification to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** TimeSeriesDataPoint wallTime. */ - public wallTime?: (google.protobuf.ITimestamp|null); + /** + * Gets the default type url for AutoMlTextClassification + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** TimeSeriesDataPoint step. */ - public step: (number|Long|string); + /** Properties of an AutoMlTextClassificationInputs. */ + interface IAutoMlTextClassificationInputs { - /** TimeSeriesDataPoint value. */ - public value?: ("scalar"|"tensor"|"blobs"); + /** AutoMlTextClassificationInputs multiLabel */ + multiLabel?: (boolean|null); + } - /** - * Creates a new TimeSeriesDataPoint instance using the specified properties. - * @param [properties] Properties to set - * @returns TimeSeriesDataPoint instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ITimeSeriesDataPoint): google.cloud.aiplatform.v1.TimeSeriesDataPoint; + /** Represents an AutoMlTextClassificationInputs. */ + class AutoMlTextClassificationInputs implements IAutoMlTextClassificationInputs { - /** - * Encodes the specified TimeSeriesDataPoint message. Does not implicitly {@link google.cloud.aiplatform.v1.TimeSeriesDataPoint.verify|verify} messages. - * @param message TimeSeriesDataPoint message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ITimeSeriesDataPoint, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new AutoMlTextClassificationInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs); - /** - * Encodes the specified TimeSeriesDataPoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimeSeriesDataPoint.verify|verify} messages. - * @param message TimeSeriesDataPoint message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITimeSeriesDataPoint, writer?: $protobuf.Writer): $protobuf.Writer; + /** AutoMlTextClassificationInputs multiLabel. */ + public multiLabel: boolean; - /** - * Decodes a TimeSeriesDataPoint message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TimeSeriesDataPoint - * @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.TimeSeriesDataPoint; + /** + * Creates a new AutoMlTextClassificationInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextClassificationInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs; - /** - * Decodes a TimeSeriesDataPoint message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TimeSeriesDataPoint - * @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.TimeSeriesDataPoint; + /** + * Encodes the specified AutoMlTextClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs.verify|verify} messages. + * @param message AutoMlTextClassificationInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a TimeSeriesDataPoint 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); + /** + * Encodes the specified AutoMlTextClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs.verify|verify} messages. + * @param message AutoMlTextClassificationInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a TimeSeriesDataPoint message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TimeSeriesDataPoint - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TimeSeriesDataPoint; + /** + * Decodes an AutoMlTextClassificationInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextClassificationInputs + * @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.schema.trainingjob.definition.AutoMlTextClassificationInputs; - /** - * Creates a plain object from a TimeSeriesDataPoint message. Also converts values to other types if specified. - * @param message TimeSeriesDataPoint - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.TimeSeriesDataPoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes an AutoMlTextClassificationInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextClassificationInputs + * @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.schema.trainingjob.definition.AutoMlTextClassificationInputs; - /** - * Converts this TimeSeriesDataPoint to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies an AutoMlTextClassificationInputs 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); - /** - * Gets the default type url for TimeSeriesDataPoint - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Creates an AutoMlTextClassificationInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextClassificationInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs; - /** Properties of a Scalar. */ - interface IScalar { + /** + * Creates a plain object from an AutoMlTextClassificationInputs message. Also converts values to other types if specified. + * @param message AutoMlTextClassificationInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextClassificationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Scalar value */ - value?: (number|null); - } + /** + * Converts this AutoMlTextClassificationInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Represents a Scalar. */ - class Scalar implements IScalar { + /** + * Gets the default type url for AutoMlTextClassificationInputs + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Constructs a new Scalar. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IScalar); + /** Properties of an AutoMlTextExtraction. */ + interface IAutoMlTextExtraction { - /** Scalar value. */ - public value: number; + /** AutoMlTextExtraction inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs|null); + } - /** - * Creates a new Scalar instance using the specified properties. - * @param [properties] Properties to set - * @returns Scalar instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IScalar): google.cloud.aiplatform.v1.Scalar; + /** Represents an AutoMlTextExtraction. */ + class AutoMlTextExtraction implements IAutoMlTextExtraction { - /** - * Encodes the specified Scalar message. Does not implicitly {@link google.cloud.aiplatform.v1.Scalar.verify|verify} messages. - * @param message Scalar message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IScalar, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new AutoMlTextExtraction. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtraction); - /** - * Encodes the specified Scalar message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Scalar.verify|verify} messages. - * @param message Scalar message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IScalar, writer?: $protobuf.Writer): $protobuf.Writer; + /** AutoMlTextExtraction inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs|null); - /** - * Decodes a Scalar message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Scalar - * @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.Scalar; + /** + * Creates a new AutoMlTextExtraction instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextExtraction instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtraction): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction; - /** - * Decodes a Scalar message from the specified reader or buffer, length delimited. + /** + * Encodes the specified AutoMlTextExtraction message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction.verify|verify} messages. + * @param message AutoMlTextExtraction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtraction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlTextExtraction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction.verify|verify} messages. + * @param message AutoMlTextExtraction message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtraction, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlTextExtraction message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextExtraction + * @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.schema.trainingjob.definition.AutoMlTextExtraction; + + /** + * Decodes an AutoMlTextExtraction message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextExtraction + * @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.schema.trainingjob.definition.AutoMlTextExtraction; + + /** + * Verifies an AutoMlTextExtraction 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 AutoMlTextExtraction message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextExtraction + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction; + + /** + * Creates a plain object from an AutoMlTextExtraction message. Also converts values to other types if specified. + * @param message AutoMlTextExtraction + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtraction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlTextExtraction to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlTextExtraction + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AutoMlTextExtractionInputs. */ + interface IAutoMlTextExtractionInputs { + } + + /** Represents an AutoMlTextExtractionInputs. */ + class AutoMlTextExtractionInputs implements IAutoMlTextExtractionInputs { + + /** + * Constructs a new AutoMlTextExtractionInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs); + + /** + * Creates a new AutoMlTextExtractionInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextExtractionInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs; + + /** + * Encodes the specified AutoMlTextExtractionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs.verify|verify} messages. + * @param message AutoMlTextExtractionInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlTextExtractionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs.verify|verify} messages. + * @param message AutoMlTextExtractionInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextExtractionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlTextExtractionInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextExtractionInputs + * @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.schema.trainingjob.definition.AutoMlTextExtractionInputs; + + /** + * Decodes an AutoMlTextExtractionInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextExtractionInputs + * @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.schema.trainingjob.definition.AutoMlTextExtractionInputs; + + /** + * Verifies an AutoMlTextExtractionInputs 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 AutoMlTextExtractionInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextExtractionInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs; + + /** + * Creates a plain object from an AutoMlTextExtractionInputs message. Also converts values to other types if specified. + * @param message AutoMlTextExtractionInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextExtractionInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlTextExtractionInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlTextExtractionInputs + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AutoMlTextSentiment. */ + interface IAutoMlTextSentiment { + + /** AutoMlTextSentiment inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs|null); + } + + /** Represents an AutoMlTextSentiment. */ + class AutoMlTextSentiment implements IAutoMlTextSentiment { + + /** + * Constructs a new AutoMlTextSentiment. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentiment); + + /** AutoMlTextSentiment inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs|null); + + /** + * Creates a new AutoMlTextSentiment instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextSentiment instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentiment): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment; + + /** + * Encodes the specified AutoMlTextSentiment message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment.verify|verify} messages. + * @param message AutoMlTextSentiment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentiment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlTextSentiment message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment.verify|verify} messages. + * @param message AutoMlTextSentiment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentiment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlTextSentiment message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextSentiment + * @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.schema.trainingjob.definition.AutoMlTextSentiment; + + /** + * Decodes an AutoMlTextSentiment message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextSentiment + * @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.schema.trainingjob.definition.AutoMlTextSentiment; + + /** + * Verifies an AutoMlTextSentiment 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 AutoMlTextSentiment message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextSentiment + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment; + + /** + * Creates a plain object from an AutoMlTextSentiment message. Also converts values to other types if specified. + * @param message AutoMlTextSentiment + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlTextSentiment to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlTextSentiment + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AutoMlTextSentimentInputs. */ + interface IAutoMlTextSentimentInputs { + + /** AutoMlTextSentimentInputs sentimentMax */ + sentimentMax?: (number|null); + } + + /** Represents an AutoMlTextSentimentInputs. */ + class AutoMlTextSentimentInputs implements IAutoMlTextSentimentInputs { + + /** + * Constructs a new AutoMlTextSentimentInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs); + + /** AutoMlTextSentimentInputs sentimentMax. */ + public sentimentMax: number; + + /** + * Creates a new AutoMlTextSentimentInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlTextSentimentInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs; + + /** + * Encodes the specified AutoMlTextSentimentInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs.verify|verify} messages. + * @param message AutoMlTextSentimentInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlTextSentimentInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs.verify|verify} messages. + * @param message AutoMlTextSentimentInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlTextSentimentInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlTextSentimentInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlTextSentimentInputs + * @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.schema.trainingjob.definition.AutoMlTextSentimentInputs; + + /** + * Decodes an AutoMlTextSentimentInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlTextSentimentInputs + * @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.schema.trainingjob.definition.AutoMlTextSentimentInputs; + + /** + * Verifies an AutoMlTextSentimentInputs 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 AutoMlTextSentimentInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlTextSentimentInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs; + + /** + * Creates a plain object from an AutoMlTextSentimentInputs message. Also converts values to other types if specified. + * @param message AutoMlTextSentimentInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlTextSentimentInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlTextSentimentInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlTextSentimentInputs + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AutoMlVideoActionRecognition. */ + interface IAutoMlVideoActionRecognition { + + /** AutoMlVideoActionRecognition inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs|null); + } + + /** Represents an AutoMlVideoActionRecognition. */ + class AutoMlVideoActionRecognition implements IAutoMlVideoActionRecognition { + + /** + * Constructs a new AutoMlVideoActionRecognition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognition); + + /** AutoMlVideoActionRecognition inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs|null); + + /** + * Creates a new AutoMlVideoActionRecognition instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoActionRecognition instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognition): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition; + + /** + * Encodes the specified AutoMlVideoActionRecognition message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition.verify|verify} messages. + * @param message AutoMlVideoActionRecognition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoActionRecognition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition.verify|verify} messages. + * @param message AutoMlVideoActionRecognition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoActionRecognition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoActionRecognition + * @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.schema.trainingjob.definition.AutoMlVideoActionRecognition; + + /** + * Decodes an AutoMlVideoActionRecognition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoActionRecognition + * @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.schema.trainingjob.definition.AutoMlVideoActionRecognition; + + /** + * Verifies an AutoMlVideoActionRecognition 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 AutoMlVideoActionRecognition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoActionRecognition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition; + + /** + * Creates a plain object from an AutoMlVideoActionRecognition message. Also converts values to other types if specified. + * @param message AutoMlVideoActionRecognition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoActionRecognition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlVideoActionRecognition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AutoMlVideoActionRecognitionInputs. */ + interface IAutoMlVideoActionRecognitionInputs { + + /** AutoMlVideoActionRecognitionInputs modelType */ + modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType|null); + } + + /** Represents an AutoMlVideoActionRecognitionInputs. */ + class AutoMlVideoActionRecognitionInputs implements IAutoMlVideoActionRecognitionInputs { + + /** + * Constructs a new AutoMlVideoActionRecognitionInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs); + + /** AutoMlVideoActionRecognitionInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.ModelType); + + /** + * Creates a new AutoMlVideoActionRecognitionInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoActionRecognitionInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + + /** + * Encodes the specified AutoMlVideoActionRecognitionInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.verify|verify} messages. + * @param message AutoMlVideoActionRecognitionInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoActionRecognitionInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs.verify|verify} messages. + * @param message AutoMlVideoActionRecognitionInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoActionRecognitionInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoActionRecognitionInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoActionRecognitionInputs + * @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.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + + /** + * Decodes an AutoMlVideoActionRecognitionInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoActionRecognitionInputs + * @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.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + + /** + * Verifies an AutoMlVideoActionRecognitionInputs 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 AutoMlVideoActionRecognitionInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoActionRecognitionInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs; + + /** + * Creates a plain object from an AutoMlVideoActionRecognitionInputs message. Also converts values to other types if specified. + * @param message AutoMlVideoActionRecognitionInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoActionRecognitionInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoActionRecognitionInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlVideoActionRecognitionInputs + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AutoMlVideoActionRecognitionInputs { + + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + CLOUD = 1, + MOBILE_VERSATILE_1 = 2, + MOBILE_JETSON_VERSATILE_1 = 3, + MOBILE_CORAL_VERSATILE_1 = 4 + } + } + + /** Properties of an AutoMlVideoClassification. */ + interface IAutoMlVideoClassification { + + /** AutoMlVideoClassification inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs|null); + } + + /** Represents an AutoMlVideoClassification. */ + class AutoMlVideoClassification implements IAutoMlVideoClassification { + + /** + * Constructs a new AutoMlVideoClassification. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassification); + + /** AutoMlVideoClassification inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs|null); + + /** + * Creates a new AutoMlVideoClassification instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoClassification instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassification): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification; + + /** + * Encodes the specified AutoMlVideoClassification message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification.verify|verify} messages. + * @param message AutoMlVideoClassification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoClassification message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification.verify|verify} messages. + * @param message AutoMlVideoClassification message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassification, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoClassification message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoClassification + * @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.schema.trainingjob.definition.AutoMlVideoClassification; + + /** + * Decodes an AutoMlVideoClassification message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoClassification + * @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.schema.trainingjob.definition.AutoMlVideoClassification; + + /** + * Verifies an AutoMlVideoClassification 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 AutoMlVideoClassification message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoClassification + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification; + + /** + * Creates a plain object from an AutoMlVideoClassification message. Also converts values to other types if specified. + * @param message AutoMlVideoClassification + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassification, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoClassification to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlVideoClassification + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AutoMlVideoClassificationInputs. */ + interface IAutoMlVideoClassificationInputs { + + /** AutoMlVideoClassificationInputs modelType */ + modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType|null); + } + + /** Represents an AutoMlVideoClassificationInputs. */ + class AutoMlVideoClassificationInputs implements IAutoMlVideoClassificationInputs { + + /** + * Constructs a new AutoMlVideoClassificationInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs); + + /** AutoMlVideoClassificationInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.ModelType); + + /** + * Creates a new AutoMlVideoClassificationInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoClassificationInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + + /** + * Encodes the specified AutoMlVideoClassificationInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.verify|verify} messages. + * @param message AutoMlVideoClassificationInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoClassificationInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs.verify|verify} messages. + * @param message AutoMlVideoClassificationInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoClassificationInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoClassificationInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoClassificationInputs + * @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.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + + /** + * Decodes an AutoMlVideoClassificationInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoClassificationInputs + * @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.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + + /** + * Verifies an AutoMlVideoClassificationInputs 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 AutoMlVideoClassificationInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoClassificationInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs; + + /** + * Creates a plain object from an AutoMlVideoClassificationInputs message. Also converts values to other types if specified. + * @param message AutoMlVideoClassificationInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoClassificationInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoClassificationInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlVideoClassificationInputs + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AutoMlVideoClassificationInputs { + + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + CLOUD = 1, + MOBILE_VERSATILE_1 = 2, + MOBILE_JETSON_VERSATILE_1 = 3 + } + } + + /** Properties of an AutoMlVideoObjectTracking. */ + interface IAutoMlVideoObjectTracking { + + /** AutoMlVideoObjectTracking inputs */ + inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs|null); + } + + /** Represents an AutoMlVideoObjectTracking. */ + class AutoMlVideoObjectTracking implements IAutoMlVideoObjectTracking { + + /** + * Constructs a new AutoMlVideoObjectTracking. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTracking); + + /** AutoMlVideoObjectTracking inputs. */ + public inputs?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs|null); + + /** + * Creates a new AutoMlVideoObjectTracking instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoObjectTracking instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTracking): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking; + + /** + * Encodes the specified AutoMlVideoObjectTracking message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking.verify|verify} messages. + * @param message AutoMlVideoObjectTracking message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTracking, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoObjectTracking message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking.verify|verify} messages. + * @param message AutoMlVideoObjectTracking message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTracking, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoObjectTracking message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoObjectTracking + * @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.schema.trainingjob.definition.AutoMlVideoObjectTracking; + + /** + * Decodes an AutoMlVideoObjectTracking message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoObjectTracking + * @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.schema.trainingjob.definition.AutoMlVideoObjectTracking; + + /** + * Verifies an AutoMlVideoObjectTracking 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 AutoMlVideoObjectTracking message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoObjectTracking + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking; + + /** + * Creates a plain object from an AutoMlVideoObjectTracking message. Also converts values to other types if specified. + * @param message AutoMlVideoObjectTracking + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTracking, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoObjectTracking to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlVideoObjectTracking + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an AutoMlVideoObjectTrackingInputs. */ + interface IAutoMlVideoObjectTrackingInputs { + + /** AutoMlVideoObjectTrackingInputs modelType */ + modelType?: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType|null); + } + + /** Represents an AutoMlVideoObjectTrackingInputs. */ + class AutoMlVideoObjectTrackingInputs implements IAutoMlVideoObjectTrackingInputs { + + /** + * Constructs a new AutoMlVideoObjectTrackingInputs. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs); + + /** AutoMlVideoObjectTrackingInputs modelType. */ + public modelType: (google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType|keyof typeof google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.ModelType); + + /** + * Creates a new AutoMlVideoObjectTrackingInputs instance using the specified properties. + * @param [properties] Properties to set + * @returns AutoMlVideoObjectTrackingInputs instance + */ + public static create(properties?: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + + /** + * Encodes the specified AutoMlVideoObjectTrackingInputs message. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.verify|verify} messages. + * @param message AutoMlVideoObjectTrackingInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AutoMlVideoObjectTrackingInputs message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs.verify|verify} messages. + * @param message AutoMlVideoObjectTrackingInputs message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.IAutoMlVideoObjectTrackingInputs, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AutoMlVideoObjectTrackingInputs message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AutoMlVideoObjectTrackingInputs + * @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.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + + /** + * Decodes an AutoMlVideoObjectTrackingInputs message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AutoMlVideoObjectTrackingInputs + * @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.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + + /** + * Verifies an AutoMlVideoObjectTrackingInputs 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 AutoMlVideoObjectTrackingInputs message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AutoMlVideoObjectTrackingInputs + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs; + + /** + * Creates a plain object from an AutoMlVideoObjectTrackingInputs message. Also converts values to other types if specified. + * @param message AutoMlVideoObjectTrackingInputs + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.schema.trainingjob.definition.AutoMlVideoObjectTrackingInputs, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AutoMlVideoObjectTrackingInputs to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoMlVideoObjectTrackingInputs + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace AutoMlVideoObjectTrackingInputs { + + /** ModelType enum. */ + enum ModelType { + MODEL_TYPE_UNSPECIFIED = 0, + CLOUD = 1, + MOBILE_VERSATILE_1 = 2, + MOBILE_CORAL_VERSATILE_1 = 3, + MOBILE_CORAL_LOW_LATENCY_1 = 4, + MOBILE_JETSON_VERSATILE_1 = 5, + MOBILE_JETSON_LOW_LATENCY_1 = 6 + } + } + } + } + } + + /** Properties of a SpecialistPool. */ + interface ISpecialistPool { + + /** SpecialistPool name */ + name?: (string|null); + + /** SpecialistPool displayName */ + displayName?: (string|null); + + /** SpecialistPool specialistManagersCount */ + specialistManagersCount?: (number|null); + + /** SpecialistPool specialistManagerEmails */ + specialistManagerEmails?: (string[]|null); + + /** SpecialistPool pendingDataLabelingJobs */ + pendingDataLabelingJobs?: (string[]|null); + + /** SpecialistPool specialistWorkerEmails */ + specialistWorkerEmails?: (string[]|null); + } + + /** Represents a SpecialistPool. */ + class SpecialistPool implements ISpecialistPool { + + /** + * Constructs a new SpecialistPool. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISpecialistPool); + + /** SpecialistPool name. */ + public name: string; + + /** SpecialistPool displayName. */ + public displayName: string; + + /** SpecialistPool specialistManagersCount. */ + public specialistManagersCount: number; + + /** SpecialistPool specialistManagerEmails. */ + public specialistManagerEmails: string[]; + + /** SpecialistPool pendingDataLabelingJobs. */ + public pendingDataLabelingJobs: string[]; + + /** SpecialistPool specialistWorkerEmails. */ + public specialistWorkerEmails: string[]; + + /** + * Creates a new SpecialistPool instance using the specified properties. + * @param [properties] Properties to set + * @returns SpecialistPool instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISpecialistPool): google.cloud.aiplatform.v1.SpecialistPool; + + /** + * Encodes the specified SpecialistPool message. Does not implicitly {@link google.cloud.aiplatform.v1.SpecialistPool.verify|verify} messages. + * @param message SpecialistPool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISpecialistPool, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SpecialistPool message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SpecialistPool.verify|verify} messages. + * @param message SpecialistPool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISpecialistPool, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SpecialistPool message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SpecialistPool + * @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.SpecialistPool; + + /** + * Decodes a SpecialistPool message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SpecialistPool + * @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.SpecialistPool; + + /** + * Verifies a SpecialistPool 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 SpecialistPool message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SpecialistPool + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SpecialistPool; + + /** + * Creates a plain object from a SpecialistPool message. Also converts values to other types if specified. + * @param message SpecialistPool + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SpecialistPool, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SpecialistPool to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SpecialistPool + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Represents a SpecialistPoolService */ + class SpecialistPoolService extends $protobuf.rpc.Service { + + /** + * Constructs a new SpecialistPoolService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new SpecialistPoolService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SpecialistPoolService; + + /** + * Calls CreateSpecialistPool. + * @param request CreateSpecialistPoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createSpecialistPool(request: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.CreateSpecialistPoolCallback): void; + + /** + * Calls CreateSpecialistPool. + * @param request CreateSpecialistPoolRequest message or plain object + * @returns Promise + */ + public createSpecialistPool(request: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest): Promise; + + /** + * Calls GetSpecialistPool. + * @param request GetSpecialistPoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SpecialistPool + */ + public getSpecialistPool(request: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.GetSpecialistPoolCallback): void; + + /** + * Calls GetSpecialistPool. + * @param request GetSpecialistPoolRequest message or plain object + * @returns Promise + */ + public getSpecialistPool(request: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest): Promise; + + /** + * Calls ListSpecialistPools. + * @param request ListSpecialistPoolsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSpecialistPoolsResponse + */ + public listSpecialistPools(request: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.ListSpecialistPoolsCallback): void; + + /** + * Calls ListSpecialistPools. + * @param request ListSpecialistPoolsRequest message or plain object + * @returns Promise + */ + public listSpecialistPools(request: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest): Promise; + + /** + * Calls DeleteSpecialistPool. + * @param request DeleteSpecialistPoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteSpecialistPool(request: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.DeleteSpecialistPoolCallback): void; + + /** + * Calls DeleteSpecialistPool. + * @param request DeleteSpecialistPoolRequest message or plain object + * @returns Promise + */ + public deleteSpecialistPool(request: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest): Promise; + + /** + * Calls UpdateSpecialistPool. + * @param request UpdateSpecialistPoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateSpecialistPool(request: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest, callback: google.cloud.aiplatform.v1.SpecialistPoolService.UpdateSpecialistPoolCallback): void; + + /** + * Calls UpdateSpecialistPool. + * @param request UpdateSpecialistPoolRequest message or plain object + * @returns Promise + */ + public updateSpecialistPool(request: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest): Promise; + } + + namespace SpecialistPoolService { + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|createSpecialistPool}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|getSpecialistPool}. + * @param error Error, if any + * @param [response] SpecialistPool + */ + type GetSpecialistPoolCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.SpecialistPool) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|listSpecialistPools}. + * @param error Error, if any + * @param [response] ListSpecialistPoolsResponse + */ + type ListSpecialistPoolsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListSpecialistPoolsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|deleteSpecialistPool}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.SpecialistPoolService|updateSpecialistPool}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateSpecialistPoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + } + + /** Properties of a CreateSpecialistPoolRequest. */ + interface ICreateSpecialistPoolRequest { + + /** CreateSpecialistPoolRequest parent */ + parent?: (string|null); + + /** CreateSpecialistPoolRequest specialistPool */ + specialistPool?: (google.cloud.aiplatform.v1.ISpecialistPool|null); + } + + /** Represents a CreateSpecialistPoolRequest. */ + class CreateSpecialistPoolRequest implements ICreateSpecialistPoolRequest { + + /** + * Constructs a new CreateSpecialistPoolRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest); + + /** CreateSpecialistPoolRequest parent. */ + public parent: string; + + /** CreateSpecialistPoolRequest specialistPool. */ + public specialistPool?: (google.cloud.aiplatform.v1.ISpecialistPool|null); + + /** + * Creates a new CreateSpecialistPoolRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateSpecialistPoolRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest): google.cloud.aiplatform.v1.CreateSpecialistPoolRequest; + + /** + * Encodes the specified CreateSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateSpecialistPoolRequest.verify|verify} messages. + * @param message CreateSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateSpecialistPoolRequest.verify|verify} messages. + * @param message CreateSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateSpecialistPoolRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateSpecialistPoolRequest + * @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.CreateSpecialistPoolRequest; + + /** + * Decodes a CreateSpecialistPoolRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateSpecialistPoolRequest + * @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.CreateSpecialistPoolRequest; + + /** + * Verifies a CreateSpecialistPoolRequest 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 CreateSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateSpecialistPoolRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateSpecialistPoolRequest; + + /** + * Creates a plain object from a CreateSpecialistPoolRequest message. Also converts values to other types if specified. + * @param message CreateSpecialistPoolRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreateSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateSpecialistPoolRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateSpecialistPoolRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateSpecialistPoolOperationMetadata. */ + interface ICreateSpecialistPoolOperationMetadata { + + /** CreateSpecialistPoolOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } + + /** Represents a CreateSpecialistPoolOperationMetadata. */ + class CreateSpecialistPoolOperationMetadata implements ICreateSpecialistPoolOperationMetadata { + + /** + * Constructs a new CreateSpecialistPoolOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateSpecialistPoolOperationMetadata); + + /** CreateSpecialistPoolOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** + * Creates a new CreateSpecialistPoolOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateSpecialistPoolOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateSpecialistPoolOperationMetadata): google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata; + + /** + * Encodes the specified CreateSpecialistPoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata.verify|verify} messages. + * @param message CreateSpecialistPoolOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICreateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateSpecialistPoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata.verify|verify} messages. + * @param message CreateSpecialistPoolOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateSpecialistPoolOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateSpecialistPoolOperationMetadata + * @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.CreateSpecialistPoolOperationMetadata; + + /** + * Decodes a CreateSpecialistPoolOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateSpecialistPoolOperationMetadata + * @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.CreateSpecialistPoolOperationMetadata; + + /** + * Verifies a CreateSpecialistPoolOperationMetadata 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 CreateSpecialistPoolOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateSpecialistPoolOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata; + + /** + * Creates a plain object from a CreateSpecialistPoolOperationMetadata message. Also converts values to other types if specified. + * @param message CreateSpecialistPoolOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreateSpecialistPoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateSpecialistPoolOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateSpecialistPoolOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetSpecialistPoolRequest. */ + interface IGetSpecialistPoolRequest { + + /** GetSpecialistPoolRequest name */ + name?: (string|null); + } + + /** Represents a GetSpecialistPoolRequest. */ + class GetSpecialistPoolRequest implements IGetSpecialistPoolRequest { + + /** + * Constructs a new GetSpecialistPoolRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest); + + /** GetSpecialistPoolRequest name. */ + public name: string; + + /** + * Creates a new GetSpecialistPoolRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetSpecialistPoolRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest): google.cloud.aiplatform.v1.GetSpecialistPoolRequest; + + /** + * Encodes the specified GetSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetSpecialistPoolRequest.verify|verify} messages. + * @param message GetSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetSpecialistPoolRequest.verify|verify} messages. + * @param message GetSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetSpecialistPoolRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetSpecialistPoolRequest + * @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.GetSpecialistPoolRequest; + + /** + * Decodes a GetSpecialistPoolRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetSpecialistPoolRequest + * @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.GetSpecialistPoolRequest; + + /** + * Verifies a GetSpecialistPoolRequest 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 GetSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetSpecialistPoolRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetSpecialistPoolRequest; + + /** + * Creates a plain object from a GetSpecialistPoolRequest message. Also converts values to other types if specified. + * @param message GetSpecialistPoolRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GetSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetSpecialistPoolRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetSpecialistPoolRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListSpecialistPoolsRequest. */ + interface IListSpecialistPoolsRequest { + + /** ListSpecialistPoolsRequest parent */ + parent?: (string|null); + + /** ListSpecialistPoolsRequest pageSize */ + pageSize?: (number|null); + + /** ListSpecialistPoolsRequest pageToken */ + pageToken?: (string|null); + + /** ListSpecialistPoolsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListSpecialistPoolsRequest. */ + class ListSpecialistPoolsRequest implements IListSpecialistPoolsRequest { + + /** + * Constructs a new ListSpecialistPoolsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest); + + /** ListSpecialistPoolsRequest parent. */ + public parent: string; + + /** ListSpecialistPoolsRequest pageSize. */ + public pageSize: number; + + /** ListSpecialistPoolsRequest pageToken. */ + public pageToken: string; + + /** ListSpecialistPoolsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new ListSpecialistPoolsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSpecialistPoolsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest): google.cloud.aiplatform.v1.ListSpecialistPoolsRequest; + + /** + * Encodes the specified ListSpecialistPoolsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListSpecialistPoolsRequest.verify|verify} messages. + * @param message ListSpecialistPoolsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListSpecialistPoolsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListSpecialistPoolsRequest.verify|verify} messages. + * @param message ListSpecialistPoolsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListSpecialistPoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListSpecialistPoolsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSpecialistPoolsRequest + * @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.ListSpecialistPoolsRequest; + + /** + * Decodes a ListSpecialistPoolsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSpecialistPoolsRequest + * @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.ListSpecialistPoolsRequest; + + /** + * Verifies a ListSpecialistPoolsRequest 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 ListSpecialistPoolsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSpecialistPoolsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListSpecialistPoolsRequest; + + /** + * Creates a plain object from a ListSpecialistPoolsRequest message. Also converts values to other types if specified. + * @param message ListSpecialistPoolsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListSpecialistPoolsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListSpecialistPoolsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListSpecialistPoolsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListSpecialistPoolsResponse. */ + interface IListSpecialistPoolsResponse { + + /** ListSpecialistPoolsResponse specialistPools */ + specialistPools?: (google.cloud.aiplatform.v1.ISpecialistPool[]|null); + + /** ListSpecialistPoolsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListSpecialistPoolsResponse. */ + class ListSpecialistPoolsResponse implements IListSpecialistPoolsResponse { + + /** + * Constructs a new ListSpecialistPoolsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListSpecialistPoolsResponse); + + /** ListSpecialistPoolsResponse specialistPools. */ + public specialistPools: google.cloud.aiplatform.v1.ISpecialistPool[]; + + /** ListSpecialistPoolsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListSpecialistPoolsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSpecialistPoolsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListSpecialistPoolsResponse): google.cloud.aiplatform.v1.ListSpecialistPoolsResponse; + + /** + * Encodes the specified ListSpecialistPoolsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListSpecialistPoolsResponse.verify|verify} messages. + * @param message ListSpecialistPoolsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListSpecialistPoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListSpecialistPoolsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListSpecialistPoolsResponse.verify|verify} messages. + * @param message ListSpecialistPoolsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListSpecialistPoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListSpecialistPoolsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSpecialistPoolsResponse + * @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.ListSpecialistPoolsResponse; + + /** + * Decodes a ListSpecialistPoolsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSpecialistPoolsResponse + * @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.ListSpecialistPoolsResponse; + + /** + * Verifies a ListSpecialistPoolsResponse 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 ListSpecialistPoolsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSpecialistPoolsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListSpecialistPoolsResponse; + + /** + * Creates a plain object from a ListSpecialistPoolsResponse message. Also converts values to other types if specified. + * @param message ListSpecialistPoolsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListSpecialistPoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListSpecialistPoolsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListSpecialistPoolsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteSpecialistPoolRequest. */ + interface IDeleteSpecialistPoolRequest { + + /** DeleteSpecialistPoolRequest name */ + name?: (string|null); + + /** DeleteSpecialistPoolRequest force */ + force?: (boolean|null); + } + + /** Represents a DeleteSpecialistPoolRequest. */ + class DeleteSpecialistPoolRequest implements IDeleteSpecialistPoolRequest { + + /** + * Constructs a new DeleteSpecialistPoolRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest); + + /** DeleteSpecialistPoolRequest name. */ + public name: string; + + /** DeleteSpecialistPoolRequest force. */ + public force: boolean; + + /** + * Creates a new DeleteSpecialistPoolRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteSpecialistPoolRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest): google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest; + + /** + * Encodes the specified DeleteSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest.verify|verify} messages. + * @param message DeleteSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest.verify|verify} messages. + * @param message DeleteSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteSpecialistPoolRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteSpecialistPoolRequest + * @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.DeleteSpecialistPoolRequest; + + /** + * Decodes a DeleteSpecialistPoolRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteSpecialistPoolRequest + * @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.DeleteSpecialistPoolRequest; + + /** + * Verifies a DeleteSpecialistPoolRequest 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 DeleteSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteSpecialistPoolRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest; + + /** + * Creates a plain object from a DeleteSpecialistPoolRequest message. Also converts values to other types if specified. + * @param message DeleteSpecialistPoolRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteSpecialistPoolRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteSpecialistPoolRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateSpecialistPoolRequest. */ + interface IUpdateSpecialistPoolRequest { + + /** UpdateSpecialistPoolRequest specialistPool */ + specialistPool?: (google.cloud.aiplatform.v1.ISpecialistPool|null); + + /** UpdateSpecialistPoolRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateSpecialistPoolRequest. */ + class UpdateSpecialistPoolRequest implements IUpdateSpecialistPoolRequest { + + /** + * Constructs a new UpdateSpecialistPoolRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest); + + /** UpdateSpecialistPoolRequest specialistPool. */ + public specialistPool?: (google.cloud.aiplatform.v1.ISpecialistPool|null); + + /** UpdateSpecialistPoolRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new UpdateSpecialistPoolRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateSpecialistPoolRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest): google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest; + + /** + * Encodes the specified UpdateSpecialistPoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest.verify|verify} messages. + * @param message UpdateSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateSpecialistPoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest.verify|verify} messages. + * @param message UpdateSpecialistPoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateSpecialistPoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateSpecialistPoolRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateSpecialistPoolRequest + * @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.UpdateSpecialistPoolRequest; + + /** + * Decodes an UpdateSpecialistPoolRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateSpecialistPoolRequest + * @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.UpdateSpecialistPoolRequest; + + /** + * Verifies an UpdateSpecialistPoolRequest 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 UpdateSpecialistPoolRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateSpecialistPoolRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest; + + /** + * Creates a plain object from an UpdateSpecialistPoolRequest message. Also converts values to other types if specified. + * @param message UpdateSpecialistPoolRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateSpecialistPoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateSpecialistPoolRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateSpecialistPoolRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateSpecialistPoolOperationMetadata. */ + interface IUpdateSpecialistPoolOperationMetadata { + + /** UpdateSpecialistPoolOperationMetadata specialistPool */ + specialistPool?: (string|null); + + /** UpdateSpecialistPoolOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + } + + /** Represents an UpdateSpecialistPoolOperationMetadata. */ + class UpdateSpecialistPoolOperationMetadata implements IUpdateSpecialistPoolOperationMetadata { + + /** + * Constructs a new UpdateSpecialistPoolOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateSpecialistPoolOperationMetadata); + + /** UpdateSpecialistPoolOperationMetadata specialistPool. */ + public specialistPool: string; + + /** UpdateSpecialistPoolOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + + /** + * Creates a new UpdateSpecialistPoolOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateSpecialistPoolOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateSpecialistPoolOperationMetadata): google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata; + + /** + * Encodes the specified UpdateSpecialistPoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata.verify|verify} messages. + * @param message UpdateSpecialistPoolOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateSpecialistPoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata.verify|verify} messages. + * @param message UpdateSpecialistPoolOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateSpecialistPoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateSpecialistPoolOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateSpecialistPoolOperationMetadata + * @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.UpdateSpecialistPoolOperationMetadata; + + /** + * Decodes an UpdateSpecialistPoolOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateSpecialistPoolOperationMetadata + * @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.UpdateSpecialistPoolOperationMetadata; + + /** + * Verifies an UpdateSpecialistPoolOperationMetadata 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 UpdateSpecialistPoolOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateSpecialistPoolOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata; + + /** + * Creates a plain object from an UpdateSpecialistPoolOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateSpecialistPoolOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateSpecialistPoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateSpecialistPoolOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateSpecialistPoolOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Tensorboard. */ + interface ITensorboard { + + /** Tensorboard name */ + name?: (string|null); + + /** Tensorboard displayName */ + displayName?: (string|null); + + /** Tensorboard description */ + description?: (string|null); + + /** Tensorboard encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** Tensorboard blobStoragePathPrefix */ + blobStoragePathPrefix?: (string|null); + + /** Tensorboard runCount */ + runCount?: (number|null); + + /** Tensorboard createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Tensorboard updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Tensorboard labels */ + labels?: ({ [k: string]: string }|null); + + /** Tensorboard etag */ + etag?: (string|null); + } + + /** Represents a Tensorboard. */ + class Tensorboard implements ITensorboard { + + /** + * Constructs a new Tensorboard. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITensorboard); + + /** Tensorboard name. */ + public name: string; + + /** Tensorboard displayName. */ + public displayName: string; + + /** Tensorboard description. */ + public description: string; + + /** Tensorboard encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1.IEncryptionSpec|null); + + /** Tensorboard blobStoragePathPrefix. */ + public blobStoragePathPrefix: string; + + /** Tensorboard runCount. */ + public runCount: number; + + /** Tensorboard createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Tensorboard updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Tensorboard labels. */ + public labels: { [k: string]: string }; + + /** Tensorboard etag. */ + public etag: string; + + /** + * Creates a new Tensorboard instance using the specified properties. + * @param [properties] Properties to set + * @returns Tensorboard instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITensorboard): google.cloud.aiplatform.v1.Tensorboard; + + /** + * Encodes the specified Tensorboard message. Does not implicitly {@link google.cloud.aiplatform.v1.Tensorboard.verify|verify} messages. + * @param message Tensorboard message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITensorboard, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Tensorboard message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Tensorboard.verify|verify} messages. + * @param message Tensorboard message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboard, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Tensorboard message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Tensorboard + * @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.Tensorboard; + + /** + * Decodes a Tensorboard message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Tensorboard + * @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.Tensorboard; + + /** + * Verifies a Tensorboard 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 Tensorboard message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Tensorboard + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Tensorboard; + + /** + * Creates a plain object from a Tensorboard message. Also converts values to other types if specified. + * @param message Tensorboard + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.Tensorboard, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Tensorboard to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Tensorboard + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TimeSeriesData. */ + interface ITimeSeriesData { + + /** TimeSeriesData tensorboardTimeSeriesId */ + tensorboardTimeSeriesId?: (string|null); + + /** TimeSeriesData valueType */ + valueType?: (google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|keyof typeof google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|null); + + /** TimeSeriesData values */ + values?: (google.cloud.aiplatform.v1.ITimeSeriesDataPoint[]|null); + } + + /** Represents a TimeSeriesData. */ + class TimeSeriesData implements ITimeSeriesData { + + /** + * Constructs a new TimeSeriesData. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITimeSeriesData); + + /** TimeSeriesData tensorboardTimeSeriesId. */ + public tensorboardTimeSeriesId: string; + + /** TimeSeriesData valueType. */ + public valueType: (google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|keyof typeof google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType); + + /** TimeSeriesData values. */ + public values: google.cloud.aiplatform.v1.ITimeSeriesDataPoint[]; + + /** + * Creates a new TimeSeriesData instance using the specified properties. + * @param [properties] Properties to set + * @returns TimeSeriesData instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITimeSeriesData): google.cloud.aiplatform.v1.TimeSeriesData; + + /** + * Encodes the specified TimeSeriesData message. Does not implicitly {@link google.cloud.aiplatform.v1.TimeSeriesData.verify|verify} messages. + * @param message TimeSeriesData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITimeSeriesData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TimeSeriesData message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimeSeriesData.verify|verify} messages. + * @param message TimeSeriesData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITimeSeriesData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TimeSeriesData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimeSeriesData + * @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.TimeSeriesData; + + /** + * Decodes a TimeSeriesData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TimeSeriesData + * @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.TimeSeriesData; + + /** + * Verifies a TimeSeriesData 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 TimeSeriesData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimeSeriesData + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TimeSeriesData; + + /** + * Creates a plain object from a TimeSeriesData message. Also converts values to other types if specified. + * @param message TimeSeriesData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TimeSeriesData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TimeSeriesData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TimeSeriesData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TimeSeriesDataPoint. */ + interface ITimeSeriesDataPoint { + + /** TimeSeriesDataPoint scalar */ + scalar?: (google.cloud.aiplatform.v1.IScalar|null); + + /** TimeSeriesDataPoint tensor */ + tensor?: (google.cloud.aiplatform.v1.ITensorboardTensor|null); + + /** TimeSeriesDataPoint blobs */ + blobs?: (google.cloud.aiplatform.v1.ITensorboardBlobSequence|null); + + /** TimeSeriesDataPoint wallTime */ + wallTime?: (google.protobuf.ITimestamp|null); + + /** TimeSeriesDataPoint step */ + step?: (number|Long|string|null); + } + + /** Represents a TimeSeriesDataPoint. */ + class TimeSeriesDataPoint implements ITimeSeriesDataPoint { + + /** + * Constructs a new TimeSeriesDataPoint. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITimeSeriesDataPoint); + + /** TimeSeriesDataPoint scalar. */ + public scalar?: (google.cloud.aiplatform.v1.IScalar|null); + + /** TimeSeriesDataPoint tensor. */ + public tensor?: (google.cloud.aiplatform.v1.ITensorboardTensor|null); + + /** TimeSeriesDataPoint blobs. */ + public blobs?: (google.cloud.aiplatform.v1.ITensorboardBlobSequence|null); + + /** TimeSeriesDataPoint wallTime. */ + public wallTime?: (google.protobuf.ITimestamp|null); + + /** TimeSeriesDataPoint step. */ + public step: (number|Long|string); + + /** TimeSeriesDataPoint value. */ + public value?: ("scalar"|"tensor"|"blobs"); + + /** + * Creates a new TimeSeriesDataPoint instance using the specified properties. + * @param [properties] Properties to set + * @returns TimeSeriesDataPoint instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITimeSeriesDataPoint): google.cloud.aiplatform.v1.TimeSeriesDataPoint; + + /** + * Encodes the specified TimeSeriesDataPoint message. Does not implicitly {@link google.cloud.aiplatform.v1.TimeSeriesDataPoint.verify|verify} messages. + * @param message TimeSeriesDataPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITimeSeriesDataPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TimeSeriesDataPoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimeSeriesDataPoint.verify|verify} messages. + * @param message TimeSeriesDataPoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITimeSeriesDataPoint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TimeSeriesDataPoint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TimeSeriesDataPoint + * @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.TimeSeriesDataPoint; + + /** + * Decodes a TimeSeriesDataPoint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TimeSeriesDataPoint + * @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.TimeSeriesDataPoint; + + /** + * Verifies a TimeSeriesDataPoint 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 TimeSeriesDataPoint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TimeSeriesDataPoint + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TimeSeriesDataPoint; + + /** + * Creates a plain object from a TimeSeriesDataPoint message. Also converts values to other types if specified. + * @param message TimeSeriesDataPoint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TimeSeriesDataPoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TimeSeriesDataPoint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TimeSeriesDataPoint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Scalar. */ + interface IScalar { + + /** Scalar value */ + value?: (number|null); + } + + /** Represents a Scalar. */ + class Scalar implements IScalar { + + /** + * Constructs a new Scalar. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IScalar); + + /** Scalar value. */ + public value: number; + + /** + * Creates a new Scalar instance using the specified properties. + * @param [properties] Properties to set + * @returns Scalar instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IScalar): google.cloud.aiplatform.v1.Scalar; + + /** + * Encodes the specified Scalar message. Does not implicitly {@link google.cloud.aiplatform.v1.Scalar.verify|verify} messages. + * @param message Scalar message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IScalar, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Scalar message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Scalar.verify|verify} messages. + * @param message Scalar message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IScalar, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Scalar message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Scalar + * @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.Scalar; + + /** + * Decodes a Scalar message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Scalar + * @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.Scalar; + + /** + * Verifies a Scalar 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 Scalar message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Scalar + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Scalar; + + /** + * Creates a plain object from a Scalar message. Also converts values to other types if specified. + * @param message Scalar + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.Scalar, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Scalar to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Scalar + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TensorboardTensor. */ + interface ITensorboardTensor { + + /** TensorboardTensor value */ + value?: (Uint8Array|string|null); + + /** TensorboardTensor versionNumber */ + versionNumber?: (number|null); + } + + /** Represents a TensorboardTensor. */ + class TensorboardTensor implements ITensorboardTensor { + + /** + * Constructs a new TensorboardTensor. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITensorboardTensor); + + /** TensorboardTensor value. */ + public value: (Uint8Array|string); + + /** TensorboardTensor versionNumber. */ + public versionNumber: number; + + /** + * Creates a new TensorboardTensor instance using the specified properties. + * @param [properties] Properties to set + * @returns TensorboardTensor instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITensorboardTensor): google.cloud.aiplatform.v1.TensorboardTensor; + + /** + * Encodes the specified TensorboardTensor message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTensor.verify|verify} messages. + * @param message TensorboardTensor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITensorboardTensor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TensorboardTensor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTensor.verify|verify} messages. + * @param message TensorboardTensor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardTensor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TensorboardTensor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TensorboardTensor + * @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.TensorboardTensor; + + /** + * Decodes a TensorboardTensor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TensorboardTensor + * @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.TensorboardTensor; + + /** + * Verifies a TensorboardTensor 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 TensorboardTensor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TensorboardTensor + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardTensor; + + /** + * Creates a plain object from a TensorboardTensor message. Also converts values to other types if specified. + * @param message TensorboardTensor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TensorboardTensor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TensorboardTensor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TensorboardTensor + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TensorboardBlobSequence. */ + interface ITensorboardBlobSequence { + + /** TensorboardBlobSequence values */ + values?: (google.cloud.aiplatform.v1.ITensorboardBlob[]|null); + } + + /** Represents a TensorboardBlobSequence. */ + class TensorboardBlobSequence implements ITensorboardBlobSequence { + + /** + * Constructs a new TensorboardBlobSequence. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITensorboardBlobSequence); + + /** TensorboardBlobSequence values. */ + public values: google.cloud.aiplatform.v1.ITensorboardBlob[]; + + /** + * Creates a new TensorboardBlobSequence instance using the specified properties. + * @param [properties] Properties to set + * @returns TensorboardBlobSequence instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITensorboardBlobSequence): google.cloud.aiplatform.v1.TensorboardBlobSequence; + + /** + * Encodes the specified TensorboardBlobSequence message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardBlobSequence.verify|verify} messages. + * @param message TensorboardBlobSequence message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITensorboardBlobSequence, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TensorboardBlobSequence message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardBlobSequence.verify|verify} messages. + * @param message TensorboardBlobSequence message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardBlobSequence, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TensorboardBlobSequence message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TensorboardBlobSequence + * @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.TensorboardBlobSequence; + + /** + * Decodes a TensorboardBlobSequence message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TensorboardBlobSequence + * @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.TensorboardBlobSequence; + + /** + * Verifies a TensorboardBlobSequence 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 TensorboardBlobSequence message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TensorboardBlobSequence + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardBlobSequence; + + /** + * Creates a plain object from a TensorboardBlobSequence message. Also converts values to other types if specified. + * @param message TensorboardBlobSequence + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TensorboardBlobSequence, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TensorboardBlobSequence to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TensorboardBlobSequence + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TensorboardBlob. */ + interface ITensorboardBlob { + + /** TensorboardBlob id */ + id?: (string|null); + + /** TensorboardBlob data */ + data?: (Uint8Array|string|null); + } + + /** Represents a TensorboardBlob. */ + class TensorboardBlob implements ITensorboardBlob { + + /** + * Constructs a new TensorboardBlob. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITensorboardBlob); + + /** TensorboardBlob id. */ + public id: string; + + /** TensorboardBlob data. */ + public data: (Uint8Array|string); + + /** + * Creates a new TensorboardBlob instance using the specified properties. + * @param [properties] Properties to set + * @returns TensorboardBlob instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITensorboardBlob): google.cloud.aiplatform.v1.TensorboardBlob; + + /** + * Encodes the specified TensorboardBlob message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardBlob.verify|verify} messages. + * @param message TensorboardBlob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITensorboardBlob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TensorboardBlob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardBlob.verify|verify} messages. + * @param message TensorboardBlob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardBlob, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TensorboardBlob message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TensorboardBlob + * @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.TensorboardBlob; + + /** + * Decodes a TensorboardBlob message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TensorboardBlob + * @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.TensorboardBlob; + + /** + * Verifies a TensorboardBlob 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 TensorboardBlob message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TensorboardBlob + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardBlob; + + /** + * Creates a plain object from a TensorboardBlob message. Also converts values to other types if specified. + * @param message TensorboardBlob + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TensorboardBlob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TensorboardBlob to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TensorboardBlob + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TensorboardTimeSeries. */ + interface ITensorboardTimeSeries { + + /** TensorboardTimeSeries name */ + name?: (string|null); + + /** TensorboardTimeSeries displayName */ + displayName?: (string|null); + + /** TensorboardTimeSeries description */ + description?: (string|null); + + /** TensorboardTimeSeries valueType */ + valueType?: (google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|keyof typeof google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|null); + + /** TensorboardTimeSeries createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardTimeSeries updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardTimeSeries etag */ + etag?: (string|null); + + /** TensorboardTimeSeries pluginName */ + pluginName?: (string|null); + + /** TensorboardTimeSeries pluginData */ + pluginData?: (Uint8Array|string|null); + + /** TensorboardTimeSeries metadata */ + metadata?: (google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata|null); + } + + /** Represents a TensorboardTimeSeries. */ + class TensorboardTimeSeries implements ITensorboardTimeSeries { + + /** + * Constructs a new TensorboardTimeSeries. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITensorboardTimeSeries); + + /** TensorboardTimeSeries name. */ + public name: string; + + /** TensorboardTimeSeries displayName. */ + public displayName: string; + + /** TensorboardTimeSeries description. */ + public description: string; + + /** TensorboardTimeSeries valueType. */ + public valueType: (google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|keyof typeof google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType); + + /** TensorboardTimeSeries createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardTimeSeries updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardTimeSeries etag. */ + public etag: string; + + /** TensorboardTimeSeries pluginName. */ + public pluginName: string; + + /** TensorboardTimeSeries pluginData. */ + public pluginData: (Uint8Array|string); + + /** TensorboardTimeSeries metadata. */ + public metadata?: (google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata|null); + + /** + * Creates a new TensorboardTimeSeries instance using the specified properties. + * @param [properties] Properties to set + * @returns TensorboardTimeSeries instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITensorboardTimeSeries): google.cloud.aiplatform.v1.TensorboardTimeSeries; + + /** + * Encodes the specified TensorboardTimeSeries message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTimeSeries.verify|verify} messages. + * @param message TensorboardTimeSeries message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITensorboardTimeSeries, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TensorboardTimeSeries message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTimeSeries.verify|verify} messages. + * @param message TensorboardTimeSeries message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardTimeSeries, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TensorboardTimeSeries message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TensorboardTimeSeries + * @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.TensorboardTimeSeries; + + /** + * Decodes a TensorboardTimeSeries message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TensorboardTimeSeries + * @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.TensorboardTimeSeries; + + /** + * Verifies a TensorboardTimeSeries 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 TensorboardTimeSeries message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TensorboardTimeSeries + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardTimeSeries; + + /** + * Creates a plain object from a TensorboardTimeSeries message. Also converts values to other types if specified. + * @param message TensorboardTimeSeries + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TensorboardTimeSeries, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TensorboardTimeSeries to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TensorboardTimeSeries + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace TensorboardTimeSeries { + + /** Properties of a Metadata. */ + interface IMetadata { + + /** Metadata maxStep */ + maxStep?: (number|Long|string|null); + + /** Metadata maxWallTime */ + maxWallTime?: (google.protobuf.ITimestamp|null); + + /** Metadata maxBlobSequenceLength */ + maxBlobSequenceLength?: (number|Long|string|null); + } + + /** Represents a Metadata. */ + class Metadata implements IMetadata { + + /** + * Constructs a new Metadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata); + + /** Metadata maxStep. */ + public maxStep: (number|Long|string); + + /** Metadata maxWallTime. */ + public maxWallTime?: (google.protobuf.ITimestamp|null); + + /** Metadata maxBlobSequenceLength. */ + public maxBlobSequenceLength: (number|Long|string); + + /** + * Creates a new Metadata instance using the specified properties. + * @param [properties] Properties to set + * @returns Metadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata): google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata; + + /** + * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata.verify|verify} messages. + * @param message Metadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata.verify|verify} messages. + * @param message Metadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Metadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Metadata + * @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.TensorboardTimeSeries.Metadata; + + /** + * Decodes a Metadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Metadata + * @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.TensorboardTimeSeries.Metadata; + + /** + * Verifies a Metadata 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 Metadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Metadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata; + + /** + * Creates a plain object from a Metadata message. Also converts values to other types if specified. + * @param message Metadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Metadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Metadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** ValueType enum. */ + enum ValueType { + VALUE_TYPE_UNSPECIFIED = 0, + SCALAR = 1, + TENSOR = 2, + BLOB_SEQUENCE = 3 + } + } + + /** Properties of a TensorboardExperiment. */ + interface ITensorboardExperiment { + + /** TensorboardExperiment name */ + name?: (string|null); + + /** TensorboardExperiment displayName */ + displayName?: (string|null); + + /** TensorboardExperiment description */ + description?: (string|null); + + /** TensorboardExperiment createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardExperiment updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardExperiment labels */ + labels?: ({ [k: string]: string }|null); + + /** TensorboardExperiment etag */ + etag?: (string|null); + + /** TensorboardExperiment source */ + source?: (string|null); + } + + /** Represents a TensorboardExperiment. */ + class TensorboardExperiment implements ITensorboardExperiment { + + /** + * Constructs a new TensorboardExperiment. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITensorboardExperiment); + + /** TensorboardExperiment name. */ + public name: string; + + /** TensorboardExperiment displayName. */ + public displayName: string; + + /** TensorboardExperiment description. */ + public description: string; + + /** TensorboardExperiment createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardExperiment updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardExperiment labels. */ + public labels: { [k: string]: string }; + + /** TensorboardExperiment etag. */ + public etag: string; + + /** TensorboardExperiment source. */ + public source: string; + + /** + * Creates a new TensorboardExperiment instance using the specified properties. + * @param [properties] Properties to set + * @returns TensorboardExperiment instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITensorboardExperiment): google.cloud.aiplatform.v1.TensorboardExperiment; + + /** + * Encodes the specified TensorboardExperiment message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardExperiment.verify|verify} messages. + * @param message TensorboardExperiment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITensorboardExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TensorboardExperiment message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardExperiment.verify|verify} messages. + * @param message TensorboardExperiment message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TensorboardExperiment message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TensorboardExperiment + * @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.TensorboardExperiment; + + /** + * Decodes a TensorboardExperiment message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TensorboardExperiment + * @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.TensorboardExperiment; + + /** + * Verifies a TensorboardExperiment 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 TensorboardExperiment message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TensorboardExperiment + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardExperiment; + + /** + * Creates a plain object from a TensorboardExperiment message. Also converts values to other types if specified. + * @param message TensorboardExperiment + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TensorboardExperiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TensorboardExperiment to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TensorboardExperiment + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TensorboardRun. */ + interface ITensorboardRun { + + /** TensorboardRun name */ + name?: (string|null); + + /** TensorboardRun displayName */ + displayName?: (string|null); + + /** TensorboardRun description */ + description?: (string|null); + + /** TensorboardRun createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardRun updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardRun labels */ + labels?: ({ [k: string]: string }|null); + + /** TensorboardRun etag */ + etag?: (string|null); + } + + /** Represents a TensorboardRun. */ + class TensorboardRun implements ITensorboardRun { + + /** + * Constructs a new TensorboardRun. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ITensorboardRun); + + /** TensorboardRun name. */ + public name: string; + + /** TensorboardRun displayName. */ + public displayName: string; + + /** TensorboardRun description. */ + public description: string; + + /** TensorboardRun createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardRun updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** TensorboardRun labels. */ + public labels: { [k: string]: string }; + + /** TensorboardRun etag. */ + public etag: string; + + /** + * Creates a new TensorboardRun instance using the specified properties. + * @param [properties] Properties to set + * @returns TensorboardRun instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ITensorboardRun): google.cloud.aiplatform.v1.TensorboardRun; + + /** + * Encodes the specified TensorboardRun message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardRun.verify|verify} messages. + * @param message TensorboardRun message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ITensorboardRun, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TensorboardRun message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardRun.verify|verify} messages. + * @param message TensorboardRun message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardRun, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TensorboardRun message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TensorboardRun + * @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.TensorboardRun; + + /** + * Decodes a TensorboardRun message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TensorboardRun + * @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.TensorboardRun; + + /** + * Verifies a TensorboardRun 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 TensorboardRun message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TensorboardRun + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardRun; + + /** + * Creates a plain object from a TensorboardRun message. Also converts values to other types if specified. + * @param message TensorboardRun + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.TensorboardRun, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TensorboardRun to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TensorboardRun + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Represents a TensorboardService */ + class TensorboardService extends $protobuf.rpc.Service { + + /** + * Constructs a new TensorboardService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new TensorboardService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TensorboardService; + + /** + * Calls CreateTensorboard. + * @param request CreateTensorboardRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createTensorboard(request: google.cloud.aiplatform.v1.ICreateTensorboardRequest, callback: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardCallback): void; + + /** + * Calls CreateTensorboard. + * @param request CreateTensorboardRequest message or plain object + * @returns Promise + */ + public createTensorboard(request: google.cloud.aiplatform.v1.ICreateTensorboardRequest): Promise; + + /** + * Calls GetTensorboard. + * @param request GetTensorboardRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Tensorboard + */ + public getTensorboard(request: google.cloud.aiplatform.v1.IGetTensorboardRequest, callback: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardCallback): void; + + /** + * Calls GetTensorboard. + * @param request GetTensorboardRequest message or plain object + * @returns Promise + */ + public getTensorboard(request: google.cloud.aiplatform.v1.IGetTensorboardRequest): Promise; + + /** + * Calls ReadTensorboardUsage. + * @param request ReadTensorboardUsageRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadTensorboardUsageResponse + */ + public readTensorboardUsage(request: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsageCallback): void; + + /** + * Calls ReadTensorboardUsage. + * @param request ReadTensorboardUsageRequest message or plain object + * @returns Promise + */ + public readTensorboardUsage(request: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest): Promise; + + /** + * Calls UpdateTensorboard. + * @param request UpdateTensorboardRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateTensorboard(request: google.cloud.aiplatform.v1.IUpdateTensorboardRequest, callback: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardCallback): void; + + /** + * Calls UpdateTensorboard. + * @param request UpdateTensorboardRequest message or plain object + * @returns Promise + */ + public updateTensorboard(request: google.cloud.aiplatform.v1.IUpdateTensorboardRequest): Promise; + + /** + * Calls ListTensorboards. + * @param request ListTensorboardsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTensorboardsResponse + */ + public listTensorboards(request: google.cloud.aiplatform.v1.IListTensorboardsRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardsCallback): void; + + /** + * Calls ListTensorboards. + * @param request ListTensorboardsRequest message or plain object + * @returns Promise + */ + public listTensorboards(request: google.cloud.aiplatform.v1.IListTensorboardsRequest): Promise; + + /** + * Calls DeleteTensorboard. + * @param request DeleteTensorboardRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteTensorboard(request: google.cloud.aiplatform.v1.IDeleteTensorboardRequest, callback: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardCallback): void; + + /** + * Calls DeleteTensorboard. + * @param request DeleteTensorboardRequest message or plain object + * @returns Promise + */ + public deleteTensorboard(request: google.cloud.aiplatform.v1.IDeleteTensorboardRequest): Promise; + + /** + * Calls CreateTensorboardExperiment. + * @param request CreateTensorboardExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardExperiment + */ + public createTensorboardExperiment(request: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest, callback: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardExperimentCallback): void; + + /** + * Calls CreateTensorboardExperiment. + * @param request CreateTensorboardExperimentRequest message or plain object + * @returns Promise + */ + public createTensorboardExperiment(request: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest): Promise; + + /** + * Calls GetTensorboardExperiment. + * @param request GetTensorboardExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardExperiment + */ + public getTensorboardExperiment(request: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest, callback: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardExperimentCallback): void; + + /** + * Calls GetTensorboardExperiment. + * @param request GetTensorboardExperimentRequest message or plain object + * @returns Promise + */ + public getTensorboardExperiment(request: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest): Promise; + + /** + * Calls UpdateTensorboardExperiment. + * @param request UpdateTensorboardExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardExperiment + */ + public updateTensorboardExperiment(request: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest, callback: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardExperimentCallback): void; + + /** + * Calls UpdateTensorboardExperiment. + * @param request UpdateTensorboardExperimentRequest message or plain object + * @returns Promise + */ + public updateTensorboardExperiment(request: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest): Promise; + + /** + * Calls ListTensorboardExperiments. + * @param request ListTensorboardExperimentsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTensorboardExperimentsResponse + */ + public listTensorboardExperiments(request: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperimentsCallback): void; + + /** + * Calls ListTensorboardExperiments. + * @param request ListTensorboardExperimentsRequest message or plain object + * @returns Promise + */ + public listTensorboardExperiments(request: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest): Promise; + + /** + * Calls DeleteTensorboardExperiment. + * @param request DeleteTensorboardExperimentRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteTensorboardExperiment(request: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest, callback: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardExperimentCallback): void; + + /** + * Calls DeleteTensorboardExperiment. + * @param request DeleteTensorboardExperimentRequest message or plain object + * @returns Promise + */ + public deleteTensorboardExperiment(request: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest): Promise; + + /** + * Calls CreateTensorboardRun. + * @param request CreateTensorboardRunRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardRun + */ + public createTensorboardRun(request: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest, callback: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardRunCallback): void; + + /** + * Calls CreateTensorboardRun. + * @param request CreateTensorboardRunRequest message or plain object + * @returns Promise + */ + public createTensorboardRun(request: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest): Promise; + + /** + * Calls BatchCreateTensorboardRuns. + * @param request BatchCreateTensorboardRunsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchCreateTensorboardRunsResponse + */ + public batchCreateTensorboardRuns(request: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest, callback: google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardRunsCallback): void; + + /** + * Calls BatchCreateTensorboardRuns. + * @param request BatchCreateTensorboardRunsRequest message or plain object + * @returns Promise + */ + public batchCreateTensorboardRuns(request: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest): Promise; + + /** + * Calls GetTensorboardRun. + * @param request GetTensorboardRunRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardRun + */ + public getTensorboardRun(request: google.cloud.aiplatform.v1.IGetTensorboardRunRequest, callback: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardRunCallback): void; + + /** + * Calls GetTensorboardRun. + * @param request GetTensorboardRunRequest message or plain object + * @returns Promise + */ + public getTensorboardRun(request: google.cloud.aiplatform.v1.IGetTensorboardRunRequest): Promise; + + /** + * Calls UpdateTensorboardRun. + * @param request UpdateTensorboardRunRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardRun + */ + public updateTensorboardRun(request: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest, callback: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardRunCallback): void; + + /** + * Calls UpdateTensorboardRun. + * @param request UpdateTensorboardRunRequest message or plain object + * @returns Promise + */ + public updateTensorboardRun(request: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest): Promise; + + /** + * Calls ListTensorboardRuns. + * @param request ListTensorboardRunsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTensorboardRunsResponse + */ + public listTensorboardRuns(request: google.cloud.aiplatform.v1.IListTensorboardRunsRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRunsCallback): void; + + /** + * Calls ListTensorboardRuns. + * @param request ListTensorboardRunsRequest message or plain object + * @returns Promise + */ + public listTensorboardRuns(request: google.cloud.aiplatform.v1.IListTensorboardRunsRequest): Promise; + + /** + * Calls DeleteTensorboardRun. + * @param request DeleteTensorboardRunRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteTensorboardRun(request: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest, callback: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardRunCallback): void; + + /** + * Calls DeleteTensorboardRun. + * @param request DeleteTensorboardRunRequest message or plain object + * @returns Promise + */ + public deleteTensorboardRun(request: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest): Promise; + + /** + * Calls BatchCreateTensorboardTimeSeries. + * @param request BatchCreateTensorboardTimeSeriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchCreateTensorboardTimeSeriesResponse + */ + public batchCreateTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardTimeSeriesCallback): void; + + /** + * Calls BatchCreateTensorboardTimeSeries. + * @param request BatchCreateTensorboardTimeSeriesRequest message or plain object + * @returns Promise + */ + public batchCreateTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest): Promise; + + /** + * Calls CreateTensorboardTimeSeries. + * @param request CreateTensorboardTimeSeriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardTimeSeries + */ + public createTensorboardTimeSeries(request: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardTimeSeriesCallback): void; + + /** + * Calls CreateTensorboardTimeSeries. + * @param request CreateTensorboardTimeSeriesRequest message or plain object + * @returns Promise + */ + public createTensorboardTimeSeries(request: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest): Promise; + + /** + * Calls GetTensorboardTimeSeries. + * @param request GetTensorboardTimeSeriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardTimeSeries + */ + public getTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardTimeSeriesCallback): void; + + /** + * Calls GetTensorboardTimeSeries. + * @param request GetTensorboardTimeSeriesRequest message or plain object + * @returns Promise + */ + public getTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest): Promise; + + /** + * Calls UpdateTensorboardTimeSeries. + * @param request UpdateTensorboardTimeSeriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and TensorboardTimeSeries + */ + public updateTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardTimeSeriesCallback): void; + + /** + * Calls UpdateTensorboardTimeSeries. + * @param request UpdateTensorboardTimeSeriesRequest message or plain object + * @returns Promise + */ + public updateTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest): Promise; + + /** + * Calls ListTensorboardTimeSeries. + * @param request ListTensorboardTimeSeriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTensorboardTimeSeriesResponse + */ + public listTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeriesCallback): void; + + /** + * Calls ListTensorboardTimeSeries. + * @param request ListTensorboardTimeSeriesRequest message or plain object + * @returns Promise + */ + public listTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest): Promise; + + /** + * Calls DeleteTensorboardTimeSeries. + * @param request DeleteTensorboardTimeSeriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardTimeSeriesCallback): void; + + /** + * Calls DeleteTensorboardTimeSeries. + * @param request DeleteTensorboardTimeSeriesRequest message or plain object + * @returns Promise + */ + public deleteTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest): Promise; + + /** + * Calls BatchReadTensorboardTimeSeriesData. + * @param request BatchReadTensorboardTimeSeriesDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchReadTensorboardTimeSeriesDataResponse + */ + public batchReadTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.BatchReadTensorboardTimeSeriesDataCallback): void; + + /** + * Calls BatchReadTensorboardTimeSeriesData. + * @param request BatchReadTensorboardTimeSeriesDataRequest message or plain object + * @returns Promise + */ + public batchReadTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest): Promise; + + /** + * Calls ReadTensorboardTimeSeriesData. + * @param request ReadTensorboardTimeSeriesDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadTensorboardTimeSeriesDataResponse + */ + public readTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardTimeSeriesDataCallback): void; + + /** + * Calls ReadTensorboardTimeSeriesData. + * @param request ReadTensorboardTimeSeriesDataRequest message or plain object + * @returns Promise + */ + public readTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest): Promise; + + /** + * Calls ReadTensorboardBlobData. + * @param request ReadTensorboardBlobDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadTensorboardBlobDataResponse + */ + public readTensorboardBlobData(request: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardBlobDataCallback): void; + + /** + * Calls ReadTensorboardBlobData. + * @param request ReadTensorboardBlobDataRequest message or plain object + * @returns Promise + */ + public readTensorboardBlobData(request: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest): Promise; + + /** + * Calls WriteTensorboardExperimentData. + * @param request WriteTensorboardExperimentDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WriteTensorboardExperimentDataResponse + */ + public writeTensorboardExperimentData(request: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardExperimentDataCallback): void; + + /** + * Calls WriteTensorboardExperimentData. + * @param request WriteTensorboardExperimentDataRequest message or plain object + * @returns Promise + */ + public writeTensorboardExperimentData(request: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest): Promise; + + /** + * Calls WriteTensorboardRunData. + * @param request WriteTensorboardRunDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WriteTensorboardRunDataResponse + */ + public writeTensorboardRunData(request: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardRunDataCallback): void; + + /** + * Calls WriteTensorboardRunData. + * @param request WriteTensorboardRunDataRequest message or plain object + * @returns Promise + */ + public writeTensorboardRunData(request: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest): Promise; + + /** + * Calls ExportTensorboardTimeSeriesData. + * @param request ExportTensorboardTimeSeriesDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ExportTensorboardTimeSeriesDataResponse + */ + public exportTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesDataCallback): void; + + /** + * Calls ExportTensorboardTimeSeriesData. + * @param request ExportTensorboardTimeSeriesDataRequest message or plain object + * @returns Promise + */ + public exportTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest): Promise; + } + + namespace TensorboardService { + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|createTensorboard}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateTensorboardCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|getTensorboard}. + * @param error Error, if any + * @param [response] Tensorboard + */ + type GetTensorboardCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Tensorboard) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|readTensorboardUsage}. + * @param error Error, if any + * @param [response] ReadTensorboardUsageResponse + */ + type ReadTensorboardUsageCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|updateTensorboard}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateTensorboardCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|listTensorboards}. + * @param error Error, if any + * @param [response] ListTensorboardsResponse + */ + type ListTensorboardsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTensorboardsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|deleteTensorboard}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteTensorboardCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|createTensorboardExperiment}. + * @param error Error, if any + * @param [response] TensorboardExperiment + */ + type CreateTensorboardExperimentCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardExperiment) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|getTensorboardExperiment}. + * @param error Error, if any + * @param [response] TensorboardExperiment + */ + type GetTensorboardExperimentCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardExperiment) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|updateTensorboardExperiment}. + * @param error Error, if any + * @param [response] TensorboardExperiment + */ + type UpdateTensorboardExperimentCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardExperiment) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|listTensorboardExperiments}. + * @param error Error, if any + * @param [response] ListTensorboardExperimentsResponse + */ + type ListTensorboardExperimentsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|deleteTensorboardExperiment}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteTensorboardExperimentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|createTensorboardRun}. + * @param error Error, if any + * @param [response] TensorboardRun + */ + type CreateTensorboardRunCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardRun) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|batchCreateTensorboardRuns}. + * @param error Error, if any + * @param [response] BatchCreateTensorboardRunsResponse + */ + type BatchCreateTensorboardRunsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|getTensorboardRun}. + * @param error Error, if any + * @param [response] TensorboardRun + */ + type GetTensorboardRunCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardRun) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|updateTensorboardRun}. + * @param error Error, if any + * @param [response] TensorboardRun + */ + type UpdateTensorboardRunCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardRun) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|listTensorboardRuns}. + * @param error Error, if any + * @param [response] ListTensorboardRunsResponse + */ + type ListTensorboardRunsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTensorboardRunsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|deleteTensorboardRun}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteTensorboardRunCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|batchCreateTensorboardTimeSeries}. + * @param error Error, if any + * @param [response] BatchCreateTensorboardTimeSeriesResponse + */ + type BatchCreateTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|createTensorboardTimeSeries}. + * @param error Error, if any + * @param [response] TensorboardTimeSeries + */ + type CreateTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardTimeSeries) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|getTensorboardTimeSeries}. + * @param error Error, if any + * @param [response] TensorboardTimeSeries + */ + type GetTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardTimeSeries) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|updateTensorboardTimeSeries}. + * @param error Error, if any + * @param [response] TensorboardTimeSeries + */ + type UpdateTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardTimeSeries) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|listTensorboardTimeSeries}. + * @param error Error, if any + * @param [response] ListTensorboardTimeSeriesResponse + */ + type ListTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|deleteTensorboardTimeSeries}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|batchReadTensorboardTimeSeriesData}. + * @param error Error, if any + * @param [response] BatchReadTensorboardTimeSeriesDataResponse + */ + type BatchReadTensorboardTimeSeriesDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|readTensorboardTimeSeriesData}. + * @param error Error, if any + * @param [response] ReadTensorboardTimeSeriesDataResponse + */ + type ReadTensorboardTimeSeriesDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|readTensorboardBlobData}. + * @param error Error, if any + * @param [response] ReadTensorboardBlobDataResponse + */ + type ReadTensorboardBlobDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|writeTensorboardExperimentData}. + * @param error Error, if any + * @param [response] WriteTensorboardExperimentDataResponse + */ + type WriteTensorboardExperimentDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|writeTensorboardRunData}. + * @param error Error, if any + * @param [response] WriteTensorboardRunDataResponse + */ + type WriteTensorboardRunDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|exportTensorboardTimeSeriesData}. + * @param error Error, if any + * @param [response] ExportTensorboardTimeSeriesDataResponse + */ + type ExportTensorboardTimeSeriesDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse) => void; + } + + /** Properties of a CreateTensorboardRequest. */ + interface ICreateTensorboardRequest { + + /** CreateTensorboardRequest parent */ + parent?: (string|null); + + /** CreateTensorboardRequest tensorboard */ + tensorboard?: (google.cloud.aiplatform.v1.ITensorboard|null); + } + + /** Represents a CreateTensorboardRequest. */ + class CreateTensorboardRequest implements ICreateTensorboardRequest { + + /** + * Constructs a new CreateTensorboardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardRequest); + + /** CreateTensorboardRequest parent. */ + public parent: string; + + /** CreateTensorboardRequest tensorboard. */ + public tensorboard?: (google.cloud.aiplatform.v1.ITensorboard|null); + + /** + * Creates a new CreateTensorboardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTensorboardRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardRequest): google.cloud.aiplatform.v1.CreateTensorboardRequest; + + /** + * Encodes the specified CreateTensorboardRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardRequest.verify|verify} messages. + * @param message CreateTensorboardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateTensorboardRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardRequest.verify|verify} messages. + * @param message CreateTensorboardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateTensorboardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateTensorboardRequest + * @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.CreateTensorboardRequest; + + /** + * Decodes a CreateTensorboardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateTensorboardRequest + * @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.CreateTensorboardRequest; + + /** + * Verifies a CreateTensorboardRequest 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 CreateTensorboardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateTensorboardRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardRequest; + + /** + * Creates a plain object from a CreateTensorboardRequest message. Also converts values to other types if specified. + * @param message CreateTensorboardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateTensorboardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateTensorboardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetTensorboardRequest. */ + interface IGetTensorboardRequest { + + /** GetTensorboardRequest name */ + name?: (string|null); + } + + /** Represents a GetTensorboardRequest. */ + class GetTensorboardRequest implements IGetTensorboardRequest { + + /** + * Constructs a new GetTensorboardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGetTensorboardRequest); + + /** GetTensorboardRequest name. */ + public name: string; + + /** + * Creates a new GetTensorboardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTensorboardRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGetTensorboardRequest): google.cloud.aiplatform.v1.GetTensorboardRequest; + + /** + * Encodes the specified GetTensorboardRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardRequest.verify|verify} messages. + * @param message GetTensorboardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGetTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTensorboardRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardRequest.verify|verify} messages. + * @param message GetTensorboardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTensorboardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTensorboardRequest + * @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.GetTensorboardRequest; + + /** + * Decodes a GetTensorboardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTensorboardRequest + * @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.GetTensorboardRequest; + + /** + * Verifies a GetTensorboardRequest 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 GetTensorboardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTensorboardRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTensorboardRequest; + + /** + * Creates a plain object from a GetTensorboardRequest message. Also converts values to other types if specified. + * @param message GetTensorboardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GetTensorboardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTensorboardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetTensorboardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReadTensorboardUsageRequest. */ + interface IReadTensorboardUsageRequest { + + /** ReadTensorboardUsageRequest tensorboard */ + tensorboard?: (string|null); + } + + /** Represents a ReadTensorboardUsageRequest. */ + class ReadTensorboardUsageRequest implements IReadTensorboardUsageRequest { + + /** + * Constructs a new ReadTensorboardUsageRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest); + + /** ReadTensorboardUsageRequest tensorboard. */ + public tensorboard: string; + + /** + * Creates a new ReadTensorboardUsageRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadTensorboardUsageRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest): google.cloud.aiplatform.v1.ReadTensorboardUsageRequest; + + /** + * Encodes the specified ReadTensorboardUsageRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageRequest.verify|verify} messages. + * @param message ReadTensorboardUsageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReadTensorboardUsageRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageRequest.verify|verify} messages. + * @param message ReadTensorboardUsageRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReadTensorboardUsageRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadTensorboardUsageRequest + * @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.ReadTensorboardUsageRequest; + + /** + * Decodes a ReadTensorboardUsageRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadTensorboardUsageRequest + * @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.ReadTensorboardUsageRequest; + + /** + * Verifies a ReadTensorboardUsageRequest 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 ReadTensorboardUsageRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadTensorboardUsageRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardUsageRequest; + + /** + * Creates a plain object from a ReadTensorboardUsageRequest message. Also converts values to other types if specified. + * @param message ReadTensorboardUsageRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardUsageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReadTensorboardUsageRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReadTensorboardUsageRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ReadTensorboardUsageResponse. */ + interface IReadTensorboardUsageResponse { + + /** ReadTensorboardUsageResponse monthlyUsageData */ + monthlyUsageData?: ({ [k: string]: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData }|null); + } + + /** Represents a ReadTensorboardUsageResponse. */ + class ReadTensorboardUsageResponse implements IReadTensorboardUsageResponse { + + /** + * Constructs a new ReadTensorboardUsageResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardUsageResponse); + + /** ReadTensorboardUsageResponse monthlyUsageData. */ + public monthlyUsageData: { [k: string]: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData }; + + /** + * Creates a new ReadTensorboardUsageResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadTensorboardUsageResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardUsageResponse): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse; + + /** + * Encodes the specified ReadTensorboardUsageResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.verify|verify} messages. + * @param message ReadTensorboardUsageResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardUsageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReadTensorboardUsageResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.verify|verify} messages. + * @param message ReadTensorboardUsageResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardUsageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReadTensorboardUsageResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadTensorboardUsageResponse + * @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.ReadTensorboardUsageResponse; + + /** + * Decodes a ReadTensorboardUsageResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadTensorboardUsageResponse + * @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.ReadTensorboardUsageResponse; + + /** + * Verifies a ReadTensorboardUsageResponse 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 ReadTensorboardUsageResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadTensorboardUsageResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse; + + /** + * Creates a plain object from a ReadTensorboardUsageResponse message. Also converts values to other types if specified. + * @param message ReadTensorboardUsageResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReadTensorboardUsageResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReadTensorboardUsageResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ReadTensorboardUsageResponse { + + /** Properties of a PerUserUsageData. */ + interface IPerUserUsageData { + + /** PerUserUsageData username */ + username?: (string|null); + + /** PerUserUsageData viewCount */ + viewCount?: (number|Long|string|null); + } + + /** Represents a PerUserUsageData. */ + class PerUserUsageData implements IPerUserUsageData { + + /** + * Constructs a new PerUserUsageData. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData); + + /** PerUserUsageData username. */ + public username: string; + + /** PerUserUsageData viewCount. */ + public viewCount: (number|Long|string); + + /** + * Creates a new PerUserUsageData instance using the specified properties. + * @param [properties] Properties to set + * @returns PerUserUsageData instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData; + + /** + * Encodes the specified PerUserUsageData message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData.verify|verify} messages. + * @param message PerUserUsageData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PerUserUsageData message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData.verify|verify} messages. + * @param message PerUserUsageData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PerUserUsageData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PerUserUsageData + * @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.ReadTensorboardUsageResponse.PerUserUsageData; + + /** + * Decodes a PerUserUsageData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PerUserUsageData + * @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.ReadTensorboardUsageResponse.PerUserUsageData; + + /** + * Verifies a PerUserUsageData 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 PerUserUsageData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PerUserUsageData + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData; + + /** + * Creates a plain object from a PerUserUsageData message. Also converts values to other types if specified. + * @param message PerUserUsageData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PerUserUsageData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PerUserUsageData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PerMonthUsageData. */ + interface IPerMonthUsageData { + + /** PerMonthUsageData userUsageData */ + userUsageData?: (google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData[]|null); + } + + /** Represents a PerMonthUsageData. */ + class PerMonthUsageData implements IPerMonthUsageData { + + /** + * Constructs a new PerMonthUsageData. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData); + + /** PerMonthUsageData userUsageData. */ + public userUsageData: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData[]; + + /** + * Creates a new PerMonthUsageData instance using the specified properties. + * @param [properties] Properties to set + * @returns PerMonthUsageData instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData; + + /** + * Encodes the specified PerMonthUsageData message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData.verify|verify} messages. + * @param message PerMonthUsageData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PerMonthUsageData message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData.verify|verify} messages. + * @param message PerMonthUsageData message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PerMonthUsageData message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PerMonthUsageData + * @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.ReadTensorboardUsageResponse.PerMonthUsageData; + + /** + * Decodes a PerMonthUsageData message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PerMonthUsageData + * @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.ReadTensorboardUsageResponse.PerMonthUsageData; + + /** + * Verifies a PerMonthUsageData 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 PerMonthUsageData message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PerMonthUsageData + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData; + + /** + * Creates a plain object from a PerMonthUsageData message. Also converts values to other types if specified. + * @param message PerMonthUsageData + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PerMonthUsageData to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PerMonthUsageData + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + + /** Properties of a ListTensorboardsRequest. */ + interface IListTensorboardsRequest { + + /** ListTensorboardsRequest parent */ + parent?: (string|null); + + /** ListTensorboardsRequest filter */ + filter?: (string|null); + + /** ListTensorboardsRequest pageSize */ + pageSize?: (number|null); + + /** ListTensorboardsRequest pageToken */ + pageToken?: (string|null); + + /** ListTensorboardsRequest orderBy */ + orderBy?: (string|null); + + /** ListTensorboardsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListTensorboardsRequest. */ + class ListTensorboardsRequest implements IListTensorboardsRequest { + + /** + * Constructs a new ListTensorboardsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardsRequest); + + /** ListTensorboardsRequest parent. */ + public parent: string; + + /** ListTensorboardsRequest filter. */ + public filter: string; + + /** ListTensorboardsRequest pageSize. */ + public pageSize: number; + + /** ListTensorboardsRequest pageToken. */ + public pageToken: string; + + /** ListTensorboardsRequest orderBy. */ + public orderBy: string; + + /** ListTensorboardsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new ListTensorboardsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTensorboardsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardsRequest): google.cloud.aiplatform.v1.ListTensorboardsRequest; + + /** + * Encodes the specified ListTensorboardsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardsRequest.verify|verify} messages. + * @param message ListTensorboardsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListTensorboardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListTensorboardsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardsRequest.verify|verify} messages. + * @param message ListTensorboardsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListTensorboardsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTensorboardsRequest + * @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.ListTensorboardsRequest; + + /** + * Decodes a ListTensorboardsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTensorboardsRequest + * @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.ListTensorboardsRequest; + + /** + * Verifies a ListTensorboardsRequest 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 ListTensorboardsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTensorboardsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardsRequest; + + /** + * Creates a plain object from a ListTensorboardsRequest message. Also converts values to other types if specified. + * @param message ListTensorboardsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListTensorboardsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListTensorboardsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListTensorboardsResponse. */ + interface IListTensorboardsResponse { + + /** ListTensorboardsResponse tensorboards */ + tensorboards?: (google.cloud.aiplatform.v1.ITensorboard[]|null); + + /** ListTensorboardsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListTensorboardsResponse. */ + class ListTensorboardsResponse implements IListTensorboardsResponse { + + /** + * Constructs a new ListTensorboardsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardsResponse); + + /** ListTensorboardsResponse tensorboards. */ + public tensorboards: google.cloud.aiplatform.v1.ITensorboard[]; + + /** ListTensorboardsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListTensorboardsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTensorboardsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardsResponse): google.cloud.aiplatform.v1.ListTensorboardsResponse; + + /** + * Encodes the specified ListTensorboardsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardsResponse.verify|verify} messages. + * @param message ListTensorboardsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListTensorboardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListTensorboardsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardsResponse.verify|verify} messages. + * @param message ListTensorboardsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListTensorboardsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTensorboardsResponse + * @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.ListTensorboardsResponse; + + /** + * Decodes a ListTensorboardsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTensorboardsResponse + * @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.ListTensorboardsResponse; + + /** + * Verifies a ListTensorboardsResponse 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 ListTensorboardsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTensorboardsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardsResponse; + + /** + * Creates a plain object from a ListTensorboardsResponse message. Also converts values to other types if specified. + * @param message ListTensorboardsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListTensorboardsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListTensorboardsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an UpdateTensorboardRequest. */ + interface IUpdateTensorboardRequest { + + /** UpdateTensorboardRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateTensorboardRequest tensorboard */ + tensorboard?: (google.cloud.aiplatform.v1.ITensorboard|null); + } + + /** Represents an UpdateTensorboardRequest. */ + class UpdateTensorboardRequest implements IUpdateTensorboardRequest { + + /** + * Constructs a new UpdateTensorboardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardRequest); + + /** UpdateTensorboardRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); + + /** UpdateTensorboardRequest tensorboard. */ + public tensorboard?: (google.cloud.aiplatform.v1.ITensorboard|null); + + /** + * Creates a new UpdateTensorboardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateTensorboardRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardRequest): google.cloud.aiplatform.v1.UpdateTensorboardRequest; + + /** + * Encodes the specified UpdateTensorboardRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardRequest.verify|verify} messages. + * @param message UpdateTensorboardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateTensorboardRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardRequest.verify|verify} messages. + * @param message UpdateTensorboardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateTensorboardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateTensorboardRequest + * @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.UpdateTensorboardRequest; + + /** + * Decodes an UpdateTensorboardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateTensorboardRequest + * @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.UpdateTensorboardRequest; + + /** + * Verifies an UpdateTensorboardRequest 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 UpdateTensorboardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateTensorboardRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardRequest; + + /** + * Creates a plain object from an UpdateTensorboardRequest message. Also converts values to other types if specified. + * @param message UpdateTensorboardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateTensorboardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateTensorboardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteTensorboardRequest. */ + interface IDeleteTensorboardRequest { + + /** DeleteTensorboardRequest name */ + name?: (string|null); + } + + /** Represents a DeleteTensorboardRequest. */ + class DeleteTensorboardRequest implements IDeleteTensorboardRequest { + + /** + * Constructs a new DeleteTensorboardRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardRequest); + + /** DeleteTensorboardRequest name. */ + public name: string; + + /** + * Creates a new DeleteTensorboardRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTensorboardRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardRequest): google.cloud.aiplatform.v1.DeleteTensorboardRequest; + + /** + * Encodes the specified DeleteTensorboardRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardRequest.verify|verify} messages. + * @param message DeleteTensorboardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteTensorboardRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardRequest.verify|verify} messages. + * @param message DeleteTensorboardRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteTensorboardRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTensorboardRequest + * @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.DeleteTensorboardRequest; + + /** + * Decodes a DeleteTensorboardRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteTensorboardRequest + * @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.DeleteTensorboardRequest; + + /** + * Verifies a DeleteTensorboardRequest 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 DeleteTensorboardRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteTensorboardRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTensorboardRequest; + + /** + * Creates a plain object from a DeleteTensorboardRequest message. Also converts values to other types if specified. + * @param message DeleteTensorboardRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteTensorboardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteTensorboardRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteTensorboardRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateTensorboardExperimentRequest. */ + interface ICreateTensorboardExperimentRequest { + + /** CreateTensorboardExperimentRequest parent */ + parent?: (string|null); + + /** CreateTensorboardExperimentRequest tensorboardExperiment */ + tensorboardExperiment?: (google.cloud.aiplatform.v1.ITensorboardExperiment|null); + + /** CreateTensorboardExperimentRequest tensorboardExperimentId */ + tensorboardExperimentId?: (string|null); + } + + /** Represents a CreateTensorboardExperimentRequest. */ + class CreateTensorboardExperimentRequest implements ICreateTensorboardExperimentRequest { + + /** + * Constructs a new CreateTensorboardExperimentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest); + + /** CreateTensorboardExperimentRequest parent. */ + public parent: string; + + /** CreateTensorboardExperimentRequest tensorboardExperiment. */ + public tensorboardExperiment?: (google.cloud.aiplatform.v1.ITensorboardExperiment|null); + + /** CreateTensorboardExperimentRequest tensorboardExperimentId. */ + public tensorboardExperimentId: string; + + /** + * Creates a new CreateTensorboardExperimentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateTensorboardExperimentRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest): google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest; + + /** + * Encodes the specified CreateTensorboardExperimentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest.verify|verify} messages. + * @param message CreateTensorboardExperimentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateTensorboardExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest.verify|verify} messages. + * @param message CreateTensorboardExperimentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateTensorboardExperimentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateTensorboardExperimentRequest + * @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.CreateTensorboardExperimentRequest; + + /** + * Decodes a CreateTensorboardExperimentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateTensorboardExperimentRequest + * @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.CreateTensorboardExperimentRequest; + + /** + * Verifies a CreateTensorboardExperimentRequest 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 CreateTensorboardExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateTensorboardExperimentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest; + + /** + * Creates a plain object from a CreateTensorboardExperimentRequest message. Also converts values to other types if specified. + * @param message CreateTensorboardExperimentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateTensorboardExperimentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateTensorboardExperimentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a GetTensorboardExperimentRequest. */ + interface IGetTensorboardExperimentRequest { + + /** GetTensorboardExperimentRequest name */ + name?: (string|null); + } + + /** Represents a GetTensorboardExperimentRequest. */ + class GetTensorboardExperimentRequest implements IGetTensorboardExperimentRequest { + + /** + * Constructs a new GetTensorboardExperimentRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest); + + /** GetTensorboardExperimentRequest name. */ + public name: string; + + /** + * Creates a new GetTensorboardExperimentRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetTensorboardExperimentRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest): google.cloud.aiplatform.v1.GetTensorboardExperimentRequest; + + /** + * Encodes the specified GetTensorboardExperimentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardExperimentRequest.verify|verify} messages. + * @param message GetTensorboardExperimentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetTensorboardExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardExperimentRequest.verify|verify} messages. + * @param message GetTensorboardExperimentRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetTensorboardExperimentRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetTensorboardExperimentRequest + * @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.GetTensorboardExperimentRequest; + + /** + * Decodes a GetTensorboardExperimentRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetTensorboardExperimentRequest + * @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.GetTensorboardExperimentRequest; + + /** + * Verifies a GetTensorboardExperimentRequest 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 GetTensorboardExperimentRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetTensorboardExperimentRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTensorboardExperimentRequest; + + /** + * Creates a plain object from a GetTensorboardExperimentRequest message. Also converts values to other types if specified. + * @param message GetTensorboardExperimentRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.GetTensorboardExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetTensorboardExperimentRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetTensorboardExperimentRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListTensorboardExperimentsRequest. */ + interface IListTensorboardExperimentsRequest { + + /** ListTensorboardExperimentsRequest parent */ + parent?: (string|null); + + /** ListTensorboardExperimentsRequest filter */ + filter?: (string|null); + + /** ListTensorboardExperimentsRequest pageSize */ + pageSize?: (number|null); + + /** ListTensorboardExperimentsRequest pageToken */ + pageToken?: (string|null); + + /** ListTensorboardExperimentsRequest orderBy */ + orderBy?: (string|null); + + /** ListTensorboardExperimentsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListTensorboardExperimentsRequest. */ + class ListTensorboardExperimentsRequest implements IListTensorboardExperimentsRequest { + + /** + * Constructs a new ListTensorboardExperimentsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest); + + /** ListTensorboardExperimentsRequest parent. */ + public parent: string; + + /** ListTensorboardExperimentsRequest filter. */ + public filter: string; + + /** ListTensorboardExperimentsRequest pageSize. */ + public pageSize: number; + + /** ListTensorboardExperimentsRequest pageToken. */ + public pageToken: string; + + /** ListTensorboardExperimentsRequest orderBy. */ + public orderBy: string; + + /** ListTensorboardExperimentsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new ListTensorboardExperimentsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTensorboardExperimentsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest): google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest; + + /** + * Encodes the specified ListTensorboardExperimentsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest.verify|verify} messages. + * @param message ListTensorboardExperimentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListTensorboardExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest.verify|verify} messages. + * @param message ListTensorboardExperimentsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListTensorboardExperimentsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTensorboardExperimentsRequest + * @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.ListTensorboardExperimentsRequest; + + /** + * Decodes a ListTensorboardExperimentsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTensorboardExperimentsRequest + * @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.ListTensorboardExperimentsRequest; + + /** + * Verifies a ListTensorboardExperimentsRequest 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 ListTensorboardExperimentsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTensorboardExperimentsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest; + + /** + * Creates a plain object from a ListTensorboardExperimentsRequest message. Also converts values to other types if specified. + * @param message ListTensorboardExperimentsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListTensorboardExperimentsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListTensorboardExperimentsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListTensorboardExperimentsResponse. */ + interface IListTensorboardExperimentsResponse { + + /** ListTensorboardExperimentsResponse tensorboardExperiments */ + tensorboardExperiments?: (google.cloud.aiplatform.v1.ITensorboardExperiment[]|null); + + /** ListTensorboardExperimentsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListTensorboardExperimentsResponse. */ + class ListTensorboardExperimentsResponse implements IListTensorboardExperimentsResponse { + + /** + * Constructs a new ListTensorboardExperimentsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardExperimentsResponse); + + /** ListTensorboardExperimentsResponse tensorboardExperiments. */ + public tensorboardExperiments: google.cloud.aiplatform.v1.ITensorboardExperiment[]; + + /** ListTensorboardExperimentsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListTensorboardExperimentsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTensorboardExperimentsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardExperimentsResponse): google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse; + + /** + * Encodes the specified ListTensorboardExperimentsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse.verify|verify} messages. + * @param message ListTensorboardExperimentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListTensorboardExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListTensorboardExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse.verify|verify} messages. + * @param message ListTensorboardExperimentsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListTensorboardExperimentsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from - * @returns Scalar + * @param [length] Message length if known beforehand + * @returns ListTensorboardExperimentsResponse * @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.Scalar; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse; /** - * Verifies a Scalar message. + * Decodes a ListTensorboardExperimentsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTensorboardExperimentsResponse + * @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.ListTensorboardExperimentsResponse; + + /** + * Verifies a ListTensorboardExperimentsResponse 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 Scalar message from a plain object. Also converts values to their respective internal types. + * Creates a ListTensorboardExperimentsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Scalar + * @returns ListTensorboardExperimentsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Scalar; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse; /** - * Creates a plain object from a Scalar message. Also converts values to other types if specified. - * @param message Scalar + * Creates a plain object from a ListTensorboardExperimentsResponse message. Also converts values to other types if specified. + * @param message ListTensorboardExperimentsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.Scalar, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Scalar to JSON. + * Converts this ListTensorboardExperimentsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Scalar + * Gets the default type url for ListTensorboardExperimentsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TensorboardTensor. */ - interface ITensorboardTensor { + /** Properties of an UpdateTensorboardExperimentRequest. */ + interface IUpdateTensorboardExperimentRequest { - /** TensorboardTensor value */ - value?: (Uint8Array|string|null); + /** UpdateTensorboardExperimentRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** TensorboardTensor versionNumber */ - versionNumber?: (number|null); + /** UpdateTensorboardExperimentRequest tensorboardExperiment */ + tensorboardExperiment?: (google.cloud.aiplatform.v1.ITensorboardExperiment|null); } - /** Represents a TensorboardTensor. */ - class TensorboardTensor implements ITensorboardTensor { + /** Represents an UpdateTensorboardExperimentRequest. */ + class UpdateTensorboardExperimentRequest implements IUpdateTensorboardExperimentRequest { /** - * Constructs a new TensorboardTensor. + * Constructs a new UpdateTensorboardExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ITensorboardTensor); + constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest); - /** TensorboardTensor value. */ - public value: (Uint8Array|string); + /** UpdateTensorboardExperimentRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** TensorboardTensor versionNumber. */ - public versionNumber: number; + /** UpdateTensorboardExperimentRequest tensorboardExperiment. */ + public tensorboardExperiment?: (google.cloud.aiplatform.v1.ITensorboardExperiment|null); /** - * Creates a new TensorboardTensor instance using the specified properties. + * Creates a new UpdateTensorboardExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TensorboardTensor instance + * @returns UpdateTensorboardExperimentRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ITensorboardTensor): google.cloud.aiplatform.v1.TensorboardTensor; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest): google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest; /** - * Encodes the specified TensorboardTensor message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTensor.verify|verify} messages. - * @param message TensorboardTensor message or plain object to encode + * Encodes the specified UpdateTensorboardExperimentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest.verify|verify} messages. + * @param message UpdateTensorboardExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ITensorboardTensor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TensorboardTensor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTensor.verify|verify} messages. - * @param message TensorboardTensor message or plain object to encode + * Encodes the specified UpdateTensorboardExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest.verify|verify} messages. + * @param message UpdateTensorboardExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardTensor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TensorboardTensor message from the specified reader or buffer. + * Decodes an UpdateTensorboardExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TensorboardTensor + * @returns UpdateTensorboardExperimentRequest * @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.TensorboardTensor; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest; /** - * Decodes a TensorboardTensor message from the specified reader or buffer, length delimited. + * Decodes an UpdateTensorboardExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TensorboardTensor + * @returns UpdateTensorboardExperimentRequest * @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.TensorboardTensor; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest; /** - * Verifies a TensorboardTensor message. + * Verifies an UpdateTensorboardExperimentRequest 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 TensorboardTensor message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTensorboardExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TensorboardTensor + * @returns UpdateTensorboardExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardTensor; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest; /** - * Creates a plain object from a TensorboardTensor message. Also converts values to other types if specified. - * @param message TensorboardTensor + * Creates a plain object from an UpdateTensorboardExperimentRequest message. Also converts values to other types if specified. + * @param message UpdateTensorboardExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.TensorboardTensor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TensorboardTensor to JSON. + * Converts this UpdateTensorboardExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TensorboardTensor + * Gets the default type url for UpdateTensorboardExperimentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TensorboardBlobSequence. */ - interface ITensorboardBlobSequence { + /** Properties of a DeleteTensorboardExperimentRequest. */ + interface IDeleteTensorboardExperimentRequest { - /** TensorboardBlobSequence values */ - values?: (google.cloud.aiplatform.v1.ITensorboardBlob[]|null); + /** DeleteTensorboardExperimentRequest name */ + name?: (string|null); } - /** Represents a TensorboardBlobSequence. */ - class TensorboardBlobSequence implements ITensorboardBlobSequence { + /** Represents a DeleteTensorboardExperimentRequest. */ + class DeleteTensorboardExperimentRequest implements IDeleteTensorboardExperimentRequest { /** - * Constructs a new TensorboardBlobSequence. + * Constructs a new DeleteTensorboardExperimentRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ITensorboardBlobSequence); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest); - /** TensorboardBlobSequence values. */ - public values: google.cloud.aiplatform.v1.ITensorboardBlob[]; + /** DeleteTensorboardExperimentRequest name. */ + public name: string; /** - * Creates a new TensorboardBlobSequence instance using the specified properties. + * Creates a new DeleteTensorboardExperimentRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TensorboardBlobSequence instance + * @returns DeleteTensorboardExperimentRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ITensorboardBlobSequence): google.cloud.aiplatform.v1.TensorboardBlobSequence; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest): google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest; /** - * Encodes the specified TensorboardBlobSequence message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardBlobSequence.verify|verify} messages. - * @param message TensorboardBlobSequence message or plain object to encode + * Encodes the specified DeleteTensorboardExperimentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest.verify|verify} messages. + * @param message DeleteTensorboardExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ITensorboardBlobSequence, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TensorboardBlobSequence message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardBlobSequence.verify|verify} messages. - * @param message TensorboardBlobSequence message or plain object to encode + * Encodes the specified DeleteTensorboardExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest.verify|verify} messages. + * @param message DeleteTensorboardExperimentRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardBlobSequence, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TensorboardBlobSequence message from the specified reader or buffer. + * Decodes a DeleteTensorboardExperimentRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TensorboardBlobSequence + * @returns DeleteTensorboardExperimentRequest * @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.TensorboardBlobSequence; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest; /** - * Decodes a TensorboardBlobSequence message from the specified reader or buffer, length delimited. + * Decodes a DeleteTensorboardExperimentRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TensorboardBlobSequence + * @returns DeleteTensorboardExperimentRequest * @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.TensorboardBlobSequence; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest; /** - * Verifies a TensorboardBlobSequence message. + * Verifies a DeleteTensorboardExperimentRequest 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 TensorboardBlobSequence message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTensorboardExperimentRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TensorboardBlobSequence + * @returns DeleteTensorboardExperimentRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardBlobSequence; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest; /** - * Creates a plain object from a TensorboardBlobSequence message. Also converts values to other types if specified. - * @param message TensorboardBlobSequence + * Creates a plain object from a DeleteTensorboardExperimentRequest message. Also converts values to other types if specified. + * @param message DeleteTensorboardExperimentRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.TensorboardBlobSequence, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TensorboardBlobSequence to JSON. + * Converts this DeleteTensorboardExperimentRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TensorboardBlobSequence + * Gets the default type url for DeleteTensorboardExperimentRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TensorboardBlob. */ - interface ITensorboardBlob { + /** Properties of a BatchCreateTensorboardRunsRequest. */ + interface IBatchCreateTensorboardRunsRequest { - /** TensorboardBlob id */ - id?: (string|null); + /** BatchCreateTensorboardRunsRequest parent */ + parent?: (string|null); - /** TensorboardBlob data */ - data?: (Uint8Array|string|null); + /** BatchCreateTensorboardRunsRequest requests */ + requests?: (google.cloud.aiplatform.v1.ICreateTensorboardRunRequest[]|null); } - /** Represents a TensorboardBlob. */ - class TensorboardBlob implements ITensorboardBlob { + /** Represents a BatchCreateTensorboardRunsRequest. */ + class BatchCreateTensorboardRunsRequest implements IBatchCreateTensorboardRunsRequest { /** - * Constructs a new TensorboardBlob. + * Constructs a new BatchCreateTensorboardRunsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ITensorboardBlob); + constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest); - /** TensorboardBlob id. */ - public id: string; + /** BatchCreateTensorboardRunsRequest parent. */ + public parent: string; - /** TensorboardBlob data. */ - public data: (Uint8Array|string); + /** BatchCreateTensorboardRunsRequest requests. */ + public requests: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest[]; /** - * Creates a new TensorboardBlob instance using the specified properties. + * Creates a new BatchCreateTensorboardRunsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TensorboardBlob instance + * @returns BatchCreateTensorboardRunsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ITensorboardBlob): google.cloud.aiplatform.v1.TensorboardBlob; + public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest; /** - * Encodes the specified TensorboardBlob message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardBlob.verify|verify} messages. - * @param message TensorboardBlob message or plain object to encode + * Encodes the specified BatchCreateTensorboardRunsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest.verify|verify} messages. + * @param message BatchCreateTensorboardRunsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ITensorboardBlob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TensorboardBlob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardBlob.verify|verify} messages. - * @param message TensorboardBlob message or plain object to encode + * Encodes the specified BatchCreateTensorboardRunsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest.verify|verify} messages. + * @param message BatchCreateTensorboardRunsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardBlob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TensorboardBlob message from the specified reader or buffer. + * Decodes a BatchCreateTensorboardRunsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TensorboardBlob + * @returns BatchCreateTensorboardRunsRequest * @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.TensorboardBlob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest; /** - * Decodes a TensorboardBlob message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateTensorboardRunsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TensorboardBlob + * @returns BatchCreateTensorboardRunsRequest * @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.TensorboardBlob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest; /** - * Verifies a TensorboardBlob message. + * Verifies a BatchCreateTensorboardRunsRequest 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 TensorboardBlob message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateTensorboardRunsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TensorboardBlob + * @returns BatchCreateTensorboardRunsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardBlob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest; /** - * Creates a plain object from a TensorboardBlob message. Also converts values to other types if specified. - * @param message TensorboardBlob + * Creates a plain object from a BatchCreateTensorboardRunsRequest message. Also converts values to other types if specified. + * @param message BatchCreateTensorboardRunsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.TensorboardBlob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TensorboardBlob to JSON. + * Converts this BatchCreateTensorboardRunsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TensorboardBlob + * Gets the default type url for BatchCreateTensorboardRunsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TensorboardTimeSeries. */ - interface ITensorboardTimeSeries { - - /** TensorboardTimeSeries name */ - name?: (string|null); - - /** TensorboardTimeSeries displayName */ - displayName?: (string|null); - - /** TensorboardTimeSeries description */ - description?: (string|null); - - /** TensorboardTimeSeries valueType */ - valueType?: (google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|keyof typeof google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|null); - - /** TensorboardTimeSeries createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardTimeSeries updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardTimeSeries etag */ - etag?: (string|null); - - /** TensorboardTimeSeries pluginName */ - pluginName?: (string|null); - - /** TensorboardTimeSeries pluginData */ - pluginData?: (Uint8Array|string|null); + /** Properties of a BatchCreateTensorboardRunsResponse. */ + interface IBatchCreateTensorboardRunsResponse { - /** TensorboardTimeSeries metadata */ - metadata?: (google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata|null); + /** BatchCreateTensorboardRunsResponse tensorboardRuns */ + tensorboardRuns?: (google.cloud.aiplatform.v1.ITensorboardRun[]|null); } - /** Represents a TensorboardTimeSeries. */ - class TensorboardTimeSeries implements ITensorboardTimeSeries { + /** Represents a BatchCreateTensorboardRunsResponse. */ + class BatchCreateTensorboardRunsResponse implements IBatchCreateTensorboardRunsResponse { /** - * Constructs a new TensorboardTimeSeries. + * Constructs a new BatchCreateTensorboardRunsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ITensorboardTimeSeries); - - /** TensorboardTimeSeries name. */ - public name: string; - - /** TensorboardTimeSeries displayName. */ - public displayName: string; - - /** TensorboardTimeSeries description. */ - public description: string; - - /** TensorboardTimeSeries valueType. */ - public valueType: (google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType|keyof typeof google.cloud.aiplatform.v1.TensorboardTimeSeries.ValueType); - - /** TensorboardTimeSeries createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardTimeSeries updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardTimeSeries etag. */ - public etag: string; - - /** TensorboardTimeSeries pluginName. */ - public pluginName: string; - - /** TensorboardTimeSeries pluginData. */ - public pluginData: (Uint8Array|string); + constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsResponse); - /** TensorboardTimeSeries metadata. */ - public metadata?: (google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata|null); + /** BatchCreateTensorboardRunsResponse tensorboardRuns. */ + public tensorboardRuns: google.cloud.aiplatform.v1.ITensorboardRun[]; /** - * Creates a new TensorboardTimeSeries instance using the specified properties. + * Creates a new BatchCreateTensorboardRunsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TensorboardTimeSeries instance + * @returns BatchCreateTensorboardRunsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.ITensorboardTimeSeries): google.cloud.aiplatform.v1.TensorboardTimeSeries; + public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsResponse): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse; /** - * Encodes the specified TensorboardTimeSeries message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTimeSeries.verify|verify} messages. - * @param message TensorboardTimeSeries message or plain object to encode + * Encodes the specified BatchCreateTensorboardRunsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse.verify|verify} messages. + * @param message BatchCreateTensorboardRunsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ITensorboardTimeSeries, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TensorboardTimeSeries message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTimeSeries.verify|verify} messages. - * @param message TensorboardTimeSeries message or plain object to encode + * Encodes the specified BatchCreateTensorboardRunsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse.verify|verify} messages. + * @param message BatchCreateTensorboardRunsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardTimeSeries, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TensorboardTimeSeries message from the specified reader or buffer. + * Decodes a BatchCreateTensorboardRunsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TensorboardTimeSeries + * @returns BatchCreateTensorboardRunsResponse * @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.TensorboardTimeSeries; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse; /** - * Decodes a TensorboardTimeSeries message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateTensorboardRunsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TensorboardTimeSeries + * @returns BatchCreateTensorboardRunsResponse * @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.TensorboardTimeSeries; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse; /** - * Verifies a TensorboardTimeSeries message. + * Verifies a BatchCreateTensorboardRunsResponse 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 TensorboardTimeSeries message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateTensorboardRunsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TensorboardTimeSeries + * @returns BatchCreateTensorboardRunsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardTimeSeries; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse; /** - * Creates a plain object from a TensorboardTimeSeries message. Also converts values to other types if specified. - * @param message TensorboardTimeSeries + * Creates a plain object from a BatchCreateTensorboardRunsResponse message. Also converts values to other types if specified. + * @param message BatchCreateTensorboardRunsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.TensorboardTimeSeries, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TensorboardTimeSeries to JSON. + * Converts this BatchCreateTensorboardRunsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TensorboardTimeSeries + * Gets the default type url for BatchCreateTensorboardRunsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace TensorboardTimeSeries { - - /** Properties of a Metadata. */ - interface IMetadata { - - /** Metadata maxStep */ - maxStep?: (number|Long|string|null); - - /** Metadata maxWallTime */ - maxWallTime?: (google.protobuf.ITimestamp|null); - - /** Metadata maxBlobSequenceLength */ - maxBlobSequenceLength?: (number|Long|string|null); - } - - /** Represents a Metadata. */ - class Metadata implements IMetadata { - - /** - * Constructs a new Metadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata); - - /** Metadata maxStep. */ - public maxStep: (number|Long|string); - - /** Metadata maxWallTime. */ - public maxWallTime?: (google.protobuf.ITimestamp|null); - - /** Metadata maxBlobSequenceLength. */ - public maxBlobSequenceLength: (number|Long|string); - - /** - * Creates a new Metadata instance using the specified properties. - * @param [properties] Properties to set - * @returns Metadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata): google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata; - - /** - * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata.verify|verify} messages. - * @param message Metadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata.verify|verify} messages. - * @param message Metadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.TensorboardTimeSeries.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Metadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Metadata - * @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.TensorboardTimeSeries.Metadata; - - /** - * Decodes a Metadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Metadata - * @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.TensorboardTimeSeries.Metadata; - - /** - * Verifies a Metadata 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 Metadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Metadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata; - - /** - * Creates a plain object from a Metadata message. Also converts values to other types if specified. - * @param message Metadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.TensorboardTimeSeries.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Metadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for Metadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** ValueType enum. */ - enum ValueType { - VALUE_TYPE_UNSPECIFIED = 0, - SCALAR = 1, - TENSOR = 2, - BLOB_SEQUENCE = 3 - } - } - - /** Properties of a TensorboardExperiment. */ - interface ITensorboardExperiment { - - /** TensorboardExperiment name */ - name?: (string|null); - - /** TensorboardExperiment displayName */ - displayName?: (string|null); - - /** TensorboardExperiment description */ - description?: (string|null); - - /** TensorboardExperiment createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardExperiment updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of a CreateTensorboardRunRequest. */ + interface ICreateTensorboardRunRequest { - /** TensorboardExperiment labels */ - labels?: ({ [k: string]: string }|null); + /** CreateTensorboardRunRequest parent */ + parent?: (string|null); - /** TensorboardExperiment etag */ - etag?: (string|null); + /** CreateTensorboardRunRequest tensorboardRun */ + tensorboardRun?: (google.cloud.aiplatform.v1.ITensorboardRun|null); - /** TensorboardExperiment source */ - source?: (string|null); + /** CreateTensorboardRunRequest tensorboardRunId */ + tensorboardRunId?: (string|null); } - /** Represents a TensorboardExperiment. */ - class TensorboardExperiment implements ITensorboardExperiment { + /** Represents a CreateTensorboardRunRequest. */ + class CreateTensorboardRunRequest implements ICreateTensorboardRunRequest { /** - * Constructs a new TensorboardExperiment. + * Constructs a new CreateTensorboardRunRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ITensorboardExperiment); - - /** TensorboardExperiment name. */ - public name: string; - - /** TensorboardExperiment displayName. */ - public displayName: string; - - /** TensorboardExperiment description. */ - public description: string; - - /** TensorboardExperiment createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardExperiment updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest); - /** TensorboardExperiment labels. */ - public labels: { [k: string]: string }; + /** CreateTensorboardRunRequest parent. */ + public parent: string; - /** TensorboardExperiment etag. */ - public etag: string; + /** CreateTensorboardRunRequest tensorboardRun. */ + public tensorboardRun?: (google.cloud.aiplatform.v1.ITensorboardRun|null); - /** TensorboardExperiment source. */ - public source: string; + /** CreateTensorboardRunRequest tensorboardRunId. */ + public tensorboardRunId: string; /** - * Creates a new TensorboardExperiment instance using the specified properties. + * Creates a new CreateTensorboardRunRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TensorboardExperiment instance + * @returns CreateTensorboardRunRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ITensorboardExperiment): google.cloud.aiplatform.v1.TensorboardExperiment; + public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest): google.cloud.aiplatform.v1.CreateTensorboardRunRequest; /** - * Encodes the specified TensorboardExperiment message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardExperiment.verify|verify} messages. - * @param message TensorboardExperiment message or plain object to encode + * Encodes the specified CreateTensorboardRunRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardRunRequest.verify|verify} messages. + * @param message CreateTensorboardRunRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ITensorboardExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TensorboardExperiment message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardExperiment.verify|verify} messages. - * @param message TensorboardExperiment message or plain object to encode + * Encodes the specified CreateTensorboardRunRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardRunRequest.verify|verify} messages. + * @param message CreateTensorboardRunRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardExperiment, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TensorboardExperiment message from the specified reader or buffer. + * Decodes a CreateTensorboardRunRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TensorboardExperiment + * @returns CreateTensorboardRunRequest * @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.TensorboardExperiment; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateTensorboardRunRequest; /** - * Decodes a TensorboardExperiment message from the specified reader or buffer, length delimited. + * Decodes a CreateTensorboardRunRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TensorboardExperiment + * @returns CreateTensorboardRunRequest * @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.TensorboardExperiment; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateTensorboardRunRequest; /** - * Verifies a TensorboardExperiment message. + * Verifies a CreateTensorboardRunRequest 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 TensorboardExperiment message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTensorboardRunRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TensorboardExperiment + * @returns CreateTensorboardRunRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardExperiment; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardRunRequest; /** - * Creates a plain object from a TensorboardExperiment message. Also converts values to other types if specified. - * @param message TensorboardExperiment + * Creates a plain object from a CreateTensorboardRunRequest message. Also converts values to other types if specified. + * @param message CreateTensorboardRunRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.TensorboardExperiment, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TensorboardExperiment to JSON. + * Converts this CreateTensorboardRunRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TensorboardExperiment + * Gets the default type url for CreateTensorboardRunRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a TensorboardRun. */ - interface ITensorboardRun { + /** Properties of a GetTensorboardRunRequest. */ + interface IGetTensorboardRunRequest { - /** TensorboardRun name */ + /** GetTensorboardRunRequest name */ name?: (string|null); - - /** TensorboardRun displayName */ - displayName?: (string|null); - - /** TensorboardRun description */ - description?: (string|null); - - /** TensorboardRun createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardRun updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardRun labels */ - labels?: ({ [k: string]: string }|null); - - /** TensorboardRun etag */ - etag?: (string|null); } - /** Represents a TensorboardRun. */ - class TensorboardRun implements ITensorboardRun { + /** Represents a GetTensorboardRunRequest. */ + class GetTensorboardRunRequest implements IGetTensorboardRunRequest { /** - * Constructs a new TensorboardRun. + * Constructs a new GetTensorboardRunRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ITensorboardRun); + constructor(properties?: google.cloud.aiplatform.v1.IGetTensorboardRunRequest); - /** TensorboardRun name. */ + /** GetTensorboardRunRequest name. */ public name: string; - /** TensorboardRun displayName. */ - public displayName: string; - - /** TensorboardRun description. */ - public description: string; - - /** TensorboardRun createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardRun updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** TensorboardRun labels. */ - public labels: { [k: string]: string }; - - /** TensorboardRun etag. */ - public etag: string; - /** - * Creates a new TensorboardRun instance using the specified properties. + * Creates a new GetTensorboardRunRequest instance using the specified properties. * @param [properties] Properties to set - * @returns TensorboardRun instance + * @returns GetTensorboardRunRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ITensorboardRun): google.cloud.aiplatform.v1.TensorboardRun; + public static create(properties?: google.cloud.aiplatform.v1.IGetTensorboardRunRequest): google.cloud.aiplatform.v1.GetTensorboardRunRequest; /** - * Encodes the specified TensorboardRun message. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardRun.verify|verify} messages. - * @param message TensorboardRun message or plain object to encode + * Encodes the specified GetTensorboardRunRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardRunRequest.verify|verify} messages. + * @param message GetTensorboardRunRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ITensorboardRun, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TensorboardRun message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TensorboardRun.verify|verify} messages. - * @param message TensorboardRun message or plain object to encode + * Encodes the specified GetTensorboardRunRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardRunRequest.verify|verify} messages. + * @param message GetTensorboardRunRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ITensorboardRun, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TensorboardRun message from the specified reader or buffer. + * Decodes a GetTensorboardRunRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TensorboardRun + * @returns GetTensorboardRunRequest * @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.TensorboardRun; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetTensorboardRunRequest; /** - * Decodes a TensorboardRun message from the specified reader or buffer, length delimited. + * Decodes a GetTensorboardRunRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TensorboardRun + * @returns GetTensorboardRunRequest * @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.TensorboardRun; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetTensorboardRunRequest; /** - * Verifies a TensorboardRun message. + * Verifies a GetTensorboardRunRequest 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 TensorboardRun message from a plain object. Also converts values to their respective internal types. + * Creates a GetTensorboardRunRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TensorboardRun + * @returns GetTensorboardRunRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.TensorboardRun; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTensorboardRunRequest; /** - * Creates a plain object from a TensorboardRun message. Also converts values to other types if specified. - * @param message TensorboardRun + * Creates a plain object from a GetTensorboardRunRequest message. Also converts values to other types if specified. + * @param message GetTensorboardRunRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.TensorboardRun, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetTensorboardRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TensorboardRun to JSON. + * Converts this GetTensorboardRunRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TensorboardRun + * Gets the default type url for GetTensorboardRunRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a TensorboardService */ - class TensorboardService extends $protobuf.rpc.Service { + /** Properties of a ReadTensorboardBlobDataRequest. */ + interface IReadTensorboardBlobDataRequest { - /** - * Constructs a new TensorboardService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** ReadTensorboardBlobDataRequest timeSeries */ + timeSeries?: (string|null); - /** - * Creates new TensorboardService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TensorboardService; + /** ReadTensorboardBlobDataRequest blobIds */ + blobIds?: (string[]|null); + } - /** - * Calls CreateTensorboard. - * @param request CreateTensorboardRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createTensorboard(request: google.cloud.aiplatform.v1.ICreateTensorboardRequest, callback: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardCallback): void; + /** Represents a ReadTensorboardBlobDataRequest. */ + class ReadTensorboardBlobDataRequest implements IReadTensorboardBlobDataRequest { /** - * Calls CreateTensorboard. - * @param request CreateTensorboardRequest message or plain object - * @returns Promise + * Constructs a new ReadTensorboardBlobDataRequest. + * @param [properties] Properties to set */ - public createTensorboard(request: google.cloud.aiplatform.v1.ICreateTensorboardRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest); - /** - * Calls GetTensorboard. - * @param request GetTensorboardRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Tensorboard - */ - public getTensorboard(request: google.cloud.aiplatform.v1.IGetTensorboardRequest, callback: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardCallback): void; + /** ReadTensorboardBlobDataRequest timeSeries. */ + public timeSeries: string; - /** - * Calls GetTensorboard. - * @param request GetTensorboardRequest message or plain object - * @returns Promise - */ - public getTensorboard(request: google.cloud.aiplatform.v1.IGetTensorboardRequest): Promise; + /** ReadTensorboardBlobDataRequest blobIds. */ + public blobIds: string[]; /** - * Calls ReadTensorboardUsage. - * @param request ReadTensorboardUsageRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadTensorboardUsageResponse + * Creates a new ReadTensorboardBlobDataRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadTensorboardBlobDataRequest instance */ - public readTensorboardUsage(request: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardUsageCallback): void; + public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest): google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest; /** - * Calls ReadTensorboardUsage. - * @param request ReadTensorboardUsageRequest message or plain object - * @returns Promise + * Encodes the specified ReadTensorboardBlobDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest.verify|verify} messages. + * @param message ReadTensorboardBlobDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public readTensorboardUsage(request: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateTensorboard. - * @param request UpdateTensorboardRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified ReadTensorboardBlobDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest.verify|verify} messages. + * @param message ReadTensorboardBlobDataRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateTensorboard(request: google.cloud.aiplatform.v1.IUpdateTensorboardRequest, callback: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateTensorboard. - * @param request UpdateTensorboardRequest message or plain object - * @returns Promise + * Decodes a ReadTensorboardBlobDataRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadTensorboardBlobDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateTensorboard(request: google.cloud.aiplatform.v1.IUpdateTensorboardRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest; /** - * Calls ListTensorboards. - * @param request ListTensorboardsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTensorboardsResponse + * Decodes a ReadTensorboardBlobDataRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadTensorboardBlobDataRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listTensorboards(request: google.cloud.aiplatform.v1.IListTensorboardsRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardsCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest; /** - * Calls ListTensorboards. - * @param request ListTensorboardsRequest message or plain object - * @returns Promise + * Verifies a ReadTensorboardBlobDataRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listTensorboards(request: google.cloud.aiplatform.v1.IListTensorboardsRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteTensorboard. - * @param request DeleteTensorboardRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a ReadTensorboardBlobDataRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadTensorboardBlobDataRequest */ - public deleteTensorboard(request: google.cloud.aiplatform.v1.IDeleteTensorboardRequest, callback: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest; /** - * Calls DeleteTensorboard. - * @param request DeleteTensorboardRequest message or plain object - * @returns Promise + * Creates a plain object from a ReadTensorboardBlobDataRequest message. Also converts values to other types if specified. + * @param message ReadTensorboardBlobDataRequest + * @param [options] Conversion options + * @returns Plain object */ - public deleteTensorboard(request: google.cloud.aiplatform.v1.IDeleteTensorboardRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls CreateTensorboardExperiment. - * @param request CreateTensorboardExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardExperiment + * Converts this ReadTensorboardBlobDataRequest to JSON. + * @returns JSON object */ - public createTensorboardExperiment(request: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest, callback: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardExperimentCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls CreateTensorboardExperiment. - * @param request CreateTensorboardExperimentRequest message or plain object - * @returns Promise + * Gets the default type url for ReadTensorboardBlobDataRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public createTensorboardExperiment(request: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls GetTensorboardExperiment. - * @param request GetTensorboardExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardExperiment - */ - public getTensorboardExperiment(request: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest, callback: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardExperimentCallback): void; + /** Properties of a ReadTensorboardBlobDataResponse. */ + interface IReadTensorboardBlobDataResponse { - /** - * Calls GetTensorboardExperiment. - * @param request GetTensorboardExperimentRequest message or plain object - * @returns Promise - */ - public getTensorboardExperiment(request: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest): Promise; + /** ReadTensorboardBlobDataResponse blobs */ + blobs?: (google.cloud.aiplatform.v1.ITensorboardBlob[]|null); + } - /** - * Calls UpdateTensorboardExperiment. - * @param request UpdateTensorboardExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardExperiment - */ - public updateTensorboardExperiment(request: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest, callback: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardExperimentCallback): void; + /** Represents a ReadTensorboardBlobDataResponse. */ + class ReadTensorboardBlobDataResponse implements IReadTensorboardBlobDataResponse { /** - * Calls UpdateTensorboardExperiment. - * @param request UpdateTensorboardExperimentRequest message or plain object - * @returns Promise + * Constructs a new ReadTensorboardBlobDataResponse. + * @param [properties] Properties to set */ - public updateTensorboardExperiment(request: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardBlobDataResponse); - /** - * Calls ListTensorboardExperiments. - * @param request ListTensorboardExperimentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTensorboardExperimentsResponse - */ - public listTensorboardExperiments(request: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardExperimentsCallback): void; + /** ReadTensorboardBlobDataResponse blobs. */ + public blobs: google.cloud.aiplatform.v1.ITensorboardBlob[]; /** - * Calls ListTensorboardExperiments. - * @param request ListTensorboardExperimentsRequest message or plain object - * @returns Promise + * Creates a new ReadTensorboardBlobDataResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadTensorboardBlobDataResponse instance */ - public listTensorboardExperiments(request: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardBlobDataResponse): google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse; /** - * Calls DeleteTensorboardExperiment. - * @param request DeleteTensorboardExperimentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified ReadTensorboardBlobDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse.verify|verify} messages. + * @param message ReadTensorboardBlobDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteTensorboardExperiment(request: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest, callback: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardExperimentCallback): void; + public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardBlobDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteTensorboardExperiment. - * @param request DeleteTensorboardExperimentRequest message or plain object - * @returns Promise + * Encodes the specified ReadTensorboardBlobDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse.verify|verify} messages. + * @param message ReadTensorboardBlobDataResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteTensorboardExperiment(request: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardBlobDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateTensorboardRun. - * @param request CreateTensorboardRunRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardRun + * Decodes a ReadTensorboardBlobDataResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadTensorboardBlobDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createTensorboardRun(request: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest, callback: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardRunCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse; /** - * Calls CreateTensorboardRun. - * @param request CreateTensorboardRunRequest message or plain object - * @returns Promise + * Decodes a ReadTensorboardBlobDataResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadTensorboardBlobDataResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createTensorboardRun(request: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse; /** - * Calls BatchCreateTensorboardRuns. - * @param request BatchCreateTensorboardRunsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchCreateTensorboardRunsResponse + * Verifies a ReadTensorboardBlobDataResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public batchCreateTensorboardRuns(request: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest, callback: google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardRunsCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls BatchCreateTensorboardRuns. - * @param request BatchCreateTensorboardRunsRequest message or plain object - * @returns Promise + * Creates a ReadTensorboardBlobDataResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadTensorboardBlobDataResponse */ - public batchCreateTensorboardRuns(request: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse; /** - * Calls GetTensorboardRun. - * @param request GetTensorboardRunRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardRun + * Creates a plain object from a ReadTensorboardBlobDataResponse message. Also converts values to other types if specified. + * @param message ReadTensorboardBlobDataResponse + * @param [options] Conversion options + * @returns Plain object */ - public getTensorboardRun(request: google.cloud.aiplatform.v1.IGetTensorboardRunRequest, callback: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardRunCallback): void; + public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetTensorboardRun. - * @param request GetTensorboardRunRequest message or plain object - * @returns Promise + * Converts this ReadTensorboardBlobDataResponse to JSON. + * @returns JSON object */ - public getTensorboardRun(request: google.cloud.aiplatform.v1.IGetTensorboardRunRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls UpdateTensorboardRun. - * @param request UpdateTensorboardRunRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardRun + * Gets the default type url for ReadTensorboardBlobDataResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public updateTensorboardRun(request: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest, callback: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardRunCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a ListTensorboardRunsRequest. */ + interface IListTensorboardRunsRequest { + + /** ListTensorboardRunsRequest parent */ + parent?: (string|null); + + /** ListTensorboardRunsRequest filter */ + filter?: (string|null); + + /** ListTensorboardRunsRequest pageSize */ + pageSize?: (number|null); + + /** ListTensorboardRunsRequest pageToken */ + pageToken?: (string|null); + + /** ListTensorboardRunsRequest orderBy */ + orderBy?: (string|null); + + /** ListTensorboardRunsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListTensorboardRunsRequest. */ + class ListTensorboardRunsRequest implements IListTensorboardRunsRequest { /** - * Calls UpdateTensorboardRun. - * @param request UpdateTensorboardRunRequest message or plain object - * @returns Promise + * Constructs a new ListTensorboardRunsRequest. + * @param [properties] Properties to set */ - public updateTensorboardRun(request: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardRunsRequest); + + /** ListTensorboardRunsRequest parent. */ + public parent: string; + + /** ListTensorboardRunsRequest filter. */ + public filter: string; + + /** ListTensorboardRunsRequest pageSize. */ + public pageSize: number; + + /** ListTensorboardRunsRequest pageToken. */ + public pageToken: string; + + /** ListTensorboardRunsRequest orderBy. */ + public orderBy: string; - /** - * Calls ListTensorboardRuns. - * @param request ListTensorboardRunsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTensorboardRunsResponse - */ - public listTensorboardRuns(request: google.cloud.aiplatform.v1.IListTensorboardRunsRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardRunsCallback): void; + /** ListTensorboardRunsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Calls ListTensorboardRuns. - * @param request ListTensorboardRunsRequest message or plain object - * @returns Promise + * Creates a new ListTensorboardRunsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTensorboardRunsRequest instance */ - public listTensorboardRuns(request: google.cloud.aiplatform.v1.IListTensorboardRunsRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardRunsRequest): google.cloud.aiplatform.v1.ListTensorboardRunsRequest; /** - * Calls DeleteTensorboardRun. - * @param request DeleteTensorboardRunRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified ListTensorboardRunsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardRunsRequest.verify|verify} messages. + * @param message ListTensorboardRunsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteTensorboardRun(request: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest, callback: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardRunCallback): void; + public static encode(message: google.cloud.aiplatform.v1.IListTensorboardRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteTensorboardRun. - * @param request DeleteTensorboardRunRequest message or plain object - * @returns Promise + * Encodes the specified ListTensorboardRunsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardRunsRequest.verify|verify} messages. + * @param message ListTensorboardRunsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteTensorboardRun(request: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls BatchCreateTensorboardTimeSeries. - * @param request BatchCreateTensorboardTimeSeriesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchCreateTensorboardTimeSeriesResponse + * Decodes a ListTensorboardRunsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTensorboardRunsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public batchCreateTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.BatchCreateTensorboardTimeSeriesCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTensorboardRunsRequest; /** - * Calls BatchCreateTensorboardTimeSeries. - * @param request BatchCreateTensorboardTimeSeriesRequest message or plain object - * @returns Promise + * Decodes a ListTensorboardRunsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTensorboardRunsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public batchCreateTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTensorboardRunsRequest; /** - * Calls CreateTensorboardTimeSeries. - * @param request CreateTensorboardTimeSeriesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardTimeSeries + * Verifies a ListTensorboardRunsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createTensorboardTimeSeries(request: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.CreateTensorboardTimeSeriesCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateTensorboardTimeSeries. - * @param request CreateTensorboardTimeSeriesRequest message or plain object - * @returns Promise + * Creates a ListTensorboardRunsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTensorboardRunsRequest */ - public createTensorboardTimeSeries(request: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardRunsRequest; /** - * Calls GetTensorboardTimeSeries. - * @param request GetTensorboardTimeSeriesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardTimeSeries + * Creates a plain object from a ListTensorboardRunsRequest message. Also converts values to other types if specified. + * @param message ListTensorboardRunsRequest + * @param [options] Conversion options + * @returns Plain object */ - public getTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.GetTensorboardTimeSeriesCallback): void; + public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardRunsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetTensorboardTimeSeries. - * @param request GetTensorboardTimeSeriesRequest message or plain object - * @returns Promise + * Converts this ListTensorboardRunsRequest to JSON. + * @returns JSON object */ - public getTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls UpdateTensorboardTimeSeries. - * @param request UpdateTensorboardTimeSeriesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TensorboardTimeSeries + * Gets the default type url for ListTensorboardRunsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public updateTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.UpdateTensorboardTimeSeriesCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls UpdateTensorboardTimeSeries. - * @param request UpdateTensorboardTimeSeriesRequest message or plain object - * @returns Promise - */ - public updateTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest): Promise; + /** Properties of a ListTensorboardRunsResponse. */ + interface IListTensorboardRunsResponse { - /** - * Calls ListTensorboardTimeSeries. - * @param request ListTensorboardTimeSeriesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTensorboardTimeSeriesResponse - */ - public listTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ListTensorboardTimeSeriesCallback): void; + /** ListTensorboardRunsResponse tensorboardRuns */ + tensorboardRuns?: (google.cloud.aiplatform.v1.ITensorboardRun[]|null); - /** - * Calls ListTensorboardTimeSeries. - * @param request ListTensorboardTimeSeriesRequest message or plain object - * @returns Promise - */ - public listTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest): Promise; + /** ListTensorboardRunsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** - * Calls DeleteTensorboardTimeSeries. - * @param request DeleteTensorboardTimeSeriesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest, callback: google.cloud.aiplatform.v1.TensorboardService.DeleteTensorboardTimeSeriesCallback): void; + /** Represents a ListTensorboardRunsResponse. */ + class ListTensorboardRunsResponse implements IListTensorboardRunsResponse { /** - * Calls DeleteTensorboardTimeSeries. - * @param request DeleteTensorboardTimeSeriesRequest message or plain object - * @returns Promise + * Constructs a new ListTensorboardRunsResponse. + * @param [properties] Properties to set */ - public deleteTensorboardTimeSeries(request: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardRunsResponse); - /** - * Calls BatchReadTensorboardTimeSeriesData. - * @param request BatchReadTensorboardTimeSeriesDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchReadTensorboardTimeSeriesDataResponse - */ - public batchReadTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.BatchReadTensorboardTimeSeriesDataCallback): void; + /** ListTensorboardRunsResponse tensorboardRuns. */ + public tensorboardRuns: google.cloud.aiplatform.v1.ITensorboardRun[]; - /** - * Calls BatchReadTensorboardTimeSeriesData. - * @param request BatchReadTensorboardTimeSeriesDataRequest message or plain object - * @returns Promise - */ - public batchReadTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest): Promise; + /** ListTensorboardRunsResponse nextPageToken. */ + public nextPageToken: string; /** - * Calls ReadTensorboardTimeSeriesData. - * @param request ReadTensorboardTimeSeriesDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadTensorboardTimeSeriesDataResponse + * Creates a new ListTensorboardRunsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListTensorboardRunsResponse instance */ - public readTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardTimeSeriesDataCallback): void; + public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardRunsResponse): google.cloud.aiplatform.v1.ListTensorboardRunsResponse; /** - * Calls ReadTensorboardTimeSeriesData. - * @param request ReadTensorboardTimeSeriesDataRequest message or plain object - * @returns Promise + * Encodes the specified ListTensorboardRunsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardRunsResponse.verify|verify} messages. + * @param message ListTensorboardRunsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public readTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1.IListTensorboardRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ReadTensorboardBlobData. - * @param request ReadTensorboardBlobDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadTensorboardBlobDataResponse + * Encodes the specified ListTensorboardRunsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardRunsResponse.verify|verify} messages. + * @param message ListTensorboardRunsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public readTensorboardBlobData(request: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ReadTensorboardBlobDataCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ReadTensorboardBlobData. - * @param request ReadTensorboardBlobDataRequest message or plain object - * @returns Promise + * Decodes a ListTensorboardRunsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListTensorboardRunsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public readTensorboardBlobData(request: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTensorboardRunsResponse; /** - * Calls WriteTensorboardExperimentData. - * @param request WriteTensorboardExperimentDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WriteTensorboardExperimentDataResponse + * Decodes a ListTensorboardRunsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListTensorboardRunsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public writeTensorboardExperimentData(request: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardExperimentDataCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTensorboardRunsResponse; /** - * Calls WriteTensorboardExperimentData. - * @param request WriteTensorboardExperimentDataRequest message or plain object - * @returns Promise + * Verifies a ListTensorboardRunsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public writeTensorboardExperimentData(request: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls WriteTensorboardRunData. - * @param request WriteTensorboardRunDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WriteTensorboardRunDataResponse + * Creates a ListTensorboardRunsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListTensorboardRunsResponse */ - public writeTensorboardRunData(request: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.WriteTensorboardRunDataCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardRunsResponse; /** - * Calls WriteTensorboardRunData. - * @param request WriteTensorboardRunDataRequest message or plain object - * @returns Promise + * Creates a plain object from a ListTensorboardRunsResponse message. Also converts values to other types if specified. + * @param message ListTensorboardRunsResponse + * @param [options] Conversion options + * @returns Plain object */ - public writeTensorboardRunData(request: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardRunsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ExportTensorboardTimeSeriesData. - * @param request ExportTensorboardTimeSeriesDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExportTensorboardTimeSeriesDataResponse + * Converts this ListTensorboardRunsResponse to JSON. + * @returns JSON object */ - public exportTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest, callback: google.cloud.aiplatform.v1.TensorboardService.ExportTensorboardTimeSeriesDataCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls ExportTensorboardTimeSeriesData. - * @param request ExportTensorboardTimeSeriesDataRequest message or plain object - * @returns Promise + * Gets the default type url for ListTensorboardRunsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public exportTensorboardTimeSeriesData(request: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace TensorboardService { + /** Properties of an UpdateTensorboardRunRequest. */ + interface IUpdateTensorboardRunRequest { - /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|createTensorboard}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateTensorboardCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** UpdateTensorboardRunRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|getTensorboard}. - * @param error Error, if any - * @param [response] Tensorboard - */ - type GetTensorboardCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Tensorboard) => void; + /** UpdateTensorboardRunRequest tensorboardRun */ + tensorboardRun?: (google.cloud.aiplatform.v1.ITensorboardRun|null); + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|readTensorboardUsage}. - * @param error Error, if any - * @param [response] ReadTensorboardUsageResponse - */ - type ReadTensorboardUsageCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse) => void; + /** Represents an UpdateTensorboardRunRequest. */ + class UpdateTensorboardRunRequest implements IUpdateTensorboardRunRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|updateTensorboard}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new UpdateTensorboardRunRequest. + * @param [properties] Properties to set */ - type UpdateTensorboardCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|listTensorboards}. - * @param error Error, if any - * @param [response] ListTensorboardsResponse - */ - type ListTensorboardsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTensorboardsResponse) => void; + /** UpdateTensorboardRunRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|deleteTensorboard}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteTensorboardCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** UpdateTensorboardRunRequest tensorboardRun. */ + public tensorboardRun?: (google.cloud.aiplatform.v1.ITensorboardRun|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|createTensorboardExperiment}. - * @param error Error, if any - * @param [response] TensorboardExperiment + * Creates a new UpdateTensorboardRunRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateTensorboardRunRequest instance */ - type CreateTensorboardExperimentCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardExperiment) => void; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest): google.cloud.aiplatform.v1.UpdateTensorboardRunRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|getTensorboardExperiment}. - * @param error Error, if any - * @param [response] TensorboardExperiment + * Encodes the specified UpdateTensorboardRunRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardRunRequest.verify|verify} messages. + * @param message UpdateTensorboardRunRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetTensorboardExperimentCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardExperiment) => void; + public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|updateTensorboardExperiment}. - * @param error Error, if any - * @param [response] TensorboardExperiment + * Encodes the specified UpdateTensorboardRunRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardRunRequest.verify|verify} messages. + * @param message UpdateTensorboardRunRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type UpdateTensorboardExperimentCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardExperiment) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|listTensorboardExperiments}. - * @param error Error, if any - * @param [response] ListTensorboardExperimentsResponse + * Decodes an UpdateTensorboardRunRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateTensorboardRunRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListTensorboardExperimentsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateTensorboardRunRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|deleteTensorboardExperiment}. - * @param error Error, if any - * @param [response] Operation + * Decodes an UpdateTensorboardRunRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateTensorboardRunRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteTensorboardExperimentCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateTensorboardRunRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|createTensorboardRun}. - * @param error Error, if any - * @param [response] TensorboardRun + * Verifies an UpdateTensorboardRunRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CreateTensorboardRunCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardRun) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|batchCreateTensorboardRuns}. - * @param error Error, if any - * @param [response] BatchCreateTensorboardRunsResponse + * Creates an UpdateTensorboardRunRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateTensorboardRunRequest */ - type BatchCreateTensorboardRunsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardRunRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|getTensorboardRun}. - * @param error Error, if any - * @param [response] TensorboardRun + * Creates a plain object from an UpdateTensorboardRunRequest message. Also converts values to other types if specified. + * @param message UpdateTensorboardRunRequest + * @param [options] Conversion options + * @returns Plain object */ - type GetTensorboardRunCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardRun) => void; + public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|updateTensorboardRun}. - * @param error Error, if any - * @param [response] TensorboardRun + * Converts this UpdateTensorboardRunRequest to JSON. + * @returns JSON object */ - type UpdateTensorboardRunCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardRun) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|listTensorboardRuns}. - * @param error Error, if any - * @param [response] ListTensorboardRunsResponse + * Gets the default type url for UpdateTensorboardRunRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ListTensorboardRunsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTensorboardRunsResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|deleteTensorboardRun}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteTensorboardRunCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Properties of a DeleteTensorboardRunRequest. */ + interface IDeleteTensorboardRunRequest { - /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|batchCreateTensorboardTimeSeries}. - * @param error Error, if any - * @param [response] BatchCreateTensorboardTimeSeriesResponse - */ - type BatchCreateTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse) => void; + /** DeleteTensorboardRunRequest name */ + name?: (string|null); + } + + /** Represents a DeleteTensorboardRunRequest. */ + class DeleteTensorboardRunRequest implements IDeleteTensorboardRunRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|createTensorboardTimeSeries}. - * @param error Error, if any - * @param [response] TensorboardTimeSeries + * Constructs a new DeleteTensorboardRunRequest. + * @param [properties] Properties to set */ - type CreateTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardTimeSeries) => void; + constructor(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest); + + /** DeleteTensorboardRunRequest name. */ + public name: string; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|getTensorboardTimeSeries}. - * @param error Error, if any - * @param [response] TensorboardTimeSeries + * Creates a new DeleteTensorboardRunRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteTensorboardRunRequest instance */ - type GetTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardTimeSeries) => void; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest): google.cloud.aiplatform.v1.DeleteTensorboardRunRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|updateTensorboardTimeSeries}. - * @param error Error, if any - * @param [response] TensorboardTimeSeries + * Encodes the specified DeleteTensorboardRunRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardRunRequest.verify|verify} messages. + * @param message DeleteTensorboardRunRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type UpdateTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.TensorboardTimeSeries) => void; + public static encode(message: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|listTensorboardTimeSeries}. - * @param error Error, if any - * @param [response] ListTensorboardTimeSeriesResponse + * Encodes the specified DeleteTensorboardRunRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardRunRequest.verify|verify} messages. + * @param message DeleteTensorboardRunRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|deleteTensorboardTimeSeries}. - * @param error Error, if any - * @param [response] Operation + * Decodes a DeleteTensorboardRunRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteTensorboardRunRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteTensorboardTimeSeriesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteTensorboardRunRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|batchReadTensorboardTimeSeriesData}. - * @param error Error, if any - * @param [response] BatchReadTensorboardTimeSeriesDataResponse + * Decodes a DeleteTensorboardRunRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteTensorboardRunRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type BatchReadTensorboardTimeSeriesDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteTensorboardRunRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|readTensorboardTimeSeriesData}. - * @param error Error, if any - * @param [response] ReadTensorboardTimeSeriesDataResponse + * Verifies a DeleteTensorboardRunRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ReadTensorboardTimeSeriesDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|readTensorboardBlobData}. - * @param error Error, if any - * @param [response] ReadTensorboardBlobDataResponse + * Creates a DeleteTensorboardRunRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteTensorboardRunRequest */ - type ReadTensorboardBlobDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTensorboardRunRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|writeTensorboardExperimentData}. - * @param error Error, if any - * @param [response] WriteTensorboardExperimentDataResponse + * Creates a plain object from a DeleteTensorboardRunRequest message. Also converts values to other types if specified. + * @param message DeleteTensorboardRunRequest + * @param [options] Conversion options + * @returns Plain object */ - type WriteTensorboardExperimentDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse) => void; + public static toObject(message: google.cloud.aiplatform.v1.DeleteTensorboardRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|writeTensorboardRunData}. - * @param error Error, if any - * @param [response] WriteTensorboardRunDataResponse + * Converts this DeleteTensorboardRunRequest to JSON. + * @returns JSON object */ - type WriteTensorboardRunDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.TensorboardService|exportTensorboardTimeSeriesData}. - * @param error Error, if any - * @param [response] ExportTensorboardTimeSeriesDataResponse + * Gets the default type url for DeleteTensorboardRunRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ExportTensorboardTimeSeriesDataCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateTensorboardRequest. */ - interface ICreateTensorboardRequest { + /** Properties of a BatchCreateTensorboardTimeSeriesRequest. */ + interface IBatchCreateTensorboardTimeSeriesRequest { - /** CreateTensorboardRequest parent */ + /** BatchCreateTensorboardTimeSeriesRequest parent */ parent?: (string|null); - /** CreateTensorboardRequest tensorboard */ - tensorboard?: (google.cloud.aiplatform.v1.ITensorboard|null); + /** BatchCreateTensorboardTimeSeriesRequest requests */ + requests?: (google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest[]|null); } - /** Represents a CreateTensorboardRequest. */ - class CreateTensorboardRequest implements ICreateTensorboardRequest { + /** Represents a BatchCreateTensorboardTimeSeriesRequest. */ + class BatchCreateTensorboardTimeSeriesRequest implements IBatchCreateTensorboardTimeSeriesRequest { /** - * Constructs a new CreateTensorboardRequest. + * Constructs a new BatchCreateTensorboardTimeSeriesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardRequest); + constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest); - /** CreateTensorboardRequest parent. */ + /** BatchCreateTensorboardTimeSeriesRequest parent. */ public parent: string; - /** CreateTensorboardRequest tensorboard. */ - public tensorboard?: (google.cloud.aiplatform.v1.ITensorboard|null); + /** BatchCreateTensorboardTimeSeriesRequest requests. */ + public requests: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest[]; /** - * Creates a new CreateTensorboardRequest instance using the specified properties. + * Creates a new BatchCreateTensorboardTimeSeriesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTensorboardRequest instance + * @returns BatchCreateTensorboardTimeSeriesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardRequest): google.cloud.aiplatform.v1.CreateTensorboardRequest; + public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest; /** - * Encodes the specified CreateTensorboardRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardRequest.verify|verify} messages. - * @param message CreateTensorboardRequest message or plain object to encode + * Encodes the specified BatchCreateTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message BatchCreateTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTensorboardRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardRequest.verify|verify} messages. - * @param message CreateTensorboardRequest message or plain object to encode + * Encodes the specified BatchCreateTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message BatchCreateTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTensorboardRequest message from the specified reader or buffer. + * Decodes a BatchCreateTensorboardTimeSeriesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTensorboardRequest + * @returns BatchCreateTensorboardTimeSeriesRequest * @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.CreateTensorboardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest; /** - * Decodes a CreateTensorboardRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTensorboardRequest + * @returns BatchCreateTensorboardTimeSeriesRequest * @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.CreateTensorboardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest; /** - * Verifies a CreateTensorboardRequest message. + * Verifies a BatchCreateTensorboardTimeSeriesRequest 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 CreateTensorboardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTensorboardRequest + * @returns BatchCreateTensorboardTimeSeriesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest; /** - * Creates a plain object from a CreateTensorboardRequest message. Also converts values to other types if specified. - * @param message CreateTensorboardRequest + * Creates a plain object from a BatchCreateTensorboardTimeSeriesRequest message. Also converts values to other types if specified. + * @param message BatchCreateTensorboardTimeSeriesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTensorboardRequest to JSON. + * Converts this BatchCreateTensorboardTimeSeriesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateTensorboardRequest + * Gets the default type url for BatchCreateTensorboardTimeSeriesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTensorboardRequest. */ - interface IGetTensorboardRequest { + /** Properties of a BatchCreateTensorboardTimeSeriesResponse. */ + interface IBatchCreateTensorboardTimeSeriesResponse { - /** GetTensorboardRequest name */ - name?: (string|null); + /** BatchCreateTensorboardTimeSeriesResponse tensorboardTimeSeries */ + tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries[]|null); } - /** Represents a GetTensorboardRequest. */ - class GetTensorboardRequest implements IGetTensorboardRequest { + /** Represents a BatchCreateTensorboardTimeSeriesResponse. */ + class BatchCreateTensorboardTimeSeriesResponse implements IBatchCreateTensorboardTimeSeriesResponse { /** - * Constructs a new GetTensorboardRequest. + * Constructs a new BatchCreateTensorboardTimeSeriesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetTensorboardRequest); + constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesResponse); - /** GetTensorboardRequest name. */ - public name: string; + /** BatchCreateTensorboardTimeSeriesResponse tensorboardTimeSeries. */ + public tensorboardTimeSeries: google.cloud.aiplatform.v1.ITensorboardTimeSeries[]; /** - * Creates a new GetTensorboardRequest instance using the specified properties. + * Creates a new BatchCreateTensorboardTimeSeriesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTensorboardRequest instance + * @returns BatchCreateTensorboardTimeSeriesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetTensorboardRequest): google.cloud.aiplatform.v1.GetTensorboardRequest; + public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesResponse): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse; /** - * Encodes the specified GetTensorboardRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardRequest.verify|verify} messages. - * @param message GetTensorboardRequest message or plain object to encode + * Encodes the specified BatchCreateTensorboardTimeSeriesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse.verify|verify} messages. + * @param message BatchCreateTensorboardTimeSeriesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTensorboardRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardRequest.verify|verify} messages. - * @param message GetTensorboardRequest message or plain object to encode + * Encodes the specified BatchCreateTensorboardTimeSeriesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse.verify|verify} messages. + * @param message BatchCreateTensorboardTimeSeriesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTensorboardRequest message from the specified reader or buffer. + * Decodes a BatchCreateTensorboardTimeSeriesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTensorboardRequest + * @returns BatchCreateTensorboardTimeSeriesResponse * @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.GetTensorboardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse; /** - * Decodes a GetTensorboardRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateTensorboardTimeSeriesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTensorboardRequest + * @returns BatchCreateTensorboardTimeSeriesResponse * @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.GetTensorboardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse; /** - * Verifies a GetTensorboardRequest message. + * Verifies a BatchCreateTensorboardTimeSeriesResponse 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 GetTensorboardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateTensorboardTimeSeriesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTensorboardRequest + * @returns BatchCreateTensorboardTimeSeriesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTensorboardRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse; /** - * Creates a plain object from a GetTensorboardRequest message. Also converts values to other types if specified. - * @param message GetTensorboardRequest + * Creates a plain object from a BatchCreateTensorboardTimeSeriesResponse message. Also converts values to other types if specified. + * @param message BatchCreateTensorboardTimeSeriesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetTensorboardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTensorboardRequest to JSON. + * Converts this BatchCreateTensorboardTimeSeriesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTensorboardRequest + * Gets the default type url for BatchCreateTensorboardTimeSeriesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadTensorboardUsageRequest. */ - interface IReadTensorboardUsageRequest { + /** Properties of a CreateTensorboardTimeSeriesRequest. */ + interface ICreateTensorboardTimeSeriesRequest { - /** ReadTensorboardUsageRequest tensorboard */ - tensorboard?: (string|null); + /** CreateTensorboardTimeSeriesRequest parent */ + parent?: (string|null); + + /** CreateTensorboardTimeSeriesRequest tensorboardTimeSeriesId */ + tensorboardTimeSeriesId?: (string|null); + + /** CreateTensorboardTimeSeriesRequest tensorboardTimeSeries */ + tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries|null); } - /** Represents a ReadTensorboardUsageRequest. */ - class ReadTensorboardUsageRequest implements IReadTensorboardUsageRequest { + /** Represents a CreateTensorboardTimeSeriesRequest. */ + class CreateTensorboardTimeSeriesRequest implements ICreateTensorboardTimeSeriesRequest { /** - * Constructs a new ReadTensorboardUsageRequest. + * Constructs a new CreateTensorboardTimeSeriesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest); - /** ReadTensorboardUsageRequest tensorboard. */ - public tensorboard: string; + /** CreateTensorboardTimeSeriesRequest parent. */ + public parent: string; + + /** CreateTensorboardTimeSeriesRequest tensorboardTimeSeriesId. */ + public tensorboardTimeSeriesId: string; + + /** CreateTensorboardTimeSeriesRequest tensorboardTimeSeries. */ + public tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries|null); /** - * Creates a new ReadTensorboardUsageRequest instance using the specified properties. + * Creates a new CreateTensorboardTimeSeriesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadTensorboardUsageRequest instance + * @returns CreateTensorboardTimeSeriesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest): google.cloud.aiplatform.v1.ReadTensorboardUsageRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest; /** - * Encodes the specified ReadTensorboardUsageRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageRequest.verify|verify} messages. - * @param message ReadTensorboardUsageRequest message or plain object to encode + * Encodes the specified CreateTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message CreateTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadTensorboardUsageRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageRequest.verify|verify} messages. - * @param message ReadTensorboardUsageRequest message or plain object to encode + * Encodes the specified CreateTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message CreateTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardUsageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadTensorboardUsageRequest message from the specified reader or buffer. + * Decodes a CreateTensorboardTimeSeriesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadTensorboardUsageRequest + * @returns CreateTensorboardTimeSeriesRequest * @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.ReadTensorboardUsageRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest; /** - * Decodes a ReadTensorboardUsageRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadTensorboardUsageRequest + * @returns CreateTensorboardTimeSeriesRequest * @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.ReadTensorboardUsageRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest; /** - * Verifies a ReadTensorboardUsageRequest message. + * Verifies a CreateTensorboardTimeSeriesRequest 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 ReadTensorboardUsageRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadTensorboardUsageRequest + * @returns CreateTensorboardTimeSeriesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardUsageRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest; /** - * Creates a plain object from a ReadTensorboardUsageRequest message. Also converts values to other types if specified. - * @param message ReadTensorboardUsageRequest + * Creates a plain object from a CreateTensorboardTimeSeriesRequest message. Also converts values to other types if specified. + * @param message CreateTensorboardTimeSeriesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardUsageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadTensorboardUsageRequest to JSON. + * Converts this CreateTensorboardTimeSeriesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadTensorboardUsageRequest + * Gets the default type url for CreateTensorboardTimeSeriesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadTensorboardUsageResponse. */ - interface IReadTensorboardUsageResponse { + /** Properties of a GetTensorboardTimeSeriesRequest. */ + interface IGetTensorboardTimeSeriesRequest { - /** ReadTensorboardUsageResponse monthlyUsageData */ - monthlyUsageData?: ({ [k: string]: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData }|null); + /** GetTensorboardTimeSeriesRequest name */ + name?: (string|null); } - /** Represents a ReadTensorboardUsageResponse. */ - class ReadTensorboardUsageResponse implements IReadTensorboardUsageResponse { + /** Represents a GetTensorboardTimeSeriesRequest. */ + class GetTensorboardTimeSeriesRequest implements IGetTensorboardTimeSeriesRequest { /** - * Constructs a new ReadTensorboardUsageResponse. + * Constructs a new GetTensorboardTimeSeriesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardUsageResponse); + constructor(properties?: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest); - /** ReadTensorboardUsageResponse monthlyUsageData. */ - public monthlyUsageData: { [k: string]: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData }; + /** GetTensorboardTimeSeriesRequest name. */ + public name: string; /** - * Creates a new ReadTensorboardUsageResponse instance using the specified properties. + * Creates a new GetTensorboardTimeSeriesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadTensorboardUsageResponse instance + * @returns GetTensorboardTimeSeriesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardUsageResponse): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse; + public static create(properties?: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest; /** - * Encodes the specified ReadTensorboardUsageResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.verify|verify} messages. - * @param message ReadTensorboardUsageResponse message or plain object to encode + * Encodes the specified GetTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message GetTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardUsageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadTensorboardUsageResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.verify|verify} messages. - * @param message ReadTensorboardUsageResponse message or plain object to encode + * Encodes the specified GetTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message GetTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardUsageResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadTensorboardUsageResponse message from the specified reader or buffer. + * Decodes a GetTensorboardTimeSeriesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadTensorboardUsageResponse + * @returns GetTensorboardTimeSeriesRequest * @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.ReadTensorboardUsageResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest; /** - * Decodes a ReadTensorboardUsageResponse message from the specified reader or buffer, length delimited. + * Decodes a GetTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadTensorboardUsageResponse + * @returns GetTensorboardTimeSeriesRequest * @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.ReadTensorboardUsageResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest; /** - * Verifies a ReadTensorboardUsageResponse message. + * Verifies a GetTensorboardTimeSeriesRequest 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 ReadTensorboardUsageResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadTensorboardUsageResponse + * @returns GetTensorboardTimeSeriesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest; /** - * Creates a plain object from a ReadTensorboardUsageResponse message. Also converts values to other types if specified. - * @param message ReadTensorboardUsageResponse + * Creates a plain object from a GetTensorboardTimeSeriesRequest message. Also converts values to other types if specified. + * @param message GetTensorboardTimeSeriesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadTensorboardUsageResponse to JSON. + * Converts this GetTensorboardTimeSeriesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadTensorboardUsageResponse + * Gets the default type url for GetTensorboardTimeSeriesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ReadTensorboardUsageResponse { - - /** Properties of a PerUserUsageData. */ - interface IPerUserUsageData { - - /** PerUserUsageData username */ - username?: (string|null); - - /** PerUserUsageData viewCount */ - viewCount?: (number|Long|string|null); - } - - /** Represents a PerUserUsageData. */ - class PerUserUsageData implements IPerUserUsageData { - - /** - * Constructs a new PerUserUsageData. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData); - - /** PerUserUsageData username. */ - public username: string; - - /** PerUserUsageData viewCount. */ - public viewCount: (number|Long|string); - - /** - * Creates a new PerUserUsageData instance using the specified properties. - * @param [properties] Properties to set - * @returns PerUserUsageData instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData; - - /** - * Encodes the specified PerUserUsageData message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData.verify|verify} messages. - * @param message PerUserUsageData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PerUserUsageData message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData.verify|verify} messages. - * @param message PerUserUsageData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PerUserUsageData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PerUserUsageData - * @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.ReadTensorboardUsageResponse.PerUserUsageData; - - /** - * Decodes a PerUserUsageData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PerUserUsageData - * @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.ReadTensorboardUsageResponse.PerUserUsageData; - - /** - * Verifies a PerUserUsageData 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 PerUserUsageData message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PerUserUsageData - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData; - - /** - * Creates a plain object from a PerUserUsageData message. Also converts values to other types if specified. - * @param message PerUserUsageData - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerUserUsageData, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PerUserUsageData to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PerUserUsageData - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PerMonthUsageData. */ - interface IPerMonthUsageData { - - /** PerMonthUsageData userUsageData */ - userUsageData?: (google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData[]|null); - } - - /** Represents a PerMonthUsageData. */ - class PerMonthUsageData implements IPerMonthUsageData { - - /** - * Constructs a new PerMonthUsageData. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData); - - /** PerMonthUsageData userUsageData. */ - public userUsageData: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerUserUsageData[]; - - /** - * Creates a new PerMonthUsageData instance using the specified properties. - * @param [properties] Properties to set - * @returns PerMonthUsageData instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData; - - /** - * Encodes the specified PerMonthUsageData message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData.verify|verify} messages. - * @param message PerMonthUsageData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PerMonthUsageData message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData.verify|verify} messages. - * @param message PerMonthUsageData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.IPerMonthUsageData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PerMonthUsageData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PerMonthUsageData - * @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.ReadTensorboardUsageResponse.PerMonthUsageData; - - /** - * Decodes a PerMonthUsageData message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PerMonthUsageData - * @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.ReadTensorboardUsageResponse.PerMonthUsageData; - - /** - * Verifies a PerMonthUsageData 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 PerMonthUsageData message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PerMonthUsageData - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData; - - /** - * Creates a plain object from a PerMonthUsageData message. Also converts values to other types if specified. - * @param message PerMonthUsageData - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardUsageResponse.PerMonthUsageData, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PerMonthUsageData to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PerMonthUsageData - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a ListTensorboardsRequest. */ - interface IListTensorboardsRequest { + /** Properties of a ListTensorboardTimeSeriesRequest. */ + interface IListTensorboardTimeSeriesRequest { - /** ListTensorboardsRequest parent */ + /** ListTensorboardTimeSeriesRequest parent */ parent?: (string|null); - /** ListTensorboardsRequest filter */ + /** ListTensorboardTimeSeriesRequest filter */ filter?: (string|null); - /** ListTensorboardsRequest pageSize */ + /** ListTensorboardTimeSeriesRequest pageSize */ pageSize?: (number|null); - /** ListTensorboardsRequest pageToken */ + /** ListTensorboardTimeSeriesRequest pageToken */ pageToken?: (string|null); - /** ListTensorboardsRequest orderBy */ + /** ListTensorboardTimeSeriesRequest orderBy */ orderBy?: (string|null); - /** ListTensorboardsRequest readMask */ + /** ListTensorboardTimeSeriesRequest readMask */ readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListTensorboardsRequest. */ - class ListTensorboardsRequest implements IListTensorboardsRequest { + /** Represents a ListTensorboardTimeSeriesRequest. */ + class ListTensorboardTimeSeriesRequest implements IListTensorboardTimeSeriesRequest { /** - * Constructs a new ListTensorboardsRequest. + * Constructs a new ListTensorboardTimeSeriesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardsRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest); - /** ListTensorboardsRequest parent. */ + /** ListTensorboardTimeSeriesRequest parent. */ public parent: string; - /** ListTensorboardsRequest filter. */ + /** ListTensorboardTimeSeriesRequest filter. */ public filter: string; - /** ListTensorboardsRequest pageSize. */ + /** ListTensorboardTimeSeriesRequest pageSize. */ public pageSize: number; - /** ListTensorboardsRequest pageToken. */ + /** ListTensorboardTimeSeriesRequest pageToken. */ public pageToken: string; - /** ListTensorboardsRequest orderBy. */ + /** ListTensorboardTimeSeriesRequest orderBy. */ public orderBy: string; - /** ListTensorboardsRequest readMask. */ + /** ListTensorboardTimeSeriesRequest readMask. */ public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListTensorboardsRequest instance using the specified properties. + * Creates a new ListTensorboardTimeSeriesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTensorboardsRequest instance + * @returns ListTensorboardTimeSeriesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardsRequest): google.cloud.aiplatform.v1.ListTensorboardsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest; /** - * Encodes the specified ListTensorboardsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardsRequest.verify|verify} messages. - * @param message ListTensorboardsRequest message or plain object to encode + * Encodes the specified ListTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message ListTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTensorboardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTensorboardsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardsRequest.verify|verify} messages. - * @param message ListTensorboardsRequest message or plain object to encode + * Encodes the specified ListTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message ListTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTensorboardsRequest message from the specified reader or buffer. + * Decodes a ListTensorboardTimeSeriesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTensorboardsRequest + * @returns ListTensorboardTimeSeriesRequest * @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.ListTensorboardsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest; /** - * Decodes a ListTensorboardsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTensorboardsRequest + * @returns ListTensorboardTimeSeriesRequest * @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.ListTensorboardsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest; /** - * Verifies a ListTensorboardsRequest message. + * Verifies a ListTensorboardTimeSeriesRequest 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 ListTensorboardsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTensorboardsRequest + * @returns ListTensorboardTimeSeriesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest; /** - * Creates a plain object from a ListTensorboardsRequest message. Also converts values to other types if specified. - * @param message ListTensorboardsRequest + * Creates a plain object from a ListTensorboardTimeSeriesRequest message. Also converts values to other types if specified. + * @param message ListTensorboardTimeSeriesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTensorboardsRequest to JSON. + * Converts this ListTensorboardTimeSeriesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTensorboardsRequest + * Gets the default type url for ListTensorboardTimeSeriesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTensorboardsResponse. */ - interface IListTensorboardsResponse { + /** Properties of a ListTensorboardTimeSeriesResponse. */ + interface IListTensorboardTimeSeriesResponse { - /** ListTensorboardsResponse tensorboards */ - tensorboards?: (google.cloud.aiplatform.v1.ITensorboard[]|null); + /** ListTensorboardTimeSeriesResponse tensorboardTimeSeries */ + tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries[]|null); - /** ListTensorboardsResponse nextPageToken */ + /** ListTensorboardTimeSeriesResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListTensorboardsResponse. */ - class ListTensorboardsResponse implements IListTensorboardsResponse { + /** Represents a ListTensorboardTimeSeriesResponse. */ + class ListTensorboardTimeSeriesResponse implements IListTensorboardTimeSeriesResponse { /** - * Constructs a new ListTensorboardsResponse. + * Constructs a new ListTensorboardTimeSeriesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardsResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesResponse); - /** ListTensorboardsResponse tensorboards. */ - public tensorboards: google.cloud.aiplatform.v1.ITensorboard[]; + /** ListTensorboardTimeSeriesResponse tensorboardTimeSeries. */ + public tensorboardTimeSeries: google.cloud.aiplatform.v1.ITensorboardTimeSeries[]; - /** ListTensorboardsResponse nextPageToken. */ + /** ListTensorboardTimeSeriesResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListTensorboardsResponse instance using the specified properties. + * Creates a new ListTensorboardTimeSeriesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListTensorboardsResponse instance + * @returns ListTensorboardTimeSeriesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardsResponse): google.cloud.aiplatform.v1.ListTensorboardsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesResponse): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse; /** - * Encodes the specified ListTensorboardsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardsResponse.verify|verify} messages. - * @param message ListTensorboardsResponse message or plain object to encode + * Encodes the specified ListTensorboardTimeSeriesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse.verify|verify} messages. + * @param message ListTensorboardTimeSeriesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTensorboardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTensorboardsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardsResponse.verify|verify} messages. - * @param message ListTensorboardsResponse message or plain object to encode + * Encodes the specified ListTensorboardTimeSeriesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse.verify|verify} messages. + * @param message ListTensorboardTimeSeriesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTensorboardsResponse message from the specified reader or buffer. + * Decodes a ListTensorboardTimeSeriesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTensorboardsResponse + * @returns ListTensorboardTimeSeriesResponse * @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.ListTensorboardsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse; /** - * Decodes a ListTensorboardsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListTensorboardTimeSeriesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTensorboardsResponse + * @returns ListTensorboardTimeSeriesResponse * @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.ListTensorboardsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse; /** - * Verifies a ListTensorboardsResponse message. + * Verifies a ListTensorboardTimeSeriesResponse 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 ListTensorboardsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListTensorboardTimeSeriesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTensorboardsResponse + * @returns ListTensorboardTimeSeriesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse; /** - * Creates a plain object from a ListTensorboardsResponse message. Also converts values to other types if specified. - * @param message ListTensorboardsResponse + * Creates a plain object from a ListTensorboardTimeSeriesResponse message. Also converts values to other types if specified. + * @param message ListTensorboardTimeSeriesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTensorboardsResponse to JSON. + * Converts this ListTensorboardTimeSeriesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTensorboardsResponse + * Gets the default type url for ListTensorboardTimeSeriesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateTensorboardRequest. */ - interface IUpdateTensorboardRequest { + /** Properties of an UpdateTensorboardTimeSeriesRequest. */ + interface IUpdateTensorboardTimeSeriesRequest { - /** UpdateTensorboardRequest updateMask */ + /** UpdateTensorboardTimeSeriesRequest updateMask */ updateMask?: (google.protobuf.IFieldMask|null); - /** UpdateTensorboardRequest tensorboard */ - tensorboard?: (google.cloud.aiplatform.v1.ITensorboard|null); + /** UpdateTensorboardTimeSeriesRequest tensorboardTimeSeries */ + tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries|null); } - /** Represents an UpdateTensorboardRequest. */ - class UpdateTensorboardRequest implements IUpdateTensorboardRequest { + /** Represents an UpdateTensorboardTimeSeriesRequest. */ + class UpdateTensorboardTimeSeriesRequest implements IUpdateTensorboardTimeSeriesRequest { /** - * Constructs a new UpdateTensorboardRequest. + * Constructs a new UpdateTensorboardTimeSeriesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardRequest); + constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest); - /** UpdateTensorboardRequest updateMask. */ + /** UpdateTensorboardTimeSeriesRequest updateMask. */ public updateMask?: (google.protobuf.IFieldMask|null); - /** UpdateTensorboardRequest tensorboard. */ - public tensorboard?: (google.cloud.aiplatform.v1.ITensorboard|null); + /** UpdateTensorboardTimeSeriesRequest tensorboardTimeSeries. */ + public tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries|null); /** - * Creates a new UpdateTensorboardRequest instance using the specified properties. + * Creates a new UpdateTensorboardTimeSeriesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTensorboardRequest instance + * @returns UpdateTensorboardTimeSeriesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardRequest): google.cloud.aiplatform.v1.UpdateTensorboardRequest; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest; /** - * Encodes the specified UpdateTensorboardRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardRequest.verify|verify} messages. - * @param message UpdateTensorboardRequest message or plain object to encode + * Encodes the specified UpdateTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message UpdateTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTensorboardRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardRequest.verify|verify} messages. - * @param message UpdateTensorboardRequest message or plain object to encode + * Encodes the specified UpdateTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message UpdateTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTensorboardRequest message from the specified reader or buffer. + * Decodes an UpdateTensorboardTimeSeriesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTensorboardRequest + * @returns UpdateTensorboardTimeSeriesRequest * @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.UpdateTensorboardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest; /** - * Decodes an UpdateTensorboardRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTensorboardRequest + * @returns UpdateTensorboardTimeSeriesRequest * @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.UpdateTensorboardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest; /** - * Verifies an UpdateTensorboardRequest message. + * Verifies an UpdateTensorboardTimeSeriesRequest 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 UpdateTensorboardRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTensorboardRequest + * @returns UpdateTensorboardTimeSeriesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest; /** - * Creates a plain object from an UpdateTensorboardRequest message. Also converts values to other types if specified. - * @param message UpdateTensorboardRequest + * Creates a plain object from an UpdateTensorboardTimeSeriesRequest message. Also converts values to other types if specified. + * @param message UpdateTensorboardTimeSeriesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTensorboardRequest to JSON. + * Converts this UpdateTensorboardTimeSeriesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateTensorboardRequest + * Gets the default type url for UpdateTensorboardTimeSeriesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteTensorboardRequest. */ - interface IDeleteTensorboardRequest { + /** Properties of a DeleteTensorboardTimeSeriesRequest. */ + interface IDeleteTensorboardTimeSeriesRequest { - /** DeleteTensorboardRequest name */ + /** DeleteTensorboardTimeSeriesRequest name */ name?: (string|null); } - /** Represents a DeleteTensorboardRequest. */ - class DeleteTensorboardRequest implements IDeleteTensorboardRequest { + /** Represents a DeleteTensorboardTimeSeriesRequest. */ + class DeleteTensorboardTimeSeriesRequest implements IDeleteTensorboardTimeSeriesRequest { /** - * Constructs a new DeleteTensorboardRequest. + * Constructs a new DeleteTensorboardTimeSeriesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardRequest); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest); - /** DeleteTensorboardRequest name. */ + /** DeleteTensorboardTimeSeriesRequest name. */ public name: string; /** - * Creates a new DeleteTensorboardRequest instance using the specified properties. + * Creates a new DeleteTensorboardTimeSeriesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTensorboardRequest instance + * @returns DeleteTensorboardTimeSeriesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardRequest): google.cloud.aiplatform.v1.DeleteTensorboardRequest; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest; /** - * Encodes the specified DeleteTensorboardRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardRequest.verify|verify} messages. - * @param message DeleteTensorboardRequest message or plain object to encode + * Encodes the specified DeleteTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message DeleteTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTensorboardRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardRequest.verify|verify} messages. - * @param message DeleteTensorboardRequest message or plain object to encode + * Encodes the specified DeleteTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest.verify|verify} messages. + * @param message DeleteTensorboardTimeSeriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTensorboardRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTensorboardRequest message from the specified reader or buffer. + * Decodes a DeleteTensorboardTimeSeriesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTensorboardRequest + * @returns DeleteTensorboardTimeSeriesRequest * @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.DeleteTensorboardRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest; /** - * Decodes a DeleteTensorboardRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTensorboardRequest + * @returns DeleteTensorboardTimeSeriesRequest * @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.DeleteTensorboardRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest; /** - * Verifies a DeleteTensorboardRequest message. + * Verifies a DeleteTensorboardTimeSeriesRequest 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 DeleteTensorboardRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTensorboardRequest + * @returns DeleteTensorboardTimeSeriesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTensorboardRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest; /** - * Creates a plain object from a DeleteTensorboardRequest message. Also converts values to other types if specified. - * @param message DeleteTensorboardRequest + * Creates a plain object from a DeleteTensorboardTimeSeriesRequest message. Also converts values to other types if specified. + * @param message DeleteTensorboardTimeSeriesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteTensorboardRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTensorboardRequest to JSON. + * Converts this DeleteTensorboardTimeSeriesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTensorboardRequest + * Gets the default type url for DeleteTensorboardTimeSeriesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateTensorboardExperimentRequest. */ - interface ICreateTensorboardExperimentRequest { - - /** CreateTensorboardExperimentRequest parent */ - parent?: (string|null); + /** Properties of a BatchReadTensorboardTimeSeriesDataRequest. */ + interface IBatchReadTensorboardTimeSeriesDataRequest { - /** CreateTensorboardExperimentRequest tensorboardExperiment */ - tensorboardExperiment?: (google.cloud.aiplatform.v1.ITensorboardExperiment|null); + /** BatchReadTensorboardTimeSeriesDataRequest tensorboard */ + tensorboard?: (string|null); - /** CreateTensorboardExperimentRequest tensorboardExperimentId */ - tensorboardExperimentId?: (string|null); + /** BatchReadTensorboardTimeSeriesDataRequest timeSeries */ + timeSeries?: (string[]|null); } - /** Represents a CreateTensorboardExperimentRequest. */ - class CreateTensorboardExperimentRequest implements ICreateTensorboardExperimentRequest { + /** Represents a BatchReadTensorboardTimeSeriesDataRequest. */ + class BatchReadTensorboardTimeSeriesDataRequest implements IBatchReadTensorboardTimeSeriesDataRequest { /** - * Constructs a new CreateTensorboardExperimentRequest. + * Constructs a new BatchReadTensorboardTimeSeriesDataRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest); - - /** CreateTensorboardExperimentRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest); - /** CreateTensorboardExperimentRequest tensorboardExperiment. */ - public tensorboardExperiment?: (google.cloud.aiplatform.v1.ITensorboardExperiment|null); + /** BatchReadTensorboardTimeSeriesDataRequest tensorboard. */ + public tensorboard: string; - /** CreateTensorboardExperimentRequest tensorboardExperimentId. */ - public tensorboardExperimentId: string; + /** BatchReadTensorboardTimeSeriesDataRequest timeSeries. */ + public timeSeries: string[]; /** - * Creates a new CreateTensorboardExperimentRequest instance using the specified properties. + * Creates a new BatchReadTensorboardTimeSeriesDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTensorboardExperimentRequest instance + * @returns BatchReadTensorboardTimeSeriesDataRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest): google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest; + public static create(properties?: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest; /** - * Encodes the specified CreateTensorboardExperimentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest.verify|verify} messages. - * @param message CreateTensorboardExperimentRequest message or plain object to encode + * Encodes the specified BatchReadTensorboardTimeSeriesDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest.verify|verify} messages. + * @param message BatchReadTensorboardTimeSeriesDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTensorboardExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest.verify|verify} messages. - * @param message CreateTensorboardExperimentRequest message or plain object to encode + * Encodes the specified BatchReadTensorboardTimeSeriesDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest.verify|verify} messages. + * @param message BatchReadTensorboardTimeSeriesDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTensorboardExperimentRequest message from the specified reader or buffer. + * Decodes a BatchReadTensorboardTimeSeriesDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTensorboardExperimentRequest + * @returns BatchReadTensorboardTimeSeriesDataRequest * @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.CreateTensorboardExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest; /** - * Decodes a CreateTensorboardExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchReadTensorboardTimeSeriesDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTensorboardExperimentRequest + * @returns BatchReadTensorboardTimeSeriesDataRequest * @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.CreateTensorboardExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest; /** - * Verifies a CreateTensorboardExperimentRequest message. + * Verifies a BatchReadTensorboardTimeSeriesDataRequest 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 CreateTensorboardExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchReadTensorboardTimeSeriesDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTensorboardExperimentRequest + * @returns BatchReadTensorboardTimeSeriesDataRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest; /** - * Creates a plain object from a CreateTensorboardExperimentRequest message. Also converts values to other types if specified. - * @param message CreateTensorboardExperimentRequest + * Creates a plain object from a BatchReadTensorboardTimeSeriesDataRequest message. Also converts values to other types if specified. + * @param message BatchReadTensorboardTimeSeriesDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTensorboardExperimentRequest to JSON. + * Converts this BatchReadTensorboardTimeSeriesDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateTensorboardExperimentRequest + * Gets the default type url for BatchReadTensorboardTimeSeriesDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTensorboardExperimentRequest. */ - interface IGetTensorboardExperimentRequest { + /** Properties of a BatchReadTensorboardTimeSeriesDataResponse. */ + interface IBatchReadTensorboardTimeSeriesDataResponse { - /** GetTensorboardExperimentRequest name */ - name?: (string|null); + /** BatchReadTensorboardTimeSeriesDataResponse timeSeriesData */ + timeSeriesData?: (google.cloud.aiplatform.v1.ITimeSeriesData[]|null); } - /** Represents a GetTensorboardExperimentRequest. */ - class GetTensorboardExperimentRequest implements IGetTensorboardExperimentRequest { + /** Represents a BatchReadTensorboardTimeSeriesDataResponse. */ + class BatchReadTensorboardTimeSeriesDataResponse implements IBatchReadTensorboardTimeSeriesDataResponse { /** - * Constructs a new GetTensorboardExperimentRequest. + * Constructs a new BatchReadTensorboardTimeSeriesDataResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest); + constructor(properties?: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataResponse); - /** GetTensorboardExperimentRequest name. */ - public name: string; + /** BatchReadTensorboardTimeSeriesDataResponse timeSeriesData. */ + public timeSeriesData: google.cloud.aiplatform.v1.ITimeSeriesData[]; /** - * Creates a new GetTensorboardExperimentRequest instance using the specified properties. + * Creates a new BatchReadTensorboardTimeSeriesDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTensorboardExperimentRequest instance + * @returns BatchReadTensorboardTimeSeriesDataResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest): google.cloud.aiplatform.v1.GetTensorboardExperimentRequest; + public static create(properties?: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataResponse): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse; /** - * Encodes the specified GetTensorboardExperimentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardExperimentRequest.verify|verify} messages. - * @param message GetTensorboardExperimentRequest message or plain object to encode + * Encodes the specified BatchReadTensorboardTimeSeriesDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse.verify|verify} messages. + * @param message BatchReadTensorboardTimeSeriesDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTensorboardExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardExperimentRequest.verify|verify} messages. - * @param message GetTensorboardExperimentRequest message or plain object to encode + * Encodes the specified BatchReadTensorboardTimeSeriesDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse.verify|verify} messages. + * @param message BatchReadTensorboardTimeSeriesDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTensorboardExperimentRequest message from the specified reader or buffer. + * Decodes a BatchReadTensorboardTimeSeriesDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTensorboardExperimentRequest + * @returns BatchReadTensorboardTimeSeriesDataResponse * @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.GetTensorboardExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse; /** - * Decodes a GetTensorboardExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchReadTensorboardTimeSeriesDataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTensorboardExperimentRequest + * @returns BatchReadTensorboardTimeSeriesDataResponse * @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.GetTensorboardExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse; /** - * Verifies a GetTensorboardExperimentRequest message. + * Verifies a BatchReadTensorboardTimeSeriesDataResponse 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 GetTensorboardExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchReadTensorboardTimeSeriesDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTensorboardExperimentRequest + * @returns BatchReadTensorboardTimeSeriesDataResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTensorboardExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse; /** - * Creates a plain object from a GetTensorboardExperimentRequest message. Also converts values to other types if specified. - * @param message GetTensorboardExperimentRequest + * Creates a plain object from a BatchReadTensorboardTimeSeriesDataResponse message. Also converts values to other types if specified. + * @param message BatchReadTensorboardTimeSeriesDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetTensorboardExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTensorboardExperimentRequest to JSON. + * Converts this BatchReadTensorboardTimeSeriesDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTensorboardExperimentRequest + * Gets the default type url for BatchReadTensorboardTimeSeriesDataResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTensorboardExperimentsRequest. */ - interface IListTensorboardExperimentsRequest { - - /** ListTensorboardExperimentsRequest parent */ - parent?: (string|null); - - /** ListTensorboardExperimentsRequest filter */ - filter?: (string|null); - - /** ListTensorboardExperimentsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a ReadTensorboardTimeSeriesDataRequest. */ + interface IReadTensorboardTimeSeriesDataRequest { - /** ListTensorboardExperimentsRequest pageToken */ - pageToken?: (string|null); + /** ReadTensorboardTimeSeriesDataRequest tensorboardTimeSeries */ + tensorboardTimeSeries?: (string|null); - /** ListTensorboardExperimentsRequest orderBy */ - orderBy?: (string|null); + /** ReadTensorboardTimeSeriesDataRequest maxDataPoints */ + maxDataPoints?: (number|null); - /** ListTensorboardExperimentsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** ReadTensorboardTimeSeriesDataRequest filter */ + filter?: (string|null); } - /** Represents a ListTensorboardExperimentsRequest. */ - class ListTensorboardExperimentsRequest implements IListTensorboardExperimentsRequest { + /** Represents a ReadTensorboardTimeSeriesDataRequest. */ + class ReadTensorboardTimeSeriesDataRequest implements IReadTensorboardTimeSeriesDataRequest { /** - * Constructs a new ListTensorboardExperimentsRequest. + * Constructs a new ReadTensorboardTimeSeriesDataRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest); - - /** ListTensorboardExperimentsRequest parent. */ - public parent: string; - - /** ListTensorboardExperimentsRequest filter. */ - public filter: string; - - /** ListTensorboardExperimentsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest); - /** ListTensorboardExperimentsRequest pageToken. */ - public pageToken: string; + /** ReadTensorboardTimeSeriesDataRequest tensorboardTimeSeries. */ + public tensorboardTimeSeries: string; - /** ListTensorboardExperimentsRequest orderBy. */ - public orderBy: string; + /** ReadTensorboardTimeSeriesDataRequest maxDataPoints. */ + public maxDataPoints: number; - /** ListTensorboardExperimentsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ReadTensorboardTimeSeriesDataRequest filter. */ + public filter: string; /** - * Creates a new ListTensorboardExperimentsRequest instance using the specified properties. + * Creates a new ReadTensorboardTimeSeriesDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTensorboardExperimentsRequest instance + * @returns ReadTensorboardTimeSeriesDataRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest): google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest; /** - * Encodes the specified ListTensorboardExperimentsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest.verify|verify} messages. - * @param message ListTensorboardExperimentsRequest message or plain object to encode + * Encodes the specified ReadTensorboardTimeSeriesDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest.verify|verify} messages. + * @param message ReadTensorboardTimeSeriesDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTensorboardExperimentsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest.verify|verify} messages. - * @param message ListTensorboardExperimentsRequest message or plain object to encode + * Encodes the specified ReadTensorboardTimeSeriesDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest.verify|verify} messages. + * @param message ReadTensorboardTimeSeriesDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardExperimentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTensorboardExperimentsRequest message from the specified reader or buffer. + * Decodes a ReadTensorboardTimeSeriesDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTensorboardExperimentsRequest + * @returns ReadTensorboardTimeSeriesDataRequest * @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.ListTensorboardExperimentsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest; /** - * Decodes a ListTensorboardExperimentsRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadTensorboardTimeSeriesDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTensorboardExperimentsRequest + * @returns ReadTensorboardTimeSeriesDataRequest * @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.ListTensorboardExperimentsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest; /** - * Verifies a ListTensorboardExperimentsRequest message. + * Verifies a ReadTensorboardTimeSeriesDataRequest 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 ListTensorboardExperimentsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadTensorboardTimeSeriesDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTensorboardExperimentsRequest + * @returns ReadTensorboardTimeSeriesDataRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest; /** - * Creates a plain object from a ListTensorboardExperimentsRequest message. Also converts values to other types if specified. - * @param message ListTensorboardExperimentsRequest + * Creates a plain object from a ReadTensorboardTimeSeriesDataRequest message. Also converts values to other types if specified. + * @param message ReadTensorboardTimeSeriesDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardExperimentsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTensorboardExperimentsRequest to JSON. + * Converts this ReadTensorboardTimeSeriesDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTensorboardExperimentsRequest + * Gets the default type url for ReadTensorboardTimeSeriesDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a ListTensorboardExperimentsResponse. */ - interface IListTensorboardExperimentsResponse { + } - /** ListTensorboardExperimentsResponse tensorboardExperiments */ - tensorboardExperiments?: (google.cloud.aiplatform.v1.ITensorboardExperiment[]|null); + /** Properties of a ReadTensorboardTimeSeriesDataResponse. */ + interface IReadTensorboardTimeSeriesDataResponse { - /** ListTensorboardExperimentsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ReadTensorboardTimeSeriesDataResponse timeSeriesData */ + timeSeriesData?: (google.cloud.aiplatform.v1.ITimeSeriesData|null); } - /** Represents a ListTensorboardExperimentsResponse. */ - class ListTensorboardExperimentsResponse implements IListTensorboardExperimentsResponse { + /** Represents a ReadTensorboardTimeSeriesDataResponse. */ + class ReadTensorboardTimeSeriesDataResponse implements IReadTensorboardTimeSeriesDataResponse { /** - * Constructs a new ListTensorboardExperimentsResponse. + * Constructs a new ReadTensorboardTimeSeriesDataResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardExperimentsResponse); - - /** ListTensorboardExperimentsResponse tensorboardExperiments. */ - public tensorboardExperiments: google.cloud.aiplatform.v1.ITensorboardExperiment[]; + constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataResponse); - /** ListTensorboardExperimentsResponse nextPageToken. */ - public nextPageToken: string; + /** ReadTensorboardTimeSeriesDataResponse timeSeriesData. */ + public timeSeriesData?: (google.cloud.aiplatform.v1.ITimeSeriesData|null); /** - * Creates a new ListTensorboardExperimentsResponse instance using the specified properties. + * Creates a new ReadTensorboardTimeSeriesDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListTensorboardExperimentsResponse instance + * @returns ReadTensorboardTimeSeriesDataResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardExperimentsResponse): google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataResponse): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse; /** - * Encodes the specified ListTensorboardExperimentsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse.verify|verify} messages. - * @param message ListTensorboardExperimentsResponse message or plain object to encode + * Encodes the specified ReadTensorboardTimeSeriesDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse.verify|verify} messages. + * @param message ReadTensorboardTimeSeriesDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTensorboardExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTensorboardExperimentsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse.verify|verify} messages. - * @param message ListTensorboardExperimentsResponse message or plain object to encode + * Encodes the specified ReadTensorboardTimeSeriesDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse.verify|verify} messages. + * @param message ReadTensorboardTimeSeriesDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardExperimentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTensorboardExperimentsResponse message from the specified reader or buffer. + * Decodes a ReadTensorboardTimeSeriesDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTensorboardExperimentsResponse + * @returns ReadTensorboardTimeSeriesDataResponse * @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.ListTensorboardExperimentsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse; /** - * Decodes a ListTensorboardExperimentsResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadTensorboardTimeSeriesDataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTensorboardExperimentsResponse + * @returns ReadTensorboardTimeSeriesDataResponse * @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.ListTensorboardExperimentsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse; /** - * Verifies a ListTensorboardExperimentsResponse message. + * Verifies a ReadTensorboardTimeSeriesDataResponse 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 ListTensorboardExperimentsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadTensorboardTimeSeriesDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTensorboardExperimentsResponse + * @returns ReadTensorboardTimeSeriesDataResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse; /** - * Creates a plain object from a ListTensorboardExperimentsResponse message. Also converts values to other types if specified. - * @param message ListTensorboardExperimentsResponse + * Creates a plain object from a ReadTensorboardTimeSeriesDataResponse message. Also converts values to other types if specified. + * @param message ReadTensorboardTimeSeriesDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardExperimentsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTensorboardExperimentsResponse to JSON. + * Converts this ReadTensorboardTimeSeriesDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTensorboardExperimentsResponse + * Gets the default type url for ReadTensorboardTimeSeriesDataResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateTensorboardExperimentRequest. */ - interface IUpdateTensorboardExperimentRequest { + /** Properties of a WriteTensorboardExperimentDataRequest. */ + interface IWriteTensorboardExperimentDataRequest { - /** UpdateTensorboardExperimentRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** WriteTensorboardExperimentDataRequest tensorboardExperiment */ + tensorboardExperiment?: (string|null); - /** UpdateTensorboardExperimentRequest tensorboardExperiment */ - tensorboardExperiment?: (google.cloud.aiplatform.v1.ITensorboardExperiment|null); + /** WriteTensorboardExperimentDataRequest writeRunDataRequests */ + writeRunDataRequests?: (google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest[]|null); } - /** Represents an UpdateTensorboardExperimentRequest. */ - class UpdateTensorboardExperimentRequest implements IUpdateTensorboardExperimentRequest { + /** Represents a WriteTensorboardExperimentDataRequest. */ + class WriteTensorboardExperimentDataRequest implements IWriteTensorboardExperimentDataRequest { /** - * Constructs a new UpdateTensorboardExperimentRequest. + * Constructs a new WriteTensorboardExperimentDataRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest); + constructor(properties?: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest); - /** UpdateTensorboardExperimentRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** WriteTensorboardExperimentDataRequest tensorboardExperiment. */ + public tensorboardExperiment: string; - /** UpdateTensorboardExperimentRequest tensorboardExperiment. */ - public tensorboardExperiment?: (google.cloud.aiplatform.v1.ITensorboardExperiment|null); + /** WriteTensorboardExperimentDataRequest writeRunDataRequests. */ + public writeRunDataRequests: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest[]; /** - * Creates a new UpdateTensorboardExperimentRequest instance using the specified properties. + * Creates a new WriteTensorboardExperimentDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTensorboardExperimentRequest instance + * @returns WriteTensorboardExperimentDataRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest): google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest; + public static create(properties?: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest; /** - * Encodes the specified UpdateTensorboardExperimentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest.verify|verify} messages. - * @param message UpdateTensorboardExperimentRequest message or plain object to encode + * Encodes the specified WriteTensorboardExperimentDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest.verify|verify} messages. + * @param message WriteTensorboardExperimentDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTensorboardExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest.verify|verify} messages. - * @param message UpdateTensorboardExperimentRequest message or plain object to encode + * Encodes the specified WriteTensorboardExperimentDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest.verify|verify} messages. + * @param message WriteTensorboardExperimentDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTensorboardExperimentRequest message from the specified reader or buffer. + * Decodes a WriteTensorboardExperimentDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTensorboardExperimentRequest + * @returns WriteTensorboardExperimentDataRequest * @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.UpdateTensorboardExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest; /** - * Decodes an UpdateTensorboardExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a WriteTensorboardExperimentDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTensorboardExperimentRequest + * @returns WriteTensorboardExperimentDataRequest * @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.UpdateTensorboardExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest; /** - * Verifies an UpdateTensorboardExperimentRequest message. + * Verifies a WriteTensorboardExperimentDataRequest 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 UpdateTensorboardExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WriteTensorboardExperimentDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTensorboardExperimentRequest + * @returns WriteTensorboardExperimentDataRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest; /** - * Creates a plain object from an UpdateTensorboardExperimentRequest message. Also converts values to other types if specified. - * @param message UpdateTensorboardExperimentRequest + * Creates a plain object from a WriteTensorboardExperimentDataRequest message. Also converts values to other types if specified. + * @param message WriteTensorboardExperimentDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTensorboardExperimentRequest to JSON. + * Converts this WriteTensorboardExperimentDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateTensorboardExperimentRequest + * Gets the default type url for WriteTensorboardExperimentDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteTensorboardExperimentRequest. */ - interface IDeleteTensorboardExperimentRequest { - - /** DeleteTensorboardExperimentRequest name */ - name?: (string|null); + /** Properties of a WriteTensorboardExperimentDataResponse. */ + interface IWriteTensorboardExperimentDataResponse { } - /** Represents a DeleteTensorboardExperimentRequest. */ - class DeleteTensorboardExperimentRequest implements IDeleteTensorboardExperimentRequest { + /** Represents a WriteTensorboardExperimentDataResponse. */ + class WriteTensorboardExperimentDataResponse implements IWriteTensorboardExperimentDataResponse { /** - * Constructs a new DeleteTensorboardExperimentRequest. + * Constructs a new WriteTensorboardExperimentDataResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest); - - /** DeleteTensorboardExperimentRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataResponse); /** - * Creates a new DeleteTensorboardExperimentRequest instance using the specified properties. + * Creates a new WriteTensorboardExperimentDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTensorboardExperimentRequest instance + * @returns WriteTensorboardExperimentDataResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest): google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest; + public static create(properties?: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataResponse): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse; /** - * Encodes the specified DeleteTensorboardExperimentRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest.verify|verify} messages. - * @param message DeleteTensorboardExperimentRequest message or plain object to encode + * Encodes the specified WriteTensorboardExperimentDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse.verify|verify} messages. + * @param message WriteTensorboardExperimentDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTensorboardExperimentRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest.verify|verify} messages. - * @param message DeleteTensorboardExperimentRequest message or plain object to encode + * Encodes the specified WriteTensorboardExperimentDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse.verify|verify} messages. + * @param message WriteTensorboardExperimentDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTensorboardExperimentRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTensorboardExperimentRequest message from the specified reader or buffer. + * Decodes a WriteTensorboardExperimentDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTensorboardExperimentRequest + * @returns WriteTensorboardExperimentDataResponse * @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.DeleteTensorboardExperimentRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse; /** - * Decodes a DeleteTensorboardExperimentRequest message from the specified reader or buffer, length delimited. + * Decodes a WriteTensorboardExperimentDataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTensorboardExperimentRequest + * @returns WriteTensorboardExperimentDataResponse * @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.DeleteTensorboardExperimentRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse; /** - * Verifies a DeleteTensorboardExperimentRequest message. + * Verifies a WriteTensorboardExperimentDataResponse 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 DeleteTensorboardExperimentRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WriteTensorboardExperimentDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTensorboardExperimentRequest + * @returns WriteTensorboardExperimentDataResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse; /** - * Creates a plain object from a DeleteTensorboardExperimentRequest message. Also converts values to other types if specified. - * @param message DeleteTensorboardExperimentRequest + * Creates a plain object from a WriteTensorboardExperimentDataResponse message. Also converts values to other types if specified. + * @param message WriteTensorboardExperimentDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteTensorboardExperimentRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTensorboardExperimentRequest to JSON. + * Converts this WriteTensorboardExperimentDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTensorboardExperimentRequest + * Gets the default type url for WriteTensorboardExperimentDataResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchCreateTensorboardRunsRequest. */ - interface IBatchCreateTensorboardRunsRequest { + /** Properties of a WriteTensorboardRunDataRequest. */ + interface IWriteTensorboardRunDataRequest { - /** BatchCreateTensorboardRunsRequest parent */ - parent?: (string|null); + /** WriteTensorboardRunDataRequest tensorboardRun */ + tensorboardRun?: (string|null); - /** BatchCreateTensorboardRunsRequest requests */ - requests?: (google.cloud.aiplatform.v1.ICreateTensorboardRunRequest[]|null); + /** WriteTensorboardRunDataRequest timeSeriesData */ + timeSeriesData?: (google.cloud.aiplatform.v1.ITimeSeriesData[]|null); } - /** Represents a BatchCreateTensorboardRunsRequest. */ - class BatchCreateTensorboardRunsRequest implements IBatchCreateTensorboardRunsRequest { + /** Represents a WriteTensorboardRunDataRequest. */ + class WriteTensorboardRunDataRequest implements IWriteTensorboardRunDataRequest { /** - * Constructs a new BatchCreateTensorboardRunsRequest. + * Constructs a new WriteTensorboardRunDataRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest); + constructor(properties?: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest); - /** BatchCreateTensorboardRunsRequest parent. */ - public parent: string; + /** WriteTensorboardRunDataRequest tensorboardRun. */ + public tensorboardRun: string; - /** BatchCreateTensorboardRunsRequest requests. */ - public requests: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest[]; + /** WriteTensorboardRunDataRequest timeSeriesData. */ + public timeSeriesData: google.cloud.aiplatform.v1.ITimeSeriesData[]; /** - * Creates a new BatchCreateTensorboardRunsRequest instance using the specified properties. + * Creates a new WriteTensorboardRunDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateTensorboardRunsRequest instance + * @returns WriteTensorboardRunDataRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest; + public static create(properties?: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest): google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest; /** - * Encodes the specified BatchCreateTensorboardRunsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest.verify|verify} messages. - * @param message BatchCreateTensorboardRunsRequest message or plain object to encode + * Encodes the specified WriteTensorboardRunDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest.verify|verify} messages. + * @param message WriteTensorboardRunDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateTensorboardRunsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest.verify|verify} messages. - * @param message BatchCreateTensorboardRunsRequest message or plain object to encode + * Encodes the specified WriteTensorboardRunDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest.verify|verify} messages. + * @param message WriteTensorboardRunDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateTensorboardRunsRequest message from the specified reader or buffer. + * Decodes a WriteTensorboardRunDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchCreateTensorboardRunsRequest + * @returns WriteTensorboardRunDataRequest * @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.BatchCreateTensorboardRunsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest; /** - * Decodes a BatchCreateTensorboardRunsRequest message from the specified reader or buffer, length delimited. + * Decodes a WriteTensorboardRunDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateTensorboardRunsRequest + * @returns WriteTensorboardRunDataRequest * @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.BatchCreateTensorboardRunsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest; /** - * Verifies a BatchCreateTensorboardRunsRequest message. + * Verifies a WriteTensorboardRunDataRequest 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 BatchCreateTensorboardRunsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WriteTensorboardRunDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateTensorboardRunsRequest + * @returns WriteTensorboardRunDataRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest; /** - * Creates a plain object from a BatchCreateTensorboardRunsRequest message. Also converts values to other types if specified. - * @param message BatchCreateTensorboardRunsRequest + * Creates a plain object from a WriteTensorboardRunDataRequest message. Also converts values to other types if specified. + * @param message WriteTensorboardRunDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateTensorboardRunsRequest to JSON. + * Converts this WriteTensorboardRunDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchCreateTensorboardRunsRequest + * Gets the default type url for WriteTensorboardRunDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchCreateTensorboardRunsResponse. */ - interface IBatchCreateTensorboardRunsResponse { - - /** BatchCreateTensorboardRunsResponse tensorboardRuns */ - tensorboardRuns?: (google.cloud.aiplatform.v1.ITensorboardRun[]|null); + /** Properties of a WriteTensorboardRunDataResponse. */ + interface IWriteTensorboardRunDataResponse { } - /** Represents a BatchCreateTensorboardRunsResponse. */ - class BatchCreateTensorboardRunsResponse implements IBatchCreateTensorboardRunsResponse { + /** Represents a WriteTensorboardRunDataResponse. */ + class WriteTensorboardRunDataResponse implements IWriteTensorboardRunDataResponse { /** - * Constructs a new BatchCreateTensorboardRunsResponse. + * Constructs a new WriteTensorboardRunDataResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsResponse); - - /** BatchCreateTensorboardRunsResponse tensorboardRuns. */ - public tensorboardRuns: google.cloud.aiplatform.v1.ITensorboardRun[]; + constructor(properties?: google.cloud.aiplatform.v1.IWriteTensorboardRunDataResponse); /** - * Creates a new BatchCreateTensorboardRunsResponse instance using the specified properties. + * Creates a new WriteTensorboardRunDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateTensorboardRunsResponse instance + * @returns WriteTensorboardRunDataResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsResponse): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse; + public static create(properties?: google.cloud.aiplatform.v1.IWriteTensorboardRunDataResponse): google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse; /** - * Encodes the specified BatchCreateTensorboardRunsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse.verify|verify} messages. - * @param message BatchCreateTensorboardRunsResponse message or plain object to encode + * Encodes the specified WriteTensorboardRunDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse.verify|verify} messages. + * @param message WriteTensorboardRunDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IWriteTensorboardRunDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateTensorboardRunsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse.verify|verify} messages. - * @param message BatchCreateTensorboardRunsResponse message or plain object to encode + * Encodes the specified WriteTensorboardRunDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse.verify|verify} messages. + * @param message WriteTensorboardRunDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteTensorboardRunDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateTensorboardRunsResponse message from the specified reader or buffer. + * Decodes a WriteTensorboardRunDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchCreateTensorboardRunsResponse + * @returns WriteTensorboardRunDataResponse * @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.BatchCreateTensorboardRunsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse; /** - * Decodes a BatchCreateTensorboardRunsResponse message from the specified reader or buffer, length delimited. + * Decodes a WriteTensorboardRunDataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateTensorboardRunsResponse + * @returns WriteTensorboardRunDataResponse * @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.BatchCreateTensorboardRunsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse; /** - * Verifies a BatchCreateTensorboardRunsResponse message. + * Verifies a WriteTensorboardRunDataResponse 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 BatchCreateTensorboardRunsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a WriteTensorboardRunDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateTensorboardRunsResponse + * @returns WriteTensorboardRunDataResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse; /** - * Creates a plain object from a BatchCreateTensorboardRunsResponse message. Also converts values to other types if specified. - * @param message BatchCreateTensorboardRunsResponse + * Creates a plain object from a WriteTensorboardRunDataResponse message. Also converts values to other types if specified. + * @param message WriteTensorboardRunDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchCreateTensorboardRunsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateTensorboardRunsResponse to JSON. + * Converts this WriteTensorboardRunDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchCreateTensorboardRunsResponse + * Gets the default type url for WriteTensorboardRunDataResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateTensorboardRunRequest. */ - interface ICreateTensorboardRunRequest { + /** Properties of an ExportTensorboardTimeSeriesDataRequest. */ + interface IExportTensorboardTimeSeriesDataRequest { - /** CreateTensorboardRunRequest parent */ - parent?: (string|null); + /** ExportTensorboardTimeSeriesDataRequest tensorboardTimeSeries */ + tensorboardTimeSeries?: (string|null); - /** CreateTensorboardRunRequest tensorboardRun */ - tensorboardRun?: (google.cloud.aiplatform.v1.ITensorboardRun|null); + /** ExportTensorboardTimeSeriesDataRequest filter */ + filter?: (string|null); - /** CreateTensorboardRunRequest tensorboardRunId */ - tensorboardRunId?: (string|null); + /** ExportTensorboardTimeSeriesDataRequest pageSize */ + pageSize?: (number|null); + + /** ExportTensorboardTimeSeriesDataRequest pageToken */ + pageToken?: (string|null); + + /** ExportTensorboardTimeSeriesDataRequest orderBy */ + orderBy?: (string|null); } - /** Represents a CreateTensorboardRunRequest. */ - class CreateTensorboardRunRequest implements ICreateTensorboardRunRequest { + /** Represents an ExportTensorboardTimeSeriesDataRequest. */ + class ExportTensorboardTimeSeriesDataRequest implements IExportTensorboardTimeSeriesDataRequest { /** - * Constructs a new CreateTensorboardRunRequest. + * Constructs a new ExportTensorboardTimeSeriesDataRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest); + constructor(properties?: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest); - /** CreateTensorboardRunRequest parent. */ - public parent: string; + /** ExportTensorboardTimeSeriesDataRequest tensorboardTimeSeries. */ + public tensorboardTimeSeries: string; - /** CreateTensorboardRunRequest tensorboardRun. */ - public tensorboardRun?: (google.cloud.aiplatform.v1.ITensorboardRun|null); + /** ExportTensorboardTimeSeriesDataRequest filter. */ + public filter: string; - /** CreateTensorboardRunRequest tensorboardRunId. */ - public tensorboardRunId: string; + /** ExportTensorboardTimeSeriesDataRequest pageSize. */ + public pageSize: number; + + /** ExportTensorboardTimeSeriesDataRequest pageToken. */ + public pageToken: string; + + /** ExportTensorboardTimeSeriesDataRequest orderBy. */ + public orderBy: string; /** - * Creates a new CreateTensorboardRunRequest instance using the specified properties. + * Creates a new ExportTensorboardTimeSeriesDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTensorboardRunRequest instance + * @returns ExportTensorboardTimeSeriesDataRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest): google.cloud.aiplatform.v1.CreateTensorboardRunRequest; + public static create(properties?: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest; /** - * Encodes the specified CreateTensorboardRunRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardRunRequest.verify|verify} messages. - * @param message CreateTensorboardRunRequest message or plain object to encode + * Encodes the specified ExportTensorboardTimeSeriesDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest.verify|verify} messages. + * @param message ExportTensorboardTimeSeriesDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTensorboardRunRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardRunRequest.verify|verify} messages. - * @param message CreateTensorboardRunRequest message or plain object to encode + * Encodes the specified ExportTensorboardTimeSeriesDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest.verify|verify} messages. + * @param message ExportTensorboardTimeSeriesDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTensorboardRunRequest message from the specified reader or buffer. + * Decodes an ExportTensorboardTimeSeriesDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTensorboardRunRequest + * @returns ExportTensorboardTimeSeriesDataRequest * @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.CreateTensorboardRunRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest; /** - * Decodes a CreateTensorboardRunRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportTensorboardTimeSeriesDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTensorboardRunRequest + * @returns ExportTensorboardTimeSeriesDataRequest * @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.CreateTensorboardRunRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest; /** - * Verifies a CreateTensorboardRunRequest message. + * Verifies an ExportTensorboardTimeSeriesDataRequest 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 CreateTensorboardRunRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTensorboardTimeSeriesDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTensorboardRunRequest + * @returns ExportTensorboardTimeSeriesDataRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardRunRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest; /** - * Creates a plain object from a CreateTensorboardRunRequest message. Also converts values to other types if specified. - * @param message CreateTensorboardRunRequest + * Creates a plain object from an ExportTensorboardTimeSeriesDataRequest message. Also converts values to other types if specified. + * @param message ExportTensorboardTimeSeriesDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTensorboardRunRequest to JSON. + * Converts this ExportTensorboardTimeSeriesDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateTensorboardRunRequest + * Gets the default type url for ExportTensorboardTimeSeriesDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTensorboardRunRequest. */ - interface IGetTensorboardRunRequest { + /** Properties of an ExportTensorboardTimeSeriesDataResponse. */ + interface IExportTensorboardTimeSeriesDataResponse { - /** GetTensorboardRunRequest name */ - name?: (string|null); + /** ExportTensorboardTimeSeriesDataResponse timeSeriesDataPoints */ + timeSeriesDataPoints?: (google.cloud.aiplatform.v1.ITimeSeriesDataPoint[]|null); + + /** ExportTensorboardTimeSeriesDataResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GetTensorboardRunRequest. */ - class GetTensorboardRunRequest implements IGetTensorboardRunRequest { + /** Represents an ExportTensorboardTimeSeriesDataResponse. */ + class ExportTensorboardTimeSeriesDataResponse implements IExportTensorboardTimeSeriesDataResponse { /** - * Constructs a new GetTensorboardRunRequest. + * Constructs a new ExportTensorboardTimeSeriesDataResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetTensorboardRunRequest); + constructor(properties?: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataResponse); - /** GetTensorboardRunRequest name. */ - public name: string; + /** ExportTensorboardTimeSeriesDataResponse timeSeriesDataPoints. */ + public timeSeriesDataPoints: google.cloud.aiplatform.v1.ITimeSeriesDataPoint[]; + + /** ExportTensorboardTimeSeriesDataResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetTensorboardRunRequest instance using the specified properties. + * Creates a new ExportTensorboardTimeSeriesDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetTensorboardRunRequest instance + * @returns ExportTensorboardTimeSeriesDataResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetTensorboardRunRequest): google.cloud.aiplatform.v1.GetTensorboardRunRequest; + public static create(properties?: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataResponse): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse; /** - * Encodes the specified GetTensorboardRunRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardRunRequest.verify|verify} messages. - * @param message GetTensorboardRunRequest message or plain object to encode + * Encodes the specified ExportTensorboardTimeSeriesDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse.verify|verify} messages. + * @param message ExportTensorboardTimeSeriesDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTensorboardRunRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardRunRequest.verify|verify} messages. - * @param message GetTensorboardRunRequest message or plain object to encode + * Encodes the specified ExportTensorboardTimeSeriesDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse.verify|verify} messages. + * @param message ExportTensorboardTimeSeriesDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTensorboardRunRequest message from the specified reader or buffer. + * Decodes an ExportTensorboardTimeSeriesDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTensorboardRunRequest + * @returns ExportTensorboardTimeSeriesDataResponse * @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.GetTensorboardRunRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse; /** - * Decodes a GetTensorboardRunRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportTensorboardTimeSeriesDataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTensorboardRunRequest + * @returns ExportTensorboardTimeSeriesDataResponse * @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.GetTensorboardRunRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse; /** - * Verifies a GetTensorboardRunRequest message. + * Verifies an ExportTensorboardTimeSeriesDataResponse 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 GetTensorboardRunRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportTensorboardTimeSeriesDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTensorboardRunRequest + * @returns ExportTensorboardTimeSeriesDataResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTensorboardRunRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse; /** - * Creates a plain object from a GetTensorboardRunRequest message. Also converts values to other types if specified. - * @param message GetTensorboardRunRequest + * Creates a plain object from an ExportTensorboardTimeSeriesDataResponse message. Also converts values to other types if specified. + * @param message ExportTensorboardTimeSeriesDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetTensorboardRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTensorboardRunRequest to JSON. + * Converts this ExportTensorboardTimeSeriesDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTensorboardRunRequest + * Gets the default type url for ExportTensorboardTimeSeriesDataResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadTensorboardBlobDataRequest. */ - interface IReadTensorboardBlobDataRequest { - - /** ReadTensorboardBlobDataRequest timeSeries */ - timeSeries?: (string|null); + /** Properties of a CreateTensorboardOperationMetadata. */ + interface ICreateTensorboardOperationMetadata { - /** ReadTensorboardBlobDataRequest blobIds */ - blobIds?: (string[]|null); + /** CreateTensorboardOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents a ReadTensorboardBlobDataRequest. */ - class ReadTensorboardBlobDataRequest implements IReadTensorboardBlobDataRequest { + /** Represents a CreateTensorboardOperationMetadata. */ + class CreateTensorboardOperationMetadata implements ICreateTensorboardOperationMetadata { /** - * Constructs a new ReadTensorboardBlobDataRequest. + * Constructs a new CreateTensorboardOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest); - - /** ReadTensorboardBlobDataRequest timeSeries. */ - public timeSeries: string; + constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardOperationMetadata); - /** ReadTensorboardBlobDataRequest blobIds. */ - public blobIds: string[]; + /** CreateTensorboardOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new ReadTensorboardBlobDataRequest instance using the specified properties. + * Creates a new CreateTensorboardOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ReadTensorboardBlobDataRequest instance + * @returns CreateTensorboardOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest): google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardOperationMetadata): google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata; /** - * Encodes the specified ReadTensorboardBlobDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest.verify|verify} messages. - * @param message ReadTensorboardBlobDataRequest message or plain object to encode + * Encodes the specified CreateTensorboardOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata.verify|verify} messages. + * @param message CreateTensorboardOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadTensorboardBlobDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest.verify|verify} messages. - * @param message ReadTensorboardBlobDataRequest message or plain object to encode + * Encodes the specified CreateTensorboardOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata.verify|verify} messages. + * @param message CreateTensorboardOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardBlobDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadTensorboardBlobDataRequest message from the specified reader or buffer. + * Decodes a CreateTensorboardOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadTensorboardBlobDataRequest + * @returns CreateTensorboardOperationMetadata * @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.ReadTensorboardBlobDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata; /** - * Decodes a ReadTensorboardBlobDataRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTensorboardOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadTensorboardBlobDataRequest + * @returns CreateTensorboardOperationMetadata * @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.ReadTensorboardBlobDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata; /** - * Verifies a ReadTensorboardBlobDataRequest message. + * Verifies a CreateTensorboardOperationMetadata 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 ReadTensorboardBlobDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTensorboardOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadTensorboardBlobDataRequest + * @returns CreateTensorboardOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata; /** - * Creates a plain object from a ReadTensorboardBlobDataRequest message. Also converts values to other types if specified. - * @param message ReadTensorboardBlobDataRequest + * Creates a plain object from a CreateTensorboardOperationMetadata message. Also converts values to other types if specified. + * @param message CreateTensorboardOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadTensorboardBlobDataRequest to JSON. + * Converts this CreateTensorboardOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadTensorboardBlobDataRequest + * Gets the default type url for CreateTensorboardOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadTensorboardBlobDataResponse. */ - interface IReadTensorboardBlobDataResponse { + /** Properties of an UpdateTensorboardOperationMetadata. */ + interface IUpdateTensorboardOperationMetadata { - /** ReadTensorboardBlobDataResponse blobs */ - blobs?: (google.cloud.aiplatform.v1.ITensorboardBlob[]|null); + /** UpdateTensorboardOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); } - /** Represents a ReadTensorboardBlobDataResponse. */ - class ReadTensorboardBlobDataResponse implements IReadTensorboardBlobDataResponse { + /** Represents an UpdateTensorboardOperationMetadata. */ + class UpdateTensorboardOperationMetadata implements IUpdateTensorboardOperationMetadata { /** - * Constructs a new ReadTensorboardBlobDataResponse. + * Constructs a new UpdateTensorboardOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardBlobDataResponse); + constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardOperationMetadata); - /** ReadTensorboardBlobDataResponse blobs. */ - public blobs: google.cloud.aiplatform.v1.ITensorboardBlob[]; + /** UpdateTensorboardOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); /** - * Creates a new ReadTensorboardBlobDataResponse instance using the specified properties. + * Creates a new UpdateTensorboardOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ReadTensorboardBlobDataResponse instance + * @returns UpdateTensorboardOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardBlobDataResponse): google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse; + public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardOperationMetadata): google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata; /** - * Encodes the specified ReadTensorboardBlobDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse.verify|verify} messages. - * @param message ReadTensorboardBlobDataResponse message or plain object to encode + * Encodes the specified UpdateTensorboardOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata.verify|verify} messages. + * @param message UpdateTensorboardOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardBlobDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadTensorboardBlobDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse.verify|verify} messages. - * @param message ReadTensorboardBlobDataResponse message or plain object to encode + * Encodes the specified UpdateTensorboardOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata.verify|verify} messages. + * @param message UpdateTensorboardOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardBlobDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadTensorboardBlobDataResponse message from the specified reader or buffer. + * Decodes an UpdateTensorboardOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadTensorboardBlobDataResponse + * @returns UpdateTensorboardOperationMetadata * @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.ReadTensorboardBlobDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata; /** - * Decodes a ReadTensorboardBlobDataResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateTensorboardOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadTensorboardBlobDataResponse + * @returns UpdateTensorboardOperationMetadata * @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.ReadTensorboardBlobDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata; /** - * Verifies a ReadTensorboardBlobDataResponse message. + * Verifies an UpdateTensorboardOperationMetadata 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 ReadTensorboardBlobDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateTensorboardOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadTensorboardBlobDataResponse + * @returns UpdateTensorboardOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata; /** - * Creates a plain object from a ReadTensorboardBlobDataResponse message. Also converts values to other types if specified. - * @param message ReadTensorboardBlobDataResponse + * Creates a plain object from an UpdateTensorboardOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateTensorboardOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardBlobDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadTensorboardBlobDataResponse to JSON. + * Converts this UpdateTensorboardOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadTensorboardBlobDataResponse + * Gets the default type url for UpdateTensorboardOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTensorboardRunsRequest. */ - interface IListTensorboardRunsRequest { + /** Represents a VizierService */ + class VizierService extends $protobuf.rpc.Service { - /** ListTensorboardRunsRequest parent */ - parent?: (string|null); + /** + * Constructs a new VizierService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** ListTensorboardRunsRequest filter */ - filter?: (string|null); + /** + * Creates new VizierService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): VizierService; - /** ListTensorboardRunsRequest pageSize */ - pageSize?: (number|null); + /** + * Calls CreateStudy. + * @param request CreateStudyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Study + */ + public createStudy(request: google.cloud.aiplatform.v1.ICreateStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.CreateStudyCallback): void; - /** ListTensorboardRunsRequest pageToken */ - pageToken?: (string|null); + /** + * Calls CreateStudy. + * @param request CreateStudyRequest message or plain object + * @returns Promise + */ + public createStudy(request: google.cloud.aiplatform.v1.ICreateStudyRequest): Promise; - /** ListTensorboardRunsRequest orderBy */ - orderBy?: (string|null); + /** + * Calls GetStudy. + * @param request GetStudyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Study + */ + public getStudy(request: google.cloud.aiplatform.v1.IGetStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.GetStudyCallback): void; - /** ListTensorboardRunsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); - } + /** + * Calls GetStudy. + * @param request GetStudyRequest message or plain object + * @returns Promise + */ + public getStudy(request: google.cloud.aiplatform.v1.IGetStudyRequest): Promise; - /** Represents a ListTensorboardRunsRequest. */ - class ListTensorboardRunsRequest implements IListTensorboardRunsRequest { + /** + * Calls ListStudies. + * @param request ListStudiesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListStudiesResponse + */ + public listStudies(request: google.cloud.aiplatform.v1.IListStudiesRequest, callback: google.cloud.aiplatform.v1.VizierService.ListStudiesCallback): void; /** - * Constructs a new ListTensorboardRunsRequest. - * @param [properties] Properties to set + * Calls ListStudies. + * @param request ListStudiesRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardRunsRequest); + public listStudies(request: google.cloud.aiplatform.v1.IListStudiesRequest): Promise; - /** ListTensorboardRunsRequest parent. */ - public parent: string; + /** + * Calls DeleteStudy. + * @param request DeleteStudyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteStudy(request: google.cloud.aiplatform.v1.IDeleteStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.DeleteStudyCallback): void; - /** ListTensorboardRunsRequest filter. */ - public filter: string; + /** + * Calls DeleteStudy. + * @param request DeleteStudyRequest message or plain object + * @returns Promise + */ + public deleteStudy(request: google.cloud.aiplatform.v1.IDeleteStudyRequest): Promise; - /** ListTensorboardRunsRequest pageSize. */ - public pageSize: number; + /** + * Calls LookupStudy. + * @param request LookupStudyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Study + */ + public lookupStudy(request: google.cloud.aiplatform.v1.ILookupStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.LookupStudyCallback): void; - /** ListTensorboardRunsRequest pageToken. */ - public pageToken: string; + /** + * Calls LookupStudy. + * @param request LookupStudyRequest message or plain object + * @returns Promise + */ + public lookupStudy(request: google.cloud.aiplatform.v1.ILookupStudyRequest): Promise; - /** ListTensorboardRunsRequest orderBy. */ - public orderBy: string; + /** + * Calls SuggestTrials. + * @param request SuggestTrialsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public suggestTrials(request: google.cloud.aiplatform.v1.ISuggestTrialsRequest, callback: google.cloud.aiplatform.v1.VizierService.SuggestTrialsCallback): void; - /** ListTensorboardRunsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** + * Calls SuggestTrials. + * @param request SuggestTrialsRequest message or plain object + * @returns Promise + */ + public suggestTrials(request: google.cloud.aiplatform.v1.ISuggestTrialsRequest): Promise; /** - * Creates a new ListTensorboardRunsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListTensorboardRunsRequest instance + * Calls CreateTrial. + * @param request CreateTrialRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Trial */ - public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardRunsRequest): google.cloud.aiplatform.v1.ListTensorboardRunsRequest; + public createTrial(request: google.cloud.aiplatform.v1.ICreateTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.CreateTrialCallback): void; /** - * Encodes the specified ListTensorboardRunsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardRunsRequest.verify|verify} messages. - * @param message ListTensorboardRunsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateTrial. + * @param request CreateTrialRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1.IListTensorboardRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createTrial(request: google.cloud.aiplatform.v1.ICreateTrialRequest): Promise; /** - * Encodes the specified ListTensorboardRunsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardRunsRequest.verify|verify} messages. - * @param message ListTensorboardRunsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetTrial. + * @param request GetTrialRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Trial */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardRunsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public getTrial(request: google.cloud.aiplatform.v1.IGetTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.GetTrialCallback): void; /** - * Decodes a ListTensorboardRunsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListTensorboardRunsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetTrial. + * @param request GetTrialRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTensorboardRunsRequest; + public getTrial(request: google.cloud.aiplatform.v1.IGetTrialRequest): Promise; /** - * Decodes a ListTensorboardRunsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListTensorboardRunsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListTrials. + * @param request ListTrialsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListTrialsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTensorboardRunsRequest; + public listTrials(request: google.cloud.aiplatform.v1.IListTrialsRequest, callback: google.cloud.aiplatform.v1.VizierService.ListTrialsCallback): void; /** - * Verifies a ListTensorboardRunsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListTrials. + * @param request ListTrialsRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public listTrials(request: google.cloud.aiplatform.v1.IListTrialsRequest): Promise; /** - * Creates a ListTensorboardRunsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListTensorboardRunsRequest + * Calls AddTrialMeasurement. + * @param request AddTrialMeasurementRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Trial */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardRunsRequest; + public addTrialMeasurement(request: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, callback: google.cloud.aiplatform.v1.VizierService.AddTrialMeasurementCallback): void; /** - * Creates a plain object from a ListTensorboardRunsRequest message. Also converts values to other types if specified. - * @param message ListTensorboardRunsRequest - * @param [options] Conversion options - * @returns Plain object + * Calls AddTrialMeasurement. + * @param request AddTrialMeasurementRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardRunsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public addTrialMeasurement(request: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest): Promise; /** - * Converts this ListTensorboardRunsRequest to JSON. - * @returns JSON object + * Calls CompleteTrial. + * @param request CompleteTrialRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Trial */ - public toJSON(): { [k: string]: any }; + public completeTrial(request: google.cloud.aiplatform.v1.ICompleteTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.CompleteTrialCallback): void; /** - * Gets the default type url for ListTensorboardRunsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CompleteTrial. + * @param request CompleteTrialRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + public completeTrial(request: google.cloud.aiplatform.v1.ICompleteTrialRequest): Promise; - /** Properties of a ListTensorboardRunsResponse. */ - interface IListTensorboardRunsResponse { + /** + * Calls DeleteTrial. + * @param request DeleteTrialRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public deleteTrial(request: google.cloud.aiplatform.v1.IDeleteTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.DeleteTrialCallback): void; - /** ListTensorboardRunsResponse tensorboardRuns */ - tensorboardRuns?: (google.cloud.aiplatform.v1.ITensorboardRun[]|null); + /** + * Calls DeleteTrial. + * @param request DeleteTrialRequest message or plain object + * @returns Promise + */ + public deleteTrial(request: google.cloud.aiplatform.v1.IDeleteTrialRequest): Promise; - /** ListTensorboardRunsResponse nextPageToken */ - nextPageToken?: (string|null); + /** + * Calls CheckTrialEarlyStoppingState. + * @param request CheckTrialEarlyStoppingStateRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public checkTrialEarlyStoppingState(request: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, callback: google.cloud.aiplatform.v1.VizierService.CheckTrialEarlyStoppingStateCallback): void; + + /** + * Calls CheckTrialEarlyStoppingState. + * @param request CheckTrialEarlyStoppingStateRequest message or plain object + * @returns Promise + */ + public checkTrialEarlyStoppingState(request: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest): Promise; + + /** + * Calls StopTrial. + * @param request StopTrialRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Trial + */ + public stopTrial(request: google.cloud.aiplatform.v1.IStopTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.StopTrialCallback): void; + + /** + * Calls StopTrial. + * @param request StopTrialRequest message or plain object + * @returns Promise + */ + public stopTrial(request: google.cloud.aiplatform.v1.IStopTrialRequest): Promise; + + /** + * Calls ListOptimalTrials. + * @param request ListOptimalTrialsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListOptimalTrialsResponse + */ + public listOptimalTrials(request: google.cloud.aiplatform.v1.IListOptimalTrialsRequest, callback: google.cloud.aiplatform.v1.VizierService.ListOptimalTrialsCallback): void; + + /** + * Calls ListOptimalTrials. + * @param request ListOptimalTrialsRequest message or plain object + * @returns Promise + */ + public listOptimalTrials(request: google.cloud.aiplatform.v1.IListOptimalTrialsRequest): Promise; } - /** Represents a ListTensorboardRunsResponse. */ - class ListTensorboardRunsResponse implements IListTensorboardRunsResponse { + namespace VizierService { /** - * Constructs a new ListTensorboardRunsResponse. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|createStudy}. + * @param error Error, if any + * @param [response] Study */ - constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardRunsResponse); + type CreateStudyCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Study) => void; - /** ListTensorboardRunsResponse tensorboardRuns. */ - public tensorboardRuns: google.cloud.aiplatform.v1.ITensorboardRun[]; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|getStudy}. + * @param error Error, if any + * @param [response] Study + */ + type GetStudyCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Study) => void; - /** ListTensorboardRunsResponse nextPageToken. */ - public nextPageToken: string; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|listStudies}. + * @param error Error, if any + * @param [response] ListStudiesResponse + */ + type ListStudiesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListStudiesResponse) => void; /** - * Creates a new ListTensorboardRunsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListTensorboardRunsResponse instance + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|deleteStudy}. + * @param error Error, if any + * @param [response] Empty */ - public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardRunsResponse): google.cloud.aiplatform.v1.ListTensorboardRunsResponse; + type DeleteStudyCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Encodes the specified ListTensorboardRunsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardRunsResponse.verify|verify} messages. - * @param message ListTensorboardRunsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|lookupStudy}. + * @param error Error, if any + * @param [response] Study */ - public static encode(message: google.cloud.aiplatform.v1.IListTensorboardRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type LookupStudyCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Study) => void; /** - * Encodes the specified ListTensorboardRunsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardRunsResponse.verify|verify} messages. - * @param message ListTensorboardRunsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|suggestTrials}. + * @param error Error, if any + * @param [response] Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardRunsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type SuggestTrialsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a ListTensorboardRunsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListTensorboardRunsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|createTrial}. + * @param error Error, if any + * @param [response] Trial */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTensorboardRunsResponse; + type CreateTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; /** - * Decodes a ListTensorboardRunsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListTensorboardRunsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|getTrial}. + * @param error Error, if any + * @param [response] Trial */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTensorboardRunsResponse; + type GetTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; /** - * Verifies a ListTensorboardRunsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|listTrials}. + * @param error Error, if any + * @param [response] ListTrialsResponse + */ + type ListTrialsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTrialsResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|addTrialMeasurement}. + * @param error Error, if any + * @param [response] Trial + */ + type AddTrialMeasurementCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|completeTrial}. + * @param error Error, if any + * @param [response] Trial */ - public static verify(message: { [k: string]: any }): (string|null); + type CompleteTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; /** - * Creates a ListTensorboardRunsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListTensorboardRunsResponse + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|deleteTrial}. + * @param error Error, if any + * @param [response] Empty */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardRunsResponse; + type DeleteTrialCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Creates a plain object from a ListTensorboardRunsResponse message. Also converts values to other types if specified. - * @param message ListTensorboardRunsResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|checkTrialEarlyStoppingState}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardRunsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type CheckTrialEarlyStoppingStateCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this ListTensorboardRunsResponse to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|stopTrial}. + * @param error Error, if any + * @param [response] Trial */ - public toJSON(): { [k: string]: any }; + type StopTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; /** - * Gets the default type url for ListTensorboardRunsResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|listOptimalTrials}. + * @param error Error, if any + * @param [response] ListOptimalTrialsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type ListOptimalTrialsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListOptimalTrialsResponse) => void; } - /** Properties of an UpdateTensorboardRunRequest. */ - interface IUpdateTensorboardRunRequest { - - /** UpdateTensorboardRunRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Properties of a GetStudyRequest. */ + interface IGetStudyRequest { - /** UpdateTensorboardRunRequest tensorboardRun */ - tensorboardRun?: (google.cloud.aiplatform.v1.ITensorboardRun|null); + /** GetStudyRequest name */ + name?: (string|null); } - /** Represents an UpdateTensorboardRunRequest. */ - class UpdateTensorboardRunRequest implements IUpdateTensorboardRunRequest { + /** Represents a GetStudyRequest. */ + class GetStudyRequest implements IGetStudyRequest { /** - * Constructs a new UpdateTensorboardRunRequest. + * Constructs a new GetStudyRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest); - - /** UpdateTensorboardRunRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.aiplatform.v1.IGetStudyRequest); - /** UpdateTensorboardRunRequest tensorboardRun. */ - public tensorboardRun?: (google.cloud.aiplatform.v1.ITensorboardRun|null); + /** GetStudyRequest name. */ + public name: string; /** - * Creates a new UpdateTensorboardRunRequest instance using the specified properties. + * Creates a new GetStudyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTensorboardRunRequest instance + * @returns GetStudyRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest): google.cloud.aiplatform.v1.UpdateTensorboardRunRequest; + public static create(properties?: google.cloud.aiplatform.v1.IGetStudyRequest): google.cloud.aiplatform.v1.GetStudyRequest; /** - * Encodes the specified UpdateTensorboardRunRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardRunRequest.verify|verify} messages. - * @param message UpdateTensorboardRunRequest message or plain object to encode + * Encodes the specified GetStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetStudyRequest.verify|verify} messages. + * @param message GetStudyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTensorboardRunRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardRunRequest.verify|verify} messages. - * @param message UpdateTensorboardRunRequest message or plain object to encode + * Encodes the specified GetStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetStudyRequest.verify|verify} messages. + * @param message GetStudyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTensorboardRunRequest message from the specified reader or buffer. + * Decodes a GetStudyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTensorboardRunRequest + * @returns GetStudyRequest * @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.UpdateTensorboardRunRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetStudyRequest; /** - * Decodes an UpdateTensorboardRunRequest message from the specified reader or buffer, length delimited. + * Decodes a GetStudyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTensorboardRunRequest + * @returns GetStudyRequest * @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.UpdateTensorboardRunRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetStudyRequest; /** - * Verifies an UpdateTensorboardRunRequest message. + * Verifies a GetStudyRequest 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 UpdateTensorboardRunRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetStudyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTensorboardRunRequest + * @returns GetStudyRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardRunRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetStudyRequest; /** - * Creates a plain object from an UpdateTensorboardRunRequest message. Also converts values to other types if specified. - * @param message UpdateTensorboardRunRequest + * Creates a plain object from a GetStudyRequest message. Also converts values to other types if specified. + * @param message GetStudyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTensorboardRunRequest to JSON. + * Converts this GetStudyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateTensorboardRunRequest + * Gets the default type url for GetStudyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteTensorboardRunRequest. */ - interface IDeleteTensorboardRunRequest { + /** Properties of a CreateStudyRequest. */ + interface ICreateStudyRequest { - /** DeleteTensorboardRunRequest name */ - name?: (string|null); + /** CreateStudyRequest parent */ + parent?: (string|null); + + /** CreateStudyRequest study */ + study?: (google.cloud.aiplatform.v1.IStudy|null); } - /** Represents a DeleteTensorboardRunRequest. */ - class DeleteTensorboardRunRequest implements IDeleteTensorboardRunRequest { + /** Represents a CreateStudyRequest. */ + class CreateStudyRequest implements ICreateStudyRequest { /** - * Constructs a new DeleteTensorboardRunRequest. + * Constructs a new CreateStudyRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateStudyRequest); - /** DeleteTensorboardRunRequest name. */ - public name: string; + /** CreateStudyRequest parent. */ + public parent: string; + + /** CreateStudyRequest study. */ + public study?: (google.cloud.aiplatform.v1.IStudy|null); /** - * Creates a new DeleteTensorboardRunRequest instance using the specified properties. + * Creates a new CreateStudyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTensorboardRunRequest instance + * @returns CreateStudyRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest): google.cloud.aiplatform.v1.DeleteTensorboardRunRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateStudyRequest): google.cloud.aiplatform.v1.CreateStudyRequest; /** - * Encodes the specified DeleteTensorboardRunRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardRunRequest.verify|verify} messages. - * @param message DeleteTensorboardRunRequest message or plain object to encode + * Encodes the specified CreateStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateStudyRequest.verify|verify} messages. + * @param message CreateStudyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTensorboardRunRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardRunRequest.verify|verify} messages. - * @param message DeleteTensorboardRunRequest message or plain object to encode + * Encodes the specified CreateStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateStudyRequest.verify|verify} messages. + * @param message CreateStudyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTensorboardRunRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTensorboardRunRequest message from the specified reader or buffer. + * Decodes a CreateStudyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTensorboardRunRequest + * @returns CreateStudyRequest * @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.DeleteTensorboardRunRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateStudyRequest; /** - * Decodes a DeleteTensorboardRunRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateStudyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTensorboardRunRequest + * @returns CreateStudyRequest * @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.DeleteTensorboardRunRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateStudyRequest; /** - * Verifies a DeleteTensorboardRunRequest message. + * Verifies a CreateStudyRequest 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 DeleteTensorboardRunRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateStudyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTensorboardRunRequest + * @returns CreateStudyRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTensorboardRunRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateStudyRequest; /** - * Creates a plain object from a DeleteTensorboardRunRequest message. Also converts values to other types if specified. - * @param message DeleteTensorboardRunRequest + * Creates a plain object from a CreateStudyRequest message. Also converts values to other types if specified. + * @param message CreateStudyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteTensorboardRunRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTensorboardRunRequest to JSON. + * Converts this CreateStudyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTensorboardRunRequest + * Gets the default type url for CreateStudyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchCreateTensorboardTimeSeriesRequest. */ - interface IBatchCreateTensorboardTimeSeriesRequest { + /** Properties of a ListStudiesRequest. */ + interface IListStudiesRequest { - /** BatchCreateTensorboardTimeSeriesRequest parent */ + /** ListStudiesRequest parent */ parent?: (string|null); - /** BatchCreateTensorboardTimeSeriesRequest requests */ - requests?: (google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest[]|null); + /** ListStudiesRequest pageToken */ + pageToken?: (string|null); + + /** ListStudiesRequest pageSize */ + pageSize?: (number|null); } - /** Represents a BatchCreateTensorboardTimeSeriesRequest. */ - class BatchCreateTensorboardTimeSeriesRequest implements IBatchCreateTensorboardTimeSeriesRequest { + /** Represents a ListStudiesRequest. */ + class ListStudiesRequest implements IListStudiesRequest { /** - * Constructs a new BatchCreateTensorboardTimeSeriesRequest. + * Constructs a new ListStudiesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest); + constructor(properties?: google.cloud.aiplatform.v1.IListStudiesRequest); - /** BatchCreateTensorboardTimeSeriesRequest parent. */ + /** ListStudiesRequest parent. */ public parent: string; - /** BatchCreateTensorboardTimeSeriesRequest requests. */ - public requests: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest[]; + /** ListStudiesRequest pageToken. */ + public pageToken: string; + + /** ListStudiesRequest pageSize. */ + public pageSize: number; /** - * Creates a new BatchCreateTensorboardTimeSeriesRequest instance using the specified properties. + * Creates a new ListStudiesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateTensorboardTimeSeriesRequest instance + * @returns ListStudiesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListStudiesRequest): google.cloud.aiplatform.v1.ListStudiesRequest; /** - * Encodes the specified BatchCreateTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message BatchCreateTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified ListStudiesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesRequest.verify|verify} messages. + * @param message ListStudiesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListStudiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message BatchCreateTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified ListStudiesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesRequest.verify|verify} messages. + * @param message ListStudiesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListStudiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateTensorboardTimeSeriesRequest message from the specified reader or buffer. + * Decodes a ListStudiesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchCreateTensorboardTimeSeriesRequest + * @returns ListStudiesRequest * @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.BatchCreateTensorboardTimeSeriesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListStudiesRequest; /** - * Decodes a BatchCreateTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListStudiesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateTensorboardTimeSeriesRequest + * @returns ListStudiesRequest * @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.BatchCreateTensorboardTimeSeriesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListStudiesRequest; /** - * Verifies a BatchCreateTensorboardTimeSeriesRequest message. + * Verifies a ListStudiesRequest 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 BatchCreateTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListStudiesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateTensorboardTimeSeriesRequest + * @returns ListStudiesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListStudiesRequest; /** - * Creates a plain object from a BatchCreateTensorboardTimeSeriesRequest message. Also converts values to other types if specified. - * @param message BatchCreateTensorboardTimeSeriesRequest + * Creates a plain object from a ListStudiesRequest message. Also converts values to other types if specified. + * @param message ListStudiesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListStudiesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateTensorboardTimeSeriesRequest to JSON. + * Converts this ListStudiesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchCreateTensorboardTimeSeriesRequest + * Gets the default type url for ListStudiesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchCreateTensorboardTimeSeriesResponse. */ - interface IBatchCreateTensorboardTimeSeriesResponse { + /** Properties of a ListStudiesResponse. */ + interface IListStudiesResponse { - /** BatchCreateTensorboardTimeSeriesResponse tensorboardTimeSeries */ - tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries[]|null); + /** ListStudiesResponse studies */ + studies?: (google.cloud.aiplatform.v1.IStudy[]|null); + + /** ListStudiesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a BatchCreateTensorboardTimeSeriesResponse. */ - class BatchCreateTensorboardTimeSeriesResponse implements IBatchCreateTensorboardTimeSeriesResponse { + /** Represents a ListStudiesResponse. */ + class ListStudiesResponse implements IListStudiesResponse { /** - * Constructs a new BatchCreateTensorboardTimeSeriesResponse. + * Constructs a new ListStudiesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListStudiesResponse); - /** BatchCreateTensorboardTimeSeriesResponse tensorboardTimeSeries. */ - public tensorboardTimeSeries: google.cloud.aiplatform.v1.ITensorboardTimeSeries[]; + /** ListStudiesResponse studies. */ + public studies: google.cloud.aiplatform.v1.IStudy[]; + + /** ListStudiesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new BatchCreateTensorboardTimeSeriesResponse instance using the specified properties. + * Creates a new ListStudiesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateTensorboardTimeSeriesResponse instance + * @returns ListStudiesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesResponse): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListStudiesResponse): google.cloud.aiplatform.v1.ListStudiesResponse; /** - * Encodes the specified BatchCreateTensorboardTimeSeriesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse.verify|verify} messages. - * @param message BatchCreateTensorboardTimeSeriesResponse message or plain object to encode + * Encodes the specified ListStudiesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesResponse.verify|verify} messages. + * @param message ListStudiesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListStudiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateTensorboardTimeSeriesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse.verify|verify} messages. - * @param message BatchCreateTensorboardTimeSeriesResponse message or plain object to encode + * Encodes the specified ListStudiesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesResponse.verify|verify} messages. + * @param message ListStudiesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchCreateTensorboardTimeSeriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListStudiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateTensorboardTimeSeriesResponse message from the specified reader or buffer. + * Decodes a ListStudiesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchCreateTensorboardTimeSeriesResponse + * @returns ListStudiesResponse * @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.BatchCreateTensorboardTimeSeriesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListStudiesResponse; /** - * Decodes a BatchCreateTensorboardTimeSeriesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListStudiesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateTensorboardTimeSeriesResponse + * @returns ListStudiesResponse * @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.BatchCreateTensorboardTimeSeriesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListStudiesResponse; /** - * Verifies a BatchCreateTensorboardTimeSeriesResponse message. + * Verifies a ListStudiesResponse 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 BatchCreateTensorboardTimeSeriesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListStudiesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateTensorboardTimeSeriesResponse + * @returns ListStudiesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListStudiesResponse; /** - * Creates a plain object from a BatchCreateTensorboardTimeSeriesResponse message. Also converts values to other types if specified. - * @param message BatchCreateTensorboardTimeSeriesResponse + * Creates a plain object from a ListStudiesResponse message. Also converts values to other types if specified. + * @param message ListStudiesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListStudiesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateTensorboardTimeSeriesResponse to JSON. + * Converts this ListStudiesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchCreateTensorboardTimeSeriesResponse + * Gets the default type url for ListStudiesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateTensorboardTimeSeriesRequest. */ - interface ICreateTensorboardTimeSeriesRequest { - - /** CreateTensorboardTimeSeriesRequest parent */ - parent?: (string|null); - - /** CreateTensorboardTimeSeriesRequest tensorboardTimeSeriesId */ - tensorboardTimeSeriesId?: (string|null); + /** Properties of a DeleteStudyRequest. */ + interface IDeleteStudyRequest { - /** CreateTensorboardTimeSeriesRequest tensorboardTimeSeries */ - tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries|null); + /** DeleteStudyRequest name */ + name?: (string|null); } - /** Represents a CreateTensorboardTimeSeriesRequest. */ - class CreateTensorboardTimeSeriesRequest implements ICreateTensorboardTimeSeriesRequest { + /** Represents a DeleteStudyRequest. */ + class DeleteStudyRequest implements IDeleteStudyRequest { /** - * Constructs a new CreateTensorboardTimeSeriesRequest. + * Constructs a new DeleteStudyRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest); - - /** CreateTensorboardTimeSeriesRequest parent. */ - public parent: string; - - /** CreateTensorboardTimeSeriesRequest tensorboardTimeSeriesId. */ - public tensorboardTimeSeriesId: string; + constructor(properties?: google.cloud.aiplatform.v1.IDeleteStudyRequest); - /** CreateTensorboardTimeSeriesRequest tensorboardTimeSeries. */ - public tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries|null); + /** DeleteStudyRequest name. */ + public name: string; /** - * Creates a new CreateTensorboardTimeSeriesRequest instance using the specified properties. + * Creates a new DeleteStudyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTensorboardTimeSeriesRequest instance + * @returns DeleteStudyRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteStudyRequest): google.cloud.aiplatform.v1.DeleteStudyRequest; /** - * Encodes the specified CreateTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message CreateTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified DeleteStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteStudyRequest.verify|verify} messages. + * @param message DeleteStudyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message CreateTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified DeleteStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteStudyRequest.verify|verify} messages. + * @param message DeleteStudyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTensorboardTimeSeriesRequest message from the specified reader or buffer. + * Decodes a DeleteStudyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTensorboardTimeSeriesRequest + * @returns DeleteStudyRequest * @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.CreateTensorboardTimeSeriesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteStudyRequest; /** - * Decodes a CreateTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteStudyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTensorboardTimeSeriesRequest + * @returns DeleteStudyRequest * @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.CreateTensorboardTimeSeriesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteStudyRequest; /** - * Verifies a CreateTensorboardTimeSeriesRequest message. + * Verifies a DeleteStudyRequest 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 CreateTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteStudyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTensorboardTimeSeriesRequest + * @returns DeleteStudyRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteStudyRequest; /** - * Creates a plain object from a CreateTensorboardTimeSeriesRequest message. Also converts values to other types if specified. - * @param message CreateTensorboardTimeSeriesRequest + * Creates a plain object from a DeleteStudyRequest message. Also converts values to other types if specified. + * @param message DeleteStudyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTensorboardTimeSeriesRequest to JSON. + * Converts this DeleteStudyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateTensorboardTimeSeriesRequest + * Gets the default type url for DeleteStudyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTensorboardTimeSeriesRequest. */ - interface IGetTensorboardTimeSeriesRequest { + /** Properties of a LookupStudyRequest. */ + interface ILookupStudyRequest { - /** GetTensorboardTimeSeriesRequest name */ - name?: (string|null); + /** LookupStudyRequest parent */ + parent?: (string|null); + + /** LookupStudyRequest displayName */ + displayName?: (string|null); } - /** Represents a GetTensorboardTimeSeriesRequest. */ - class GetTensorboardTimeSeriesRequest implements IGetTensorboardTimeSeriesRequest { + /** Represents a LookupStudyRequest. */ + class LookupStudyRequest implements ILookupStudyRequest { /** - * Constructs a new GetTensorboardTimeSeriesRequest. + * Constructs a new LookupStudyRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest); + constructor(properties?: google.cloud.aiplatform.v1.ILookupStudyRequest); - /** GetTensorboardTimeSeriesRequest name. */ - public name: string; + /** LookupStudyRequest parent. */ + public parent: string; + + /** LookupStudyRequest displayName. */ + public displayName: string; /** - * Creates a new GetTensorboardTimeSeriesRequest instance using the specified properties. + * Creates a new LookupStudyRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetTensorboardTimeSeriesRequest instance + * @returns LookupStudyRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest; + public static create(properties?: google.cloud.aiplatform.v1.ILookupStudyRequest): google.cloud.aiplatform.v1.LookupStudyRequest; /** - * Encodes the specified GetTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message GetTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified LookupStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.LookupStudyRequest.verify|verify} messages. + * @param message LookupStudyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ILookupStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message GetTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified LookupStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LookupStudyRequest.verify|verify} messages. + * @param message LookupStudyRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ILookupStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTensorboardTimeSeriesRequest message from the specified reader or buffer. + * Decodes a LookupStudyRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTensorboardTimeSeriesRequest + * @returns LookupStudyRequest * @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.GetTensorboardTimeSeriesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.LookupStudyRequest; /** - * Decodes a GetTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. + * Decodes a LookupStudyRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTensorboardTimeSeriesRequest + * @returns LookupStudyRequest * @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.GetTensorboardTimeSeriesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.LookupStudyRequest; /** - * Verifies a GetTensorboardTimeSeriesRequest message. + * Verifies a LookupStudyRequest 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 GetTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LookupStudyRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTensorboardTimeSeriesRequest + * @returns LookupStudyRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.LookupStudyRequest; /** - * Creates a plain object from a GetTensorboardTimeSeriesRequest message. Also converts values to other types if specified. - * @param message GetTensorboardTimeSeriesRequest + * Creates a plain object from a LookupStudyRequest message. Also converts values to other types if specified. + * @param message LookupStudyRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.LookupStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTensorboardTimeSeriesRequest to JSON. + * Converts this LookupStudyRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTensorboardTimeSeriesRequest + * Gets the default type url for LookupStudyRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTensorboardTimeSeriesRequest. */ - interface IListTensorboardTimeSeriesRequest { + /** Properties of a SuggestTrialsRequest. */ + interface ISuggestTrialsRequest { - /** ListTensorboardTimeSeriesRequest parent */ + /** SuggestTrialsRequest parent */ parent?: (string|null); - /** ListTensorboardTimeSeriesRequest filter */ - filter?: (string|null); - - /** ListTensorboardTimeSeriesRequest pageSize */ - pageSize?: (number|null); - - /** ListTensorboardTimeSeriesRequest pageToken */ - pageToken?: (string|null); - - /** ListTensorboardTimeSeriesRequest orderBy */ - orderBy?: (string|null); + /** SuggestTrialsRequest suggestionCount */ + suggestionCount?: (number|null); - /** ListTensorboardTimeSeriesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** SuggestTrialsRequest clientId */ + clientId?: (string|null); } - /** Represents a ListTensorboardTimeSeriesRequest. */ - class ListTensorboardTimeSeriesRequest implements IListTensorboardTimeSeriesRequest { + /** Represents a SuggestTrialsRequest. */ + class SuggestTrialsRequest implements ISuggestTrialsRequest { /** - * Constructs a new ListTensorboardTimeSeriesRequest. + * Constructs a new SuggestTrialsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest); + constructor(properties?: google.cloud.aiplatform.v1.ISuggestTrialsRequest); - /** ListTensorboardTimeSeriesRequest parent. */ + /** SuggestTrialsRequest parent. */ public parent: string; - /** ListTensorboardTimeSeriesRequest filter. */ - public filter: string; - - /** ListTensorboardTimeSeriesRequest pageSize. */ - public pageSize: number; - - /** ListTensorboardTimeSeriesRequest pageToken. */ - public pageToken: string; - - /** ListTensorboardTimeSeriesRequest orderBy. */ - public orderBy: string; + /** SuggestTrialsRequest suggestionCount. */ + public suggestionCount: number; - /** ListTensorboardTimeSeriesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** SuggestTrialsRequest clientId. */ + public clientId: string; /** - * Creates a new ListTensorboardTimeSeriesRequest instance using the specified properties. + * Creates a new SuggestTrialsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListTensorboardTimeSeriesRequest instance + * @returns SuggestTrialsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest; + public static create(properties?: google.cloud.aiplatform.v1.ISuggestTrialsRequest): google.cloud.aiplatform.v1.SuggestTrialsRequest; /** - * Encodes the specified ListTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message ListTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified SuggestTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsRequest.verify|verify} messages. + * @param message SuggestTrialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISuggestTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message ListTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified SuggestTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsRequest.verify|verify} messages. + * @param message SuggestTrialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISuggestTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTensorboardTimeSeriesRequest message from the specified reader or buffer. + * Decodes a SuggestTrialsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTensorboardTimeSeriesRequest + * @returns SuggestTrialsRequest * @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.ListTensorboardTimeSeriesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SuggestTrialsRequest; /** - * Decodes a ListTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. + * Decodes a SuggestTrialsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTensorboardTimeSeriesRequest + * @returns SuggestTrialsRequest * @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.ListTensorboardTimeSeriesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SuggestTrialsRequest; /** - * Verifies a ListTensorboardTimeSeriesRequest message. + * Verifies a SuggestTrialsRequest 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 ListTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SuggestTrialsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTensorboardTimeSeriesRequest + * @returns SuggestTrialsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SuggestTrialsRequest; /** - * Creates a plain object from a ListTensorboardTimeSeriesRequest message. Also converts values to other types if specified. - * @param message ListTensorboardTimeSeriesRequest + * Creates a plain object from a SuggestTrialsRequest message. Also converts values to other types if specified. + * @param message SuggestTrialsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SuggestTrialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTensorboardTimeSeriesRequest to JSON. + * Converts this SuggestTrialsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTensorboardTimeSeriesRequest + * Gets the default type url for SuggestTrialsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTensorboardTimeSeriesResponse. */ - interface IListTensorboardTimeSeriesResponse { + /** Properties of a SuggestTrialsResponse. */ + interface ISuggestTrialsResponse { - /** ListTensorboardTimeSeriesResponse tensorboardTimeSeries */ - tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries[]|null); + /** SuggestTrialsResponse trials */ + trials?: (google.cloud.aiplatform.v1.ITrial[]|null); - /** ListTensorboardTimeSeriesResponse nextPageToken */ - nextPageToken?: (string|null); + /** SuggestTrialsResponse studyState */ + studyState?: (google.cloud.aiplatform.v1.Study.State|keyof typeof google.cloud.aiplatform.v1.Study.State|null); + + /** SuggestTrialsResponse startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** SuggestTrialsResponse endTime */ + endTime?: (google.protobuf.ITimestamp|null); } - /** Represents a ListTensorboardTimeSeriesResponse. */ - class ListTensorboardTimeSeriesResponse implements IListTensorboardTimeSeriesResponse { + /** Represents a SuggestTrialsResponse. */ + class SuggestTrialsResponse implements ISuggestTrialsResponse { /** - * Constructs a new ListTensorboardTimeSeriesResponse. + * Constructs a new SuggestTrialsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesResponse); + constructor(properties?: google.cloud.aiplatform.v1.ISuggestTrialsResponse); - /** ListTensorboardTimeSeriesResponse tensorboardTimeSeries. */ - public tensorboardTimeSeries: google.cloud.aiplatform.v1.ITensorboardTimeSeries[]; + /** SuggestTrialsResponse trials. */ + public trials: google.cloud.aiplatform.v1.ITrial[]; - /** ListTensorboardTimeSeriesResponse nextPageToken. */ - public nextPageToken: string; + /** SuggestTrialsResponse studyState. */ + public studyState: (google.cloud.aiplatform.v1.Study.State|keyof typeof google.cloud.aiplatform.v1.Study.State); + + /** SuggestTrialsResponse startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** SuggestTrialsResponse endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new ListTensorboardTimeSeriesResponse instance using the specified properties. + * Creates a new SuggestTrialsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListTensorboardTimeSeriesResponse instance + * @returns SuggestTrialsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesResponse): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse; + public static create(properties?: google.cloud.aiplatform.v1.ISuggestTrialsResponse): google.cloud.aiplatform.v1.SuggestTrialsResponse; /** - * Encodes the specified ListTensorboardTimeSeriesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse.verify|verify} messages. - * @param message ListTensorboardTimeSeriesResponse message or plain object to encode + * Encodes the specified SuggestTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsResponse.verify|verify} messages. + * @param message SuggestTrialsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISuggestTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTensorboardTimeSeriesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse.verify|verify} messages. - * @param message ListTensorboardTimeSeriesResponse message or plain object to encode + * Encodes the specified SuggestTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsResponse.verify|verify} messages. + * @param message SuggestTrialsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTensorboardTimeSeriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISuggestTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTensorboardTimeSeriesResponse message from the specified reader or buffer. + * Decodes a SuggestTrialsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTensorboardTimeSeriesResponse + * @returns SuggestTrialsResponse * @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.ListTensorboardTimeSeriesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SuggestTrialsResponse; /** - * Decodes a ListTensorboardTimeSeriesResponse message from the specified reader or buffer, length delimited. + * Decodes a SuggestTrialsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTensorboardTimeSeriesResponse + * @returns SuggestTrialsResponse * @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.ListTensorboardTimeSeriesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SuggestTrialsResponse; /** - * Verifies a ListTensorboardTimeSeriesResponse message. + * Verifies a SuggestTrialsResponse 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 ListTensorboardTimeSeriesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SuggestTrialsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTensorboardTimeSeriesResponse + * @returns SuggestTrialsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SuggestTrialsResponse; /** - * Creates a plain object from a ListTensorboardTimeSeriesResponse message. Also converts values to other types if specified. - * @param message ListTensorboardTimeSeriesResponse + * Creates a plain object from a SuggestTrialsResponse message. Also converts values to other types if specified. + * @param message SuggestTrialsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTensorboardTimeSeriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SuggestTrialsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTensorboardTimeSeriesResponse to JSON. + * Converts this SuggestTrialsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTensorboardTimeSeriesResponse + * Gets the default type url for SuggestTrialsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateTensorboardTimeSeriesRequest. */ - interface IUpdateTensorboardTimeSeriesRequest { + /** Properties of a SuggestTrialsMetadata. */ + interface ISuggestTrialsMetadata { - /** UpdateTensorboardTimeSeriesRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** SuggestTrialsMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** UpdateTensorboardTimeSeriesRequest tensorboardTimeSeries */ - tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries|null); + /** SuggestTrialsMetadata clientId */ + clientId?: (string|null); } - /** Represents an UpdateTensorboardTimeSeriesRequest. */ - class UpdateTensorboardTimeSeriesRequest implements IUpdateTensorboardTimeSeriesRequest { + /** Represents a SuggestTrialsMetadata. */ + class SuggestTrialsMetadata implements ISuggestTrialsMetadata { /** - * Constructs a new UpdateTensorboardTimeSeriesRequest. + * Constructs a new SuggestTrialsMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest); + constructor(properties?: google.cloud.aiplatform.v1.ISuggestTrialsMetadata); - /** UpdateTensorboardTimeSeriesRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** SuggestTrialsMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** UpdateTensorboardTimeSeriesRequest tensorboardTimeSeries. */ - public tensorboardTimeSeries?: (google.cloud.aiplatform.v1.ITensorboardTimeSeries|null); + /** SuggestTrialsMetadata clientId. */ + public clientId: string; /** - * Creates a new UpdateTensorboardTimeSeriesRequest instance using the specified properties. + * Creates a new SuggestTrialsMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTensorboardTimeSeriesRequest instance + * @returns SuggestTrialsMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest; + public static create(properties?: google.cloud.aiplatform.v1.ISuggestTrialsMetadata): google.cloud.aiplatform.v1.SuggestTrialsMetadata; /** - * Encodes the specified UpdateTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message UpdateTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified SuggestTrialsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsMetadata.verify|verify} messages. + * @param message SuggestTrialsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ISuggestTrialsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message UpdateTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified SuggestTrialsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsMetadata.verify|verify} messages. + * @param message SuggestTrialsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISuggestTrialsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTensorboardTimeSeriesRequest message from the specified reader or buffer. + * Decodes a SuggestTrialsMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTensorboardTimeSeriesRequest + * @returns SuggestTrialsMetadata * @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.UpdateTensorboardTimeSeriesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SuggestTrialsMetadata; /** - * Decodes an UpdateTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. + * Decodes a SuggestTrialsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTensorboardTimeSeriesRequest + * @returns SuggestTrialsMetadata * @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.UpdateTensorboardTimeSeriesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SuggestTrialsMetadata; /** - * Verifies an UpdateTensorboardTimeSeriesRequest message. + * Verifies a SuggestTrialsMetadata 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 UpdateTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SuggestTrialsMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTensorboardTimeSeriesRequest + * @returns SuggestTrialsMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SuggestTrialsMetadata; /** - * Creates a plain object from an UpdateTensorboardTimeSeriesRequest message. Also converts values to other types if specified. - * @param message UpdateTensorboardTimeSeriesRequest + * Creates a plain object from a SuggestTrialsMetadata message. Also converts values to other types if specified. + * @param message SuggestTrialsMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.SuggestTrialsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTensorboardTimeSeriesRequest to JSON. + * Converts this SuggestTrialsMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateTensorboardTimeSeriesRequest + * Gets the default type url for SuggestTrialsMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteTensorboardTimeSeriesRequest. */ - interface IDeleteTensorboardTimeSeriesRequest { + /** Properties of a CreateTrialRequest. */ + interface ICreateTrialRequest { - /** DeleteTensorboardTimeSeriesRequest name */ - name?: (string|null); + /** CreateTrialRequest parent */ + parent?: (string|null); + + /** CreateTrialRequest trial */ + trial?: (google.cloud.aiplatform.v1.ITrial|null); } - /** Represents a DeleteTensorboardTimeSeriesRequest. */ - class DeleteTensorboardTimeSeriesRequest implements IDeleteTensorboardTimeSeriesRequest { + /** Represents a CreateTrialRequest. */ + class CreateTrialRequest implements ICreateTrialRequest { /** - * Constructs a new DeleteTensorboardTimeSeriesRequest. + * Constructs a new CreateTrialRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICreateTrialRequest); - /** DeleteTensorboardTimeSeriesRequest name. */ - public name: string; + /** CreateTrialRequest parent. */ + public parent: string; + + /** CreateTrialRequest trial. */ + public trial?: (google.cloud.aiplatform.v1.ITrial|null); /** - * Creates a new DeleteTensorboardTimeSeriesRequest instance using the specified properties. + * Creates a new CreateTrialRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTensorboardTimeSeriesRequest instance + * @returns CreateTrialRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest): google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICreateTrialRequest): google.cloud.aiplatform.v1.CreateTrialRequest; /** - * Encodes the specified DeleteTensorboardTimeSeriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message DeleteTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified CreateTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrialRequest.verify|verify} messages. + * @param message CreateTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICreateTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTensorboardTimeSeriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest.verify|verify} messages. - * @param message DeleteTensorboardTimeSeriesRequest message or plain object to encode + * Encodes the specified CreateTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrialRequest.verify|verify} messages. + * @param message CreateTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTensorboardTimeSeriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTensorboardTimeSeriesRequest message from the specified reader or buffer. + * Decodes a CreateTrialRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTensorboardTimeSeriesRequest + * @returns CreateTrialRequest * @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.DeleteTensorboardTimeSeriesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CreateTrialRequest; /** - * Decodes a DeleteTensorboardTimeSeriesRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTrialRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTensorboardTimeSeriesRequest + * @returns CreateTrialRequest * @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.DeleteTensorboardTimeSeriesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CreateTrialRequest; /** - * Verifies a DeleteTensorboardTimeSeriesRequest message. + * Verifies a CreateTrialRequest 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 DeleteTensorboardTimeSeriesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTrialRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTensorboardTimeSeriesRequest + * @returns CreateTrialRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTrialRequest; /** - * Creates a plain object from a DeleteTensorboardTimeSeriesRequest message. Also converts values to other types if specified. - * @param message DeleteTensorboardTimeSeriesRequest + * Creates a plain object from a CreateTrialRequest message. Also converts values to other types if specified. + * @param message CreateTrialRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteTensorboardTimeSeriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CreateTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTensorboardTimeSeriesRequest to JSON. + * Converts this CreateTrialRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTensorboardTimeSeriesRequest + * Gets the default type url for CreateTrialRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchReadTensorboardTimeSeriesDataRequest. */ - interface IBatchReadTensorboardTimeSeriesDataRequest { - - /** BatchReadTensorboardTimeSeriesDataRequest tensorboard */ - tensorboard?: (string|null); + /** Properties of a GetTrialRequest. */ + interface IGetTrialRequest { - /** BatchReadTensorboardTimeSeriesDataRequest timeSeries */ - timeSeries?: (string[]|null); + /** GetTrialRequest name */ + name?: (string|null); } - /** Represents a BatchReadTensorboardTimeSeriesDataRequest. */ - class BatchReadTensorboardTimeSeriesDataRequest implements IBatchReadTensorboardTimeSeriesDataRequest { + /** Represents a GetTrialRequest. */ + class GetTrialRequest implements IGetTrialRequest { /** - * Constructs a new BatchReadTensorboardTimeSeriesDataRequest. + * Constructs a new GetTrialRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest); - - /** BatchReadTensorboardTimeSeriesDataRequest tensorboard. */ - public tensorboard: string; + constructor(properties?: google.cloud.aiplatform.v1.IGetTrialRequest); - /** BatchReadTensorboardTimeSeriesDataRequest timeSeries. */ - public timeSeries: string[]; + /** GetTrialRequest name. */ + public name: string; /** - * Creates a new BatchReadTensorboardTimeSeriesDataRequest instance using the specified properties. + * Creates a new GetTrialRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchReadTensorboardTimeSeriesDataRequest instance + * @returns GetTrialRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest; + public static create(properties?: google.cloud.aiplatform.v1.IGetTrialRequest): google.cloud.aiplatform.v1.GetTrialRequest; /** - * Encodes the specified BatchReadTensorboardTimeSeriesDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest.verify|verify} messages. - * @param message BatchReadTensorboardTimeSeriesDataRequest message or plain object to encode + * Encodes the specified GetTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrialRequest.verify|verify} messages. + * @param message GetTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IGetTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchReadTensorboardTimeSeriesDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest.verify|verify} messages. - * @param message BatchReadTensorboardTimeSeriesDataRequest message or plain object to encode + * Encodes the specified GetTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrialRequest.verify|verify} messages. + * @param message GetTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchReadTensorboardTimeSeriesDataRequest message from the specified reader or buffer. + * Decodes a GetTrialRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchReadTensorboardTimeSeriesDataRequest + * @returns GetTrialRequest * @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.BatchReadTensorboardTimeSeriesDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.GetTrialRequest; /** - * Decodes a BatchReadTensorboardTimeSeriesDataRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTrialRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchReadTensorboardTimeSeriesDataRequest + * @returns GetTrialRequest * @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.BatchReadTensorboardTimeSeriesDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.GetTrialRequest; /** - * Verifies a BatchReadTensorboardTimeSeriesDataRequest message. + * Verifies a GetTrialRequest 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 BatchReadTensorboardTimeSeriesDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTrialRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchReadTensorboardTimeSeriesDataRequest + * @returns GetTrialRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTrialRequest; /** - * Creates a plain object from a BatchReadTensorboardTimeSeriesDataRequest message. Also converts values to other types if specified. - * @param message BatchReadTensorboardTimeSeriesDataRequest + * Creates a plain object from a GetTrialRequest message. Also converts values to other types if specified. + * @param message GetTrialRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.GetTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchReadTensorboardTimeSeriesDataRequest to JSON. + * Converts this GetTrialRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchReadTensorboardTimeSeriesDataRequest + * Gets the default type url for GetTrialRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchReadTensorboardTimeSeriesDataResponse. */ - interface IBatchReadTensorboardTimeSeriesDataResponse { + /** Properties of a ListTrialsRequest. */ + interface IListTrialsRequest { - /** BatchReadTensorboardTimeSeriesDataResponse timeSeriesData */ - timeSeriesData?: (google.cloud.aiplatform.v1.ITimeSeriesData[]|null); + /** ListTrialsRequest parent */ + parent?: (string|null); + + /** ListTrialsRequest pageToken */ + pageToken?: (string|null); + + /** ListTrialsRequest pageSize */ + pageSize?: (number|null); } - /** Represents a BatchReadTensorboardTimeSeriesDataResponse. */ - class BatchReadTensorboardTimeSeriesDataResponse implements IBatchReadTensorboardTimeSeriesDataResponse { + /** Represents a ListTrialsRequest. */ + class ListTrialsRequest implements IListTrialsRequest { /** - * Constructs a new BatchReadTensorboardTimeSeriesDataResponse. + * Constructs a new ListTrialsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataResponse); + constructor(properties?: google.cloud.aiplatform.v1.IListTrialsRequest); - /** BatchReadTensorboardTimeSeriesDataResponse timeSeriesData. */ - public timeSeriesData: google.cloud.aiplatform.v1.ITimeSeriesData[]; + /** ListTrialsRequest parent. */ + public parent: string; + + /** ListTrialsRequest pageToken. */ + public pageToken: string; + + /** ListTrialsRequest pageSize. */ + public pageSize: number; /** - * Creates a new BatchReadTensorboardTimeSeriesDataResponse instance using the specified properties. + * Creates a new ListTrialsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchReadTensorboardTimeSeriesDataResponse instance + * @returns ListTrialsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataResponse): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse; + public static create(properties?: google.cloud.aiplatform.v1.IListTrialsRequest): google.cloud.aiplatform.v1.ListTrialsRequest; /** - * Encodes the specified BatchReadTensorboardTimeSeriesDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse.verify|verify} messages. - * @param message BatchReadTensorboardTimeSeriesDataResponse message or plain object to encode + * Encodes the specified ListTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsRequest.verify|verify} messages. + * @param message ListTrialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchReadTensorboardTimeSeriesDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse.verify|verify} messages. - * @param message BatchReadTensorboardTimeSeriesDataResponse message or plain object to encode + * Encodes the specified ListTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsRequest.verify|verify} messages. + * @param message ListTrialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchReadTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchReadTensorboardTimeSeriesDataResponse message from the specified reader or buffer. + * Decodes a ListTrialsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchReadTensorboardTimeSeriesDataResponse + * @returns ListTrialsRequest * @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.BatchReadTensorboardTimeSeriesDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTrialsRequest; /** - * Decodes a BatchReadTensorboardTimeSeriesDataResponse message from the specified reader or buffer, length delimited. + * Decodes a ListTrialsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchReadTensorboardTimeSeriesDataResponse + * @returns ListTrialsRequest * @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.BatchReadTensorboardTimeSeriesDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTrialsRequest; /** - * Verifies a BatchReadTensorboardTimeSeriesDataResponse message. + * Verifies a ListTrialsRequest 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 BatchReadTensorboardTimeSeriesDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListTrialsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchReadTensorboardTimeSeriesDataResponse + * @returns ListTrialsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrialsRequest; /** - * Creates a plain object from a BatchReadTensorboardTimeSeriesDataResponse message. Also converts values to other types if specified. - * @param message BatchReadTensorboardTimeSeriesDataResponse + * Creates a plain object from a ListTrialsRequest message. Also converts values to other types if specified. + * @param message ListTrialsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListTrialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchReadTensorboardTimeSeriesDataResponse to JSON. + * Converts this ListTrialsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchReadTensorboardTimeSeriesDataResponse + * Gets the default type url for ListTrialsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadTensorboardTimeSeriesDataRequest. */ - interface IReadTensorboardTimeSeriesDataRequest { - - /** ReadTensorboardTimeSeriesDataRequest tensorboardTimeSeries */ - tensorboardTimeSeries?: (string|null); + /** Properties of a ListTrialsResponse. */ + interface IListTrialsResponse { - /** ReadTensorboardTimeSeriesDataRequest maxDataPoints */ - maxDataPoints?: (number|null); + /** ListTrialsResponse trials */ + trials?: (google.cloud.aiplatform.v1.ITrial[]|null); - /** ReadTensorboardTimeSeriesDataRequest filter */ - filter?: (string|null); + /** ListTrialsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a ReadTensorboardTimeSeriesDataRequest. */ - class ReadTensorboardTimeSeriesDataRequest implements IReadTensorboardTimeSeriesDataRequest { + /** Represents a ListTrialsResponse. */ + class ListTrialsResponse implements IListTrialsResponse { /** - * Constructs a new ReadTensorboardTimeSeriesDataRequest. + * Constructs a new ListTrialsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest); - - /** ReadTensorboardTimeSeriesDataRequest tensorboardTimeSeries. */ - public tensorboardTimeSeries: string; + constructor(properties?: google.cloud.aiplatform.v1.IListTrialsResponse); - /** ReadTensorboardTimeSeriesDataRequest maxDataPoints. */ - public maxDataPoints: number; + /** ListTrialsResponse trials. */ + public trials: google.cloud.aiplatform.v1.ITrial[]; - /** ReadTensorboardTimeSeriesDataRequest filter. */ - public filter: string; + /** ListTrialsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ReadTensorboardTimeSeriesDataRequest instance using the specified properties. + * Creates a new ListTrialsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReadTensorboardTimeSeriesDataRequest instance + * @returns ListTrialsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest; + public static create(properties?: google.cloud.aiplatform.v1.IListTrialsResponse): google.cloud.aiplatform.v1.ListTrialsResponse; - /** - * Encodes the specified ReadTensorboardTimeSeriesDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest.verify|verify} messages. - * @param message ReadTensorboardTimeSeriesDataRequest message or plain object to encode + /** + * Encodes the specified ListTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsResponse.verify|verify} messages. + * @param message ListTrialsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadTensorboardTimeSeriesDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest.verify|verify} messages. - * @param message ReadTensorboardTimeSeriesDataRequest message or plain object to encode + * Encodes the specified ListTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsResponse.verify|verify} messages. + * @param message ListTrialsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadTensorboardTimeSeriesDataRequest message from the specified reader or buffer. + * Decodes a ListTrialsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadTensorboardTimeSeriesDataRequest + * @returns ListTrialsResponse * @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.ReadTensorboardTimeSeriesDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListTrialsResponse; /** - * Decodes a ReadTensorboardTimeSeriesDataRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTrialsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadTensorboardTimeSeriesDataRequest + * @returns ListTrialsResponse * @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.ReadTensorboardTimeSeriesDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListTrialsResponse; /** - * Verifies a ReadTensorboardTimeSeriesDataRequest message. + * Verifies a ListTrialsResponse 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 ReadTensorboardTimeSeriesDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTrialsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadTensorboardTimeSeriesDataRequest + * @returns ListTrialsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrialsResponse; /** - * Creates a plain object from a ReadTensorboardTimeSeriesDataRequest message. Also converts values to other types if specified. - * @param message ReadTensorboardTimeSeriesDataRequest + * Creates a plain object from a ListTrialsResponse message. Also converts values to other types if specified. + * @param message ListTrialsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListTrialsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadTensorboardTimeSeriesDataRequest to JSON. + * Converts this ListTrialsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadTensorboardTimeSeriesDataRequest + * Gets the default type url for ListTrialsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadTensorboardTimeSeriesDataResponse. */ - interface IReadTensorboardTimeSeriesDataResponse { + /** Properties of an AddTrialMeasurementRequest. */ + interface IAddTrialMeasurementRequest { - /** ReadTensorboardTimeSeriesDataResponse timeSeriesData */ - timeSeriesData?: (google.cloud.aiplatform.v1.ITimeSeriesData|null); + /** AddTrialMeasurementRequest trialName */ + trialName?: (string|null); + + /** AddTrialMeasurementRequest measurement */ + measurement?: (google.cloud.aiplatform.v1.IMeasurement|null); } - /** Represents a ReadTensorboardTimeSeriesDataResponse. */ - class ReadTensorboardTimeSeriesDataResponse implements IReadTensorboardTimeSeriesDataResponse { + /** Represents an AddTrialMeasurementRequest. */ + class AddTrialMeasurementRequest implements IAddTrialMeasurementRequest { /** - * Constructs a new ReadTensorboardTimeSeriesDataResponse. + * Constructs a new AddTrialMeasurementRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataResponse); + constructor(properties?: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest); - /** ReadTensorboardTimeSeriesDataResponse timeSeriesData. */ - public timeSeriesData?: (google.cloud.aiplatform.v1.ITimeSeriesData|null); + /** AddTrialMeasurementRequest trialName. */ + public trialName: string; + + /** AddTrialMeasurementRequest measurement. */ + public measurement?: (google.cloud.aiplatform.v1.IMeasurement|null); /** - * Creates a new ReadTensorboardTimeSeriesDataResponse instance using the specified properties. + * Creates a new AddTrialMeasurementRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadTensorboardTimeSeriesDataResponse instance + * @returns AddTrialMeasurementRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataResponse): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse; + public static create(properties?: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest): google.cloud.aiplatform.v1.AddTrialMeasurementRequest; /** - * Encodes the specified ReadTensorboardTimeSeriesDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse.verify|verify} messages. - * @param message ReadTensorboardTimeSeriesDataResponse message or plain object to encode + * Encodes the specified AddTrialMeasurementRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddTrialMeasurementRequest.verify|verify} messages. + * @param message AddTrialMeasurementRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadTensorboardTimeSeriesDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse.verify|verify} messages. - * @param message ReadTensorboardTimeSeriesDataResponse message or plain object to encode + * Encodes the specified AddTrialMeasurementRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddTrialMeasurementRequest.verify|verify} messages. + * @param message AddTrialMeasurementRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IReadTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadTensorboardTimeSeriesDataResponse message from the specified reader or buffer. + * Decodes an AddTrialMeasurementRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadTensorboardTimeSeriesDataResponse + * @returns AddTrialMeasurementRequest * @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.ReadTensorboardTimeSeriesDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.AddTrialMeasurementRequest; /** - * Decodes a ReadTensorboardTimeSeriesDataResponse message from the specified reader or buffer, length delimited. + * Decodes an AddTrialMeasurementRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadTensorboardTimeSeriesDataResponse + * @returns AddTrialMeasurementRequest * @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.ReadTensorboardTimeSeriesDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.AddTrialMeasurementRequest; /** - * Verifies a ReadTensorboardTimeSeriesDataResponse message. + * Verifies an AddTrialMeasurementRequest 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 ReadTensorboardTimeSeriesDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AddTrialMeasurementRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadTensorboardTimeSeriesDataResponse + * @returns AddTrialMeasurementRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddTrialMeasurementRequest; /** - * Creates a plain object from a ReadTensorboardTimeSeriesDataResponse message. Also converts values to other types if specified. - * @param message ReadTensorboardTimeSeriesDataResponse + * Creates a plain object from an AddTrialMeasurementRequest message. Also converts values to other types if specified. + * @param message AddTrialMeasurementRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.AddTrialMeasurementRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadTensorboardTimeSeriesDataResponse to JSON. + * Converts this AddTrialMeasurementRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadTensorboardTimeSeriesDataResponse + * Gets the default type url for AddTrialMeasurementRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WriteTensorboardExperimentDataRequest. */ - interface IWriteTensorboardExperimentDataRequest { + /** Properties of a CompleteTrialRequest. */ + interface ICompleteTrialRequest { - /** WriteTensorboardExperimentDataRequest tensorboardExperiment */ - tensorboardExperiment?: (string|null); + /** CompleteTrialRequest name */ + name?: (string|null); - /** WriteTensorboardExperimentDataRequest writeRunDataRequests */ - writeRunDataRequests?: (google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest[]|null); + /** CompleteTrialRequest finalMeasurement */ + finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + + /** CompleteTrialRequest trialInfeasible */ + trialInfeasible?: (boolean|null); + + /** CompleteTrialRequest infeasibleReason */ + infeasibleReason?: (string|null); } - /** Represents a WriteTensorboardExperimentDataRequest. */ - class WriteTensorboardExperimentDataRequest implements IWriteTensorboardExperimentDataRequest { + /** Represents a CompleteTrialRequest. */ + class CompleteTrialRequest implements ICompleteTrialRequest { /** - * Constructs a new WriteTensorboardExperimentDataRequest. + * Constructs a new CompleteTrialRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest); + constructor(properties?: google.cloud.aiplatform.v1.ICompleteTrialRequest); - /** WriteTensorboardExperimentDataRequest tensorboardExperiment. */ - public tensorboardExperiment: string; + /** CompleteTrialRequest name. */ + public name: string; - /** WriteTensorboardExperimentDataRequest writeRunDataRequests. */ - public writeRunDataRequests: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest[]; + /** CompleteTrialRequest finalMeasurement. */ + public finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + + /** CompleteTrialRequest trialInfeasible. */ + public trialInfeasible: boolean; + + /** CompleteTrialRequest infeasibleReason. */ + public infeasibleReason: string; /** - * Creates a new WriteTensorboardExperimentDataRequest instance using the specified properties. + * Creates a new CompleteTrialRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WriteTensorboardExperimentDataRequest instance + * @returns CompleteTrialRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICompleteTrialRequest): google.cloud.aiplatform.v1.CompleteTrialRequest; /** - * Encodes the specified WriteTensorboardExperimentDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest.verify|verify} messages. - * @param message WriteTensorboardExperimentDataRequest message or plain object to encode + * Encodes the specified CompleteTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CompleteTrialRequest.verify|verify} messages. + * @param message CompleteTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICompleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteTensorboardExperimentDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest.verify|verify} messages. - * @param message WriteTensorboardExperimentDataRequest message or plain object to encode + * Encodes the specified CompleteTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CompleteTrialRequest.verify|verify} messages. + * @param message CompleteTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICompleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteTensorboardExperimentDataRequest message from the specified reader or buffer. + * Decodes a CompleteTrialRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteTensorboardExperimentDataRequest + * @returns CompleteTrialRequest * @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.WriteTensorboardExperimentDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CompleteTrialRequest; /** - * Decodes a WriteTensorboardExperimentDataRequest message from the specified reader or buffer, length delimited. + * Decodes a CompleteTrialRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteTensorboardExperimentDataRequest + * @returns CompleteTrialRequest * @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.WriteTensorboardExperimentDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CompleteTrialRequest; /** - * Verifies a WriteTensorboardExperimentDataRequest message. + * Verifies a CompleteTrialRequest 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 WriteTensorboardExperimentDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CompleteTrialRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteTensorboardExperimentDataRequest + * @returns CompleteTrialRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CompleteTrialRequest; /** - * Creates a plain object from a WriteTensorboardExperimentDataRequest message. Also converts values to other types if specified. - * @param message WriteTensorboardExperimentDataRequest + * Creates a plain object from a CompleteTrialRequest message. Also converts values to other types if specified. + * @param message CompleteTrialRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CompleteTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteTensorboardExperimentDataRequest to JSON. + * Converts this CompleteTrialRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteTensorboardExperimentDataRequest + * Gets the default type url for CompleteTrialRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WriteTensorboardExperimentDataResponse. */ - interface IWriteTensorboardExperimentDataResponse { + /** Properties of a DeleteTrialRequest. */ + interface IDeleteTrialRequest { + + /** DeleteTrialRequest name */ + name?: (string|null); } - /** Represents a WriteTensorboardExperimentDataResponse. */ - class WriteTensorboardExperimentDataResponse implements IWriteTensorboardExperimentDataResponse { + /** Represents a DeleteTrialRequest. */ + class DeleteTrialRequest implements IDeleteTrialRequest { /** - * Constructs a new WriteTensorboardExperimentDataResponse. + * Constructs a new DeleteTrialRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataResponse); + constructor(properties?: google.cloud.aiplatform.v1.IDeleteTrialRequest); + + /** DeleteTrialRequest name. */ + public name: string; /** - * Creates a new WriteTensorboardExperimentDataResponse instance using the specified properties. + * Creates a new DeleteTrialRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WriteTensorboardExperimentDataResponse instance + * @returns DeleteTrialRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataResponse): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse; + public static create(properties?: google.cloud.aiplatform.v1.IDeleteTrialRequest): google.cloud.aiplatform.v1.DeleteTrialRequest; /** - * Encodes the specified WriteTensorboardExperimentDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse.verify|verify} messages. - * @param message WriteTensorboardExperimentDataResponse message or plain object to encode + * Encodes the specified DeleteTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrialRequest.verify|verify} messages. + * @param message DeleteTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IDeleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteTensorboardExperimentDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse.verify|verify} messages. - * @param message WriteTensorboardExperimentDataResponse message or plain object to encode + * Encodes the specified DeleteTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrialRequest.verify|verify} messages. + * @param message DeleteTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteTensorboardExperimentDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteTensorboardExperimentDataResponse message from the specified reader or buffer. + * Decodes a DeleteTrialRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteTensorboardExperimentDataResponse + * @returns DeleteTrialRequest * @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.WriteTensorboardExperimentDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteTrialRequest; /** - * Decodes a WriteTensorboardExperimentDataResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteTrialRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteTensorboardExperimentDataResponse + * @returns DeleteTrialRequest * @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.WriteTensorboardExperimentDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteTrialRequest; /** - * Verifies a WriteTensorboardExperimentDataResponse message. + * Verifies a DeleteTrialRequest 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 WriteTensorboardExperimentDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTrialRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteTensorboardExperimentDataResponse + * @returns DeleteTrialRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTrialRequest; /** - * Creates a plain object from a WriteTensorboardExperimentDataResponse message. Also converts values to other types if specified. - * @param message WriteTensorboardExperimentDataResponse + * Creates a plain object from a DeleteTrialRequest message. Also converts values to other types if specified. + * @param message DeleteTrialRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.WriteTensorboardExperimentDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.DeleteTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteTensorboardExperimentDataResponse to JSON. + * Converts this DeleteTrialRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteTensorboardExperimentDataResponse + * Gets the default type url for DeleteTrialRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WriteTensorboardRunDataRequest. */ - interface IWriteTensorboardRunDataRequest { - - /** WriteTensorboardRunDataRequest tensorboardRun */ - tensorboardRun?: (string|null); + /** Properties of a CheckTrialEarlyStoppingStateRequest. */ + interface ICheckTrialEarlyStoppingStateRequest { - /** WriteTensorboardRunDataRequest timeSeriesData */ - timeSeriesData?: (google.cloud.aiplatform.v1.ITimeSeriesData[]|null); + /** CheckTrialEarlyStoppingStateRequest trialName */ + trialName?: (string|null); } - /** Represents a WriteTensorboardRunDataRequest. */ - class WriteTensorboardRunDataRequest implements IWriteTensorboardRunDataRequest { + /** Represents a CheckTrialEarlyStoppingStateRequest. */ + class CheckTrialEarlyStoppingStateRequest implements ICheckTrialEarlyStoppingStateRequest { /** - * Constructs a new WriteTensorboardRunDataRequest. + * Constructs a new CheckTrialEarlyStoppingStateRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest); - - /** WriteTensorboardRunDataRequest tensorboardRun. */ - public tensorboardRun: string; + constructor(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest); - /** WriteTensorboardRunDataRequest timeSeriesData. */ - public timeSeriesData: google.cloud.aiplatform.v1.ITimeSeriesData[]; + /** CheckTrialEarlyStoppingStateRequest trialName. */ + public trialName: string; /** - * Creates a new WriteTensorboardRunDataRequest instance using the specified properties. + * Creates a new CheckTrialEarlyStoppingStateRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WriteTensorboardRunDataRequest instance + * @returns CheckTrialEarlyStoppingStateRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest): google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; /** - * Encodes the specified WriteTensorboardRunDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest.verify|verify} messages. - * @param message WriteTensorboardRunDataRequest message or plain object to encode + * Encodes the specified CheckTrialEarlyStoppingStateRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteTensorboardRunDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest.verify|verify} messages. - * @param message WriteTensorboardRunDataRequest message or plain object to encode + * Encodes the specified CheckTrialEarlyStoppingStateRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteTensorboardRunDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteTensorboardRunDataRequest message from the specified reader or buffer. + * Decodes a CheckTrialEarlyStoppingStateRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteTensorboardRunDataRequest + * @returns CheckTrialEarlyStoppingStateRequest * @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.WriteTensorboardRunDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; /** - * Decodes a WriteTensorboardRunDataRequest message from the specified reader or buffer, length delimited. + * Decodes a CheckTrialEarlyStoppingStateRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteTensorboardRunDataRequest + * @returns CheckTrialEarlyStoppingStateRequest * @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.WriteTensorboardRunDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; /** - * Verifies a WriteTensorboardRunDataRequest message. + * Verifies a CheckTrialEarlyStoppingStateRequest 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 WriteTensorboardRunDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CheckTrialEarlyStoppingStateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteTensorboardRunDataRequest + * @returns CheckTrialEarlyStoppingStateRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; /** - * Creates a plain object from a WriteTensorboardRunDataRequest message. Also converts values to other types if specified. - * @param message WriteTensorboardRunDataRequest + * Creates a plain object from a CheckTrialEarlyStoppingStateRequest message. Also converts values to other types if specified. + * @param message CheckTrialEarlyStoppingStateRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteTensorboardRunDataRequest to JSON. + * Converts this CheckTrialEarlyStoppingStateRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteTensorboardRunDataRequest + * Gets the default type url for CheckTrialEarlyStoppingStateRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WriteTensorboardRunDataResponse. */ - interface IWriteTensorboardRunDataResponse { + /** Properties of a CheckTrialEarlyStoppingStateResponse. */ + interface ICheckTrialEarlyStoppingStateResponse { + + /** CheckTrialEarlyStoppingStateResponse shouldStop */ + shouldStop?: (boolean|null); } - /** Represents a WriteTensorboardRunDataResponse. */ - class WriteTensorboardRunDataResponse implements IWriteTensorboardRunDataResponse { + /** Represents a CheckTrialEarlyStoppingStateResponse. */ + class CheckTrialEarlyStoppingStateResponse implements ICheckTrialEarlyStoppingStateResponse { /** - * Constructs a new WriteTensorboardRunDataResponse. + * Constructs a new CheckTrialEarlyStoppingStateResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IWriteTensorboardRunDataResponse); + constructor(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse); + + /** CheckTrialEarlyStoppingStateResponse shouldStop. */ + public shouldStop: boolean; /** - * Creates a new WriteTensorboardRunDataResponse instance using the specified properties. + * Creates a new CheckTrialEarlyStoppingStateResponse instance using the specified properties. * @param [properties] Properties to set - * @returns WriteTensorboardRunDataResponse instance + * @returns CheckTrialEarlyStoppingStateResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IWriteTensorboardRunDataResponse): google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse; + public static create(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; /** - * Encodes the specified WriteTensorboardRunDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse.verify|verify} messages. - * @param message WriteTensorboardRunDataResponse message or plain object to encode + * Encodes the specified CheckTrialEarlyStoppingStateResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IWriteTensorboardRunDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteTensorboardRunDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse.verify|verify} messages. - * @param message WriteTensorboardRunDataResponse message or plain object to encode + * Encodes the specified CheckTrialEarlyStoppingStateResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IWriteTensorboardRunDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteTensorboardRunDataResponse message from the specified reader or buffer. + * Decodes a CheckTrialEarlyStoppingStateResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteTensorboardRunDataResponse + * @returns CheckTrialEarlyStoppingStateResponse * @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.WriteTensorboardRunDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; /** - * Decodes a WriteTensorboardRunDataResponse message from the specified reader or buffer, length delimited. + * Decodes a CheckTrialEarlyStoppingStateResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteTensorboardRunDataResponse + * @returns CheckTrialEarlyStoppingStateResponse * @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.WriteTensorboardRunDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; /** - * Verifies a WriteTensorboardRunDataResponse message. + * Verifies a CheckTrialEarlyStoppingStateResponse 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 WriteTensorboardRunDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CheckTrialEarlyStoppingStateResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteTensorboardRunDataResponse + * @returns CheckTrialEarlyStoppingStateResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; /** - * Creates a plain object from a WriteTensorboardRunDataResponse message. Also converts values to other types if specified. - * @param message WriteTensorboardRunDataResponse + * Creates a plain object from a CheckTrialEarlyStoppingStateResponse message. Also converts values to other types if specified. + * @param message CheckTrialEarlyStoppingStateResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.WriteTensorboardRunDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteTensorboardRunDataResponse to JSON. + * Converts this CheckTrialEarlyStoppingStateResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteTensorboardRunDataResponse + * Gets the default type url for CheckTrialEarlyStoppingStateResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportTensorboardTimeSeriesDataRequest. */ - interface IExportTensorboardTimeSeriesDataRequest { - - /** ExportTensorboardTimeSeriesDataRequest tensorboardTimeSeries */ - tensorboardTimeSeries?: (string|null); - - /** ExportTensorboardTimeSeriesDataRequest filter */ - filter?: (string|null); + /** Properties of a CheckTrialEarlyStoppingStateMetatdata. */ + interface ICheckTrialEarlyStoppingStateMetatdata { - /** ExportTensorboardTimeSeriesDataRequest pageSize */ - pageSize?: (number|null); + /** CheckTrialEarlyStoppingStateMetatdata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** ExportTensorboardTimeSeriesDataRequest pageToken */ - pageToken?: (string|null); + /** CheckTrialEarlyStoppingStateMetatdata study */ + study?: (string|null); - /** ExportTensorboardTimeSeriesDataRequest orderBy */ - orderBy?: (string|null); + /** CheckTrialEarlyStoppingStateMetatdata trial */ + trial?: (string|null); } - /** Represents an ExportTensorboardTimeSeriesDataRequest. */ - class ExportTensorboardTimeSeriesDataRequest implements IExportTensorboardTimeSeriesDataRequest { + /** Represents a CheckTrialEarlyStoppingStateMetatdata. */ + class CheckTrialEarlyStoppingStateMetatdata implements ICheckTrialEarlyStoppingStateMetatdata { /** - * Constructs a new ExportTensorboardTimeSeriesDataRequest. + * Constructs a new CheckTrialEarlyStoppingStateMetatdata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest); - - /** ExportTensorboardTimeSeriesDataRequest tensorboardTimeSeries. */ - public tensorboardTimeSeries: string; - - /** ExportTensorboardTimeSeriesDataRequest filter. */ - public filter: string; + constructor(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata); - /** ExportTensorboardTimeSeriesDataRequest pageSize. */ - public pageSize: number; + /** CheckTrialEarlyStoppingStateMetatdata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - /** ExportTensorboardTimeSeriesDataRequest pageToken. */ - public pageToken: string; + /** CheckTrialEarlyStoppingStateMetatdata study. */ + public study: string; - /** ExportTensorboardTimeSeriesDataRequest orderBy. */ - public orderBy: string; + /** CheckTrialEarlyStoppingStateMetatdata trial. */ + public trial: string; /** - * Creates a new ExportTensorboardTimeSeriesDataRequest instance using the specified properties. + * Creates a new CheckTrialEarlyStoppingStateMetatdata instance using the specified properties. * @param [properties] Properties to set - * @returns ExportTensorboardTimeSeriesDataRequest instance + * @returns CheckTrialEarlyStoppingStateMetatdata instance */ - public static create(properties?: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest; + public static create(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; /** - * Encodes the specified ExportTensorboardTimeSeriesDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest.verify|verify} messages. - * @param message ExportTensorboardTimeSeriesDataRequest message or plain object to encode + * Encodes the specified CheckTrialEarlyStoppingStateMetatdata message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateMetatdata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportTensorboardTimeSeriesDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest.verify|verify} messages. - * @param message ExportTensorboardTimeSeriesDataRequest message or plain object to encode + * Encodes the specified CheckTrialEarlyStoppingStateMetatdata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata.verify|verify} messages. + * @param message CheckTrialEarlyStoppingStateMetatdata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportTensorboardTimeSeriesDataRequest message from the specified reader or buffer. + * Decodes a CheckTrialEarlyStoppingStateMetatdata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportTensorboardTimeSeriesDataRequest + * @returns CheckTrialEarlyStoppingStateMetatdata * @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.ExportTensorboardTimeSeriesDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; /** - * Decodes an ExportTensorboardTimeSeriesDataRequest message from the specified reader or buffer, length delimited. + * Decodes a CheckTrialEarlyStoppingStateMetatdata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportTensorboardTimeSeriesDataRequest + * @returns CheckTrialEarlyStoppingStateMetatdata * @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.ExportTensorboardTimeSeriesDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; /** - * Verifies an ExportTensorboardTimeSeriesDataRequest message. + * Verifies a CheckTrialEarlyStoppingStateMetatdata 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 ExportTensorboardTimeSeriesDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CheckTrialEarlyStoppingStateMetatdata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportTensorboardTimeSeriesDataRequest + * @returns CheckTrialEarlyStoppingStateMetatdata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; /** - * Creates a plain object from an ExportTensorboardTimeSeriesDataRequest message. Also converts values to other types if specified. - * @param message ExportTensorboardTimeSeriesDataRequest + * Creates a plain object from a CheckTrialEarlyStoppingStateMetatdata message. Also converts values to other types if specified. + * @param message CheckTrialEarlyStoppingStateMetatdata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportTensorboardTimeSeriesDataRequest to JSON. + * Converts this CheckTrialEarlyStoppingStateMetatdata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportTensorboardTimeSeriesDataRequest + * Gets the default type url for CheckTrialEarlyStoppingStateMetatdata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportTensorboardTimeSeriesDataResponse. */ - interface IExportTensorboardTimeSeriesDataResponse { - - /** ExportTensorboardTimeSeriesDataResponse timeSeriesDataPoints */ - timeSeriesDataPoints?: (google.cloud.aiplatform.v1.ITimeSeriesDataPoint[]|null); + /** Properties of a StopTrialRequest. */ + interface IStopTrialRequest { - /** ExportTensorboardTimeSeriesDataResponse nextPageToken */ - nextPageToken?: (string|null); + /** StopTrialRequest name */ + name?: (string|null); } - /** Represents an ExportTensorboardTimeSeriesDataResponse. */ - class ExportTensorboardTimeSeriesDataResponse implements IExportTensorboardTimeSeriesDataResponse { + /** Represents a StopTrialRequest. */ + class StopTrialRequest implements IStopTrialRequest { /** - * Constructs a new ExportTensorboardTimeSeriesDataResponse. + * Constructs a new StopTrialRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataResponse); - - /** ExportTensorboardTimeSeriesDataResponse timeSeriesDataPoints. */ - public timeSeriesDataPoints: google.cloud.aiplatform.v1.ITimeSeriesDataPoint[]; + constructor(properties?: google.cloud.aiplatform.v1.IStopTrialRequest); - /** ExportTensorboardTimeSeriesDataResponse nextPageToken. */ - public nextPageToken: string; + /** StopTrialRequest name. */ + public name: string; /** - * Creates a new ExportTensorboardTimeSeriesDataResponse instance using the specified properties. + * Creates a new StopTrialRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportTensorboardTimeSeriesDataResponse instance + * @returns StopTrialRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataResponse): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse; + public static create(properties?: google.cloud.aiplatform.v1.IStopTrialRequest): google.cloud.aiplatform.v1.StopTrialRequest; /** - * Encodes the specified ExportTensorboardTimeSeriesDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse.verify|verify} messages. - * @param message ExportTensorboardTimeSeriesDataResponse message or plain object to encode + * Encodes the specified StopTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.StopTrialRequest.verify|verify} messages. + * @param message StopTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IStopTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportTensorboardTimeSeriesDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse.verify|verify} messages. - * @param message ExportTensorboardTimeSeriesDataResponse message or plain object to encode + * Encodes the specified StopTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StopTrialRequest.verify|verify} messages. + * @param message StopTrialRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IExportTensorboardTimeSeriesDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IStopTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportTensorboardTimeSeriesDataResponse message from the specified reader or buffer. + * Decodes a StopTrialRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportTensorboardTimeSeriesDataResponse + * @returns StopTrialRequest * @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.ExportTensorboardTimeSeriesDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.StopTrialRequest; /** - * Decodes an ExportTensorboardTimeSeriesDataResponse message from the specified reader or buffer, length delimited. + * Decodes a StopTrialRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportTensorboardTimeSeriesDataResponse + * @returns StopTrialRequest * @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.ExportTensorboardTimeSeriesDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.StopTrialRequest; /** - * Verifies an ExportTensorboardTimeSeriesDataResponse message. + * Verifies a StopTrialRequest 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 ExportTensorboardTimeSeriesDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StopTrialRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportTensorboardTimeSeriesDataResponse + * @returns StopTrialRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StopTrialRequest; /** - * Creates a plain object from an ExportTensorboardTimeSeriesDataResponse message. Also converts values to other types if specified. - * @param message ExportTensorboardTimeSeriesDataResponse + * Creates a plain object from a StopTrialRequest message. Also converts values to other types if specified. + * @param message StopTrialRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ExportTensorboardTimeSeriesDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.StopTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportTensorboardTimeSeriesDataResponse to JSON. + * Converts this StopTrialRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportTensorboardTimeSeriesDataResponse + * Gets the default type url for StopTrialRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateTensorboardOperationMetadata. */ - interface ICreateTensorboardOperationMetadata { + /** Properties of a ListOptimalTrialsRequest. */ + interface IListOptimalTrialsRequest { - /** CreateTensorboardOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ListOptimalTrialsRequest parent */ + parent?: (string|null); } - /** Represents a CreateTensorboardOperationMetadata. */ - class CreateTensorboardOperationMetadata implements ICreateTensorboardOperationMetadata { + /** Represents a ListOptimalTrialsRequest. */ + class ListOptimalTrialsRequest implements IListOptimalTrialsRequest { /** - * Constructs a new CreateTensorboardOperationMetadata. + * Constructs a new ListOptimalTrialsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateTensorboardOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsRequest); - /** CreateTensorboardOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ListOptimalTrialsRequest parent. */ + public parent: string; /** - * Creates a new CreateTensorboardOperationMetadata instance using the specified properties. + * Creates a new ListOptimalTrialsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTensorboardOperationMetadata instance + * @returns ListOptimalTrialsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateTensorboardOperationMetadata): google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsRequest): google.cloud.aiplatform.v1.ListOptimalTrialsRequest; /** - * Encodes the specified CreateTensorboardOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata.verify|verify} messages. - * @param message CreateTensorboardOperationMetadata message or plain object to encode + * Encodes the specified ListOptimalTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsRequest.verify|verify} messages. + * @param message ListOptimalTrialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateTensorboardOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListOptimalTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTensorboardOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata.verify|verify} messages. - * @param message CreateTensorboardOperationMetadata message or plain object to encode + * Encodes the specified ListOptimalTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsRequest.verify|verify} messages. + * @param message ListOptimalTrialsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTensorboardOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListOptimalTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTensorboardOperationMetadata message from the specified reader or buffer. + * Decodes a ListOptimalTrialsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTensorboardOperationMetadata + * @returns ListOptimalTrialsRequest * @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.CreateTensorboardOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListOptimalTrialsRequest; /** - * Decodes a CreateTensorboardOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListOptimalTrialsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTensorboardOperationMetadata + * @returns ListOptimalTrialsRequest * @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.CreateTensorboardOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListOptimalTrialsRequest; /** - * Verifies a CreateTensorboardOperationMetadata message. + * Verifies a ListOptimalTrialsRequest 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 CreateTensorboardOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListOptimalTrialsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTensorboardOperationMetadata + * @returns ListOptimalTrialsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListOptimalTrialsRequest; /** - * Creates a plain object from a CreateTensorboardOperationMetadata message. Also converts values to other types if specified. - * @param message CreateTensorboardOperationMetadata + * Creates a plain object from a ListOptimalTrialsRequest message. Also converts values to other types if specified. + * @param message ListOptimalTrialsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateTensorboardOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListOptimalTrialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTensorboardOperationMetadata to JSON. + * Converts this ListOptimalTrialsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateTensorboardOperationMetadata + * Gets the default type url for ListOptimalTrialsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateTensorboardOperationMetadata. */ - interface IUpdateTensorboardOperationMetadata { + /** Properties of a ListOptimalTrialsResponse. */ + interface IListOptimalTrialsResponse { - /** UpdateTensorboardOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ListOptimalTrialsResponse optimalTrials */ + optimalTrials?: (google.cloud.aiplatform.v1.ITrial[]|null); } - /** Represents an UpdateTensorboardOperationMetadata. */ - class UpdateTensorboardOperationMetadata implements IUpdateTensorboardOperationMetadata { + /** Represents a ListOptimalTrialsResponse. */ + class ListOptimalTrialsResponse implements IListOptimalTrialsResponse { /** - * Constructs a new UpdateTensorboardOperationMetadata. + * Constructs a new ListOptimalTrialsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsResponse); - /** UpdateTensorboardOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** ListOptimalTrialsResponse optimalTrials. */ + public optimalTrials: google.cloud.aiplatform.v1.ITrial[]; /** - * Creates a new UpdateTensorboardOperationMetadata instance using the specified properties. + * Creates a new ListOptimalTrialsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateTensorboardOperationMetadata instance + * @returns ListOptimalTrialsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1.IUpdateTensorboardOperationMetadata): google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsResponse): google.cloud.aiplatform.v1.ListOptimalTrialsResponse; /** - * Encodes the specified UpdateTensorboardOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata.verify|verify} messages. - * @param message UpdateTensorboardOperationMetadata message or plain object to encode + * Encodes the specified ListOptimalTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsResponse.verify|verify} messages. + * @param message ListOptimalTrialsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IUpdateTensorboardOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1.IListOptimalTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateTensorboardOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata.verify|verify} messages. - * @param message UpdateTensorboardOperationMetadata message or plain object to encode + * Encodes the specified ListOptimalTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsResponse.verify|verify} messages. + * @param message ListOptimalTrialsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IUpdateTensorboardOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListOptimalTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateTensorboardOperationMetadata message from the specified reader or buffer. + * Decodes a ListOptimalTrialsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateTensorboardOperationMetadata + * @returns ListOptimalTrialsResponse * @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.UpdateTensorboardOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListOptimalTrialsResponse; /** - * Decodes an UpdateTensorboardOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListOptimalTrialsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateTensorboardOperationMetadata + * @returns ListOptimalTrialsResponse * @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.UpdateTensorboardOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListOptimalTrialsResponse; /** - * Verifies an UpdateTensorboardOperationMetadata message. + * Verifies a ListOptimalTrialsResponse 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 UpdateTensorboardOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListOptimalTrialsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateTensorboardOperationMetadata + * @returns ListOptimalTrialsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListOptimalTrialsResponse; /** - * Creates a plain object from an UpdateTensorboardOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateTensorboardOperationMetadata + * Creates a plain object from a ListOptimalTrialsResponse message. Also converts values to other types if specified. + * @param message ListOptimalTrialsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.UpdateTensorboardOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1.ListOptimalTrialsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateTensorboardOperationMetadata to JSON. + * Converts this ListOptimalTrialsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateTensorboardOperationMetadata + * Gets the default type url for ListOptimalTrialsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - /** Represents a VizierService */ - class VizierService extends $protobuf.rpc.Service { - - /** - * Constructs a new VizierService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new VizierService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): VizierService; + /** Namespace v1beta1. */ + namespace v1beta1 { - /** - * Calls CreateStudy. - * @param request CreateStudyRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Study - */ - public createStudy(request: google.cloud.aiplatform.v1.ICreateStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.CreateStudyCallback): void; + /** AcceleratorType enum. */ + enum AcceleratorType { + ACCELERATOR_TYPE_UNSPECIFIED = 0, + NVIDIA_TESLA_K80 = 1, + NVIDIA_TESLA_P100 = 2, + NVIDIA_TESLA_V100 = 3, + NVIDIA_TESLA_P4 = 4, + NVIDIA_TESLA_T4 = 5, + NVIDIA_TESLA_A100 = 8, + NVIDIA_A100_80GB = 9, + TPU_V2 = 6, + TPU_V3 = 7 + } - /** - * Calls CreateStudy. - * @param request CreateStudyRequest message or plain object - * @returns Promise - */ - public createStudy(request: google.cloud.aiplatform.v1.ICreateStudyRequest): Promise; + /** Properties of an Annotation. */ + interface IAnnotation { - /** - * Calls GetStudy. - * @param request GetStudyRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Study - */ - public getStudy(request: google.cloud.aiplatform.v1.IGetStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.GetStudyCallback): void; + /** Annotation name */ + name?: (string|null); - /** - * Calls GetStudy. - * @param request GetStudyRequest message or plain object - * @returns Promise - */ - public getStudy(request: google.cloud.aiplatform.v1.IGetStudyRequest): Promise; + /** Annotation payloadSchemaUri */ + payloadSchemaUri?: (string|null); - /** - * Calls ListStudies. - * @param request ListStudiesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListStudiesResponse - */ - public listStudies(request: google.cloud.aiplatform.v1.IListStudiesRequest, callback: google.cloud.aiplatform.v1.VizierService.ListStudiesCallback): void; + /** Annotation payload */ + payload?: (google.protobuf.IValue|null); - /** - * Calls ListStudies. - * @param request ListStudiesRequest message or plain object - * @returns Promise - */ - public listStudies(request: google.cloud.aiplatform.v1.IListStudiesRequest): Promise; + /** Annotation createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Calls DeleteStudy. - * @param request DeleteStudyRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public deleteStudy(request: google.cloud.aiplatform.v1.IDeleteStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.DeleteStudyCallback): void; + /** Annotation updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Calls DeleteStudy. - * @param request DeleteStudyRequest message or plain object - * @returns Promise - */ - public deleteStudy(request: google.cloud.aiplatform.v1.IDeleteStudyRequest): Promise; + /** Annotation etag */ + etag?: (string|null); - /** - * Calls LookupStudy. - * @param request LookupStudyRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Study - */ - public lookupStudy(request: google.cloud.aiplatform.v1.ILookupStudyRequest, callback: google.cloud.aiplatform.v1.VizierService.LookupStudyCallback): void; + /** Annotation annotationSource */ + annotationSource?: (google.cloud.aiplatform.v1beta1.IUserActionReference|null); - /** - * Calls LookupStudy. - * @param request LookupStudyRequest message or plain object - * @returns Promise - */ - public lookupStudy(request: google.cloud.aiplatform.v1.ILookupStudyRequest): Promise; + /** Annotation labels */ + labels?: ({ [k: string]: string }|null); + } - /** - * Calls SuggestTrials. - * @param request SuggestTrialsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public suggestTrials(request: google.cloud.aiplatform.v1.ISuggestTrialsRequest, callback: google.cloud.aiplatform.v1.VizierService.SuggestTrialsCallback): void; + /** Represents an Annotation. */ + class Annotation implements IAnnotation { /** - * Calls SuggestTrials. - * @param request SuggestTrialsRequest message or plain object - * @returns Promise + * Constructs a new Annotation. + * @param [properties] Properties to set */ - public suggestTrials(request: google.cloud.aiplatform.v1.ISuggestTrialsRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IAnnotation); - /** - * Calls CreateTrial. - * @param request CreateTrialRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Trial - */ - public createTrial(request: google.cloud.aiplatform.v1.ICreateTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.CreateTrialCallback): void; + /** Annotation name. */ + public name: string; - /** - * Calls CreateTrial. - * @param request CreateTrialRequest message or plain object - * @returns Promise - */ - public createTrial(request: google.cloud.aiplatform.v1.ICreateTrialRequest): Promise; + /** Annotation payloadSchemaUri. */ + public payloadSchemaUri: string; - /** - * Calls GetTrial. - * @param request GetTrialRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Trial - */ - public getTrial(request: google.cloud.aiplatform.v1.IGetTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.GetTrialCallback): void; + /** Annotation payload. */ + public payload?: (google.protobuf.IValue|null); - /** - * Calls GetTrial. - * @param request GetTrialRequest message or plain object - * @returns Promise - */ - public getTrial(request: google.cloud.aiplatform.v1.IGetTrialRequest): Promise; + /** Annotation createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** - * Calls ListTrials. - * @param request ListTrialsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListTrialsResponse - */ - public listTrials(request: google.cloud.aiplatform.v1.IListTrialsRequest, callback: google.cloud.aiplatform.v1.VizierService.ListTrialsCallback): void; + /** Annotation updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** - * Calls ListTrials. - * @param request ListTrialsRequest message or plain object - * @returns Promise - */ - public listTrials(request: google.cloud.aiplatform.v1.IListTrialsRequest): Promise; + /** Annotation etag. */ + public etag: string; - /** - * Calls AddTrialMeasurement. - * @param request AddTrialMeasurementRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Trial - */ - public addTrialMeasurement(request: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, callback: google.cloud.aiplatform.v1.VizierService.AddTrialMeasurementCallback): void; + /** Annotation annotationSource. */ + public annotationSource?: (google.cloud.aiplatform.v1beta1.IUserActionReference|null); - /** - * Calls AddTrialMeasurement. - * @param request AddTrialMeasurementRequest message or plain object - * @returns Promise - */ - public addTrialMeasurement(request: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest): Promise; + /** Annotation labels. */ + public labels: { [k: string]: string }; /** - * Calls CompleteTrial. - * @param request CompleteTrialRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Trial + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance */ - public completeTrial(request: google.cloud.aiplatform.v1.ICompleteTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.CompleteTrialCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAnnotation): google.cloud.aiplatform.v1beta1.Annotation; /** - * Calls CompleteTrial. - * @param request CompleteTrialRequest message or plain object - * @returns Promise + * Encodes the specified Annotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public completeTrial(request: google.cloud.aiplatform.v1.ICompleteTrialRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteTrial. - * @param request DeleteTrialRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteTrial(request: google.cloud.aiplatform.v1.IDeleteTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.DeleteTrialCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteTrial. - * @param request DeleteTrialRequest message or plain object - * @returns Promise + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteTrial(request: google.cloud.aiplatform.v1.IDeleteTrialRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Annotation; /** - * Calls CheckTrialEarlyStoppingState. - * @param request CheckTrialEarlyStoppingStateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public checkTrialEarlyStoppingState(request: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, callback: google.cloud.aiplatform.v1.VizierService.CheckTrialEarlyStoppingStateCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Annotation; /** - * Calls CheckTrialEarlyStoppingState. - * @param request CheckTrialEarlyStoppingStateRequest message or plain object - * @returns Promise + * Verifies an Annotation message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public checkTrialEarlyStoppingState(request: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls StopTrial. - * @param request StopTrialRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Trial + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Annotation */ - public stopTrial(request: google.cloud.aiplatform.v1.IStopTrialRequest, callback: google.cloud.aiplatform.v1.VizierService.StopTrialCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Annotation; /** - * Calls StopTrial. - * @param request StopTrialRequest message or plain object - * @returns Promise + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @param message Annotation + * @param [options] Conversion options + * @returns Plain object */ - public stopTrial(request: google.cloud.aiplatform.v1.IStopTrialRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListOptimalTrials. - * @param request ListOptimalTrialsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListOptimalTrialsResponse + * Converts this Annotation to JSON. + * @returns JSON object */ - public listOptimalTrials(request: google.cloud.aiplatform.v1.IListOptimalTrialsRequest, callback: google.cloud.aiplatform.v1.VizierService.ListOptimalTrialsCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls ListOptimalTrials. - * @param request ListOptimalTrialsRequest message or plain object - * @returns Promise + * Gets the default type url for Annotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public listOptimalTrials(request: google.cloud.aiplatform.v1.IListOptimalTrialsRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace VizierService { + /** Properties of a UserActionReference. */ + interface IUserActionReference { - /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|createStudy}. - * @param error Error, if any - * @param [response] Study - */ - type CreateStudyCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Study) => void; + /** UserActionReference operation */ + operation?: (string|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|getStudy}. - * @param error Error, if any - * @param [response] Study - */ - type GetStudyCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Study) => void; + /** UserActionReference dataLabelingJob */ + dataLabelingJob?: (string|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|listStudies}. - * @param error Error, if any - * @param [response] ListStudiesResponse - */ - type ListStudiesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListStudiesResponse) => void; + /** UserActionReference method */ + method?: (string|null); + } + + /** Represents a UserActionReference. */ + class UserActionReference implements IUserActionReference { /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|deleteStudy}. - * @param error Error, if any - * @param [response] Empty + * Constructs a new UserActionReference. + * @param [properties] Properties to set */ - type DeleteStudyCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUserActionReference); - /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|lookupStudy}. - * @param error Error, if any - * @param [response] Study - */ - type LookupStudyCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Study) => void; + /** UserActionReference operation. */ + public operation?: (string|null); + + /** UserActionReference dataLabelingJob. */ + public dataLabelingJob?: (string|null); + + /** UserActionReference method. */ + public method: string; + + /** UserActionReference reference. */ + public reference?: ("operation"|"dataLabelingJob"); /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|suggestTrials}. - * @param error Error, if any - * @param [response] Operation + * Creates a new UserActionReference instance using the specified properties. + * @param [properties] Properties to set + * @returns UserActionReference instance */ - type SuggestTrialsCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUserActionReference): google.cloud.aiplatform.v1beta1.UserActionReference; /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|createTrial}. - * @param error Error, if any - * @param [response] Trial + * Encodes the specified UserActionReference message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UserActionReference.verify|verify} messages. + * @param message UserActionReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IUserActionReference, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|getTrial}. - * @param error Error, if any - * @param [response] Trial + * Encodes the specified UserActionReference message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UserActionReference.verify|verify} messages. + * @param message UserActionReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUserActionReference, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|listTrials}. - * @param error Error, if any - * @param [response] ListTrialsResponse + * Decodes a UserActionReference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UserActionReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListTrialsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListTrialsResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UserActionReference; /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|addTrialMeasurement}. - * @param error Error, if any - * @param [response] Trial + * Decodes a UserActionReference message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UserActionReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type AddTrialMeasurementCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UserActionReference; /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|completeTrial}. - * @param error Error, if any - * @param [response] Trial + * Verifies a UserActionReference message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CompleteTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|deleteTrial}. - * @param error Error, if any - * @param [response] Empty + * Creates a UserActionReference message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UserActionReference */ - type DeleteTrialCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UserActionReference; /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|checkTrialEarlyStoppingState}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a UserActionReference message. Also converts values to other types if specified. + * @param message UserActionReference + * @param [options] Conversion options + * @returns Plain object */ - type CheckTrialEarlyStoppingStateCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.UserActionReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|stopTrial}. - * @param error Error, if any - * @param [response] Trial + * Converts this UserActionReference to JSON. + * @returns JSON object */ - type StopTrialCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Trial) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.VizierService|listOptimalTrials}. - * @param error Error, if any - * @param [response] ListOptimalTrialsResponse + * Gets the default type url for UserActionReference + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ListOptimalTrialsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListOptimalTrialsResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetStudyRequest. */ - interface IGetStudyRequest { + /** Properties of an AnnotationSpec. */ + interface IAnnotationSpec { - /** GetStudyRequest name */ + /** AnnotationSpec name */ name?: (string|null); + + /** AnnotationSpec displayName */ + displayName?: (string|null); + + /** AnnotationSpec createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** AnnotationSpec updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** AnnotationSpec etag */ + etag?: (string|null); } - /** Represents a GetStudyRequest. */ - class GetStudyRequest implements IGetStudyRequest { + /** Represents an AnnotationSpec. */ + class AnnotationSpec implements IAnnotationSpec { /** - * Constructs a new GetStudyRequest. + * Constructs a new AnnotationSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetStudyRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IAnnotationSpec); - /** GetStudyRequest name. */ + /** AnnotationSpec name. */ public name: string; + /** AnnotationSpec displayName. */ + public displayName: string; + + /** AnnotationSpec createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** AnnotationSpec updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** AnnotationSpec etag. */ + public etag: string; + /** - * Creates a new GetStudyRequest instance using the specified properties. + * Creates a new AnnotationSpec instance using the specified properties. * @param [properties] Properties to set - * @returns GetStudyRequest instance + * @returns AnnotationSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetStudyRequest): google.cloud.aiplatform.v1.GetStudyRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAnnotationSpec): google.cloud.aiplatform.v1beta1.AnnotationSpec; /** - * Encodes the specified GetStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetStudyRequest.verify|verify} messages. - * @param message GetStudyRequest message or plain object to encode + * Encodes the specified AnnotationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AnnotationSpec.verify|verify} messages. + * @param message AnnotationSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAnnotationSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetStudyRequest.verify|verify} messages. - * @param message GetStudyRequest message or plain object to encode + * Encodes the specified AnnotationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AnnotationSpec.verify|verify} messages. + * @param message AnnotationSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAnnotationSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetStudyRequest message from the specified reader or buffer. + * Decodes an AnnotationSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetStudyRequest + * @returns AnnotationSpec * @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.GetStudyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AnnotationSpec; /** - * Decodes a GetStudyRequest message from the specified reader or buffer, length delimited. + * Decodes an AnnotationSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetStudyRequest + * @returns AnnotationSpec * @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.GetStudyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AnnotationSpec; /** - * Verifies a GetStudyRequest message. + * Verifies an AnnotationSpec 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 GetStudyRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AnnotationSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetStudyRequest + * @returns AnnotationSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetStudyRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AnnotationSpec; /** - * Creates a plain object from a GetStudyRequest message. Also converts values to other types if specified. - * @param message GetStudyRequest + * Creates a plain object from an AnnotationSpec message. Also converts values to other types if specified. + * @param message AnnotationSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AnnotationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetStudyRequest to JSON. + * Converts this AnnotationSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetStudyRequest + * Gets the default type url for AnnotationSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateStudyRequest. */ - interface ICreateStudyRequest { + /** Properties of an Artifact. */ + interface IArtifact { - /** CreateStudyRequest parent */ - parent?: (string|null); + /** Artifact name */ + name?: (string|null); - /** CreateStudyRequest study */ - study?: (google.cloud.aiplatform.v1.IStudy|null); + /** Artifact displayName */ + displayName?: (string|null); + + /** Artifact uri */ + uri?: (string|null); + + /** Artifact etag */ + etag?: (string|null); + + /** Artifact labels */ + labels?: ({ [k: string]: string }|null); + + /** Artifact createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Artifact updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Artifact state */ + state?: (google.cloud.aiplatform.v1beta1.Artifact.State|keyof typeof google.cloud.aiplatform.v1beta1.Artifact.State|null); + + /** Artifact schemaTitle */ + schemaTitle?: (string|null); + + /** Artifact schemaVersion */ + schemaVersion?: (string|null); + + /** Artifact metadata */ + metadata?: (google.protobuf.IStruct|null); + + /** Artifact description */ + description?: (string|null); } - /** Represents a CreateStudyRequest. */ - class CreateStudyRequest implements ICreateStudyRequest { + /** Represents an Artifact. */ + class Artifact implements IArtifact { /** - * Constructs a new CreateStudyRequest. + * Constructs a new Artifact. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateStudyRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IArtifact); - /** CreateStudyRequest parent. */ - public parent: string; + /** Artifact name. */ + public name: string; - /** CreateStudyRequest study. */ - public study?: (google.cloud.aiplatform.v1.IStudy|null); + /** Artifact displayName. */ + public displayName: string; + + /** Artifact uri. */ + public uri: string; + + /** Artifact etag. */ + public etag: string; + + /** Artifact labels. */ + public labels: { [k: string]: string }; + + /** Artifact createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Artifact updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Artifact state. */ + public state: (google.cloud.aiplatform.v1beta1.Artifact.State|keyof typeof google.cloud.aiplatform.v1beta1.Artifact.State); + + /** Artifact schemaTitle. */ + public schemaTitle: string; + + /** Artifact schemaVersion. */ + public schemaVersion: string; + + /** Artifact metadata. */ + public metadata?: (google.protobuf.IStruct|null); + + /** Artifact description. */ + public description: string; /** - * Creates a new CreateStudyRequest instance using the specified properties. + * Creates a new Artifact instance using the specified properties. * @param [properties] Properties to set - * @returns CreateStudyRequest instance + * @returns Artifact instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateStudyRequest): google.cloud.aiplatform.v1.CreateStudyRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IArtifact): google.cloud.aiplatform.v1beta1.Artifact; /** - * Encodes the specified CreateStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateStudyRequest.verify|verify} messages. - * @param message CreateStudyRequest message or plain object to encode + * Encodes the specified Artifact message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Artifact.verify|verify} messages. + * @param message Artifact message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IArtifact, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateStudyRequest.verify|verify} messages. - * @param message CreateStudyRequest message or plain object to encode + * Encodes the specified Artifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Artifact.verify|verify} messages. + * @param message Artifact message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IArtifact, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateStudyRequest message from the specified reader or buffer. + * Decodes an Artifact message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateStudyRequest + * @returns Artifact * @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.CreateStudyRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Artifact; /** - * Decodes a CreateStudyRequest message from the specified reader or buffer, length delimited. + * Decodes an Artifact message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateStudyRequest + * @returns Artifact * @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.CreateStudyRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Artifact; /** - * Verifies a CreateStudyRequest message. + * Verifies an Artifact 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 CreateStudyRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Artifact message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateStudyRequest + * @returns Artifact */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateStudyRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Artifact; /** - * Creates a plain object from a CreateStudyRequest message. Also converts values to other types if specified. - * @param message CreateStudyRequest + * Creates a plain object from an Artifact message. Also converts values to other types if specified. + * @param message Artifact * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Artifact, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateStudyRequest to JSON. + * Converts this Artifact to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateStudyRequest + * Gets the default type url for Artifact * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListStudiesRequest. */ - interface IListStudiesRequest { + namespace Artifact { - /** ListStudiesRequest parent */ - parent?: (string|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + PENDING = 1, + LIVE = 2 + } + } + + /** Properties of a BatchPredictionJob. */ + interface IBatchPredictionJob { + + /** BatchPredictionJob name */ + name?: (string|null); + + /** BatchPredictionJob displayName */ + displayName?: (string|null); + + /** BatchPredictionJob model */ + model?: (string|null); + + /** BatchPredictionJob modelVersionId */ + modelVersionId?: (string|null); + + /** BatchPredictionJob unmanagedContainerModel */ + unmanagedContainerModel?: (google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel|null); + + /** BatchPredictionJob inputConfig */ + inputConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig|null); + + /** BatchPredictionJob instanceConfig */ + instanceConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig|null); + + /** BatchPredictionJob modelParameters */ + modelParameters?: (google.protobuf.IValue|null); + + /** BatchPredictionJob outputConfig */ + outputConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig|null); + + /** BatchPredictionJob dedicatedResources */ + dedicatedResources?: (google.cloud.aiplatform.v1beta1.IBatchDedicatedResources|null); + + /** BatchPredictionJob serviceAccount */ + serviceAccount?: (string|null); + + /** BatchPredictionJob manualBatchTuningParameters */ + manualBatchTuningParameters?: (google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters|null); + + /** BatchPredictionJob generateExplanation */ + generateExplanation?: (boolean|null); + + /** BatchPredictionJob explanationSpec */ + explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + + /** BatchPredictionJob outputInfo */ + outputInfo?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo|null); + + /** BatchPredictionJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); + + /** BatchPredictionJob error */ + error?: (google.rpc.IStatus|null); + + /** BatchPredictionJob partialFailures */ + partialFailures?: (google.rpc.IStatus[]|null); + + /** BatchPredictionJob resourcesConsumed */ + resourcesConsumed?: (google.cloud.aiplatform.v1beta1.IResourcesConsumed|null); + + /** BatchPredictionJob completionStats */ + completionStats?: (google.cloud.aiplatform.v1beta1.ICompletionStats|null); + + /** BatchPredictionJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** BatchPredictionJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** BatchPredictionJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** BatchPredictionJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** BatchPredictionJob labels */ + labels?: ({ [k: string]: string }|null); + + /** BatchPredictionJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** BatchPredictionJob modelMonitoringConfig */ + modelMonitoringConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringConfig|null); + + /** BatchPredictionJob modelMonitoringStatsAnomalies */ + modelMonitoringStatsAnomalies?: (google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]|null); + + /** BatchPredictionJob modelMonitoringStatus */ + modelMonitoringStatus?: (google.rpc.IStatus|null); + } + + /** Represents a BatchPredictionJob. */ + class BatchPredictionJob implements IBatchPredictionJob { + + /** + * Constructs a new BatchPredictionJob. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchPredictionJob); + + /** BatchPredictionJob name. */ + public name: string; + + /** BatchPredictionJob displayName. */ + public displayName: string; + + /** BatchPredictionJob model. */ + public model: string; + + /** BatchPredictionJob modelVersionId. */ + public modelVersionId: string; + + /** BatchPredictionJob unmanagedContainerModel. */ + public unmanagedContainerModel?: (google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel|null); + + /** BatchPredictionJob inputConfig. */ + public inputConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig|null); + + /** BatchPredictionJob instanceConfig. */ + public instanceConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig|null); + + /** BatchPredictionJob modelParameters. */ + public modelParameters?: (google.protobuf.IValue|null); + + /** BatchPredictionJob outputConfig. */ + public outputConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig|null); + + /** BatchPredictionJob dedicatedResources. */ + public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IBatchDedicatedResources|null); + + /** BatchPredictionJob serviceAccount. */ + public serviceAccount: string; + + /** BatchPredictionJob manualBatchTuningParameters. */ + public manualBatchTuningParameters?: (google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters|null); + + /** BatchPredictionJob generateExplanation. */ + public generateExplanation: boolean; + + /** BatchPredictionJob explanationSpec. */ + public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + + /** BatchPredictionJob outputInfo. */ + public outputInfo?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo|null); + + /** BatchPredictionJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); + + /** BatchPredictionJob error. */ + public error?: (google.rpc.IStatus|null); + + /** BatchPredictionJob partialFailures. */ + public partialFailures: google.rpc.IStatus[]; + + /** BatchPredictionJob resourcesConsumed. */ + public resourcesConsumed?: (google.cloud.aiplatform.v1beta1.IResourcesConsumed|null); + + /** BatchPredictionJob completionStats. */ + public completionStats?: (google.cloud.aiplatform.v1beta1.ICompletionStats|null); + + /** BatchPredictionJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ListStudiesRequest pageToken */ - pageToken?: (string|null); + /** BatchPredictionJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** ListStudiesRequest pageSize */ - pageSize?: (number|null); - } + /** BatchPredictionJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** Represents a ListStudiesRequest. */ - class ListStudiesRequest implements IListStudiesRequest { + /** BatchPredictionJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new ListStudiesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListStudiesRequest); + /** BatchPredictionJob labels. */ + public labels: { [k: string]: string }; - /** ListStudiesRequest parent. */ - public parent: string; + /** BatchPredictionJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** ListStudiesRequest pageToken. */ - public pageToken: string; + /** BatchPredictionJob modelMonitoringConfig. */ + public modelMonitoringConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringConfig|null); - /** ListStudiesRequest pageSize. */ - public pageSize: number; + /** BatchPredictionJob modelMonitoringStatsAnomalies. */ + public modelMonitoringStatsAnomalies: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]; + + /** BatchPredictionJob modelMonitoringStatus. */ + public modelMonitoringStatus?: (google.rpc.IStatus|null); /** - * Creates a new ListStudiesRequest instance using the specified properties. + * Creates a new BatchPredictionJob instance using the specified properties. * @param [properties] Properties to set - * @returns ListStudiesRequest instance + * @returns BatchPredictionJob instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListStudiesRequest): google.cloud.aiplatform.v1.ListStudiesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchPredictionJob): google.cloud.aiplatform.v1beta1.BatchPredictionJob; /** - * Encodes the specified ListStudiesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesRequest.verify|verify} messages. - * @param message ListStudiesRequest message or plain object to encode + * Encodes the specified BatchPredictionJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify|verify} messages. + * @param message BatchPredictionJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListStudiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchPredictionJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListStudiesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesRequest.verify|verify} messages. - * @param message ListStudiesRequest message or plain object to encode + * Encodes the specified BatchPredictionJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify|verify} messages. + * @param message BatchPredictionJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListStudiesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchPredictionJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListStudiesRequest message from the specified reader or buffer. + * Decodes a BatchPredictionJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListStudiesRequest + * @returns BatchPredictionJob * @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.ListStudiesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchPredictionJob; /** - * Decodes a ListStudiesRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchPredictionJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListStudiesRequest + * @returns BatchPredictionJob * @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.ListStudiesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchPredictionJob; /** - * Verifies a ListStudiesRequest message. + * Verifies a BatchPredictionJob 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 ListStudiesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchPredictionJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListStudiesRequest + * @returns BatchPredictionJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListStudiesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob; /** - * Creates a plain object from a ListStudiesRequest message. Also converts values to other types if specified. - * @param message ListStudiesRequest + * Creates a plain object from a BatchPredictionJob message. Also converts values to other types if specified. + * @param message BatchPredictionJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListStudiesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListStudiesRequest to JSON. + * Converts this BatchPredictionJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListStudiesRequest + * Gets the default type url for BatchPredictionJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListStudiesResponse. */ - interface IListStudiesResponse { + namespace BatchPredictionJob { - /** ListStudiesResponse studies */ - studies?: (google.cloud.aiplatform.v1.IStudy[]|null); + /** Properties of an InputConfig. */ + interface IInputConfig { - /** ListStudiesResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** InputConfig gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** Represents a ListStudiesResponse. */ - class ListStudiesResponse implements IListStudiesResponse { + /** InputConfig bigquerySource */ + bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - /** - * Constructs a new ListStudiesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IListStudiesResponse); + /** InputConfig instancesFormat */ + instancesFormat?: (string|null); + } - /** ListStudiesResponse studies. */ - public studies: google.cloud.aiplatform.v1.IStudy[]; + /** Represents an InputConfig. */ + class InputConfig implements IInputConfig { - /** ListStudiesResponse nextPageToken. */ - public nextPageToken: string; + /** + * Constructs a new InputConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig); - /** - * Creates a new ListStudiesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListStudiesResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IListStudiesResponse): google.cloud.aiplatform.v1.ListStudiesResponse; + /** InputConfig gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** - * Encodes the specified ListStudiesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesResponse.verify|verify} messages. - * @param message ListStudiesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IListStudiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** InputConfig bigquerySource. */ + public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - /** - * Encodes the specified ListStudiesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListStudiesResponse.verify|verify} messages. - * @param message ListStudiesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListStudiesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** InputConfig instancesFormat. */ + public instancesFormat: string; - /** - * Decodes a ListStudiesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListStudiesResponse - * @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.ListStudiesResponse; + /** InputConfig source. */ + public source?: ("gcsSource"|"bigquerySource"); - /** - * Decodes a ListStudiesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListStudiesResponse - * @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.ListStudiesResponse; + /** + * Creates a new InputConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns InputConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig): google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig; - /** - * Verifies a ListStudiesResponse 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); + /** + * Encodes the specified InputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.verify|verify} messages. + * @param message InputConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a ListStudiesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListStudiesResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListStudiesResponse; + /** + * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.verify|verify} messages. + * @param message InputConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a ListStudiesResponse message. Also converts values to other types if specified. - * @param message ListStudiesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.ListStudiesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes an InputConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InputConfig + * @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.BatchPredictionJob.InputConfig; - /** - * Converts this ListStudiesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes an InputConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InputConfig + * @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.BatchPredictionJob.InputConfig; - /** - * Gets the default type url for ListStudiesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies an InputConfig 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); - /** Properties of a DeleteStudyRequest. */ - interface IDeleteStudyRequest { + /** + * Creates an InputConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InputConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig; - /** DeleteStudyRequest name */ - name?: (string|null); - } + /** + * Creates a plain object from an InputConfig message. Also converts values to other types if specified. + * @param message InputConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a DeleteStudyRequest. */ - class DeleteStudyRequest implements IDeleteStudyRequest { + /** + * Converts this InputConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new DeleteStudyRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteStudyRequest); + /** + * Gets the default type url for InputConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** DeleteStudyRequest name. */ - public name: string; + /** Properties of an InstanceConfig. */ + interface IInstanceConfig { - /** - * Creates a new DeleteStudyRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteStudyRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteStudyRequest): google.cloud.aiplatform.v1.DeleteStudyRequest; + /** InstanceConfig instanceType */ + instanceType?: (string|null); - /** - * Encodes the specified DeleteStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteStudyRequest.verify|verify} messages. - * @param message DeleteStudyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** InstanceConfig keyField */ + keyField?: (string|null); - /** - * Encodes the specified DeleteStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteStudyRequest.verify|verify} messages. - * @param message DeleteStudyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** InstanceConfig includedFields */ + includedFields?: (string[]|null); - /** - * Decodes a DeleteStudyRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteStudyRequest - * @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.DeleteStudyRequest; + /** InstanceConfig excludedFields */ + excludedFields?: (string[]|null); + } - /** - * Decodes a DeleteStudyRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteStudyRequest - * @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.DeleteStudyRequest; + /** Represents an InstanceConfig. */ + class InstanceConfig implements IInstanceConfig { + + /** + * Constructs a new InstanceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig); + + /** InstanceConfig instanceType. */ + public instanceType: string; + + /** InstanceConfig keyField. */ + public keyField: string; + + /** InstanceConfig includedFields. */ + public includedFields: string[]; + + /** InstanceConfig excludedFields. */ + public excludedFields: string[]; + + /** + * Creates a new InstanceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns InstanceConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig): google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig; + + /** + * Encodes the specified InstanceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.verify|verify} messages. + * @param message InstanceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InstanceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.verify|verify} messages. + * @param message InstanceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InstanceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InstanceConfig + * @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.BatchPredictionJob.InstanceConfig; + + /** + * Decodes an InstanceConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InstanceConfig + * @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.BatchPredictionJob.InstanceConfig; + + /** + * Verifies an InstanceConfig 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 InstanceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InstanceConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig; + + /** + * Creates a plain object from an InstanceConfig message. Also converts values to other types if specified. + * @param message InstanceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InstanceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InstanceConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an OutputConfig. */ + interface IOutputConfig { + + /** OutputConfig gcsDestination */ + gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** OutputConfig bigqueryDestination */ + bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + + /** OutputConfig predictionsFormat */ + predictionsFormat?: (string|null); + } + + /** Represents an OutputConfig. */ + class OutputConfig implements IOutputConfig { + + /** + * Constructs a new OutputConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig); + + /** OutputConfig gcsDestination. */ + public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** OutputConfig bigqueryDestination. */ + public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + + /** OutputConfig predictionsFormat. */ + public predictionsFormat: string; + + /** OutputConfig destination. */ + public destination?: ("gcsDestination"|"bigqueryDestination"); + + /** + * Creates a new OutputConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns OutputConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig): google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig; + + /** + * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.verify|verify} messages. + * @param message OutputConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.verify|verify} messages. + * @param message OutputConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OutputConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OutputConfig + * @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.BatchPredictionJob.OutputConfig; + + /** + * Decodes an OutputConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OutputConfig + * @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.BatchPredictionJob.OutputConfig; + + /** + * Verifies an OutputConfig 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 OutputConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OutputConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig; - /** - * Verifies a DeleteStudyRequest 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 plain object from an OutputConfig message. Also converts values to other types if specified. + * @param message OutputConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a DeleteStudyRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteStudyRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteStudyRequest; + /** + * Converts this OutputConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from a DeleteStudyRequest message. Also converts values to other types if specified. - * @param message DeleteStudyRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for OutputConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this DeleteStudyRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of an OutputInfo. */ + interface IOutputInfo { - /** - * Gets the default type url for DeleteStudyRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** OutputInfo gcsOutputDirectory */ + gcsOutputDirectory?: (string|null); - /** Properties of a LookupStudyRequest. */ - interface ILookupStudyRequest { + /** OutputInfo bigqueryOutputDataset */ + bigqueryOutputDataset?: (string|null); - /** LookupStudyRequest parent */ - parent?: (string|null); + /** OutputInfo bigqueryOutputTable */ + bigqueryOutputTable?: (string|null); + } - /** LookupStudyRequest displayName */ - displayName?: (string|null); - } + /** Represents an OutputInfo. */ + class OutputInfo implements IOutputInfo { - /** Represents a LookupStudyRequest. */ - class LookupStudyRequest implements ILookupStudyRequest { + /** + * Constructs a new OutputInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo); - /** - * Constructs a new LookupStudyRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1.ILookupStudyRequest); + /** OutputInfo gcsOutputDirectory. */ + public gcsOutputDirectory?: (string|null); - /** LookupStudyRequest parent. */ - public parent: string; + /** OutputInfo bigqueryOutputDataset. */ + public bigqueryOutputDataset?: (string|null); - /** LookupStudyRequest displayName. */ - public displayName: string; + /** OutputInfo bigqueryOutputTable. */ + public bigqueryOutputTable: string; - /** - * Creates a new LookupStudyRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns LookupStudyRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1.ILookupStudyRequest): google.cloud.aiplatform.v1.LookupStudyRequest; + /** OutputInfo outputLocation. */ + public outputLocation?: ("gcsOutputDirectory"|"bigqueryOutputDataset"); - /** - * Encodes the specified LookupStudyRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.LookupStudyRequest.verify|verify} messages. - * @param message LookupStudyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1.ILookupStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new OutputInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns OutputInfo instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo): google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo; - /** - * Encodes the specified LookupStudyRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LookupStudyRequest.verify|verify} messages. - * @param message LookupStudyRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ILookupStudyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo.verify|verify} messages. + * @param message OutputInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a LookupStudyRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LookupStudyRequest - * @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.LookupStudyRequest; + /** + * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo.verify|verify} messages. + * @param message OutputInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a LookupStudyRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LookupStudyRequest - * @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.LookupStudyRequest; + /** + * Decodes an OutputInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OutputInfo + * @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.BatchPredictionJob.OutputInfo; - /** - * Verifies a LookupStudyRequest 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); + /** + * Decodes an OutputInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OutputInfo + * @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.BatchPredictionJob.OutputInfo; - /** - * Creates a LookupStudyRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LookupStudyRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.LookupStudyRequest; + /** + * Verifies an OutputInfo 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 plain object from a LookupStudyRequest message. Also converts values to other types if specified. - * @param message LookupStudyRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1.LookupStudyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates an OutputInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OutputInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo; - /** - * Converts this LookupStudyRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. + * @param message OutputInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for LookupStudyRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Converts this OutputInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OutputInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a SuggestTrialsRequest. */ - interface ISuggestTrialsRequest { + /** Properties of a CompletionStats. */ + interface ICompletionStats { - /** SuggestTrialsRequest parent */ - parent?: (string|null); + /** CompletionStats successfulCount */ + successfulCount?: (number|Long|string|null); - /** SuggestTrialsRequest suggestionCount */ - suggestionCount?: (number|null); + /** CompletionStats failedCount */ + failedCount?: (number|Long|string|null); - /** SuggestTrialsRequest clientId */ - clientId?: (string|null); + /** CompletionStats incompleteCount */ + incompleteCount?: (number|Long|string|null); + + /** CompletionStats successfulForecastPointCount */ + successfulForecastPointCount?: (number|Long|string|null); } - /** Represents a SuggestTrialsRequest. */ - class SuggestTrialsRequest implements ISuggestTrialsRequest { + /** Represents a CompletionStats. */ + class CompletionStats implements ICompletionStats { /** - * Constructs a new SuggestTrialsRequest. + * Constructs a new CompletionStats. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISuggestTrialsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICompletionStats); - /** SuggestTrialsRequest parent. */ - public parent: string; + /** CompletionStats successfulCount. */ + public successfulCount: (number|Long|string); - /** SuggestTrialsRequest suggestionCount. */ - public suggestionCount: number; + /** CompletionStats failedCount. */ + public failedCount: (number|Long|string); - /** SuggestTrialsRequest clientId. */ - public clientId: string; + /** CompletionStats incompleteCount. */ + public incompleteCount: (number|Long|string); + + /** CompletionStats successfulForecastPointCount. */ + public successfulForecastPointCount: (number|Long|string); /** - * Creates a new SuggestTrialsRequest instance using the specified properties. + * Creates a new CompletionStats instance using the specified properties. * @param [properties] Properties to set - * @returns SuggestTrialsRequest instance + * @returns CompletionStats instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISuggestTrialsRequest): google.cloud.aiplatform.v1.SuggestTrialsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICompletionStats): google.cloud.aiplatform.v1beta1.CompletionStats; /** - * Encodes the specified SuggestTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsRequest.verify|verify} messages. - * @param message SuggestTrialsRequest message or plain object to encode + * Encodes the specified CompletionStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CompletionStats.verify|verify} messages. + * @param message CompletionStats message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISuggestTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICompletionStats, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SuggestTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsRequest.verify|verify} messages. - * @param message SuggestTrialsRequest message or plain object to encode + * Encodes the specified CompletionStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CompletionStats.verify|verify} messages. + * @param message CompletionStats message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISuggestTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICompletionStats, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SuggestTrialsRequest message from the specified reader or buffer. + * Decodes a CompletionStats message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SuggestTrialsRequest + * @returns CompletionStats * @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.SuggestTrialsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CompletionStats; /** - * Decodes a SuggestTrialsRequest message from the specified reader or buffer, length delimited. + * Decodes a CompletionStats message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SuggestTrialsRequest + * @returns CompletionStats * @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.SuggestTrialsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CompletionStats; /** - * Verifies a SuggestTrialsRequest message. + * Verifies a CompletionStats 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 SuggestTrialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CompletionStats message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SuggestTrialsRequest + * @returns CompletionStats */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SuggestTrialsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CompletionStats; /** - * Creates a plain object from a SuggestTrialsRequest message. Also converts values to other types if specified. - * @param message SuggestTrialsRequest + * Creates a plain object from a CompletionStats message. Also converts values to other types if specified. + * @param message CompletionStats * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SuggestTrialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CompletionStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SuggestTrialsRequest to JSON. + * Converts this CompletionStats to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SuggestTrialsRequest + * Gets the default type url for CompletionStats * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SuggestTrialsResponse. */ - interface ISuggestTrialsResponse { - - /** SuggestTrialsResponse trials */ - trials?: (google.cloud.aiplatform.v1.ITrial[]|null); - - /** SuggestTrialsResponse studyState */ - studyState?: (google.cloud.aiplatform.v1.Study.State|keyof typeof google.cloud.aiplatform.v1.Study.State|null); - - /** SuggestTrialsResponse startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** Properties of an EncryptionSpec. */ + interface IEncryptionSpec { - /** SuggestTrialsResponse endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** EncryptionSpec kmsKeyName */ + kmsKeyName?: (string|null); } - /** Represents a SuggestTrialsResponse. */ - class SuggestTrialsResponse implements ISuggestTrialsResponse { + /** Represents an EncryptionSpec. */ + class EncryptionSpec implements IEncryptionSpec { /** - * Constructs a new SuggestTrialsResponse. + * Constructs a new EncryptionSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISuggestTrialsResponse); - - /** SuggestTrialsResponse trials. */ - public trials: google.cloud.aiplatform.v1.ITrial[]; - - /** SuggestTrialsResponse studyState. */ - public studyState: (google.cloud.aiplatform.v1.Study.State|keyof typeof google.cloud.aiplatform.v1.Study.State); - - /** SuggestTrialsResponse startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IEncryptionSpec); - /** SuggestTrialsResponse endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** EncryptionSpec kmsKeyName. */ + public kmsKeyName: string; /** - * Creates a new SuggestTrialsResponse instance using the specified properties. + * Creates a new EncryptionSpec instance using the specified properties. * @param [properties] Properties to set - * @returns SuggestTrialsResponse instance + * @returns EncryptionSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISuggestTrialsResponse): google.cloud.aiplatform.v1.SuggestTrialsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEncryptionSpec): google.cloud.aiplatform.v1beta1.EncryptionSpec; /** - * Encodes the specified SuggestTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsResponse.verify|verify} messages. - * @param message SuggestTrialsResponse message or plain object to encode + * Encodes the specified EncryptionSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EncryptionSpec.verify|verify} messages. + * @param message EncryptionSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISuggestTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEncryptionSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SuggestTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsResponse.verify|verify} messages. - * @param message SuggestTrialsResponse message or plain object to encode + * Encodes the specified EncryptionSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EncryptionSpec.verify|verify} messages. + * @param message EncryptionSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISuggestTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEncryptionSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SuggestTrialsResponse message from the specified reader or buffer. + * Decodes an EncryptionSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SuggestTrialsResponse + * @returns EncryptionSpec * @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.SuggestTrialsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.EncryptionSpec; /** - * Decodes a SuggestTrialsResponse message from the specified reader or buffer, length delimited. + * Decodes an EncryptionSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SuggestTrialsResponse + * @returns EncryptionSpec * @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.SuggestTrialsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.EncryptionSpec; /** - * Verifies a SuggestTrialsResponse message. + * Verifies an EncryptionSpec 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 SuggestTrialsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an EncryptionSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SuggestTrialsResponse + * @returns EncryptionSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SuggestTrialsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EncryptionSpec; /** - * Creates a plain object from a SuggestTrialsResponse message. Also converts values to other types if specified. - * @param message SuggestTrialsResponse + * Creates a plain object from an EncryptionSpec message. Also converts values to other types if specified. + * @param message EncryptionSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SuggestTrialsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.EncryptionSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SuggestTrialsResponse to JSON. + * Converts this EncryptionSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SuggestTrialsResponse + * Gets the default type url for EncryptionSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SuggestTrialsMetadata. */ - interface ISuggestTrialsMetadata { + /** Properties of an Explanation. */ + interface IExplanation { - /** SuggestTrialsMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** Explanation attributions */ + attributions?: (google.cloud.aiplatform.v1beta1.IAttribution[]|null); - /** SuggestTrialsMetadata clientId */ - clientId?: (string|null); + /** Explanation neighbors */ + neighbors?: (google.cloud.aiplatform.v1beta1.INeighbor[]|null); } - /** Represents a SuggestTrialsMetadata. */ - class SuggestTrialsMetadata implements ISuggestTrialsMetadata { + /** Represents an Explanation. */ + class Explanation implements IExplanation { /** - * Constructs a new SuggestTrialsMetadata. + * Constructs a new Explanation. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ISuggestTrialsMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanation); - /** SuggestTrialsMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); + /** Explanation attributions. */ + public attributions: google.cloud.aiplatform.v1beta1.IAttribution[]; - /** SuggestTrialsMetadata clientId. */ - public clientId: string; + /** Explanation neighbors. */ + public neighbors: google.cloud.aiplatform.v1beta1.INeighbor[]; /** - * Creates a new SuggestTrialsMetadata instance using the specified properties. + * Creates a new Explanation instance using the specified properties. * @param [properties] Properties to set - * @returns SuggestTrialsMetadata instance + * @returns Explanation instance */ - public static create(properties?: google.cloud.aiplatform.v1.ISuggestTrialsMetadata): google.cloud.aiplatform.v1.SuggestTrialsMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanation): google.cloud.aiplatform.v1beta1.Explanation; /** - * Encodes the specified SuggestTrialsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsMetadata.verify|verify} messages. - * @param message SuggestTrialsMetadata message or plain object to encode + * Encodes the specified Explanation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Explanation.verify|verify} messages. + * @param message Explanation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ISuggestTrialsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExplanation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SuggestTrialsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SuggestTrialsMetadata.verify|verify} messages. - * @param message SuggestTrialsMetadata message or plain object to encode + * Encodes the specified Explanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Explanation.verify|verify} messages. + * @param message Explanation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ISuggestTrialsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SuggestTrialsMetadata message from the specified reader or buffer. + * Decodes an Explanation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SuggestTrialsMetadata + * @returns Explanation * @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.SuggestTrialsMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Explanation; /** - * Decodes a SuggestTrialsMetadata message from the specified reader or buffer, length delimited. + * Decodes an Explanation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SuggestTrialsMetadata + * @returns Explanation * @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.SuggestTrialsMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Explanation; /** - * Verifies a SuggestTrialsMetadata message. + * Verifies an Explanation 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 SuggestTrialsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an Explanation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SuggestTrialsMetadata + * @returns Explanation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SuggestTrialsMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Explanation; /** - * Creates a plain object from a SuggestTrialsMetadata message. Also converts values to other types if specified. - * @param message SuggestTrialsMetadata + * Creates a plain object from an Explanation message. Also converts values to other types if specified. + * @param message Explanation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.SuggestTrialsMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Explanation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SuggestTrialsMetadata to JSON. + * Converts this Explanation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SuggestTrialsMetadata + * Gets the default type url for Explanation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateTrialRequest. */ - interface ICreateTrialRequest { - - /** CreateTrialRequest parent */ - parent?: (string|null); + /** Properties of a ModelExplanation. */ + interface IModelExplanation { - /** CreateTrialRequest trial */ - trial?: (google.cloud.aiplatform.v1.ITrial|null); + /** ModelExplanation meanAttributions */ + meanAttributions?: (google.cloud.aiplatform.v1beta1.IAttribution[]|null); } - /** Represents a CreateTrialRequest. */ - class CreateTrialRequest implements ICreateTrialRequest { + /** Represents a ModelExplanation. */ + class ModelExplanation implements IModelExplanation { /** - * Constructs a new CreateTrialRequest. + * Constructs a new ModelExplanation. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICreateTrialRequest); - - /** CreateTrialRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelExplanation); - /** CreateTrialRequest trial. */ - public trial?: (google.cloud.aiplatform.v1.ITrial|null); + /** ModelExplanation meanAttributions. */ + public meanAttributions: google.cloud.aiplatform.v1beta1.IAttribution[]; /** - * Creates a new CreateTrialRequest instance using the specified properties. + * Creates a new ModelExplanation instance using the specified properties. * @param [properties] Properties to set - * @returns CreateTrialRequest instance + * @returns ModelExplanation instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICreateTrialRequest): google.cloud.aiplatform.v1.CreateTrialRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelExplanation): google.cloud.aiplatform.v1beta1.ModelExplanation; /** - * Encodes the specified CreateTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrialRequest.verify|verify} messages. - * @param message CreateTrialRequest message or plain object to encode + * Encodes the specified ModelExplanation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelExplanation.verify|verify} messages. + * @param message ModelExplanation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICreateTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelExplanation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrialRequest.verify|verify} messages. - * @param message CreateTrialRequest message or plain object to encode + * Encodes the specified ModelExplanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelExplanation.verify|verify} messages. + * @param message ModelExplanation message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICreateTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelExplanation, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateTrialRequest message from the specified reader or buffer. + * Decodes a ModelExplanation message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateTrialRequest + * @returns ModelExplanation * @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.CreateTrialRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelExplanation; /** - * Decodes a CreateTrialRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelExplanation message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateTrialRequest + * @returns ModelExplanation * @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.CreateTrialRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelExplanation; /** - * Verifies a CreateTrialRequest message. + * Verifies a ModelExplanation 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 CreateTrialRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelExplanation message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateTrialRequest + * @returns ModelExplanation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CreateTrialRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelExplanation; /** - * Creates a plain object from a CreateTrialRequest message. Also converts values to other types if specified. - * @param message CreateTrialRequest + * Creates a plain object from a ModelExplanation message. Also converts values to other types if specified. + * @param message ModelExplanation * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CreateTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelExplanation, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateTrialRequest to JSON. + * Converts this ModelExplanation to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateTrialRequest + * Gets the default type url for ModelExplanation * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetTrialRequest. */ - interface IGetTrialRequest { + /** Properties of an Attribution. */ + interface IAttribution { - /** GetTrialRequest name */ - name?: (string|null); + /** Attribution baselineOutputValue */ + baselineOutputValue?: (number|null); + + /** Attribution instanceOutputValue */ + instanceOutputValue?: (number|null); + + /** Attribution featureAttributions */ + featureAttributions?: (google.protobuf.IValue|null); + + /** Attribution outputIndex */ + outputIndex?: (number[]|null); + + /** Attribution outputDisplayName */ + outputDisplayName?: (string|null); + + /** Attribution approximationError */ + approximationError?: (number|null); + + /** Attribution outputName */ + outputName?: (string|null); } - /** Represents a GetTrialRequest. */ - class GetTrialRequest implements IGetTrialRequest { + /** Represents an Attribution. */ + class Attribution implements IAttribution { /** - * Constructs a new GetTrialRequest. + * Constructs a new Attribution. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IGetTrialRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IAttribution); - /** GetTrialRequest name. */ - public name: string; + /** Attribution baselineOutputValue. */ + public baselineOutputValue: number; + + /** Attribution instanceOutputValue. */ + public instanceOutputValue: number; + + /** Attribution featureAttributions. */ + public featureAttributions?: (google.protobuf.IValue|null); + + /** Attribution outputIndex. */ + public outputIndex: number[]; + + /** Attribution outputDisplayName. */ + public outputDisplayName: string; + + /** Attribution approximationError. */ + public approximationError: number; + + /** Attribution outputName. */ + public outputName: string; /** - * Creates a new GetTrialRequest instance using the specified properties. + * Creates a new Attribution instance using the specified properties. * @param [properties] Properties to set - * @returns GetTrialRequest instance + * @returns Attribution instance */ - public static create(properties?: google.cloud.aiplatform.v1.IGetTrialRequest): google.cloud.aiplatform.v1.GetTrialRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAttribution): google.cloud.aiplatform.v1beta1.Attribution; /** - * Encodes the specified GetTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrialRequest.verify|verify} messages. - * @param message GetTrialRequest message or plain object to encode + * Encodes the specified Attribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Attribution.verify|verify} messages. + * @param message Attribution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IGetTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAttribution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrialRequest.verify|verify} messages. - * @param message GetTrialRequest message or plain object to encode + * Encodes the specified Attribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Attribution.verify|verify} messages. + * @param message Attribution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IGetTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAttribution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetTrialRequest message from the specified reader or buffer. + * Decodes an Attribution message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetTrialRequest + * @returns Attribution * @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.GetTrialRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Attribution; /** - * Decodes a GetTrialRequest message from the specified reader or buffer, length delimited. + * Decodes an Attribution message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetTrialRequest + * @returns Attribution * @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.GetTrialRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Attribution; /** - * Verifies a GetTrialRequest message. + * Verifies an Attribution 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 GetTrialRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Attribution message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetTrialRequest + * @returns Attribution */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.GetTrialRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Attribution; /** - * Creates a plain object from a GetTrialRequest message. Also converts values to other types if specified. - * @param message GetTrialRequest + * Creates a plain object from an Attribution message. Also converts values to other types if specified. + * @param message Attribution * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.GetTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Attribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetTrialRequest to JSON. + * Converts this Attribution to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetTrialRequest + * Gets the default type url for Attribution * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTrialsRequest. */ - interface IListTrialsRequest { - - /** ListTrialsRequest parent */ - parent?: (string|null); + /** Properties of a Neighbor. */ + interface INeighbor { - /** ListTrialsRequest pageToken */ - pageToken?: (string|null); + /** Neighbor neighborId */ + neighborId?: (string|null); - /** ListTrialsRequest pageSize */ - pageSize?: (number|null); + /** Neighbor neighborDistance */ + neighborDistance?: (number|null); } - /** Represents a ListTrialsRequest. */ - class ListTrialsRequest implements IListTrialsRequest { + /** Represents a Neighbor. */ + class Neighbor implements INeighbor { /** - * Constructs a new ListTrialsRequest. + * Constructs a new Neighbor. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTrialsRequest); - - /** ListTrialsRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.INeighbor); - /** ListTrialsRequest pageToken. */ - public pageToken: string; + /** Neighbor neighborId. */ + public neighborId: string; - /** ListTrialsRequest pageSize. */ - public pageSize: number; + /** Neighbor neighborDistance. */ + public neighborDistance: number; /** - * Creates a new ListTrialsRequest instance using the specified properties. + * Creates a new Neighbor instance using the specified properties. * @param [properties] Properties to set - * @returns ListTrialsRequest instance + * @returns Neighbor instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTrialsRequest): google.cloud.aiplatform.v1.ListTrialsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.INeighbor): google.cloud.aiplatform.v1beta1.Neighbor; /** - * Encodes the specified ListTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsRequest.verify|verify} messages. - * @param message ListTrialsRequest message or plain object to encode + * Encodes the specified Neighbor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Neighbor.verify|verify} messages. + * @param message Neighbor message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INeighbor, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsRequest.verify|verify} messages. - * @param message ListTrialsRequest message or plain object to encode + * Encodes the specified Neighbor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Neighbor.verify|verify} messages. + * @param message Neighbor message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INeighbor, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTrialsRequest message from the specified reader or buffer. + * Decodes a Neighbor message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTrialsRequest + * @returns Neighbor * @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.ListTrialsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Neighbor; /** - * Decodes a ListTrialsRequest message from the specified reader or buffer, length delimited. + * Decodes a Neighbor message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTrialsRequest + * @returns Neighbor * @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.ListTrialsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Neighbor; /** - * Verifies a ListTrialsRequest message. + * Verifies a Neighbor 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 ListTrialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Neighbor message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTrialsRequest + * @returns Neighbor */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrialsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Neighbor; /** - * Creates a plain object from a ListTrialsRequest message. Also converts values to other types if specified. - * @param message ListTrialsRequest + * Creates a plain object from a Neighbor message. Also converts values to other types if specified. + * @param message Neighbor * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTrialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Neighbor, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTrialsRequest to JSON. + * Converts this Neighbor to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTrialsRequest + * Gets the default type url for Neighbor * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListTrialsResponse. */ - interface IListTrialsResponse { + /** Properties of an ExplanationSpec. */ + interface IExplanationSpec { - /** ListTrialsResponse trials */ - trials?: (google.cloud.aiplatform.v1.ITrial[]|null); + /** ExplanationSpec parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.IExplanationParameters|null); - /** ListTrialsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ExplanationSpec metadata */ + metadata?: (google.cloud.aiplatform.v1beta1.IExplanationMetadata|null); } - /** Represents a ListTrialsResponse. */ - class ListTrialsResponse implements IListTrialsResponse { + /** Represents an ExplanationSpec. */ + class ExplanationSpec implements IExplanationSpec { /** - * Constructs a new ListTrialsResponse. + * Constructs a new ExplanationSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListTrialsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationSpec); - /** ListTrialsResponse trials. */ - public trials: google.cloud.aiplatform.v1.ITrial[]; + /** ExplanationSpec parameters. */ + public parameters?: (google.cloud.aiplatform.v1beta1.IExplanationParameters|null); - /** ListTrialsResponse nextPageToken. */ - public nextPageToken: string; + /** ExplanationSpec metadata. */ + public metadata?: (google.cloud.aiplatform.v1beta1.IExplanationMetadata|null); /** - * Creates a new ListTrialsResponse instance using the specified properties. + * Creates a new ExplanationSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ListTrialsResponse instance + * @returns ExplanationSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListTrialsResponse): google.cloud.aiplatform.v1.ListTrialsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationSpec): google.cloud.aiplatform.v1beta1.ExplanationSpec; /** - * Encodes the specified ListTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsResponse.verify|verify} messages. - * @param message ListTrialsResponse message or plain object to encode + * Encodes the specified ExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationSpec.verify|verify} messages. + * @param message ExplanationSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrialsResponse.verify|verify} messages. - * @param message ListTrialsResponse message or plain object to encode + * Encodes the specified ExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationSpec.verify|verify} messages. + * @param message ExplanationSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListTrialsResponse message from the specified reader or buffer. + * Decodes an ExplanationSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListTrialsResponse + * @returns ExplanationSpec * @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.ListTrialsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplanationSpec; /** - * Decodes a ListTrialsResponse message from the specified reader or buffer, length delimited. + * Decodes an ExplanationSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListTrialsResponse + * @returns ExplanationSpec * @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.ListTrialsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplanationSpec; /** - * Verifies a ListTrialsResponse message. + * Verifies an ExplanationSpec 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 ListTrialsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExplanationSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListTrialsResponse + * @returns ExplanationSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListTrialsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationSpec; /** - * Creates a plain object from a ListTrialsResponse message. Also converts values to other types if specified. - * @param message ListTrialsResponse + * Creates a plain object from an ExplanationSpec message. Also converts values to other types if specified. + * @param message ExplanationSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListTrialsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListTrialsResponse to JSON. + * Converts this ExplanationSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListTrialsResponse + * Gets the default type url for ExplanationSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AddTrialMeasurementRequest. */ - interface IAddTrialMeasurementRequest { + /** Properties of an ExplanationParameters. */ + interface IExplanationParameters { - /** AddTrialMeasurementRequest trialName */ - trialName?: (string|null); + /** ExplanationParameters sampledShapleyAttribution */ + sampledShapleyAttribution?: (google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution|null); - /** AddTrialMeasurementRequest measurement */ - measurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + /** ExplanationParameters integratedGradientsAttribution */ + integratedGradientsAttribution?: (google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution|null); + + /** ExplanationParameters xraiAttribution */ + xraiAttribution?: (google.cloud.aiplatform.v1beta1.IXraiAttribution|null); + + /** ExplanationParameters examples */ + examples?: (google.cloud.aiplatform.v1beta1.IExamples|null); + + /** ExplanationParameters topK */ + topK?: (number|null); + + /** ExplanationParameters outputIndices */ + outputIndices?: (google.protobuf.IListValue|null); } - /** Represents an AddTrialMeasurementRequest. */ - class AddTrialMeasurementRequest implements IAddTrialMeasurementRequest { + /** Represents an ExplanationParameters. */ + class ExplanationParameters implements IExplanationParameters { /** - * Constructs a new AddTrialMeasurementRequest. + * Constructs a new ExplanationParameters. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationParameters); - /** AddTrialMeasurementRequest trialName. */ - public trialName: string; + /** ExplanationParameters sampledShapleyAttribution. */ + public sampledShapleyAttribution?: (google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution|null); - /** AddTrialMeasurementRequest measurement. */ - public measurement?: (google.cloud.aiplatform.v1.IMeasurement|null); + /** ExplanationParameters integratedGradientsAttribution. */ + public integratedGradientsAttribution?: (google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution|null); + + /** ExplanationParameters xraiAttribution. */ + public xraiAttribution?: (google.cloud.aiplatform.v1beta1.IXraiAttribution|null); + + /** ExplanationParameters examples. */ + public examples?: (google.cloud.aiplatform.v1beta1.IExamples|null); + + /** ExplanationParameters topK. */ + public topK: number; + + /** ExplanationParameters outputIndices. */ + public outputIndices?: (google.protobuf.IListValue|null); + + /** ExplanationParameters method. */ + public method?: ("sampledShapleyAttribution"|"integratedGradientsAttribution"|"xraiAttribution"|"examples"); /** - * Creates a new AddTrialMeasurementRequest instance using the specified properties. + * Creates a new ExplanationParameters instance using the specified properties. * @param [properties] Properties to set - * @returns AddTrialMeasurementRequest instance + * @returns ExplanationParameters instance */ - public static create(properties?: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest): google.cloud.aiplatform.v1.AddTrialMeasurementRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationParameters): google.cloud.aiplatform.v1beta1.ExplanationParameters; /** - * Encodes the specified AddTrialMeasurementRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddTrialMeasurementRequest.verify|verify} messages. - * @param message AddTrialMeasurementRequest message or plain object to encode + * Encodes the specified ExplanationParameters message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationParameters.verify|verify} messages. + * @param message ExplanationParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AddTrialMeasurementRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddTrialMeasurementRequest.verify|verify} messages. - * @param message AddTrialMeasurementRequest message or plain object to encode + * Encodes the specified ExplanationParameters message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationParameters.verify|verify} messages. + * @param message ExplanationParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IAddTrialMeasurementRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AddTrialMeasurementRequest message from the specified reader or buffer. + * Decodes an ExplanationParameters message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AddTrialMeasurementRequest + * @returns ExplanationParameters * @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.AddTrialMeasurementRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplanationParameters; /** - * Decodes an AddTrialMeasurementRequest message from the specified reader or buffer, length delimited. + * Decodes an ExplanationParameters message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AddTrialMeasurementRequest + * @returns ExplanationParameters * @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.AddTrialMeasurementRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplanationParameters; /** - * Verifies an AddTrialMeasurementRequest message. + * Verifies an ExplanationParameters 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 AddTrialMeasurementRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExplanationParameters message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AddTrialMeasurementRequest + * @returns ExplanationParameters */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.AddTrialMeasurementRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationParameters; /** - * Creates a plain object from an AddTrialMeasurementRequest message. Also converts values to other types if specified. - * @param message AddTrialMeasurementRequest + * Creates a plain object from an ExplanationParameters message. Also converts values to other types if specified. + * @param message ExplanationParameters * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.AddTrialMeasurementRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AddTrialMeasurementRequest to JSON. + * Converts this ExplanationParameters to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AddTrialMeasurementRequest + * Gets the default type url for ExplanationParameters * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CompleteTrialRequest. */ - interface ICompleteTrialRequest { - - /** CompleteTrialRequest name */ - name?: (string|null); - - /** CompleteTrialRequest finalMeasurement */ - finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); - - /** CompleteTrialRequest trialInfeasible */ - trialInfeasible?: (boolean|null); + /** Properties of a SampledShapleyAttribution. */ + interface ISampledShapleyAttribution { - /** CompleteTrialRequest infeasibleReason */ - infeasibleReason?: (string|null); + /** SampledShapleyAttribution pathCount */ + pathCount?: (number|null); } - /** Represents a CompleteTrialRequest. */ - class CompleteTrialRequest implements ICompleteTrialRequest { + /** Represents a SampledShapleyAttribution. */ + class SampledShapleyAttribution implements ISampledShapleyAttribution { /** - * Constructs a new CompleteTrialRequest. + * Constructs a new SampledShapleyAttribution. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICompleteTrialRequest); - - /** CompleteTrialRequest name. */ - public name: string; - - /** CompleteTrialRequest finalMeasurement. */ - public finalMeasurement?: (google.cloud.aiplatform.v1.IMeasurement|null); - - /** CompleteTrialRequest trialInfeasible. */ - public trialInfeasible: boolean; + constructor(properties?: google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution); - /** CompleteTrialRequest infeasibleReason. */ - public infeasibleReason: string; + /** SampledShapleyAttribution pathCount. */ + public pathCount: number; /** - * Creates a new CompleteTrialRequest instance using the specified properties. + * Creates a new SampledShapleyAttribution instance using the specified properties. * @param [properties] Properties to set - * @returns CompleteTrialRequest instance + * @returns SampledShapleyAttribution instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICompleteTrialRequest): google.cloud.aiplatform.v1.CompleteTrialRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution): google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; /** - * Encodes the specified CompleteTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CompleteTrialRequest.verify|verify} messages. - * @param message CompleteTrialRequest message or plain object to encode + * Encodes the specified SampledShapleyAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampledShapleyAttribution.verify|verify} messages. + * @param message SampledShapleyAttribution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICompleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CompleteTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CompleteTrialRequest.verify|verify} messages. - * @param message CompleteTrialRequest message or plain object to encode + * Encodes the specified SampledShapleyAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampledShapleyAttribution.verify|verify} messages. + * @param message SampledShapleyAttribution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICompleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CompleteTrialRequest message from the specified reader or buffer. + * Decodes a SampledShapleyAttribution message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CompleteTrialRequest + * @returns SampledShapleyAttribution * @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.CompleteTrialRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; /** - * Decodes a CompleteTrialRequest message from the specified reader or buffer, length delimited. + * Decodes a SampledShapleyAttribution message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CompleteTrialRequest + * @returns SampledShapleyAttribution * @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.CompleteTrialRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; /** - * Verifies a CompleteTrialRequest message. + * Verifies a SampledShapleyAttribution 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 CompleteTrialRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SampledShapleyAttribution message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CompleteTrialRequest + * @returns SampledShapleyAttribution */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CompleteTrialRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; /** - * Creates a plain object from a CompleteTrialRequest message. Also converts values to other types if specified. - * @param message CompleteTrialRequest + * Creates a plain object from a SampledShapleyAttribution message. Also converts values to other types if specified. + * @param message SampledShapleyAttribution * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CompleteTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SampledShapleyAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CompleteTrialRequest to JSON. + * Converts this SampledShapleyAttribution to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CompleteTrialRequest + * Gets the default type url for SampledShapleyAttribution * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteTrialRequest. */ - interface IDeleteTrialRequest { + /** Properties of an IntegratedGradientsAttribution. */ + interface IIntegratedGradientsAttribution { - /** DeleteTrialRequest name */ - name?: (string|null); + /** IntegratedGradientsAttribution stepCount */ + stepCount?: (number|null); + + /** IntegratedGradientsAttribution smoothGradConfig */ + smoothGradConfig?: (google.cloud.aiplatform.v1beta1.ISmoothGradConfig|null); + + /** IntegratedGradientsAttribution blurBaselineConfig */ + blurBaselineConfig?: (google.cloud.aiplatform.v1beta1.IBlurBaselineConfig|null); } - /** Represents a DeleteTrialRequest. */ - class DeleteTrialRequest implements IDeleteTrialRequest { + /** Represents an IntegratedGradientsAttribution. */ + class IntegratedGradientsAttribution implements IIntegratedGradientsAttribution { /** - * Constructs a new DeleteTrialRequest. + * Constructs a new IntegratedGradientsAttribution. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IDeleteTrialRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution); - /** DeleteTrialRequest name. */ - public name: string; + /** IntegratedGradientsAttribution stepCount. */ + public stepCount: number; + + /** IntegratedGradientsAttribution smoothGradConfig. */ + public smoothGradConfig?: (google.cloud.aiplatform.v1beta1.ISmoothGradConfig|null); + + /** IntegratedGradientsAttribution blurBaselineConfig. */ + public blurBaselineConfig?: (google.cloud.aiplatform.v1beta1.IBlurBaselineConfig|null); /** - * Creates a new DeleteTrialRequest instance using the specified properties. + * Creates a new IntegratedGradientsAttribution instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteTrialRequest instance + * @returns IntegratedGradientsAttribution instance */ - public static create(properties?: google.cloud.aiplatform.v1.IDeleteTrialRequest): google.cloud.aiplatform.v1.DeleteTrialRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution): google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution; /** - * Encodes the specified DeleteTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrialRequest.verify|verify} messages. - * @param message DeleteTrialRequest message or plain object to encode + * Encodes the specified IntegratedGradientsAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution.verify|verify} messages. + * @param message IntegratedGradientsAttribution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IDeleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrialRequest.verify|verify} messages. - * @param message DeleteTrialRequest message or plain object to encode + * Encodes the specified IntegratedGradientsAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution.verify|verify} messages. + * @param message IntegratedGradientsAttribution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteTrialRequest message from the specified reader or buffer. + * Decodes an IntegratedGradientsAttribution message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteTrialRequest + * @returns IntegratedGradientsAttribution * @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.DeleteTrialRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution; /** - * Decodes a DeleteTrialRequest message from the specified reader or buffer, length delimited. + * Decodes an IntegratedGradientsAttribution message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteTrialRequest + * @returns IntegratedGradientsAttribution * @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.DeleteTrialRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution; /** - * Verifies a DeleteTrialRequest message. + * Verifies an IntegratedGradientsAttribution 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 DeleteTrialRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IntegratedGradientsAttribution message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteTrialRequest + * @returns IntegratedGradientsAttribution */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteTrialRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution; /** - * Creates a plain object from a DeleteTrialRequest message. Also converts values to other types if specified. - * @param message DeleteTrialRequest + * Creates a plain object from an IntegratedGradientsAttribution message. Also converts values to other types if specified. + * @param message IntegratedGradientsAttribution * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.DeleteTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteTrialRequest to JSON. + * Converts this IntegratedGradientsAttribution to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteTrialRequest + * Gets the default type url for IntegratedGradientsAttribution * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CheckTrialEarlyStoppingStateRequest. */ - interface ICheckTrialEarlyStoppingStateRequest { + /** Properties of a XraiAttribution. */ + interface IXraiAttribution { - /** CheckTrialEarlyStoppingStateRequest trialName */ - trialName?: (string|null); + /** XraiAttribution stepCount */ + stepCount?: (number|null); + + /** XraiAttribution smoothGradConfig */ + smoothGradConfig?: (google.cloud.aiplatform.v1beta1.ISmoothGradConfig|null); + + /** XraiAttribution blurBaselineConfig */ + blurBaselineConfig?: (google.cloud.aiplatform.v1beta1.IBlurBaselineConfig|null); } - /** Represents a CheckTrialEarlyStoppingStateRequest. */ - class CheckTrialEarlyStoppingStateRequest implements ICheckTrialEarlyStoppingStateRequest { + /** Represents a XraiAttribution. */ + class XraiAttribution implements IXraiAttribution { /** - * Constructs a new CheckTrialEarlyStoppingStateRequest. + * Constructs a new XraiAttribution. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IXraiAttribution); - /** CheckTrialEarlyStoppingStateRequest trialName. */ - public trialName: string; + /** XraiAttribution stepCount. */ + public stepCount: number; + + /** XraiAttribution smoothGradConfig. */ + public smoothGradConfig?: (google.cloud.aiplatform.v1beta1.ISmoothGradConfig|null); + + /** XraiAttribution blurBaselineConfig. */ + public blurBaselineConfig?: (google.cloud.aiplatform.v1beta1.IBlurBaselineConfig|null); /** - * Creates a new CheckTrialEarlyStoppingStateRequest instance using the specified properties. + * Creates a new XraiAttribution instance using the specified properties. * @param [properties] Properties to set - * @returns CheckTrialEarlyStoppingStateRequest instance + * @returns XraiAttribution instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IXraiAttribution): google.cloud.aiplatform.v1beta1.XraiAttribution; /** - * Encodes the specified CheckTrialEarlyStoppingStateRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest.verify|verify} messages. - * @param message CheckTrialEarlyStoppingStateRequest message or plain object to encode + * Encodes the specified XraiAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.XraiAttribution.verify|verify} messages. + * @param message XraiAttribution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IXraiAttribution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CheckTrialEarlyStoppingStateRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest.verify|verify} messages. - * @param message CheckTrialEarlyStoppingStateRequest message or plain object to encode + * Encodes the specified XraiAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.XraiAttribution.verify|verify} messages. + * @param message XraiAttribution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IXraiAttribution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CheckTrialEarlyStoppingStateRequest message from the specified reader or buffer. + * Decodes a XraiAttribution message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CheckTrialEarlyStoppingStateRequest + * @returns XraiAttribution * @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.CheckTrialEarlyStoppingStateRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.XraiAttribution; /** - * Decodes a CheckTrialEarlyStoppingStateRequest message from the specified reader or buffer, length delimited. + * Decodes a XraiAttribution message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CheckTrialEarlyStoppingStateRequest + * @returns XraiAttribution * @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.CheckTrialEarlyStoppingStateRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.XraiAttribution; /** - * Verifies a CheckTrialEarlyStoppingStateRequest message. + * Verifies a XraiAttribution 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 CheckTrialEarlyStoppingStateRequest message from a plain object. Also converts values to their respective internal types. + * Creates a XraiAttribution message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CheckTrialEarlyStoppingStateRequest + * @returns XraiAttribution */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.XraiAttribution; /** - * Creates a plain object from a CheckTrialEarlyStoppingStateRequest message. Also converts values to other types if specified. - * @param message CheckTrialEarlyStoppingStateRequest + * Creates a plain object from a XraiAttribution message. Also converts values to other types if specified. + * @param message XraiAttribution * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.XraiAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CheckTrialEarlyStoppingStateRequest to JSON. + * Converts this XraiAttribution to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CheckTrialEarlyStoppingStateRequest + * Gets the default type url for XraiAttribution * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CheckTrialEarlyStoppingStateResponse. */ - interface ICheckTrialEarlyStoppingStateResponse { + /** Properties of a SmoothGradConfig. */ + interface ISmoothGradConfig { - /** CheckTrialEarlyStoppingStateResponse shouldStop */ - shouldStop?: (boolean|null); + /** SmoothGradConfig noiseSigma */ + noiseSigma?: (number|null); + + /** SmoothGradConfig featureNoiseSigma */ + featureNoiseSigma?: (google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma|null); + + /** SmoothGradConfig noisySampleCount */ + noisySampleCount?: (number|null); } - /** Represents a CheckTrialEarlyStoppingStateResponse. */ - class CheckTrialEarlyStoppingStateResponse implements ICheckTrialEarlyStoppingStateResponse { + /** Represents a SmoothGradConfig. */ + class SmoothGradConfig implements ISmoothGradConfig { /** - * Constructs a new CheckTrialEarlyStoppingStateResponse. + * Constructs a new SmoothGradConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISmoothGradConfig); - /** CheckTrialEarlyStoppingStateResponse shouldStop. */ - public shouldStop: boolean; + /** SmoothGradConfig noiseSigma. */ + public noiseSigma?: (number|null); + + /** SmoothGradConfig featureNoiseSigma. */ + public featureNoiseSigma?: (google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma|null); + + /** SmoothGradConfig noisySampleCount. */ + public noisySampleCount: number; + + /** SmoothGradConfig GradientNoiseSigma. */ + public GradientNoiseSigma?: ("noiseSigma"|"featureNoiseSigma"); /** - * Creates a new CheckTrialEarlyStoppingStateResponse instance using the specified properties. + * Creates a new SmoothGradConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CheckTrialEarlyStoppingStateResponse instance + * @returns SmoothGradConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISmoothGradConfig): google.cloud.aiplatform.v1beta1.SmoothGradConfig; /** - * Encodes the specified CheckTrialEarlyStoppingStateResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse.verify|verify} messages. - * @param message CheckTrialEarlyStoppingStateResponse message or plain object to encode + * Encodes the specified SmoothGradConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SmoothGradConfig.verify|verify} messages. + * @param message SmoothGradConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISmoothGradConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CheckTrialEarlyStoppingStateResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse.verify|verify} messages. - * @param message CheckTrialEarlyStoppingStateResponse message or plain object to encode + * Encodes the specified SmoothGradConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SmoothGradConfig.verify|verify} messages. + * @param message SmoothGradConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISmoothGradConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CheckTrialEarlyStoppingStateResponse message from the specified reader or buffer. + * Decodes a SmoothGradConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CheckTrialEarlyStoppingStateResponse + * @returns SmoothGradConfig * @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.CheckTrialEarlyStoppingStateResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SmoothGradConfig; /** - * Decodes a CheckTrialEarlyStoppingStateResponse message from the specified reader or buffer, length delimited. + * Decodes a SmoothGradConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CheckTrialEarlyStoppingStateResponse + * @returns SmoothGradConfig * @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.CheckTrialEarlyStoppingStateResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SmoothGradConfig; /** - * Verifies a CheckTrialEarlyStoppingStateResponse message. + * Verifies a SmoothGradConfig 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 CheckTrialEarlyStoppingStateResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SmoothGradConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CheckTrialEarlyStoppingStateResponse + * @returns SmoothGradConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SmoothGradConfig; /** - * Creates a plain object from a CheckTrialEarlyStoppingStateResponse message. Also converts values to other types if specified. - * @param message CheckTrialEarlyStoppingStateResponse + * Creates a plain object from a SmoothGradConfig message. Also converts values to other types if specified. + * @param message SmoothGradConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SmoothGradConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CheckTrialEarlyStoppingStateResponse to JSON. + * Converts this SmoothGradConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CheckTrialEarlyStoppingStateResponse + * Gets the default type url for SmoothGradConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CheckTrialEarlyStoppingStateMetatdata. */ - interface ICheckTrialEarlyStoppingStateMetatdata { - - /** CheckTrialEarlyStoppingStateMetatdata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - - /** CheckTrialEarlyStoppingStateMetatdata study */ - study?: (string|null); + /** Properties of a FeatureNoiseSigma. */ + interface IFeatureNoiseSigma { - /** CheckTrialEarlyStoppingStateMetatdata trial */ - trial?: (string|null); + /** FeatureNoiseSigma noiseSigma */ + noiseSigma?: (google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature[]|null); } - /** Represents a CheckTrialEarlyStoppingStateMetatdata. */ - class CheckTrialEarlyStoppingStateMetatdata implements ICheckTrialEarlyStoppingStateMetatdata { + /** Represents a FeatureNoiseSigma. */ + class FeatureNoiseSigma implements IFeatureNoiseSigma { /** - * Constructs a new CheckTrialEarlyStoppingStateMetatdata. + * Constructs a new FeatureNoiseSigma. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata); - - /** CheckTrialEarlyStoppingStateMetatdata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1.IGenericOperationMetadata|null); - - /** CheckTrialEarlyStoppingStateMetatdata study. */ - public study: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma); - /** CheckTrialEarlyStoppingStateMetatdata trial. */ - public trial: string; + /** FeatureNoiseSigma noiseSigma. */ + public noiseSigma: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature[]; /** - * Creates a new CheckTrialEarlyStoppingStateMetatdata instance using the specified properties. + * Creates a new FeatureNoiseSigma instance using the specified properties. * @param [properties] Properties to set - * @returns CheckTrialEarlyStoppingStateMetatdata instance + * @returns FeatureNoiseSigma instance */ - public static create(properties?: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma; /** - * Encodes the specified CheckTrialEarlyStoppingStateMetatdata message. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata.verify|verify} messages. - * @param message CheckTrialEarlyStoppingStateMetatdata message or plain object to encode + * Encodes the specified FeatureNoiseSigma message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.verify|verify} messages. + * @param message FeatureNoiseSigma message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CheckTrialEarlyStoppingStateMetatdata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata.verify|verify} messages. - * @param message CheckTrialEarlyStoppingStateMetatdata message or plain object to encode + * Encodes the specified FeatureNoiseSigma message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.verify|verify} messages. + * @param message FeatureNoiseSigma message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.ICheckTrialEarlyStoppingStateMetatdata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CheckTrialEarlyStoppingStateMetatdata message from the specified reader or buffer. + * Decodes a FeatureNoiseSigma message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CheckTrialEarlyStoppingStateMetatdata + * @returns FeatureNoiseSigma * @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.CheckTrialEarlyStoppingStateMetatdata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma; /** - * Decodes a CheckTrialEarlyStoppingStateMetatdata message from the specified reader or buffer, length delimited. + * Decodes a FeatureNoiseSigma message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CheckTrialEarlyStoppingStateMetatdata + * @returns FeatureNoiseSigma * @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.CheckTrialEarlyStoppingStateMetatdata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma; /** - * Verifies a CheckTrialEarlyStoppingStateMetatdata message. + * Verifies a FeatureNoiseSigma 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 CheckTrialEarlyStoppingStateMetatdata message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureNoiseSigma message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CheckTrialEarlyStoppingStateMetatdata + * @returns FeatureNoiseSigma */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma; /** - * Creates a plain object from a CheckTrialEarlyStoppingStateMetatdata message. Also converts values to other types if specified. - * @param message CheckTrialEarlyStoppingStateMetatdata + * Creates a plain object from a FeatureNoiseSigma message. Also converts values to other types if specified. + * @param message FeatureNoiseSigma * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateMetatdata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CheckTrialEarlyStoppingStateMetatdata to JSON. + * Converts this FeatureNoiseSigma to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CheckTrialEarlyStoppingStateMetatdata + * Gets the default type url for FeatureNoiseSigma * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StopTrialRequest. */ - interface IStopTrialRequest { + namespace FeatureNoiseSigma { - /** StopTrialRequest name */ - name?: (string|null); + /** Properties of a NoiseSigmaForFeature. */ + interface INoiseSigmaForFeature { + + /** NoiseSigmaForFeature name */ + name?: (string|null); + + /** NoiseSigmaForFeature sigma */ + sigma?: (number|null); + } + + /** Represents a NoiseSigmaForFeature. */ + class NoiseSigmaForFeature implements INoiseSigmaForFeature { + + /** + * Constructs a new NoiseSigmaForFeature. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature); + + /** NoiseSigmaForFeature name. */ + public name: string; + + /** NoiseSigmaForFeature sigma. */ + public sigma: number; + + /** + * Creates a new NoiseSigmaForFeature instance using the specified properties. + * @param [properties] Properties to set + * @returns NoiseSigmaForFeature instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature; + + /** + * Encodes the specified NoiseSigmaForFeature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature.verify|verify} messages. + * @param message NoiseSigmaForFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NoiseSigmaForFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature.verify|verify} messages. + * @param message NoiseSigmaForFeature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NoiseSigmaForFeature message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NoiseSigmaForFeature + * @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.FeatureNoiseSigma.NoiseSigmaForFeature; + + /** + * Decodes a NoiseSigmaForFeature message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NoiseSigmaForFeature + * @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.FeatureNoiseSigma.NoiseSigmaForFeature; + + /** + * Verifies a NoiseSigmaForFeature 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 NoiseSigmaForFeature message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NoiseSigmaForFeature + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature; + + /** + * Creates a plain object from a NoiseSigmaForFeature message. Also converts values to other types if specified. + * @param message NoiseSigmaForFeature + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NoiseSigmaForFeature to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NoiseSigmaForFeature + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a StopTrialRequest. */ - class StopTrialRequest implements IStopTrialRequest { + /** Properties of a BlurBaselineConfig. */ + interface IBlurBaselineConfig { + + /** BlurBaselineConfig maxBlurSigma */ + maxBlurSigma?: (number|null); + } + + /** Represents a BlurBaselineConfig. */ + class BlurBaselineConfig implements IBlurBaselineConfig { /** - * Constructs a new StopTrialRequest. + * Constructs a new BlurBaselineConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IStopTrialRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBlurBaselineConfig); - /** StopTrialRequest name. */ - public name: string; + /** BlurBaselineConfig maxBlurSigma. */ + public maxBlurSigma: number; /** - * Creates a new StopTrialRequest instance using the specified properties. + * Creates a new BlurBaselineConfig instance using the specified properties. * @param [properties] Properties to set - * @returns StopTrialRequest instance + * @returns BlurBaselineConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1.IStopTrialRequest): google.cloud.aiplatform.v1.StopTrialRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBlurBaselineConfig): google.cloud.aiplatform.v1beta1.BlurBaselineConfig; /** - * Encodes the specified StopTrialRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.StopTrialRequest.verify|verify} messages. - * @param message StopTrialRequest message or plain object to encode + * Encodes the specified BlurBaselineConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BlurBaselineConfig.verify|verify} messages. + * @param message BlurBaselineConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IStopTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBlurBaselineConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StopTrialRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StopTrialRequest.verify|verify} messages. - * @param message StopTrialRequest message or plain object to encode + * Encodes the specified BlurBaselineConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BlurBaselineConfig.verify|verify} messages. + * @param message BlurBaselineConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IStopTrialRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBlurBaselineConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StopTrialRequest message from the specified reader or buffer. + * Decodes a BlurBaselineConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StopTrialRequest + * @returns BlurBaselineConfig * @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.StopTrialRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BlurBaselineConfig; /** - * Decodes a StopTrialRequest message from the specified reader or buffer, length delimited. + * Decodes a BlurBaselineConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StopTrialRequest + * @returns BlurBaselineConfig * @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.StopTrialRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BlurBaselineConfig; /** - * Verifies a StopTrialRequest message. + * Verifies a BlurBaselineConfig 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 StopTrialRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BlurBaselineConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StopTrialRequest + * @returns BlurBaselineConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.StopTrialRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BlurBaselineConfig; /** - * Creates a plain object from a StopTrialRequest message. Also converts values to other types if specified. - * @param message StopTrialRequest + * Creates a plain object from a BlurBaselineConfig message. Also converts values to other types if specified. + * @param message BlurBaselineConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.StopTrialRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BlurBaselineConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StopTrialRequest to JSON. + * Converts this BlurBaselineConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StopTrialRequest + * Gets the default type url for BlurBaselineConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListOptimalTrialsRequest. */ - interface IListOptimalTrialsRequest { + /** Properties of an Examples. */ + interface IExamples { - /** ListOptimalTrialsRequest parent */ - parent?: (string|null); + /** Examples nearestNeighborSearchConfig */ + nearestNeighborSearchConfig?: (google.protobuf.IValue|null); + + /** Examples presets */ + presets?: (google.cloud.aiplatform.v1beta1.IPresets|null); + + /** Examples gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + + /** Examples neighborCount */ + neighborCount?: (number|null); } - /** Represents a ListOptimalTrialsRequest. */ - class ListOptimalTrialsRequest implements IListOptimalTrialsRequest { + /** Represents an Examples. */ + class Examples implements IExamples { /** - * Constructs a new ListOptimalTrialsRequest. + * Constructs a new Examples. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExamples); + + /** Examples nearestNeighborSearchConfig. */ + public nearestNeighborSearchConfig?: (google.protobuf.IValue|null); + + /** Examples presets. */ + public presets?: (google.cloud.aiplatform.v1beta1.IPresets|null); + + /** Examples gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** ListOptimalTrialsRequest parent. */ - public parent: string; + /** Examples neighborCount. */ + public neighborCount: number; + + /** Examples config. */ + public config?: ("nearestNeighborSearchConfig"|"presets"); /** - * Creates a new ListOptimalTrialsRequest instance using the specified properties. + * Creates a new Examples instance using the specified properties. * @param [properties] Properties to set - * @returns ListOptimalTrialsRequest instance + * @returns Examples instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsRequest): google.cloud.aiplatform.v1.ListOptimalTrialsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExamples): google.cloud.aiplatform.v1beta1.Examples; /** - * Encodes the specified ListOptimalTrialsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsRequest.verify|verify} messages. - * @param message ListOptimalTrialsRequest message or plain object to encode + * Encodes the specified Examples message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Examples.verify|verify} messages. + * @param message Examples message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListOptimalTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExamples, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListOptimalTrialsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsRequest.verify|verify} messages. - * @param message ListOptimalTrialsRequest message or plain object to encode + * Encodes the specified Examples message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Examples.verify|verify} messages. + * @param message Examples message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListOptimalTrialsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExamples, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListOptimalTrialsRequest message from the specified reader or buffer. + * Decodes an Examples message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListOptimalTrialsRequest + * @returns Examples * @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.ListOptimalTrialsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Examples; /** - * Decodes a ListOptimalTrialsRequest message from the specified reader or buffer, length delimited. + * Decodes an Examples message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListOptimalTrialsRequest + * @returns Examples * @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.ListOptimalTrialsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Examples; /** - * Verifies a ListOptimalTrialsRequest message. + * Verifies an Examples 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 ListOptimalTrialsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Examples message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListOptimalTrialsRequest + * @returns Examples */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListOptimalTrialsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Examples; /** - * Creates a plain object from a ListOptimalTrialsRequest message. Also converts values to other types if specified. - * @param message ListOptimalTrialsRequest + * Creates a plain object from an Examples message. Also converts values to other types if specified. + * @param message Examples * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListOptimalTrialsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Examples, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListOptimalTrialsRequest to JSON. + * Converts this Examples to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListOptimalTrialsRequest + * Gets the default type url for Examples * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListOptimalTrialsResponse. */ - interface IListOptimalTrialsResponse { + /** Properties of a Presets. */ + interface IPresets { - /** ListOptimalTrialsResponse optimalTrials */ - optimalTrials?: (google.cloud.aiplatform.v1.ITrial[]|null); + /** Presets query */ + query?: (google.cloud.aiplatform.v1beta1.Presets.Query|keyof typeof google.cloud.aiplatform.v1beta1.Presets.Query|null); + + /** Presets modality */ + modality?: (google.cloud.aiplatform.v1beta1.Presets.Modality|keyof typeof google.cloud.aiplatform.v1beta1.Presets.Modality|null); } - /** Represents a ListOptimalTrialsResponse. */ - class ListOptimalTrialsResponse implements IListOptimalTrialsResponse { + /** Represents a Presets. */ + class Presets implements IPresets { /** - * Constructs a new ListOptimalTrialsResponse. + * Constructs a new Presets. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPresets); - /** ListOptimalTrialsResponse optimalTrials. */ - public optimalTrials: google.cloud.aiplatform.v1.ITrial[]; + /** Presets query. */ + public query?: (google.cloud.aiplatform.v1beta1.Presets.Query|keyof typeof google.cloud.aiplatform.v1beta1.Presets.Query|null); + + /** Presets modality. */ + public modality: (google.cloud.aiplatform.v1beta1.Presets.Modality|keyof typeof google.cloud.aiplatform.v1beta1.Presets.Modality); + + /** Presets _query. */ + public _query?: "query"; /** - * Creates a new ListOptimalTrialsResponse instance using the specified properties. + * Creates a new Presets instance using the specified properties. * @param [properties] Properties to set - * @returns ListOptimalTrialsResponse instance + * @returns Presets instance */ - public static create(properties?: google.cloud.aiplatform.v1.IListOptimalTrialsResponse): google.cloud.aiplatform.v1.ListOptimalTrialsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPresets): google.cloud.aiplatform.v1beta1.Presets; /** - * Encodes the specified ListOptimalTrialsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsResponse.verify|verify} messages. - * @param message ListOptimalTrialsResponse message or plain object to encode + * Encodes the specified Presets message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Presets.verify|verify} messages. + * @param message Presets message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1.IListOptimalTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPresets, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListOptimalTrialsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListOptimalTrialsResponse.verify|verify} messages. - * @param message ListOptimalTrialsResponse message or plain object to encode + * Encodes the specified Presets message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Presets.verify|verify} messages. + * @param message Presets message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1.IListOptimalTrialsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPresets, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListOptimalTrialsResponse message from the specified reader or buffer. + * Decodes a Presets message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListOptimalTrialsResponse + * @returns Presets * @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.ListOptimalTrialsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Presets; /** - * Decodes a ListOptimalTrialsResponse message from the specified reader or buffer, length delimited. + * Decodes a Presets message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListOptimalTrialsResponse + * @returns Presets * @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.ListOptimalTrialsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Presets; /** - * Verifies a ListOptimalTrialsResponse message. + * Verifies a Presets 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 ListOptimalTrialsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Presets message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListOptimalTrialsResponse + * @returns Presets */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListOptimalTrialsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Presets; /** - * Creates a plain object from a ListOptimalTrialsResponse message. Also converts values to other types if specified. - * @param message ListOptimalTrialsResponse + * Creates a plain object from a Presets message. Also converts values to other types if specified. + * @param message Presets * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1.ListOptimalTrialsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Presets, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListOptimalTrialsResponse to JSON. + * Converts this Presets to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListOptimalTrialsResponse + * Gets the default type url for Presets * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - - /** Namespace v1beta1. */ - namespace v1beta1 { - - /** AcceleratorType enum. */ - enum AcceleratorType { - ACCELERATOR_TYPE_UNSPECIFIED = 0, - NVIDIA_TESLA_K80 = 1, - NVIDIA_TESLA_P100 = 2, - NVIDIA_TESLA_V100 = 3, - NVIDIA_TESLA_P4 = 4, - NVIDIA_TESLA_T4 = 5, - NVIDIA_TESLA_A100 = 8, - NVIDIA_A100_80GB = 9, - TPU_V2 = 6, - TPU_V3 = 7 - } - - /** Properties of an Annotation. */ - interface IAnnotation { - - /** Annotation name */ - name?: (string|null); - /** Annotation payloadSchemaUri */ - payloadSchemaUri?: (string|null); + namespace Presets { - /** Annotation payload */ - payload?: (google.protobuf.IValue|null); + /** Query enum. */ + enum Query { + PRECISE = 0, + FAST = 1 + } - /** Annotation createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Modality enum. */ + enum Modality { + MODALITY_UNSPECIFIED = 0, + IMAGE = 1, + TEXT = 2, + TABULAR = 3 + } + } - /** Annotation updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of an ExplanationSpecOverride. */ + interface IExplanationSpecOverride { - /** Annotation etag */ - etag?: (string|null); + /** ExplanationSpecOverride parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.IExplanationParameters|null); - /** Annotation annotationSource */ - annotationSource?: (google.cloud.aiplatform.v1beta1.IUserActionReference|null); + /** ExplanationSpecOverride metadata */ + metadata?: (google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride|null); - /** Annotation labels */ - labels?: ({ [k: string]: string }|null); + /** ExplanationSpecOverride examplesOverride */ + examplesOverride?: (google.cloud.aiplatform.v1beta1.IExamplesOverride|null); } - /** Represents an Annotation. */ - class Annotation implements IAnnotation { + /** Represents an ExplanationSpecOverride. */ + class ExplanationSpecOverride implements IExplanationSpecOverride { /** - * Constructs a new Annotation. + * Constructs a new ExplanationSpecOverride. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAnnotation); - - /** Annotation name. */ - public name: string; - - /** Annotation payloadSchemaUri. */ - public payloadSchemaUri: string; - - /** Annotation payload. */ - public payload?: (google.protobuf.IValue|null); - - /** Annotation createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Annotation updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride); - /** Annotation etag. */ - public etag: string; + /** ExplanationSpecOverride parameters. */ + public parameters?: (google.cloud.aiplatform.v1beta1.IExplanationParameters|null); - /** Annotation annotationSource. */ - public annotationSource?: (google.cloud.aiplatform.v1beta1.IUserActionReference|null); + /** ExplanationSpecOverride metadata. */ + public metadata?: (google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride|null); - /** Annotation labels. */ - public labels: { [k: string]: string }; + /** ExplanationSpecOverride examplesOverride. */ + public examplesOverride?: (google.cloud.aiplatform.v1beta1.IExamplesOverride|null); /** - * Creates a new Annotation instance using the specified properties. + * Creates a new ExplanationSpecOverride instance using the specified properties. * @param [properties] Properties to set - * @returns Annotation instance + * @returns ExplanationSpecOverride instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAnnotation): google.cloud.aiplatform.v1beta1.Annotation; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride): google.cloud.aiplatform.v1beta1.ExplanationSpecOverride; /** - * Encodes the specified Annotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Annotation.verify|verify} messages. - * @param message Annotation message or plain object to encode + * Encodes the specified ExplanationSpecOverride message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.verify|verify} messages. + * @param message ExplanationSpecOverride message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Annotation.verify|verify} messages. - * @param message Annotation message or plain object to encode + * Encodes the specified ExplanationSpecOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.verify|verify} messages. + * @param message ExplanationSpecOverride message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Annotation message from the specified reader or buffer. + * Decodes an ExplanationSpecOverride message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Annotation + * @returns ExplanationSpecOverride * @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.Annotation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplanationSpecOverride; /** - * Decodes an Annotation message from the specified reader or buffer, length delimited. + * Decodes an ExplanationSpecOverride message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Annotation + * @returns ExplanationSpecOverride * @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.Annotation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplanationSpecOverride; /** - * Verifies an Annotation message. + * Verifies an ExplanationSpecOverride 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 Annotation message from a plain object. Also converts values to their respective internal types. + * Creates an ExplanationSpecOverride message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Annotation + * @returns ExplanationSpecOverride */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Annotation; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationSpecOverride; /** - * Creates a plain object from an Annotation message. Also converts values to other types if specified. - * @param message Annotation + * Creates a plain object from an ExplanationSpecOverride message. Also converts values to other types if specified. + * @param message ExplanationSpecOverride * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationSpecOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Annotation to JSON. + * Converts this ExplanationSpecOverride to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Annotation + * Gets the default type url for ExplanationSpecOverride * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a UserActionReference. */ - interface IUserActionReference { - - /** UserActionReference operation */ - operation?: (string|null); - - /** UserActionReference dataLabelingJob */ - dataLabelingJob?: (string|null); + /** Properties of an ExplanationMetadataOverride. */ + interface IExplanationMetadataOverride { - /** UserActionReference method */ - method?: (string|null); + /** ExplanationMetadataOverride inputs */ + inputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride }|null); } - /** Represents a UserActionReference. */ - class UserActionReference implements IUserActionReference { + /** Represents an ExplanationMetadataOverride. */ + class ExplanationMetadataOverride implements IExplanationMetadataOverride { /** - * Constructs a new UserActionReference. + * Constructs a new ExplanationMetadataOverride. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUserActionReference); - - /** UserActionReference operation. */ - public operation?: (string|null); - - /** UserActionReference dataLabelingJob. */ - public dataLabelingJob?: (string|null); - - /** UserActionReference method. */ - public method: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride); - /** UserActionReference reference. */ - public reference?: ("operation"|"dataLabelingJob"); + /** ExplanationMetadataOverride inputs. */ + public inputs: { [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride }; /** - * Creates a new UserActionReference instance using the specified properties. + * Creates a new ExplanationMetadataOverride instance using the specified properties. * @param [properties] Properties to set - * @returns UserActionReference instance + * @returns ExplanationMetadataOverride instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUserActionReference): google.cloud.aiplatform.v1beta1.UserActionReference; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride; /** - * Encodes the specified UserActionReference message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UserActionReference.verify|verify} messages. - * @param message UserActionReference message or plain object to encode + * Encodes the specified ExplanationMetadataOverride message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.verify|verify} messages. + * @param message ExplanationMetadataOverride message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUserActionReference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UserActionReference message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UserActionReference.verify|verify} messages. - * @param message UserActionReference message or plain object to encode + * Encodes the specified ExplanationMetadataOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.verify|verify} messages. + * @param message ExplanationMetadataOverride message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUserActionReference, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a UserActionReference message from the specified reader or buffer. + * Decodes an ExplanationMetadataOverride message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UserActionReference + * @returns ExplanationMetadataOverride * @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.UserActionReference; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride; /** - * Decodes a UserActionReference message from the specified reader or buffer, length delimited. + * Decodes an ExplanationMetadataOverride message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UserActionReference + * @returns ExplanationMetadataOverride * @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.UserActionReference; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride; /** - * Verifies a UserActionReference message. + * Verifies an ExplanationMetadataOverride 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 UserActionReference message from a plain object. Also converts values to their respective internal types. + * Creates an ExplanationMetadataOverride message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UserActionReference + * @returns ExplanationMetadataOverride */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UserActionReference; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride; /** - * Creates a plain object from a UserActionReference message. Also converts values to other types if specified. - * @param message UserActionReference + * Creates a plain object from an ExplanationMetadataOverride message. Also converts values to other types if specified. + * @param message ExplanationMetadataOverride * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UserActionReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UserActionReference to JSON. + * Converts this ExplanationMetadataOverride to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UserActionReference + * Gets the default type url for ExplanationMetadataOverride * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AnnotationSpec. */ - interface IAnnotationSpec { + namespace ExplanationMetadataOverride { - /** AnnotationSpec name */ - name?: (string|null); + /** Properties of an InputMetadataOverride. */ + interface IInputMetadataOverride { - /** AnnotationSpec displayName */ - displayName?: (string|null); + /** InputMetadataOverride inputBaselines */ + inputBaselines?: (google.protobuf.IValue[]|null); + } - /** AnnotationSpec createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Represents an InputMetadataOverride. */ + class InputMetadataOverride implements IInputMetadataOverride { - /** AnnotationSpec updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new InputMetadataOverride. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride); - /** AnnotationSpec etag */ - etag?: (string|null); + /** InputMetadataOverride inputBaselines. */ + public inputBaselines: google.protobuf.IValue[]; + + /** + * Creates a new InputMetadataOverride instance using the specified properties. + * @param [properties] Properties to set + * @returns InputMetadataOverride instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride; + + /** + * Encodes the specified InputMetadataOverride message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride.verify|verify} messages. + * @param message InputMetadataOverride message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified InputMetadataOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride.verify|verify} messages. + * @param message InputMetadataOverride message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an InputMetadataOverride message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns InputMetadataOverride + * @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.ExplanationMetadataOverride.InputMetadataOverride; + + /** + * Decodes an InputMetadataOverride message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns InputMetadataOverride + * @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.ExplanationMetadataOverride.InputMetadataOverride; + + /** + * Verifies an InputMetadataOverride 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 InputMetadataOverride message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns InputMetadataOverride + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride; + + /** + * Creates a plain object from an InputMetadataOverride message. Also converts values to other types if specified. + * @param message InputMetadataOverride + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this InputMetadataOverride to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for InputMetadataOverride + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents an AnnotationSpec. */ - class AnnotationSpec implements IAnnotationSpec { + /** Properties of an ExamplesOverride. */ + interface IExamplesOverride { + + /** ExamplesOverride neighborCount */ + neighborCount?: (number|null); + + /** ExamplesOverride crowdingCount */ + crowdingCount?: (number|null); + + /** ExamplesOverride restrictions */ + restrictions?: (google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace[]|null); + + /** ExamplesOverride returnEmbeddings */ + returnEmbeddings?: (boolean|null); + + /** ExamplesOverride dataFormat */ + dataFormat?: (google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat|keyof typeof google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat|null); + } + + /** Represents an ExamplesOverride. */ + class ExamplesOverride implements IExamplesOverride { /** - * Constructs a new AnnotationSpec. + * Constructs a new ExamplesOverride. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAnnotationSpec); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExamplesOverride); - /** AnnotationSpec name. */ - public name: string; + /** ExamplesOverride neighborCount. */ + public neighborCount: number; - /** AnnotationSpec displayName. */ - public displayName: string; + /** ExamplesOverride crowdingCount. */ + public crowdingCount: number; - /** AnnotationSpec createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ExamplesOverride restrictions. */ + public restrictions: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace[]; - /** AnnotationSpec updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ExamplesOverride returnEmbeddings. */ + public returnEmbeddings: boolean; - /** AnnotationSpec etag. */ - public etag: string; + /** ExamplesOverride dataFormat. */ + public dataFormat: (google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat|keyof typeof google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat); /** - * Creates a new AnnotationSpec instance using the specified properties. + * Creates a new ExamplesOverride instance using the specified properties. * @param [properties] Properties to set - * @returns AnnotationSpec instance + * @returns ExamplesOverride instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAnnotationSpec): google.cloud.aiplatform.v1beta1.AnnotationSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExamplesOverride): google.cloud.aiplatform.v1beta1.ExamplesOverride; /** - * Encodes the specified AnnotationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AnnotationSpec.verify|verify} messages. - * @param message AnnotationSpec message or plain object to encode + * Encodes the specified ExamplesOverride message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExamplesOverride.verify|verify} messages. + * @param message ExamplesOverride message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAnnotationSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExamplesOverride, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AnnotationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AnnotationSpec.verify|verify} messages. - * @param message AnnotationSpec message or plain object to encode + * Encodes the specified ExamplesOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExamplesOverride.verify|verify} messages. + * @param message ExamplesOverride message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAnnotationSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExamplesOverride, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AnnotationSpec message from the specified reader or buffer. + * Decodes an ExamplesOverride message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AnnotationSpec + * @returns ExamplesOverride * @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.AnnotationSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExamplesOverride; /** - * Decodes an AnnotationSpec message from the specified reader or buffer, length delimited. + * Decodes an ExamplesOverride message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AnnotationSpec + * @returns ExamplesOverride * @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.AnnotationSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExamplesOverride; /** - * Verifies an AnnotationSpec message. + * Verifies an ExamplesOverride 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 AnnotationSpec message from a plain object. Also converts values to their respective internal types. + * Creates an ExamplesOverride message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AnnotationSpec + * @returns ExamplesOverride */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AnnotationSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExamplesOverride; /** - * Creates a plain object from an AnnotationSpec message. Also converts values to other types if specified. - * @param message AnnotationSpec + * Creates a plain object from an ExamplesOverride message. Also converts values to other types if specified. + * @param message ExamplesOverride * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AnnotationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExamplesOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AnnotationSpec to JSON. + * Converts this ExamplesOverride to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AnnotationSpec + * Gets the default type url for ExamplesOverride * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Artifact. */ - interface IArtifact { - - /** Artifact name */ - name?: (string|null); - - /** Artifact displayName */ - displayName?: (string|null); - - /** Artifact uri */ - uri?: (string|null); - - /** Artifact etag */ - etag?: (string|null); - - /** Artifact labels */ - labels?: ({ [k: string]: string }|null); - - /** Artifact createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Artifact updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + namespace ExamplesOverride { - /** Artifact state */ - state?: (google.cloud.aiplatform.v1beta1.Artifact.State|keyof typeof google.cloud.aiplatform.v1beta1.Artifact.State|null); + /** DataFormat enum. */ + enum DataFormat { + DATA_FORMAT_UNSPECIFIED = 0, + INSTANCES = 1, + EMBEDDINGS = 2 + } + } - /** Artifact schemaTitle */ - schemaTitle?: (string|null); + /** Properties of an ExamplesRestrictionsNamespace. */ + interface IExamplesRestrictionsNamespace { - /** Artifact schemaVersion */ - schemaVersion?: (string|null); + /** ExamplesRestrictionsNamespace namespaceName */ + namespaceName?: (string|null); - /** Artifact metadata */ - metadata?: (google.protobuf.IStruct|null); + /** ExamplesRestrictionsNamespace allow */ + allow?: (string[]|null); - /** Artifact description */ - description?: (string|null); + /** ExamplesRestrictionsNamespace deny */ + deny?: (string[]|null); } - /** Represents an Artifact. */ - class Artifact implements IArtifact { + /** Represents an ExamplesRestrictionsNamespace. */ + class ExamplesRestrictionsNamespace implements IExamplesRestrictionsNamespace { /** - * Constructs a new Artifact. + * Constructs a new ExamplesRestrictionsNamespace. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IArtifact); - - /** Artifact name. */ - public name: string; - - /** Artifact displayName. */ - public displayName: string; - - /** Artifact uri. */ - public uri: string; - - /** Artifact etag. */ - public etag: string; - - /** Artifact labels. */ - public labels: { [k: string]: string }; - - /** Artifact createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Artifact updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Artifact state. */ - public state: (google.cloud.aiplatform.v1beta1.Artifact.State|keyof typeof google.cloud.aiplatform.v1beta1.Artifact.State); - - /** Artifact schemaTitle. */ - public schemaTitle: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace); - /** Artifact schemaVersion. */ - public schemaVersion: string; + /** ExamplesRestrictionsNamespace namespaceName. */ + public namespaceName: string; - /** Artifact metadata. */ - public metadata?: (google.protobuf.IStruct|null); + /** ExamplesRestrictionsNamespace allow. */ + public allow: string[]; - /** Artifact description. */ - public description: string; + /** ExamplesRestrictionsNamespace deny. */ + public deny: string[]; /** - * Creates a new Artifact instance using the specified properties. + * Creates a new ExamplesRestrictionsNamespace instance using the specified properties. * @param [properties] Properties to set - * @returns Artifact instance + * @returns ExamplesRestrictionsNamespace instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IArtifact): google.cloud.aiplatform.v1beta1.Artifact; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace): google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace; /** - * Encodes the specified Artifact message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Artifact.verify|verify} messages. - * @param message Artifact message or plain object to encode + * Encodes the specified ExamplesRestrictionsNamespace message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.verify|verify} messages. + * @param message ExamplesRestrictionsNamespace message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IArtifact, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Artifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Artifact.verify|verify} messages. - * @param message Artifact message or plain object to encode + * Encodes the specified ExamplesRestrictionsNamespace message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.verify|verify} messages. + * @param message ExamplesRestrictionsNamespace message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IArtifact, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Artifact message from the specified reader or buffer. + * Decodes an ExamplesRestrictionsNamespace message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Artifact + * @returns ExamplesRestrictionsNamespace * @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.Artifact; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace; /** - * Decodes an Artifact message from the specified reader or buffer, length delimited. + * Decodes an ExamplesRestrictionsNamespace message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Artifact + * @returns ExamplesRestrictionsNamespace * @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.Artifact; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace; /** - * Verifies an Artifact message. + * Verifies an ExamplesRestrictionsNamespace 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 Artifact message from a plain object. Also converts values to their respective internal types. + * Creates an ExamplesRestrictionsNamespace message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Artifact + * @returns ExamplesRestrictionsNamespace */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Artifact; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace; /** - * Creates a plain object from an Artifact message. Also converts values to other types if specified. - * @param message Artifact + * Creates a plain object from an ExamplesRestrictionsNamespace message. Also converts values to other types if specified. + * @param message ExamplesRestrictionsNamespace * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Artifact, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Artifact to JSON. + * Converts this ExamplesRestrictionsNamespace to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Artifact + * Gets the default type url for ExamplesRestrictionsNamespace * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Artifact { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - PENDING = 1, - LIVE = 2 - } - } - - /** Properties of a BatchPredictionJob. */ - interface IBatchPredictionJob { - - /** BatchPredictionJob name */ - name?: (string|null); - - /** BatchPredictionJob displayName */ - displayName?: (string|null); - - /** BatchPredictionJob model */ - model?: (string|null); - - /** BatchPredictionJob modelVersionId */ - modelVersionId?: (string|null); - - /** BatchPredictionJob unmanagedContainerModel */ - unmanagedContainerModel?: (google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel|null); - - /** BatchPredictionJob inputConfig */ - inputConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig|null); - - /** BatchPredictionJob instanceConfig */ - instanceConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig|null); - - /** BatchPredictionJob modelParameters */ - modelParameters?: (google.protobuf.IValue|null); - - /** BatchPredictionJob outputConfig */ - outputConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig|null); - - /** BatchPredictionJob dedicatedResources */ - dedicatedResources?: (google.cloud.aiplatform.v1beta1.IBatchDedicatedResources|null); - - /** BatchPredictionJob serviceAccount */ - serviceAccount?: (string|null); - - /** BatchPredictionJob manualBatchTuningParameters */ - manualBatchTuningParameters?: (google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters|null); - - /** BatchPredictionJob generateExplanation */ - generateExplanation?: (boolean|null); - - /** BatchPredictionJob explanationSpec */ - explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); - - /** BatchPredictionJob outputInfo */ - outputInfo?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo|null); - - /** BatchPredictionJob state */ - state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - - /** BatchPredictionJob error */ - error?: (google.rpc.IStatus|null); - - /** BatchPredictionJob partialFailures */ - partialFailures?: (google.rpc.IStatus[]|null); - - /** BatchPredictionJob resourcesConsumed */ - resourcesConsumed?: (google.cloud.aiplatform.v1beta1.IResourcesConsumed|null); - - /** BatchPredictionJob completionStats */ - completionStats?: (google.cloud.aiplatform.v1beta1.ICompletionStats|null); - - /** BatchPredictionJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** BatchPredictionJob startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** BatchPredictionJob endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** BatchPredictionJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** BatchPredictionJob labels */ - labels?: ({ [k: string]: string }|null); + /** Properties of an ExplanationMetadata. */ + interface IExplanationMetadata { - /** BatchPredictionJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ExplanationMetadata inputs */ + inputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata }|null); - /** BatchPredictionJob modelMonitoringConfig */ - modelMonitoringConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringConfig|null); + /** ExplanationMetadata outputs */ + outputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata }|null); - /** BatchPredictionJob modelMonitoringStatsAnomalies */ - modelMonitoringStatsAnomalies?: (google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]|null); + /** ExplanationMetadata featureAttributionsSchemaUri */ + featureAttributionsSchemaUri?: (string|null); - /** BatchPredictionJob modelMonitoringStatus */ - modelMonitoringStatus?: (google.rpc.IStatus|null); + /** ExplanationMetadata latentSpaceSource */ + latentSpaceSource?: (string|null); } - /** Represents a BatchPredictionJob. */ - class BatchPredictionJob implements IBatchPredictionJob { + /** Represents an ExplanationMetadata. */ + class ExplanationMetadata implements IExplanationMetadata { /** - * Constructs a new BatchPredictionJob. + * Constructs a new ExplanationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchPredictionJob); - - /** BatchPredictionJob name. */ - public name: string; - - /** BatchPredictionJob displayName. */ - public displayName: string; - - /** BatchPredictionJob model. */ - public model: string; - - /** BatchPredictionJob modelVersionId. */ - public modelVersionId: string; - - /** BatchPredictionJob unmanagedContainerModel. */ - public unmanagedContainerModel?: (google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel|null); - - /** BatchPredictionJob inputConfig. */ - public inputConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig|null); - - /** BatchPredictionJob instanceConfig. */ - public instanceConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig|null); - - /** BatchPredictionJob modelParameters. */ - public modelParameters?: (google.protobuf.IValue|null); - - /** BatchPredictionJob outputConfig. */ - public outputConfig?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig|null); - - /** BatchPredictionJob dedicatedResources. */ - public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IBatchDedicatedResources|null); - - /** BatchPredictionJob serviceAccount. */ - public serviceAccount: string; - - /** BatchPredictionJob manualBatchTuningParameters. */ - public manualBatchTuningParameters?: (google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters|null); - - /** BatchPredictionJob generateExplanation. */ - public generateExplanation: boolean; - - /** BatchPredictionJob explanationSpec. */ - public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); - - /** BatchPredictionJob outputInfo. */ - public outputInfo?: (google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo|null); - - /** BatchPredictionJob state. */ - public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - - /** BatchPredictionJob error. */ - public error?: (google.rpc.IStatus|null); - - /** BatchPredictionJob partialFailures. */ - public partialFailures: google.rpc.IStatus[]; - - /** BatchPredictionJob resourcesConsumed. */ - public resourcesConsumed?: (google.cloud.aiplatform.v1beta1.IResourcesConsumed|null); - - /** BatchPredictionJob completionStats. */ - public completionStats?: (google.cloud.aiplatform.v1beta1.ICompletionStats|null); - - /** BatchPredictionJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** BatchPredictionJob startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** BatchPredictionJob endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** BatchPredictionJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** BatchPredictionJob labels. */ - public labels: { [k: string]: string }; + constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationMetadata); - /** BatchPredictionJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ExplanationMetadata inputs. */ + public inputs: { [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata }; - /** BatchPredictionJob modelMonitoringConfig. */ - public modelMonitoringConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringConfig|null); + /** ExplanationMetadata outputs. */ + public outputs: { [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata }; - /** BatchPredictionJob modelMonitoringStatsAnomalies. */ - public modelMonitoringStatsAnomalies: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]; + /** ExplanationMetadata featureAttributionsSchemaUri. */ + public featureAttributionsSchemaUri: string; - /** BatchPredictionJob modelMonitoringStatus. */ - public modelMonitoringStatus?: (google.rpc.IStatus|null); + /** ExplanationMetadata latentSpaceSource. */ + public latentSpaceSource: string; /** - * Creates a new BatchPredictionJob instance using the specified properties. + * Creates a new ExplanationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns BatchPredictionJob instance + * @returns ExplanationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchPredictionJob): google.cloud.aiplatform.v1beta1.BatchPredictionJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationMetadata): google.cloud.aiplatform.v1beta1.ExplanationMetadata; /** - * Encodes the specified BatchPredictionJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify|verify} messages. - * @param message BatchPredictionJob message or plain object to encode + * Encodes the specified ExplanationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.verify|verify} messages. + * @param message ExplanationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchPredictionJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchPredictionJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify|verify} messages. - * @param message BatchPredictionJob message or plain object to encode + * Encodes the specified ExplanationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.verify|verify} messages. + * @param message ExplanationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchPredictionJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchPredictionJob message from the specified reader or buffer. + * Decodes an ExplanationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchPredictionJob + * @returns ExplanationMetadata * @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.BatchPredictionJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplanationMetadata; /** - * Decodes a BatchPredictionJob message from the specified reader or buffer, length delimited. + * Decodes an ExplanationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchPredictionJob + * @returns ExplanationMetadata * @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.BatchPredictionJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplanationMetadata; /** - * Verifies a BatchPredictionJob message. + * Verifies an ExplanationMetadata 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 BatchPredictionJob message from a plain object. Also converts values to their respective internal types. + * Creates an ExplanationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchPredictionJob + * @returns ExplanationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata; /** - * Creates a plain object from a BatchPredictionJob message. Also converts values to other types if specified. - * @param message BatchPredictionJob + * Creates a plain object from an ExplanationMetadata message. Also converts values to other types if specified. + * @param message ExplanationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchPredictionJob to JSON. + * Converts this ExplanationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchPredictionJob + * Gets the default type url for ExplanationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace BatchPredictionJob { + namespace ExplanationMetadata { - /** Properties of an InputConfig. */ - interface IInputConfig { + /** Properties of an InputMetadata. */ + interface IInputMetadata { - /** InputConfig gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** InputMetadata inputBaselines */ + inputBaselines?: (google.protobuf.IValue[]|null); - /** InputConfig bigquerySource */ - bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + /** InputMetadata inputTensorName */ + inputTensorName?: (string|null); - /** InputConfig instancesFormat */ - instancesFormat?: (string|null); + /** InputMetadata encoding */ + encoding?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding|null); + + /** InputMetadata modality */ + modality?: (string|null); + + /** InputMetadata featureValueDomain */ + featureValueDomain?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain|null); + + /** InputMetadata indicesTensorName */ + indicesTensorName?: (string|null); + + /** InputMetadata denseShapeTensorName */ + denseShapeTensorName?: (string|null); + + /** InputMetadata indexFeatureMapping */ + indexFeatureMapping?: (string[]|null); + + /** InputMetadata encodedTensorName */ + encodedTensorName?: (string|null); + + /** InputMetadata encodedBaselines */ + encodedBaselines?: (google.protobuf.IValue[]|null); + + /** InputMetadata visualization */ + visualization?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization|null); + + /** InputMetadata groupName */ + groupName?: (string|null); } - /** Represents an InputConfig. */ - class InputConfig implements IInputConfig { + /** Represents an InputMetadata. */ + class InputMetadata implements IInputMetadata { + + /** + * Constructs a new InputMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata); + + /** InputMetadata inputBaselines. */ + public inputBaselines: google.protobuf.IValue[]; + + /** InputMetadata inputTensorName. */ + public inputTensorName: string; + + /** InputMetadata encoding. */ + public encoding: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding); + + /** InputMetadata modality. */ + public modality: string; + + /** InputMetadata featureValueDomain. */ + public featureValueDomain?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain|null); + + /** InputMetadata indicesTensorName. */ + public indicesTensorName: string; + + /** InputMetadata denseShapeTensorName. */ + public denseShapeTensorName: string; - /** - * Constructs a new InputConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig); + /** InputMetadata indexFeatureMapping. */ + public indexFeatureMapping: string[]; - /** InputConfig gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** InputMetadata encodedTensorName. */ + public encodedTensorName: string; - /** InputConfig bigquerySource. */ - public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + /** InputMetadata encodedBaselines. */ + public encodedBaselines: google.protobuf.IValue[]; - /** InputConfig instancesFormat. */ - public instancesFormat: string; + /** InputMetadata visualization. */ + public visualization?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization|null); - /** InputConfig source. */ - public source?: ("gcsSource"|"bigquerySource"); + /** InputMetadata groupName. */ + public groupName: string; /** - * Creates a new InputConfig instance using the specified properties. + * Creates a new InputMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns InputConfig instance + * @returns InputMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig): google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata; /** - * Encodes the specified InputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.verify|verify} messages. - * @param message InputConfig message or plain object to encode + * Encodes the specified InputMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.verify|verify} messages. + * @param message InputMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified InputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig.verify|verify} messages. - * @param message InputConfig message or plain object to encode + * Encodes the specified InputMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.verify|verify} messages. + * @param message InputMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an InputConfig message from the specified reader or buffer. + * Decodes an InputMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns InputConfig + * @returns InputMetadata * @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.BatchPredictionJob.InputConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata; /** - * Decodes an InputConfig message from the specified reader or buffer, length delimited. + * Decodes an InputMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns InputConfig + * @returns InputMetadata * @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.BatchPredictionJob.InputConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata; /** - * Verifies an InputConfig message. + * Verifies an InputMetadata 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 InputConfig message from a plain object. Also converts values to their respective internal types. + * Creates an InputMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns InputConfig + * @returns InputMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata; /** - * Creates a plain object from an InputConfig message. Also converts values to other types if specified. - * @param message InputConfig + * Creates a plain object from an InputMetadata message. Also converts values to other types if specified. + * @param message InputMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.InputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this InputConfig to JSON. + * Converts this InputMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for InputConfig + * Gets the default type url for InputMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an InstanceConfig. */ - interface IInstanceConfig { + namespace InputMetadata { - /** InstanceConfig instanceType */ - instanceType?: (string|null); + /** Properties of a FeatureValueDomain. */ + interface IFeatureValueDomain { - /** InstanceConfig keyField */ - keyField?: (string|null); + /** FeatureValueDomain minValue */ + minValue?: (number|null); - /** InstanceConfig includedFields */ - includedFields?: (string[]|null); + /** FeatureValueDomain maxValue */ + maxValue?: (number|null); - /** InstanceConfig excludedFields */ - excludedFields?: (string[]|null); - } + /** FeatureValueDomain originalMean */ + originalMean?: (number|null); - /** Represents an InstanceConfig. */ - class InstanceConfig implements IInstanceConfig { + /** FeatureValueDomain originalStddev */ + originalStddev?: (number|null); + } - /** - * Constructs a new InstanceConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig); + /** Represents a FeatureValueDomain. */ + class FeatureValueDomain implements IFeatureValueDomain { - /** InstanceConfig instanceType. */ - public instanceType: string; + /** + * Constructs a new FeatureValueDomain. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain); - /** InstanceConfig keyField. */ - public keyField: string; + /** FeatureValueDomain minValue. */ + public minValue: number; - /** InstanceConfig includedFields. */ - public includedFields: string[]; + /** FeatureValueDomain maxValue. */ + public maxValue: number; - /** InstanceConfig excludedFields. */ - public excludedFields: string[]; + /** FeatureValueDomain originalMean. */ + public originalMean: number; - /** - * Creates a new InstanceConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns InstanceConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig): google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig; + /** FeatureValueDomain originalStddev. */ + public originalStddev: number; - /** - * Encodes the specified InstanceConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.verify|verify} messages. - * @param message InstanceConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new FeatureValueDomain instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureValueDomain instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain; - /** - * Encodes the specified InstanceConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig.verify|verify} messages. - * @param message InstanceConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IInstanceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FeatureValueDomain message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain.verify|verify} messages. + * @param message FeatureValueDomain message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an InstanceConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InstanceConfig - * @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.BatchPredictionJob.InstanceConfig; + /** + * Encodes the specified FeatureValueDomain message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain.verify|verify} messages. + * @param message FeatureValueDomain message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an InstanceConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InstanceConfig - * @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.BatchPredictionJob.InstanceConfig; + /** + * Decodes a FeatureValueDomain message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureValueDomain + * @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.ExplanationMetadata.InputMetadata.FeatureValueDomain; - /** - * Verifies an InstanceConfig 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); + /** + * Decodes a FeatureValueDomain message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureValueDomain + * @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.ExplanationMetadata.InputMetadata.FeatureValueDomain; - /** - * Creates an InstanceConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InstanceConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig; + /** + * Verifies a FeatureValueDomain 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 plain object from an InstanceConfig message. Also converts values to other types if specified. - * @param message InstanceConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.InstanceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a FeatureValueDomain message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureValueDomain + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain; - /** - * Converts this InstanceConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a FeatureValueDomain message. Also converts values to other types if specified. + * @param message FeatureValueDomain + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for InstanceConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this FeatureValueDomain to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of an OutputConfig. */ - interface IOutputConfig { + /** + * Gets the default type url for FeatureValueDomain + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** OutputConfig gcsDestination */ - gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** Properties of a Visualization. */ + interface IVisualization { - /** OutputConfig bigqueryDestination */ - bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** Visualization type */ + type?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type|null); - /** OutputConfig predictionsFormat */ - predictionsFormat?: (string|null); - } + /** Visualization polarity */ + polarity?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity|null); - /** Represents an OutputConfig. */ - class OutputConfig implements IOutputConfig { + /** Visualization colorMap */ + colorMap?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap|null); - /** - * Constructs a new OutputConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig); + /** Visualization clipPercentUpperbound */ + clipPercentUpperbound?: (number|null); - /** OutputConfig gcsDestination. */ - public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** Visualization clipPercentLowerbound */ + clipPercentLowerbound?: (number|null); - /** OutputConfig bigqueryDestination. */ - public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** Visualization overlayType */ + overlayType?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType|null); + } - /** OutputConfig predictionsFormat. */ - public predictionsFormat: string; + /** Represents a Visualization. */ + class Visualization implements IVisualization { - /** OutputConfig destination. */ - public destination?: ("gcsDestination"|"bigqueryDestination"); + /** + * Constructs a new Visualization. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization); - /** - * Creates a new OutputConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns OutputConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig): google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig; + /** Visualization type. */ + public type: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type); - /** - * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.verify|verify} messages. - * @param message OutputConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** Visualization polarity. */ + public polarity: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity); - /** - * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig.verify|verify} messages. - * @param message OutputConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** Visualization colorMap. */ + public colorMap: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap); - /** - * Decodes an OutputConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OutputConfig - * @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.BatchPredictionJob.OutputConfig; + /** Visualization clipPercentUpperbound. */ + public clipPercentUpperbound: number; - /** - * Decodes an OutputConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OutputConfig - * @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.BatchPredictionJob.OutputConfig; + /** Visualization clipPercentLowerbound. */ + public clipPercentLowerbound: number; - /** - * Verifies an OutputConfig 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); + /** Visualization overlayType. */ + public overlayType: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType); - /** - * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OutputConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig; + /** + * Creates a new Visualization instance using the specified properties. + * @param [properties] Properties to set + * @returns Visualization instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization; - /** - * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. - * @param message OutputConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified Visualization message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.verify|verify} messages. + * @param message Visualization message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this OutputConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified Visualization message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.verify|verify} messages. + * @param message Visualization message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for OutputConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Decodes a Visualization message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Visualization + * @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.ExplanationMetadata.InputMetadata.Visualization; + + /** + * Decodes a Visualization message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Visualization + * @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.ExplanationMetadata.InputMetadata.Visualization; + + /** + * Verifies a Visualization 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 Visualization message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Visualization + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization; + + /** + * Creates a plain object from a Visualization message. Also converts values to other types if specified. + * @param message Visualization + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Visualization to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Visualization + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Visualization { + + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + PIXELS = 1, + OUTLINES = 2 + } + + /** Polarity enum. */ + enum Polarity { + POLARITY_UNSPECIFIED = 0, + POSITIVE = 1, + NEGATIVE = 2, + BOTH = 3 + } + + /** ColorMap enum. */ + enum ColorMap { + COLOR_MAP_UNSPECIFIED = 0, + PINK_GREEN = 1, + VIRIDIS = 2, + RED = 3, + GREEN = 4, + RED_GREEN = 6, + PINK_WHITE_GREEN = 5 + } + + /** OverlayType enum. */ + enum OverlayType { + OVERLAY_TYPE_UNSPECIFIED = 0, + NONE = 1, + ORIGINAL = 2, + GRAYSCALE = 3, + MASK_BLACK = 4 + } + } + + /** Encoding enum. */ + enum Encoding { + ENCODING_UNSPECIFIED = 0, + IDENTITY = 1, + BAG_OF_FEATURES = 2, + BAG_OF_FEATURES_SPARSE = 3, + INDICATOR = 4, + COMBINED_EMBEDDING = 5, + CONCAT_EMBEDDING = 6 + } } - /** Properties of an OutputInfo. */ - interface IOutputInfo { + /** Properties of an OutputMetadata. */ + interface IOutputMetadata { - /** OutputInfo gcsOutputDirectory */ - gcsOutputDirectory?: (string|null); + /** OutputMetadata indexDisplayNameMapping */ + indexDisplayNameMapping?: (google.protobuf.IValue|null); - /** OutputInfo bigqueryOutputDataset */ - bigqueryOutputDataset?: (string|null); + /** OutputMetadata displayNameMappingKey */ + displayNameMappingKey?: (string|null); - /** OutputInfo bigqueryOutputTable */ - bigqueryOutputTable?: (string|null); + /** OutputMetadata outputTensorName */ + outputTensorName?: (string|null); } - /** Represents an OutputInfo. */ - class OutputInfo implements IOutputInfo { + /** Represents an OutputMetadata. */ + class OutputMetadata implements IOutputMetadata { /** - * Constructs a new OutputInfo. + * Constructs a new OutputMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo); + constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata); - /** OutputInfo gcsOutputDirectory. */ - public gcsOutputDirectory?: (string|null); + /** OutputMetadata indexDisplayNameMapping. */ + public indexDisplayNameMapping?: (google.protobuf.IValue|null); - /** OutputInfo bigqueryOutputDataset. */ - public bigqueryOutputDataset?: (string|null); + /** OutputMetadata displayNameMappingKey. */ + public displayNameMappingKey?: (string|null); - /** OutputInfo bigqueryOutputTable. */ - public bigqueryOutputTable: string; + /** OutputMetadata outputTensorName. */ + public outputTensorName: string; - /** OutputInfo outputLocation. */ - public outputLocation?: ("gcsOutputDirectory"|"bigqueryOutputDataset"); + /** OutputMetadata displayNameMapping. */ + public displayNameMapping?: ("indexDisplayNameMapping"|"displayNameMappingKey"); /** - * Creates a new OutputInfo instance using the specified properties. + * Creates a new OutputMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns OutputInfo instance + * @returns OutputMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo): google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo; + public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata): google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata; /** - * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo.verify|verify} messages. - * @param message OutputInfo message or plain object to encode + * Encodes the specified OutputMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata.verify|verify} messages. + * @param message OutputMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo.verify|verify} messages. - * @param message OutputInfo message or plain object to encode + * Encodes the specified OutputMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata.verify|verify} messages. + * @param message OutputMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OutputInfo message from the specified reader or buffer. + * Decodes an OutputMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OutputInfo + * @returns OutputMetadata * @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.BatchPredictionJob.OutputInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata; /** - * Decodes an OutputInfo message from the specified reader or buffer, length delimited. + * Decodes an OutputMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OutputInfo + * @returns OutputMetadata * @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.BatchPredictionJob.OutputInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata; /** - * Verifies an OutputInfo message. + * Verifies an OutputMetadata 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 OutputInfo message from a plain object. Also converts values to their respective internal types. + * Creates an OutputMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OutputInfo + * @returns OutputMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata; /** - * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. - * @param message OutputInfo + * Creates a plain object from an OutputMetadata message. Also converts values to other types if specified. + * @param message OutputMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchPredictionJob.OutputInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OutputInfo to JSON. + * Converts this OutputMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OutputInfo + * Gets the default type url for OutputMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -71553,3081 +77588,2749 @@ export namespace google { } } - /** Properties of a CompletionStats. */ - interface ICompletionStats { - - /** CompletionStats successfulCount */ - successfulCount?: (number|Long|string|null); - - /** CompletionStats failedCount */ - failedCount?: (number|Long|string|null); - - /** CompletionStats incompleteCount */ - incompleteCount?: (number|Long|string|null); + /** Properties of an AvroSource. */ + interface IAvroSource { - /** CompletionStats successfulForecastPointCount */ - successfulForecastPointCount?: (number|Long|string|null); + /** AvroSource gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); } - /** Represents a CompletionStats. */ - class CompletionStats implements ICompletionStats { + /** Represents an AvroSource. */ + class AvroSource implements IAvroSource { /** - * Constructs a new CompletionStats. + * Constructs a new AvroSource. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICompletionStats); - - /** CompletionStats successfulCount. */ - public successfulCount: (number|Long|string); - - /** CompletionStats failedCount. */ - public failedCount: (number|Long|string); - - /** CompletionStats incompleteCount. */ - public incompleteCount: (number|Long|string); + constructor(properties?: google.cloud.aiplatform.v1beta1.IAvroSource); - /** CompletionStats successfulForecastPointCount. */ - public successfulForecastPointCount: (number|Long|string); + /** AvroSource gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); /** - * Creates a new CompletionStats instance using the specified properties. + * Creates a new AvroSource instance using the specified properties. * @param [properties] Properties to set - * @returns CompletionStats instance + * @returns AvroSource instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICompletionStats): google.cloud.aiplatform.v1beta1.CompletionStats; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAvroSource): google.cloud.aiplatform.v1beta1.AvroSource; /** - * Encodes the specified CompletionStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CompletionStats.verify|verify} messages. - * @param message CompletionStats message or plain object to encode + * Encodes the specified AvroSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AvroSource.verify|verify} messages. + * @param message AvroSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICompletionStats, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAvroSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CompletionStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CompletionStats.verify|verify} messages. - * @param message CompletionStats message or plain object to encode + * Encodes the specified AvroSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AvroSource.verify|verify} messages. + * @param message AvroSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICompletionStats, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAvroSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CompletionStats message from the specified reader or buffer. + * Decodes an AvroSource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CompletionStats + * @returns AvroSource * @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.CompletionStats; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AvroSource; /** - * Decodes a CompletionStats message from the specified reader or buffer, length delimited. + * Decodes an AvroSource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CompletionStats + * @returns AvroSource * @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.CompletionStats; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AvroSource; /** - * Verifies a CompletionStats message. + * Verifies an AvroSource 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 CompletionStats message from a plain object. Also converts values to their respective internal types. + * Creates an AvroSource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CompletionStats + * @returns AvroSource */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CompletionStats; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AvroSource; /** - * Creates a plain object from a CompletionStats message. Also converts values to other types if specified. - * @param message CompletionStats + * Creates a plain object from an AvroSource message. Also converts values to other types if specified. + * @param message AvroSource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CompletionStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AvroSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CompletionStats to JSON. + * Converts this AvroSource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CompletionStats + * Gets the default type url for AvroSource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EncryptionSpec. */ - interface IEncryptionSpec { + /** Properties of a CsvSource. */ + interface ICsvSource { - /** EncryptionSpec kmsKeyName */ - kmsKeyName?: (string|null); + /** CsvSource gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); } - /** Represents an EncryptionSpec. */ - class EncryptionSpec implements IEncryptionSpec { + /** Represents a CsvSource. */ + class CsvSource implements ICsvSource { /** - * Constructs a new EncryptionSpec. + * Constructs a new CsvSource. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEncryptionSpec); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICsvSource); - /** EncryptionSpec kmsKeyName. */ - public kmsKeyName: string; + /** CsvSource gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); /** - * Creates a new EncryptionSpec instance using the specified properties. + * Creates a new CsvSource instance using the specified properties. * @param [properties] Properties to set - * @returns EncryptionSpec instance + * @returns CsvSource instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEncryptionSpec): google.cloud.aiplatform.v1beta1.EncryptionSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICsvSource): google.cloud.aiplatform.v1beta1.CsvSource; /** - * Encodes the specified EncryptionSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EncryptionSpec.verify|verify} messages. - * @param message EncryptionSpec message or plain object to encode + * Encodes the specified CsvSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CsvSource.verify|verify} messages. + * @param message CsvSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IEncryptionSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICsvSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EncryptionSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EncryptionSpec.verify|verify} messages. - * @param message EncryptionSpec message or plain object to encode + * Encodes the specified CsvSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CsvSource.verify|verify} messages. + * @param message CsvSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEncryptionSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICsvSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EncryptionSpec message from the specified reader or buffer. + * Decodes a CsvSource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EncryptionSpec + * @returns CsvSource * @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.EncryptionSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CsvSource; /** - * Decodes an EncryptionSpec message from the specified reader or buffer, length delimited. + * Decodes a CsvSource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EncryptionSpec + * @returns CsvSource * @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.EncryptionSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CsvSource; /** - * Verifies an EncryptionSpec message. + * Verifies a CsvSource 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 EncryptionSpec message from a plain object. Also converts values to their respective internal types. + * Creates a CsvSource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EncryptionSpec + * @returns CsvSource */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EncryptionSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CsvSource; /** - * Creates a plain object from an EncryptionSpec message. Also converts values to other types if specified. - * @param message EncryptionSpec + * Creates a plain object from a CsvSource message. Also converts values to other types if specified. + * @param message CsvSource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.EncryptionSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CsvSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EncryptionSpec to JSON. + * Converts this CsvSource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EncryptionSpec + * Gets the default type url for CsvSource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Explanation. */ - interface IExplanation { - - /** Explanation attributions */ - attributions?: (google.cloud.aiplatform.v1beta1.IAttribution[]|null); + /** Properties of a GcsSource. */ + interface IGcsSource { - /** Explanation neighbors */ - neighbors?: (google.cloud.aiplatform.v1beta1.INeighbor[]|null); + /** GcsSource uris */ + uris?: (string[]|null); } - /** Represents an Explanation. */ - class Explanation implements IExplanation { + /** Represents a GcsSource. */ + class GcsSource implements IGcsSource { /** - * Constructs a new Explanation. + * Constructs a new GcsSource. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanation); - - /** Explanation attributions. */ - public attributions: google.cloud.aiplatform.v1beta1.IAttribution[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGcsSource); - /** Explanation neighbors. */ - public neighbors: google.cloud.aiplatform.v1beta1.INeighbor[]; + /** GcsSource uris. */ + public uris: string[]; /** - * Creates a new Explanation instance using the specified properties. + * Creates a new GcsSource instance using the specified properties. * @param [properties] Properties to set - * @returns Explanation instance + * @returns GcsSource instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanation): google.cloud.aiplatform.v1beta1.Explanation; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGcsSource): google.cloud.aiplatform.v1beta1.GcsSource; /** - * Encodes the specified Explanation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Explanation.verify|verify} messages. - * @param message Explanation message or plain object to encode + * Encodes the specified GcsSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GcsSource.verify|verify} messages. + * @param message GcsSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Explanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Explanation.verify|verify} messages. - * @param message Explanation message or plain object to encode + * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GcsSource.verify|verify} messages. + * @param message GcsSource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Explanation message from the specified reader or buffer. + * Decodes a GcsSource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Explanation + * @returns GcsSource * @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.Explanation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GcsSource; /** - * Decodes an Explanation message from the specified reader or buffer, length delimited. + * Decodes a GcsSource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Explanation + * @returns GcsSource * @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.Explanation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GcsSource; /** - * Verifies an Explanation message. + * Verifies a GcsSource 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 Explanation message from a plain object. Also converts values to their respective internal types. + * Creates a GcsSource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Explanation + * @returns GcsSource */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Explanation; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GcsSource; /** - * Creates a plain object from an Explanation message. Also converts values to other types if specified. - * @param message Explanation + * Creates a plain object from a GcsSource message. Also converts values to other types if specified. + * @param message GcsSource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Explanation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GcsSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Explanation to JSON. + * Converts this GcsSource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Explanation + * Gets the default type url for GcsSource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelExplanation. */ - interface IModelExplanation { + /** Properties of a GcsDestination. */ + interface IGcsDestination { - /** ModelExplanation meanAttributions */ - meanAttributions?: (google.cloud.aiplatform.v1beta1.IAttribution[]|null); + /** GcsDestination outputUriPrefix */ + outputUriPrefix?: (string|null); } - /** Represents a ModelExplanation. */ - class ModelExplanation implements IModelExplanation { + /** Represents a GcsDestination. */ + class GcsDestination implements IGcsDestination { /** - * Constructs a new ModelExplanation. + * Constructs a new GcsDestination. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelExplanation); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGcsDestination); - /** ModelExplanation meanAttributions. */ - public meanAttributions: google.cloud.aiplatform.v1beta1.IAttribution[]; + /** GcsDestination outputUriPrefix. */ + public outputUriPrefix: string; /** - * Creates a new ModelExplanation instance using the specified properties. + * Creates a new GcsDestination instance using the specified properties. * @param [properties] Properties to set - * @returns ModelExplanation instance + * @returns GcsDestination instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelExplanation): google.cloud.aiplatform.v1beta1.ModelExplanation; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGcsDestination): google.cloud.aiplatform.v1beta1.GcsDestination; /** - * Encodes the specified ModelExplanation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelExplanation.verify|verify} messages. - * @param message ModelExplanation message or plain object to encode + * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GcsDestination.verify|verify} messages. + * @param message GcsDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelExplanation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelExplanation.verify|verify} messages. - * @param message ModelExplanation message or plain object to encode + * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GcsDestination.verify|verify} messages. + * @param message GcsDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelExplanation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelExplanation message from the specified reader or buffer. + * Decodes a GcsDestination message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelExplanation + * @returns GcsDestination * @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.ModelExplanation; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GcsDestination; /** - * Decodes a ModelExplanation message from the specified reader or buffer, length delimited. + * Decodes a GcsDestination message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelExplanation + * @returns GcsDestination * @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.ModelExplanation; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GcsDestination; /** - * Verifies a ModelExplanation message. + * Verifies a GcsDestination 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 ModelExplanation message from a plain object. Also converts values to their respective internal types. + * Creates a GcsDestination message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelExplanation + * @returns GcsDestination */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelExplanation; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GcsDestination; /** - * Creates a plain object from a ModelExplanation message. Also converts values to other types if specified. - * @param message ModelExplanation + * Creates a plain object from a GcsDestination message. Also converts values to other types if specified. + * @param message GcsDestination * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelExplanation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GcsDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelExplanation to JSON. + * Converts this GcsDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelExplanation + * Gets the default type url for GcsDestination * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Attribution. */ - interface IAttribution { - - /** Attribution baselineOutputValue */ - baselineOutputValue?: (number|null); - - /** Attribution instanceOutputValue */ - instanceOutputValue?: (number|null); - - /** Attribution featureAttributions */ - featureAttributions?: (google.protobuf.IValue|null); - - /** Attribution outputIndex */ - outputIndex?: (number[]|null); - - /** Attribution outputDisplayName */ - outputDisplayName?: (string|null); - - /** Attribution approximationError */ - approximationError?: (number|null); + /** Properties of a BigQuerySource. */ + interface IBigQuerySource { - /** Attribution outputName */ - outputName?: (string|null); + /** BigQuerySource inputUri */ + inputUri?: (string|null); } - /** Represents an Attribution. */ - class Attribution implements IAttribution { + /** Represents a BigQuerySource. */ + class BigQuerySource implements IBigQuerySource { /** - * Constructs a new Attribution. + * Constructs a new BigQuerySource. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAttribution); - - /** Attribution baselineOutputValue. */ - public baselineOutputValue: number; - - /** Attribution instanceOutputValue. */ - public instanceOutputValue: number; - - /** Attribution featureAttributions. */ - public featureAttributions?: (google.protobuf.IValue|null); - - /** Attribution outputIndex. */ - public outputIndex: number[]; - - /** Attribution outputDisplayName. */ - public outputDisplayName: string; - - /** Attribution approximationError. */ - public approximationError: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBigQuerySource); - /** Attribution outputName. */ - public outputName: string; + /** BigQuerySource inputUri. */ + public inputUri: string; /** - * Creates a new Attribution instance using the specified properties. + * Creates a new BigQuerySource instance using the specified properties. * @param [properties] Properties to set - * @returns Attribution instance + * @returns BigQuerySource instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAttribution): google.cloud.aiplatform.v1beta1.Attribution; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBigQuerySource): google.cloud.aiplatform.v1beta1.BigQuerySource; /** - * Encodes the specified Attribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Attribution.verify|verify} messages. - * @param message Attribution message or plain object to encode + * Encodes the specified BigQuerySource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BigQuerySource.verify|verify} messages. + * @param message BigQuerySource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Attribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Attribution.verify|verify} messages. - * @param message Attribution message or plain object to encode + * Encodes the specified BigQuerySource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BigQuerySource.verify|verify} messages. + * @param message BigQuerySource message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Attribution message from the specified reader or buffer. + * Decodes a BigQuerySource message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Attribution + * @returns BigQuerySource * @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.Attribution; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BigQuerySource; /** - * Decodes an Attribution message from the specified reader or buffer, length delimited. + * Decodes a BigQuerySource message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Attribution + * @returns BigQuerySource * @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.Attribution; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BigQuerySource; /** - * Verifies an Attribution message. + * Verifies a BigQuerySource 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 Attribution message from a plain object. Also converts values to their respective internal types. + * Creates a BigQuerySource message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Attribution + * @returns BigQuerySource */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Attribution; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BigQuerySource; /** - * Creates a plain object from an Attribution message. Also converts values to other types if specified. - * @param message Attribution + * Creates a plain object from a BigQuerySource message. Also converts values to other types if specified. + * @param message BigQuerySource * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Attribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BigQuerySource, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Attribution to JSON. + * Converts this BigQuerySource to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Attribution + * Gets the default type url for BigQuerySource * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Neighbor. */ - interface INeighbor { - - /** Neighbor neighborId */ - neighborId?: (string|null); + /** Properties of a BigQueryDestination. */ + interface IBigQueryDestination { - /** Neighbor neighborDistance */ - neighborDistance?: (number|null); + /** BigQueryDestination outputUri */ + outputUri?: (string|null); } - /** Represents a Neighbor. */ - class Neighbor implements INeighbor { + /** Represents a BigQueryDestination. */ + class BigQueryDestination implements IBigQueryDestination { /** - * Constructs a new Neighbor. + * Constructs a new BigQueryDestination. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.INeighbor); - - /** Neighbor neighborId. */ - public neighborId: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBigQueryDestination); - /** Neighbor neighborDistance. */ - public neighborDistance: number; + /** BigQueryDestination outputUri. */ + public outputUri: string; /** - * Creates a new Neighbor instance using the specified properties. + * Creates a new BigQueryDestination instance using the specified properties. * @param [properties] Properties to set - * @returns Neighbor instance + * @returns BigQueryDestination instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.INeighbor): google.cloud.aiplatform.v1beta1.Neighbor; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBigQueryDestination): google.cloud.aiplatform.v1beta1.BigQueryDestination; /** - * Encodes the specified Neighbor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Neighbor.verify|verify} messages. - * @param message Neighbor message or plain object to encode + * Encodes the specified BigQueryDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BigQueryDestination.verify|verify} messages. + * @param message BigQueryDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.INeighbor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBigQueryDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Neighbor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Neighbor.verify|verify} messages. - * @param message Neighbor message or plain object to encode + * Encodes the specified BigQueryDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BigQueryDestination.verify|verify} messages. + * @param message BigQueryDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INeighbor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBigQueryDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Neighbor message from the specified reader or buffer. + * Decodes a BigQueryDestination message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Neighbor + * @returns BigQueryDestination * @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.Neighbor; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BigQueryDestination; /** - * Decodes a Neighbor message from the specified reader or buffer, length delimited. + * Decodes a BigQueryDestination message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Neighbor + * @returns BigQueryDestination * @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.Neighbor; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BigQueryDestination; /** - * Verifies a Neighbor message. + * Verifies a BigQueryDestination 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 Neighbor message from a plain object. Also converts values to their respective internal types. + * Creates a BigQueryDestination message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Neighbor + * @returns BigQueryDestination */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Neighbor; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BigQueryDestination; /** - * Creates a plain object from a Neighbor message. Also converts values to other types if specified. - * @param message Neighbor + * Creates a plain object from a BigQueryDestination message. Also converts values to other types if specified. + * @param message BigQueryDestination * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Neighbor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BigQueryDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Neighbor to JSON. + * Converts this BigQueryDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Neighbor + * Gets the default type url for BigQueryDestination * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExplanationSpec. */ - interface IExplanationSpec { - - /** ExplanationSpec parameters */ - parameters?: (google.cloud.aiplatform.v1beta1.IExplanationParameters|null); + /** Properties of a CsvDestination. */ + interface ICsvDestination { - /** ExplanationSpec metadata */ - metadata?: (google.cloud.aiplatform.v1beta1.IExplanationMetadata|null); + /** CsvDestination gcsDestination */ + gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); } - /** Represents an ExplanationSpec. */ - class ExplanationSpec implements IExplanationSpec { + /** Represents a CsvDestination. */ + class CsvDestination implements ICsvDestination { /** - * Constructs a new ExplanationSpec. + * Constructs a new CsvDestination. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationSpec); - - /** ExplanationSpec parameters. */ - public parameters?: (google.cloud.aiplatform.v1beta1.IExplanationParameters|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICsvDestination); - /** ExplanationSpec metadata. */ - public metadata?: (google.cloud.aiplatform.v1beta1.IExplanationMetadata|null); + /** CsvDestination gcsDestination. */ + public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); /** - * Creates a new ExplanationSpec instance using the specified properties. + * Creates a new CsvDestination instance using the specified properties. * @param [properties] Properties to set - * @returns ExplanationSpec instance + * @returns CsvDestination instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationSpec): google.cloud.aiplatform.v1beta1.ExplanationSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICsvDestination): google.cloud.aiplatform.v1beta1.CsvDestination; /** - * Encodes the specified ExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationSpec.verify|verify} messages. - * @param message ExplanationSpec message or plain object to encode + * Encodes the specified CsvDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CsvDestination.verify|verify} messages. + * @param message CsvDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICsvDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationSpec.verify|verify} messages. - * @param message ExplanationSpec message or plain object to encode + * Encodes the specified CsvDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CsvDestination.verify|verify} messages. + * @param message CsvDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICsvDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExplanationSpec message from the specified reader or buffer. + * Decodes a CsvDestination message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExplanationSpec + * @returns CsvDestination * @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.ExplanationSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CsvDestination; /** - * Decodes an ExplanationSpec message from the specified reader or buffer, length delimited. + * Decodes a CsvDestination message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExplanationSpec + * @returns CsvDestination * @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.ExplanationSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CsvDestination; /** - * Verifies an ExplanationSpec message. + * Verifies a CsvDestination 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 ExplanationSpec message from a plain object. Also converts values to their respective internal types. + * Creates a CsvDestination message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExplanationSpec + * @returns CsvDestination */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CsvDestination; /** - * Creates a plain object from an ExplanationSpec message. Also converts values to other types if specified. - * @param message ExplanationSpec + * Creates a plain object from a CsvDestination message. Also converts values to other types if specified. + * @param message CsvDestination * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CsvDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExplanationSpec to JSON. + * Converts this CsvDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExplanationSpec + * Gets the default type url for CsvDestination * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExplanationParameters. */ - interface IExplanationParameters { - - /** ExplanationParameters sampledShapleyAttribution */ - sampledShapleyAttribution?: (google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution|null); - - /** ExplanationParameters integratedGradientsAttribution */ - integratedGradientsAttribution?: (google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution|null); - - /** ExplanationParameters xraiAttribution */ - xraiAttribution?: (google.cloud.aiplatform.v1beta1.IXraiAttribution|null); - - /** ExplanationParameters examples */ - examples?: (google.cloud.aiplatform.v1beta1.IExamples|null); - - /** ExplanationParameters topK */ - topK?: (number|null); + /** Properties of a TFRecordDestination. */ + interface ITFRecordDestination { - /** ExplanationParameters outputIndices */ - outputIndices?: (google.protobuf.IListValue|null); + /** TFRecordDestination gcsDestination */ + gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); } - /** Represents an ExplanationParameters. */ - class ExplanationParameters implements IExplanationParameters { + /** Represents a TFRecordDestination. */ + class TFRecordDestination implements ITFRecordDestination { /** - * Constructs a new ExplanationParameters. + * Constructs a new TFRecordDestination. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationParameters); - - /** ExplanationParameters sampledShapleyAttribution. */ - public sampledShapleyAttribution?: (google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution|null); - - /** ExplanationParameters integratedGradientsAttribution. */ - public integratedGradientsAttribution?: (google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution|null); - - /** ExplanationParameters xraiAttribution. */ - public xraiAttribution?: (google.cloud.aiplatform.v1beta1.IXraiAttribution|null); - - /** ExplanationParameters examples. */ - public examples?: (google.cloud.aiplatform.v1beta1.IExamples|null); - - /** ExplanationParameters topK. */ - public topK: number; - - /** ExplanationParameters outputIndices. */ - public outputIndices?: (google.protobuf.IListValue|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ITFRecordDestination); - /** ExplanationParameters method. */ - public method?: ("sampledShapleyAttribution"|"integratedGradientsAttribution"|"xraiAttribution"|"examples"); + /** TFRecordDestination gcsDestination. */ + public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); /** - * Creates a new ExplanationParameters instance using the specified properties. + * Creates a new TFRecordDestination instance using the specified properties. * @param [properties] Properties to set - * @returns ExplanationParameters instance + * @returns TFRecordDestination instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationParameters): google.cloud.aiplatform.v1beta1.ExplanationParameters; + public static create(properties?: google.cloud.aiplatform.v1beta1.ITFRecordDestination): google.cloud.aiplatform.v1beta1.TFRecordDestination; /** - * Encodes the specified ExplanationParameters message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationParameters.verify|verify} messages. - * @param message ExplanationParameters message or plain object to encode + * Encodes the specified TFRecordDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TFRecordDestination.verify|verify} messages. + * @param message TFRecordDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ITFRecordDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExplanationParameters message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationParameters.verify|verify} messages. - * @param message ExplanationParameters message or plain object to encode + * Encodes the specified TFRecordDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TFRecordDestination.verify|verify} messages. + * @param message TFRecordDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITFRecordDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExplanationParameters message from the specified reader or buffer. + * Decodes a TFRecordDestination message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExplanationParameters + * @returns TFRecordDestination * @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.ExplanationParameters; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.TFRecordDestination; /** - * Decodes an ExplanationParameters message from the specified reader or buffer, length delimited. + * Decodes a TFRecordDestination message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExplanationParameters + * @returns TFRecordDestination * @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.ExplanationParameters; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.TFRecordDestination; /** - * Verifies an ExplanationParameters message. + * Verifies a TFRecordDestination 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 ExplanationParameters message from a plain object. Also converts values to their respective internal types. + * Creates a TFRecordDestination message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExplanationParameters + * @returns TFRecordDestination */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationParameters; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TFRecordDestination; /** - * Creates a plain object from an ExplanationParameters message. Also converts values to other types if specified. - * @param message ExplanationParameters + * Creates a plain object from a TFRecordDestination message. Also converts values to other types if specified. + * @param message TFRecordDestination * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.TFRecordDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExplanationParameters to JSON. + * Converts this TFRecordDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExplanationParameters + * Gets the default type url for TFRecordDestination * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SampledShapleyAttribution. */ - interface ISampledShapleyAttribution { + /** Properties of a ContainerRegistryDestination. */ + interface IContainerRegistryDestination { - /** SampledShapleyAttribution pathCount */ - pathCount?: (number|null); + /** ContainerRegistryDestination outputUri */ + outputUri?: (string|null); } - /** Represents a SampledShapleyAttribution. */ - class SampledShapleyAttribution implements ISampledShapleyAttribution { + /** Represents a ContainerRegistryDestination. */ + class ContainerRegistryDestination implements IContainerRegistryDestination { /** - * Constructs a new SampledShapleyAttribution. + * Constructs a new ContainerRegistryDestination. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution); + constructor(properties?: google.cloud.aiplatform.v1beta1.IContainerRegistryDestination); - /** SampledShapleyAttribution pathCount. */ - public pathCount: number; + /** ContainerRegistryDestination outputUri. */ + public outputUri: string; /** - * Creates a new SampledShapleyAttribution instance using the specified properties. + * Creates a new ContainerRegistryDestination instance using the specified properties. * @param [properties] Properties to set - * @returns SampledShapleyAttribution instance + * @returns ContainerRegistryDestination instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution): google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; + public static create(properties?: google.cloud.aiplatform.v1beta1.IContainerRegistryDestination): google.cloud.aiplatform.v1beta1.ContainerRegistryDestination; /** - * Encodes the specified SampledShapleyAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampledShapleyAttribution.verify|verify} messages. - * @param message SampledShapleyAttribution message or plain object to encode + * Encodes the specified ContainerRegistryDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.verify|verify} messages. + * @param message ContainerRegistryDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IContainerRegistryDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SampledShapleyAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampledShapleyAttribution.verify|verify} messages. - * @param message SampledShapleyAttribution message or plain object to encode + * Encodes the specified ContainerRegistryDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.verify|verify} messages. + * @param message ContainerRegistryDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISampledShapleyAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContainerRegistryDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SampledShapleyAttribution message from the specified reader or buffer. + * Decodes a ContainerRegistryDestination message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SampledShapleyAttribution + * @returns ContainerRegistryDestination * @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.SampledShapleyAttribution; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ContainerRegistryDestination; /** - * Decodes a SampledShapleyAttribution message from the specified reader or buffer, length delimited. + * Decodes a ContainerRegistryDestination message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SampledShapleyAttribution + * @returns ContainerRegistryDestination * @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.SampledShapleyAttribution; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ContainerRegistryDestination; /** - * Verifies a SampledShapleyAttribution message. + * Verifies a ContainerRegistryDestination 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 SampledShapleyAttribution message from a plain object. Also converts values to their respective internal types. + * Creates a ContainerRegistryDestination message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SampledShapleyAttribution + * @returns ContainerRegistryDestination */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SampledShapleyAttribution; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ContainerRegistryDestination; /** - * Creates a plain object from a SampledShapleyAttribution message. Also converts values to other types if specified. - * @param message SampledShapleyAttribution + * Creates a plain object from a ContainerRegistryDestination message. Also converts values to other types if specified. + * @param message ContainerRegistryDestination * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SampledShapleyAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ContainerRegistryDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SampledShapleyAttribution to JSON. + * Converts this ContainerRegistryDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SampledShapleyAttribution + * Gets the default type url for ContainerRegistryDestination * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an IntegratedGradientsAttribution. */ - interface IIntegratedGradientsAttribution { + /** JobState enum. */ + enum JobState { + JOB_STATE_UNSPECIFIED = 0, + JOB_STATE_QUEUED = 1, + JOB_STATE_PENDING = 2, + JOB_STATE_RUNNING = 3, + JOB_STATE_SUCCEEDED = 4, + JOB_STATE_FAILED = 5, + JOB_STATE_CANCELLING = 6, + JOB_STATE_CANCELLED = 7, + JOB_STATE_PAUSED = 8, + JOB_STATE_EXPIRED = 9, + JOB_STATE_UPDATING = 10 + } - /** IntegratedGradientsAttribution stepCount */ - stepCount?: (number|null); + /** Properties of a MachineSpec. */ + interface IMachineSpec { - /** IntegratedGradientsAttribution smoothGradConfig */ - smoothGradConfig?: (google.cloud.aiplatform.v1beta1.ISmoothGradConfig|null); + /** MachineSpec machineType */ + machineType?: (string|null); - /** IntegratedGradientsAttribution blurBaselineConfig */ - blurBaselineConfig?: (google.cloud.aiplatform.v1beta1.IBlurBaselineConfig|null); + /** MachineSpec acceleratorType */ + acceleratorType?: (google.cloud.aiplatform.v1beta1.AcceleratorType|keyof typeof google.cloud.aiplatform.v1beta1.AcceleratorType|null); + + /** MachineSpec acceleratorCount */ + acceleratorCount?: (number|null); } - /** Represents an IntegratedGradientsAttribution. */ - class IntegratedGradientsAttribution implements IIntegratedGradientsAttribution { + /** Represents a MachineSpec. */ + class MachineSpec implements IMachineSpec { /** - * Constructs a new IntegratedGradientsAttribution. + * Constructs a new MachineSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMachineSpec); - /** IntegratedGradientsAttribution stepCount. */ - public stepCount: number; + /** MachineSpec machineType. */ + public machineType: string; - /** IntegratedGradientsAttribution smoothGradConfig. */ - public smoothGradConfig?: (google.cloud.aiplatform.v1beta1.ISmoothGradConfig|null); + /** MachineSpec acceleratorType. */ + public acceleratorType: (google.cloud.aiplatform.v1beta1.AcceleratorType|keyof typeof google.cloud.aiplatform.v1beta1.AcceleratorType); - /** IntegratedGradientsAttribution blurBaselineConfig. */ - public blurBaselineConfig?: (google.cloud.aiplatform.v1beta1.IBlurBaselineConfig|null); + /** MachineSpec acceleratorCount. */ + public acceleratorCount: number; /** - * Creates a new IntegratedGradientsAttribution instance using the specified properties. + * Creates a new MachineSpec instance using the specified properties. * @param [properties] Properties to set - * @returns IntegratedGradientsAttribution instance + * @returns MachineSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution): google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMachineSpec): google.cloud.aiplatform.v1beta1.MachineSpec; /** - * Encodes the specified IntegratedGradientsAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution.verify|verify} messages. - * @param message IntegratedGradientsAttribution message or plain object to encode + * Encodes the specified MachineSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MachineSpec.verify|verify} messages. + * @param message MachineSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMachineSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IntegratedGradientsAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution.verify|verify} messages. - * @param message IntegratedGradientsAttribution message or plain object to encode + * Encodes the specified MachineSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MachineSpec.verify|verify} messages. + * @param message MachineSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIntegratedGradientsAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMachineSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IntegratedGradientsAttribution message from the specified reader or buffer. + * Decodes a MachineSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IntegratedGradientsAttribution + * @returns MachineSpec * @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.IntegratedGradientsAttribution; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MachineSpec; /** - * Decodes an IntegratedGradientsAttribution message from the specified reader or buffer, length delimited. + * Decodes a MachineSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IntegratedGradientsAttribution + * @returns MachineSpec * @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.IntegratedGradientsAttribution; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MachineSpec; /** - * Verifies an IntegratedGradientsAttribution message. + * Verifies a MachineSpec 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 IntegratedGradientsAttribution message from a plain object. Also converts values to their respective internal types. + * Creates a MachineSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IntegratedGradientsAttribution + * @returns MachineSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MachineSpec; /** - * Creates a plain object from an IntegratedGradientsAttribution message. Also converts values to other types if specified. - * @param message IntegratedGradientsAttribution + * Creates a plain object from a MachineSpec message. Also converts values to other types if specified. + * @param message MachineSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IntegratedGradientsAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MachineSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IntegratedGradientsAttribution to JSON. + * Converts this MachineSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IntegratedGradientsAttribution + * Gets the default type url for MachineSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a XraiAttribution. */ - interface IXraiAttribution { + /** Properties of a DedicatedResources. */ + interface IDedicatedResources { - /** XraiAttribution stepCount */ - stepCount?: (number|null); + /** DedicatedResources machineSpec */ + machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); - /** XraiAttribution smoothGradConfig */ - smoothGradConfig?: (google.cloud.aiplatform.v1beta1.ISmoothGradConfig|null); + /** DedicatedResources minReplicaCount */ + minReplicaCount?: (number|null); - /** XraiAttribution blurBaselineConfig */ - blurBaselineConfig?: (google.cloud.aiplatform.v1beta1.IBlurBaselineConfig|null); + /** DedicatedResources maxReplicaCount */ + maxReplicaCount?: (number|null); + + /** DedicatedResources autoscalingMetricSpecs */ + autoscalingMetricSpecs?: (google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec[]|null); } - /** Represents a XraiAttribution. */ - class XraiAttribution implements IXraiAttribution { + /** Represents a DedicatedResources. */ + class DedicatedResources implements IDedicatedResources { /** - * Constructs a new XraiAttribution. + * Constructs a new DedicatedResources. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IXraiAttribution); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDedicatedResources); - /** XraiAttribution stepCount. */ - public stepCount: number; + /** DedicatedResources machineSpec. */ + public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); - /** XraiAttribution smoothGradConfig. */ - public smoothGradConfig?: (google.cloud.aiplatform.v1beta1.ISmoothGradConfig|null); + /** DedicatedResources minReplicaCount. */ + public minReplicaCount: number; - /** XraiAttribution blurBaselineConfig. */ - public blurBaselineConfig?: (google.cloud.aiplatform.v1beta1.IBlurBaselineConfig|null); + /** DedicatedResources maxReplicaCount. */ + public maxReplicaCount: number; + + /** DedicatedResources autoscalingMetricSpecs. */ + public autoscalingMetricSpecs: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec[]; /** - * Creates a new XraiAttribution instance using the specified properties. + * Creates a new DedicatedResources instance using the specified properties. * @param [properties] Properties to set - * @returns XraiAttribution instance + * @returns DedicatedResources instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IXraiAttribution): google.cloud.aiplatform.v1beta1.XraiAttribution; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDedicatedResources): google.cloud.aiplatform.v1beta1.DedicatedResources; /** - * Encodes the specified XraiAttribution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.XraiAttribution.verify|verify} messages. - * @param message XraiAttribution message or plain object to encode + * Encodes the specified DedicatedResources message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DedicatedResources.verify|verify} messages. + * @param message DedicatedResources message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IXraiAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDedicatedResources, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified XraiAttribution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.XraiAttribution.verify|verify} messages. - * @param message XraiAttribution message or plain object to encode + * Encodes the specified DedicatedResources message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DedicatedResources.verify|verify} messages. + * @param message DedicatedResources message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IXraiAttribution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDedicatedResources, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a XraiAttribution message from the specified reader or buffer. + * Decodes a DedicatedResources message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns XraiAttribution + * @returns DedicatedResources * @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.XraiAttribution; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DedicatedResources; /** - * Decodes a XraiAttribution message from the specified reader or buffer, length delimited. + * Decodes a DedicatedResources message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns XraiAttribution + * @returns DedicatedResources * @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.XraiAttribution; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DedicatedResources; /** - * Verifies a XraiAttribution message. + * Verifies a DedicatedResources 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 XraiAttribution message from a plain object. Also converts values to their respective internal types. + * Creates a DedicatedResources message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns XraiAttribution + * @returns DedicatedResources */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.XraiAttribution; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DedicatedResources; /** - * Creates a plain object from a XraiAttribution message. Also converts values to other types if specified. - * @param message XraiAttribution + * Creates a plain object from a DedicatedResources message. Also converts values to other types if specified. + * @param message DedicatedResources * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.XraiAttribution, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DedicatedResources, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this XraiAttribution to JSON. + * Converts this DedicatedResources to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for XraiAttribution + * Gets the default type url for DedicatedResources * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SmoothGradConfig. */ - interface ISmoothGradConfig { - - /** SmoothGradConfig noiseSigma */ - noiseSigma?: (number|null); + /** Properties of an AutomaticResources. */ + interface IAutomaticResources { - /** SmoothGradConfig featureNoiseSigma */ - featureNoiseSigma?: (google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma|null); + /** AutomaticResources minReplicaCount */ + minReplicaCount?: (number|null); - /** SmoothGradConfig noisySampleCount */ - noisySampleCount?: (number|null); + /** AutomaticResources maxReplicaCount */ + maxReplicaCount?: (number|null); } - /** Represents a SmoothGradConfig. */ - class SmoothGradConfig implements ISmoothGradConfig { - - /** - * Constructs a new SmoothGradConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISmoothGradConfig); - - /** SmoothGradConfig noiseSigma. */ - public noiseSigma?: (number|null); + /** Represents an AutomaticResources. */ + class AutomaticResources implements IAutomaticResources { - /** SmoothGradConfig featureNoiseSigma. */ - public featureNoiseSigma?: (google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma|null); + /** + * Constructs a new AutomaticResources. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IAutomaticResources); - /** SmoothGradConfig noisySampleCount. */ - public noisySampleCount: number; + /** AutomaticResources minReplicaCount. */ + public minReplicaCount: number; - /** SmoothGradConfig GradientNoiseSigma. */ - public GradientNoiseSigma?: ("noiseSigma"|"featureNoiseSigma"); + /** AutomaticResources maxReplicaCount. */ + public maxReplicaCount: number; /** - * Creates a new SmoothGradConfig instance using the specified properties. + * Creates a new AutomaticResources instance using the specified properties. * @param [properties] Properties to set - * @returns SmoothGradConfig instance + * @returns AutomaticResources instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISmoothGradConfig): google.cloud.aiplatform.v1beta1.SmoothGradConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAutomaticResources): google.cloud.aiplatform.v1beta1.AutomaticResources; /** - * Encodes the specified SmoothGradConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SmoothGradConfig.verify|verify} messages. - * @param message SmoothGradConfig message or plain object to encode + * Encodes the specified AutomaticResources message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AutomaticResources.verify|verify} messages. + * @param message AutomaticResources message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISmoothGradConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAutomaticResources, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SmoothGradConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SmoothGradConfig.verify|verify} messages. - * @param message SmoothGradConfig message or plain object to encode + * Encodes the specified AutomaticResources message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AutomaticResources.verify|verify} messages. + * @param message AutomaticResources message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISmoothGradConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAutomaticResources, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SmoothGradConfig message from the specified reader or buffer. + * Decodes an AutomaticResources message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SmoothGradConfig + * @returns AutomaticResources * @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.SmoothGradConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AutomaticResources; /** - * Decodes a SmoothGradConfig message from the specified reader or buffer, length delimited. + * Decodes an AutomaticResources message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SmoothGradConfig + * @returns AutomaticResources * @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.SmoothGradConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AutomaticResources; /** - * Verifies a SmoothGradConfig message. + * Verifies an AutomaticResources 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 SmoothGradConfig message from a plain object. Also converts values to their respective internal types. + * Creates an AutomaticResources message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SmoothGradConfig + * @returns AutomaticResources */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SmoothGradConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AutomaticResources; /** - * Creates a plain object from a SmoothGradConfig message. Also converts values to other types if specified. - * @param message SmoothGradConfig + * Creates a plain object from an AutomaticResources message. Also converts values to other types if specified. + * @param message AutomaticResources * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SmoothGradConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AutomaticResources, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SmoothGradConfig to JSON. + * Converts this AutomaticResources to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SmoothGradConfig + * Gets the default type url for AutomaticResources * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FeatureNoiseSigma. */ - interface IFeatureNoiseSigma { + /** Properties of a BatchDedicatedResources. */ + interface IBatchDedicatedResources { - /** FeatureNoiseSigma noiseSigma */ - noiseSigma?: (google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature[]|null); + /** BatchDedicatedResources machineSpec */ + machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + + /** BatchDedicatedResources startingReplicaCount */ + startingReplicaCount?: (number|null); + + /** BatchDedicatedResources maxReplicaCount */ + maxReplicaCount?: (number|null); } - /** Represents a FeatureNoiseSigma. */ - class FeatureNoiseSigma implements IFeatureNoiseSigma { + /** Represents a BatchDedicatedResources. */ + class BatchDedicatedResources implements IBatchDedicatedResources { /** - * Constructs a new FeatureNoiseSigma. + * Constructs a new BatchDedicatedResources. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchDedicatedResources); - /** FeatureNoiseSigma noiseSigma. */ - public noiseSigma: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature[]; + /** BatchDedicatedResources machineSpec. */ + public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + + /** BatchDedicatedResources startingReplicaCount. */ + public startingReplicaCount: number; + + /** BatchDedicatedResources maxReplicaCount. */ + public maxReplicaCount: number; /** - * Creates a new FeatureNoiseSigma instance using the specified properties. + * Creates a new BatchDedicatedResources instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureNoiseSigma instance + * @returns BatchDedicatedResources instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchDedicatedResources): google.cloud.aiplatform.v1beta1.BatchDedicatedResources; /** - * Encodes the specified FeatureNoiseSigma message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.verify|verify} messages. - * @param message FeatureNoiseSigma message or plain object to encode + * Encodes the specified BatchDedicatedResources message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDedicatedResources.verify|verify} messages. + * @param message BatchDedicatedResources message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchDedicatedResources, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureNoiseSigma message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.verify|verify} messages. - * @param message FeatureNoiseSigma message or plain object to encode + * Encodes the specified BatchDedicatedResources message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDedicatedResources.verify|verify} messages. + * @param message BatchDedicatedResources message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureNoiseSigma, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchDedicatedResources, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureNoiseSigma message from the specified reader or buffer. + * Decodes a BatchDedicatedResources message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureNoiseSigma + * @returns BatchDedicatedResources * @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.FeatureNoiseSigma; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchDedicatedResources; /** - * Decodes a FeatureNoiseSigma message from the specified reader or buffer, length delimited. + * Decodes a BatchDedicatedResources message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureNoiseSigma + * @returns BatchDedicatedResources * @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.FeatureNoiseSigma; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchDedicatedResources; /** - * Verifies a FeatureNoiseSigma message. + * Verifies a BatchDedicatedResources 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 FeatureNoiseSigma message from a plain object. Also converts values to their respective internal types. + * Creates a BatchDedicatedResources message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureNoiseSigma + * @returns BatchDedicatedResources */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchDedicatedResources; /** - * Creates a plain object from a FeatureNoiseSigma message. Also converts values to other types if specified. - * @param message FeatureNoiseSigma + * Creates a plain object from a BatchDedicatedResources message. Also converts values to other types if specified. + * @param message BatchDedicatedResources * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchDedicatedResources, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureNoiseSigma to JSON. + * Converts this BatchDedicatedResources to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeatureNoiseSigma + * Gets the default type url for BatchDedicatedResources * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace FeatureNoiseSigma { - - /** Properties of a NoiseSigmaForFeature. */ - interface INoiseSigmaForFeature { - - /** NoiseSigmaForFeature name */ - name?: (string|null); - - /** NoiseSigmaForFeature sigma */ - sigma?: (number|null); - } - - /** Represents a NoiseSigmaForFeature. */ - class NoiseSigmaForFeature implements INoiseSigmaForFeature { - - /** - * Constructs a new NoiseSigmaForFeature. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature); - - /** NoiseSigmaForFeature name. */ - public name: string; - - /** NoiseSigmaForFeature sigma. */ - public sigma: number; - - /** - * Creates a new NoiseSigmaForFeature instance using the specified properties. - * @param [properties] Properties to set - * @returns NoiseSigmaForFeature instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature; - - /** - * Encodes the specified NoiseSigmaForFeature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature.verify|verify} messages. - * @param message NoiseSigmaForFeature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified NoiseSigmaForFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature.verify|verify} messages. - * @param message NoiseSigmaForFeature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.INoiseSigmaForFeature, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NoiseSigmaForFeature message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NoiseSigmaForFeature - * @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.FeatureNoiseSigma.NoiseSigmaForFeature; - - /** - * Decodes a NoiseSigmaForFeature message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NoiseSigmaForFeature - * @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.FeatureNoiseSigma.NoiseSigmaForFeature; - - /** - * Verifies a NoiseSigmaForFeature 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 NoiseSigmaForFeature message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NoiseSigmaForFeature - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature; - - /** - * Creates a plain object from a NoiseSigmaForFeature message. Also converts values to other types if specified. - * @param message NoiseSigmaForFeature - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureNoiseSigma.NoiseSigmaForFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this NoiseSigmaForFeature to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for NoiseSigmaForFeature - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a BlurBaselineConfig. */ - interface IBlurBaselineConfig { + /** Properties of a ResourcesConsumed. */ + interface IResourcesConsumed { - /** BlurBaselineConfig maxBlurSigma */ - maxBlurSigma?: (number|null); + /** ResourcesConsumed replicaHours */ + replicaHours?: (number|null); } - /** Represents a BlurBaselineConfig. */ - class BlurBaselineConfig implements IBlurBaselineConfig { + /** Represents a ResourcesConsumed. */ + class ResourcesConsumed implements IResourcesConsumed { /** - * Constructs a new BlurBaselineConfig. + * Constructs a new ResourcesConsumed. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBlurBaselineConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IResourcesConsumed); - /** BlurBaselineConfig maxBlurSigma. */ - public maxBlurSigma: number; + /** ResourcesConsumed replicaHours. */ + public replicaHours: number; /** - * Creates a new BlurBaselineConfig instance using the specified properties. + * Creates a new ResourcesConsumed instance using the specified properties. * @param [properties] Properties to set - * @returns BlurBaselineConfig instance + * @returns ResourcesConsumed instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBlurBaselineConfig): google.cloud.aiplatform.v1beta1.BlurBaselineConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IResourcesConsumed): google.cloud.aiplatform.v1beta1.ResourcesConsumed; /** - * Encodes the specified BlurBaselineConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BlurBaselineConfig.verify|verify} messages. - * @param message BlurBaselineConfig message or plain object to encode + * Encodes the specified ResourcesConsumed message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcesConsumed.verify|verify} messages. + * @param message ResourcesConsumed message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBlurBaselineConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IResourcesConsumed, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BlurBaselineConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BlurBaselineConfig.verify|verify} messages. - * @param message BlurBaselineConfig message or plain object to encode + * Encodes the specified ResourcesConsumed message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcesConsumed.verify|verify} messages. + * @param message ResourcesConsumed message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBlurBaselineConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResourcesConsumed, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BlurBaselineConfig message from the specified reader or buffer. + * Decodes a ResourcesConsumed message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BlurBaselineConfig + * @returns ResourcesConsumed * @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.BlurBaselineConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResourcesConsumed; /** - * Decodes a BlurBaselineConfig message from the specified reader or buffer, length delimited. + * Decodes a ResourcesConsumed message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BlurBaselineConfig + * @returns ResourcesConsumed * @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.BlurBaselineConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResourcesConsumed; /** - * Verifies a BlurBaselineConfig message. + * Verifies a ResourcesConsumed 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 BlurBaselineConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ResourcesConsumed message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BlurBaselineConfig + * @returns ResourcesConsumed */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BlurBaselineConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResourcesConsumed; /** - * Creates a plain object from a BlurBaselineConfig message. Also converts values to other types if specified. - * @param message BlurBaselineConfig + * Creates a plain object from a ResourcesConsumed message. Also converts values to other types if specified. + * @param message ResourcesConsumed * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BlurBaselineConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ResourcesConsumed, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BlurBaselineConfig to JSON. + * Converts this ResourcesConsumed to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BlurBaselineConfig + * Gets the default type url for ResourcesConsumed * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Examples. */ - interface IExamples { - - /** Examples nearestNeighborSearchConfig */ - nearestNeighborSearchConfig?: (google.protobuf.IValue|null); - - /** Examples presets */ - presets?: (google.cloud.aiplatform.v1beta1.IPresets|null); + /** Properties of a DiskSpec. */ + interface IDiskSpec { - /** Examples gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** DiskSpec bootDiskType */ + bootDiskType?: (string|null); - /** Examples neighborCount */ - neighborCount?: (number|null); + /** DiskSpec bootDiskSizeGb */ + bootDiskSizeGb?: (number|null); } - /** Represents an Examples. */ - class Examples implements IExamples { + /** Represents a DiskSpec. */ + class DiskSpec implements IDiskSpec { /** - * Constructs a new Examples. + * Constructs a new DiskSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExamples); - - /** Examples nearestNeighborSearchConfig. */ - public nearestNeighborSearchConfig?: (google.protobuf.IValue|null); - - /** Examples presets. */ - public presets?: (google.cloud.aiplatform.v1beta1.IPresets|null); - - /** Examples gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDiskSpec); - /** Examples neighborCount. */ - public neighborCount: number; + /** DiskSpec bootDiskType. */ + public bootDiskType: string; - /** Examples config. */ - public config?: ("nearestNeighborSearchConfig"|"presets"); + /** DiskSpec bootDiskSizeGb. */ + public bootDiskSizeGb: number; /** - * Creates a new Examples instance using the specified properties. + * Creates a new DiskSpec instance using the specified properties. * @param [properties] Properties to set - * @returns Examples instance + * @returns DiskSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExamples): google.cloud.aiplatform.v1beta1.Examples; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDiskSpec): google.cloud.aiplatform.v1beta1.DiskSpec; /** - * Encodes the specified Examples message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Examples.verify|verify} messages. - * @param message Examples message or plain object to encode + * Encodes the specified DiskSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DiskSpec.verify|verify} messages. + * @param message DiskSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExamples, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDiskSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Examples message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Examples.verify|verify} messages. - * @param message Examples message or plain object to encode + * Encodes the specified DiskSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DiskSpec.verify|verify} messages. + * @param message DiskSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExamples, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDiskSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Examples message from the specified reader or buffer. + * Decodes a DiskSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Examples + * @returns DiskSpec * @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.Examples; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DiskSpec; /** - * Decodes an Examples message from the specified reader or buffer, length delimited. + * Decodes a DiskSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Examples + * @returns DiskSpec * @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.Examples; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DiskSpec; /** - * Verifies an Examples message. + * Verifies a DiskSpec 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 Examples message from a plain object. Also converts values to their respective internal types. + * Creates a DiskSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Examples + * @returns DiskSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Examples; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DiskSpec; /** - * Creates a plain object from an Examples message. Also converts values to other types if specified. - * @param message Examples + * Creates a plain object from a DiskSpec message. Also converts values to other types if specified. + * @param message DiskSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Examples, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DiskSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Examples to JSON. + * Converts this DiskSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Examples + * Gets the default type url for DiskSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Presets. */ - interface IPresets { + /** Properties of a NfsMount. */ + interface INfsMount { - /** Presets query */ - query?: (google.cloud.aiplatform.v1beta1.Presets.Query|keyof typeof google.cloud.aiplatform.v1beta1.Presets.Query|null); + /** NfsMount server */ + server?: (string|null); - /** Presets modality */ - modality?: (google.cloud.aiplatform.v1beta1.Presets.Modality|keyof typeof google.cloud.aiplatform.v1beta1.Presets.Modality|null); + /** NfsMount path */ + path?: (string|null); + + /** NfsMount mountPoint */ + mountPoint?: (string|null); } - /** Represents a Presets. */ - class Presets implements IPresets { + /** Represents a NfsMount. */ + class NfsMount implements INfsMount { /** - * Constructs a new Presets. + * Constructs a new NfsMount. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPresets); + constructor(properties?: google.cloud.aiplatform.v1beta1.INfsMount); - /** Presets query. */ - public query?: (google.cloud.aiplatform.v1beta1.Presets.Query|keyof typeof google.cloud.aiplatform.v1beta1.Presets.Query|null); + /** NfsMount server. */ + public server: string; - /** Presets modality. */ - public modality: (google.cloud.aiplatform.v1beta1.Presets.Modality|keyof typeof google.cloud.aiplatform.v1beta1.Presets.Modality); + /** NfsMount path. */ + public path: string; - /** Presets _query. */ - public _query?: "query"; + /** NfsMount mountPoint. */ + public mountPoint: string; /** - * Creates a new Presets instance using the specified properties. + * Creates a new NfsMount instance using the specified properties. * @param [properties] Properties to set - * @returns Presets instance + * @returns NfsMount instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPresets): google.cloud.aiplatform.v1beta1.Presets; + public static create(properties?: google.cloud.aiplatform.v1beta1.INfsMount): google.cloud.aiplatform.v1beta1.NfsMount; /** - * Encodes the specified Presets message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Presets.verify|verify} messages. - * @param message Presets message or plain object to encode + * Encodes the specified NfsMount message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NfsMount.verify|verify} messages. + * @param message NfsMount message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPresets, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INfsMount, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Presets message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Presets.verify|verify} messages. - * @param message Presets message or plain object to encode + * Encodes the specified NfsMount message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NfsMount.verify|verify} messages. + * @param message NfsMount message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPresets, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INfsMount, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Presets message from the specified reader or buffer. + * Decodes a NfsMount message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Presets + * @returns NfsMount * @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.Presets; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NfsMount; /** - * Decodes a Presets message from the specified reader or buffer, length delimited. + * Decodes a NfsMount message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Presets + * @returns NfsMount * @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.Presets; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NfsMount; /** - * Verifies a Presets message. + * Verifies a NfsMount 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 Presets message from a plain object. Also converts values to their respective internal types. + * Creates a NfsMount message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Presets + * @returns NfsMount */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Presets; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NfsMount; /** - * Creates a plain object from a Presets message. Also converts values to other types if specified. - * @param message Presets + * Creates a plain object from a NfsMount message. Also converts values to other types if specified. + * @param message NfsMount * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Presets, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.NfsMount, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Presets to JSON. + * Converts this NfsMount to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Presets + * Gets the default type url for NfsMount * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Presets { - - /** Query enum. */ - enum Query { - PRECISE = 0, - FAST = 1 - } - - /** Modality enum. */ - enum Modality { - MODALITY_UNSPECIFIED = 0, - IMAGE = 1, - TEXT = 2, - TABULAR = 3 - } - } - - /** Properties of an ExplanationSpecOverride. */ - interface IExplanationSpecOverride { + } - /** ExplanationSpecOverride parameters */ - parameters?: (google.cloud.aiplatform.v1beta1.IExplanationParameters|null); + /** Properties of an AutoscalingMetricSpec. */ + interface IAutoscalingMetricSpec { - /** ExplanationSpecOverride metadata */ - metadata?: (google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride|null); + /** AutoscalingMetricSpec metricName */ + metricName?: (string|null); - /** ExplanationSpecOverride examplesOverride */ - examplesOverride?: (google.cloud.aiplatform.v1beta1.IExamplesOverride|null); + /** AutoscalingMetricSpec target */ + target?: (number|null); } - /** Represents an ExplanationSpecOverride. */ - class ExplanationSpecOverride implements IExplanationSpecOverride { + /** Represents an AutoscalingMetricSpec. */ + class AutoscalingMetricSpec implements IAutoscalingMetricSpec { /** - * Constructs a new ExplanationSpecOverride. + * Constructs a new AutoscalingMetricSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride); - - /** ExplanationSpecOverride parameters. */ - public parameters?: (google.cloud.aiplatform.v1beta1.IExplanationParameters|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec); - /** ExplanationSpecOverride metadata. */ - public metadata?: (google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride|null); + /** AutoscalingMetricSpec metricName. */ + public metricName: string; - /** ExplanationSpecOverride examplesOverride. */ - public examplesOverride?: (google.cloud.aiplatform.v1beta1.IExamplesOverride|null); + /** AutoscalingMetricSpec target. */ + public target: number; /** - * Creates a new ExplanationSpecOverride instance using the specified properties. + * Creates a new AutoscalingMetricSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ExplanationSpecOverride instance + * @returns AutoscalingMetricSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride): google.cloud.aiplatform.v1beta1.ExplanationSpecOverride; + public static create(properties?: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec): google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec; /** - * Encodes the specified ExplanationSpecOverride message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.verify|verify} messages. - * @param message ExplanationSpecOverride message or plain object to encode + * Encodes the specified AutoscalingMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.verify|verify} messages. + * @param message AutoscalingMetricSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExplanationSpecOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationSpecOverride.verify|verify} messages. - * @param message ExplanationSpecOverride message or plain object to encode + * Encodes the specified AutoscalingMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.verify|verify} messages. + * @param message AutoscalingMetricSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationSpecOverride, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExplanationSpecOverride message from the specified reader or buffer. + * Decodes an AutoscalingMetricSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExplanationSpecOverride + * @returns AutoscalingMetricSpec * @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.ExplanationSpecOverride; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec; /** - * Decodes an ExplanationSpecOverride message from the specified reader or buffer, length delimited. + * Decodes an AutoscalingMetricSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExplanationSpecOverride + * @returns AutoscalingMetricSpec * @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.ExplanationSpecOverride; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec; /** - * Verifies an ExplanationSpecOverride message. + * Verifies an AutoscalingMetricSpec 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 ExplanationSpecOverride message from a plain object. Also converts values to their respective internal types. + * Creates an AutoscalingMetricSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExplanationSpecOverride + * @returns AutoscalingMetricSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationSpecOverride; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec; /** - * Creates a plain object from an ExplanationSpecOverride message. Also converts values to other types if specified. - * @param message ExplanationSpecOverride + * Creates a plain object from an AutoscalingMetricSpec message. Also converts values to other types if specified. + * @param message AutoscalingMetricSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationSpecOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExplanationSpecOverride to JSON. + * Converts this AutoscalingMetricSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExplanationSpecOverride + * Gets the default type url for AutoscalingMetricSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExplanationMetadataOverride. */ - interface IExplanationMetadataOverride { + /** Properties of a ManualBatchTuningParameters. */ + interface IManualBatchTuningParameters { - /** ExplanationMetadataOverride inputs */ - inputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride }|null); + /** ManualBatchTuningParameters batchSize */ + batchSize?: (number|null); } - /** Represents an ExplanationMetadataOverride. */ - class ExplanationMetadataOverride implements IExplanationMetadataOverride { + /** Represents a ManualBatchTuningParameters. */ + class ManualBatchTuningParameters implements IManualBatchTuningParameters { /** - * Constructs a new ExplanationMetadataOverride. + * Constructs a new ManualBatchTuningParameters. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride); + constructor(properties?: google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters); - /** ExplanationMetadataOverride inputs. */ - public inputs: { [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride }; + /** ManualBatchTuningParameters batchSize. */ + public batchSize: number; /** - * Creates a new ExplanationMetadataOverride instance using the specified properties. + * Creates a new ManualBatchTuningParameters instance using the specified properties. * @param [properties] Properties to set - * @returns ExplanationMetadataOverride instance + * @returns ManualBatchTuningParameters instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride; + public static create(properties?: google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters): google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters; /** - * Encodes the specified ExplanationMetadataOverride message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.verify|verify} messages. - * @param message ExplanationMetadataOverride message or plain object to encode + * Encodes the specified ManualBatchTuningParameters message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters.verify|verify} messages. + * @param message ManualBatchTuningParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExplanationMetadataOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.verify|verify} messages. - * @param message ExplanationMetadataOverride message or plain object to encode + * Encodes the specified ManualBatchTuningParameters message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters.verify|verify} messages. + * @param message ManualBatchTuningParameters message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationMetadataOverride, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExplanationMetadataOverride message from the specified reader or buffer. + * Decodes a ManualBatchTuningParameters message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExplanationMetadataOverride + * @returns ManualBatchTuningParameters * @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.ExplanationMetadataOverride; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters; /** - * Decodes an ExplanationMetadataOverride message from the specified reader or buffer, length delimited. + * Decodes a ManualBatchTuningParameters message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExplanationMetadataOverride + * @returns ManualBatchTuningParameters * @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.ExplanationMetadataOverride; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters; /** - * Verifies an ExplanationMetadataOverride message. + * Verifies a ManualBatchTuningParameters 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 ExplanationMetadataOverride message from a plain object. Also converts values to their respective internal types. + * Creates a ManualBatchTuningParameters message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExplanationMetadataOverride + * @returns ManualBatchTuningParameters */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters; /** - * Creates a plain object from an ExplanationMetadataOverride message. Also converts values to other types if specified. - * @param message ExplanationMetadataOverride + * Creates a plain object from a ManualBatchTuningParameters message. Also converts values to other types if specified. + * @param message ManualBatchTuningParameters * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExplanationMetadataOverride to JSON. + * Converts this ManualBatchTuningParameters to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExplanationMetadataOverride + * Gets the default type url for ManualBatchTuningParameters * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ExplanationMetadataOverride { + /** ModelDeploymentMonitoringObjectiveType enum. */ + enum ModelDeploymentMonitoringObjectiveType { + MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0, + RAW_FEATURE_SKEW = 1, + RAW_FEATURE_DRIFT = 2, + FEATURE_ATTRIBUTION_SKEW = 3, + FEATURE_ATTRIBUTION_DRIFT = 4 + } - /** Properties of an InputMetadataOverride. */ - interface IInputMetadataOverride { + /** Properties of a ModelDeploymentMonitoringJob. */ + interface IModelDeploymentMonitoringJob { - /** InputMetadataOverride inputBaselines */ - inputBaselines?: (google.protobuf.IValue[]|null); - } + /** ModelDeploymentMonitoringJob name */ + name?: (string|null); - /** Represents an InputMetadataOverride. */ - class InputMetadataOverride implements IInputMetadataOverride { + /** ModelDeploymentMonitoringJob displayName */ + displayName?: (string|null); - /** - * Constructs a new InputMetadataOverride. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride); + /** ModelDeploymentMonitoringJob endpoint */ + endpoint?: (string|null); - /** InputMetadataOverride inputBaselines. */ - public inputBaselines: google.protobuf.IValue[]; + /** ModelDeploymentMonitoringJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - /** - * Creates a new InputMetadataOverride instance using the specified properties. - * @param [properties] Properties to set - * @returns InputMetadataOverride instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride; + /** ModelDeploymentMonitoringJob scheduleState */ + scheduleState?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null); - /** - * Encodes the specified InputMetadataOverride message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride.verify|verify} messages. - * @param message InputMetadataOverride message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata */ + latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - /** - * Encodes the specified InputMetadataOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride.verify|verify} messages. - * @param message InputMetadataOverride message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.IInputMetadataOverride, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs */ + modelDeploymentMonitoringObjectiveConfigs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig[]|null); - /** - * Decodes an InputMetadataOverride message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InputMetadataOverride - * @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.ExplanationMetadataOverride.InputMetadataOverride; + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig */ + modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null); - /** - * Decodes an InputMetadataOverride message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InputMetadataOverride - * @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.ExplanationMetadataOverride.InputMetadataOverride; + /** ModelDeploymentMonitoringJob loggingSamplingStrategy */ + loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - /** - * Verifies an InputMetadataOverride 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); + /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig */ + modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); - /** - * Creates an InputMetadataOverride message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InputMetadataOverride - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride; + /** ModelDeploymentMonitoringJob predictInstanceSchemaUri */ + predictInstanceSchemaUri?: (string|null); - /** - * Creates a plain object from an InputMetadataOverride message. Also converts values to other types if specified. - * @param message InputMetadataOverride - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadataOverride.InputMetadataOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ModelDeploymentMonitoringJob samplePredictInstance */ + samplePredictInstance?: (google.protobuf.IValue|null); - /** - * Converts this InputMetadataOverride to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri */ + analysisInstanceSchemaUri?: (string|null); - /** - * Gets the default type url for InputMetadataOverride - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** ModelDeploymentMonitoringJob bigqueryTables */ + bigqueryTables?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]|null); - /** Properties of an ExamplesOverride. */ - interface IExamplesOverride { + /** ModelDeploymentMonitoringJob logTtl */ + logTtl?: (google.protobuf.IDuration|null); - /** ExamplesOverride neighborCount */ - neighborCount?: (number|null); + /** ModelDeploymentMonitoringJob labels */ + labels?: ({ [k: string]: string }|null); - /** ExamplesOverride crowdingCount */ - crowdingCount?: (number|null); + /** ModelDeploymentMonitoringJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** ExamplesOverride restrictions */ - restrictions?: (google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace[]|null); + /** ModelDeploymentMonitoringJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** ExamplesOverride returnEmbeddings */ - returnEmbeddings?: (boolean|null); + /** ModelDeploymentMonitoringJob nextScheduleTime */ + nextScheduleTime?: (google.protobuf.ITimestamp|null); - /** ExamplesOverride dataFormat */ - dataFormat?: (google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat|keyof typeof google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat|null); + /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory */ + statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** ModelDeploymentMonitoringJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs */ + enableMonitoringPipelineLogs?: (boolean|null); + + /** ModelDeploymentMonitoringJob error */ + error?: (google.rpc.IStatus|null); } - /** Represents an ExamplesOverride. */ - class ExamplesOverride implements IExamplesOverride { + /** Represents a ModelDeploymentMonitoringJob. */ + class ModelDeploymentMonitoringJob implements IModelDeploymentMonitoringJob { /** - * Constructs a new ExamplesOverride. + * Constructs a new ModelDeploymentMonitoringJob. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExamplesOverride); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob); - /** ExamplesOverride neighborCount. */ - public neighborCount: number; + /** ModelDeploymentMonitoringJob name. */ + public name: string; - /** ExamplesOverride crowdingCount. */ - public crowdingCount: number; + /** ModelDeploymentMonitoringJob displayName. */ + public displayName: string; - /** ExamplesOverride restrictions. */ - public restrictions: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace[]; + /** ModelDeploymentMonitoringJob endpoint. */ + public endpoint: string; - /** ExamplesOverride returnEmbeddings. */ - public returnEmbeddings: boolean; + /** ModelDeploymentMonitoringJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - /** ExamplesOverride dataFormat. */ - public dataFormat: (google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat|keyof typeof google.cloud.aiplatform.v1beta1.ExamplesOverride.DataFormat); + /** ModelDeploymentMonitoringJob scheduleState. */ + public scheduleState: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState); + + /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. */ + public latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); + + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. */ + public modelDeploymentMonitoringObjectiveConfigs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig[]; + + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. */ + public modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null); + + /** ModelDeploymentMonitoringJob loggingSamplingStrategy. */ + public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); + + /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig. */ + public modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + + /** ModelDeploymentMonitoringJob predictInstanceSchemaUri. */ + public predictInstanceSchemaUri: string; + + /** ModelDeploymentMonitoringJob samplePredictInstance. */ + public samplePredictInstance?: (google.protobuf.IValue|null); + + /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri. */ + public analysisInstanceSchemaUri: string; + + /** ModelDeploymentMonitoringJob bigqueryTables. */ + public bigqueryTables: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]; + + /** ModelDeploymentMonitoringJob logTtl. */ + public logTtl?: (google.protobuf.IDuration|null); + + /** ModelDeploymentMonitoringJob labels. */ + public labels: { [k: string]: string }; + + /** ModelDeploymentMonitoringJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob nextScheduleTime. */ + public nextScheduleTime?: (google.protobuf.ITimestamp|null); + + /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. */ + public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** ModelDeploymentMonitoringJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. */ + public enableMonitoringPipelineLogs: boolean; + + /** ModelDeploymentMonitoringJob error. */ + public error?: (google.rpc.IStatus|null); /** - * Creates a new ExamplesOverride instance using the specified properties. + * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. * @param [properties] Properties to set - * @returns ExamplesOverride instance + * @returns ModelDeploymentMonitoringJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExamplesOverride): google.cloud.aiplatform.v1beta1.ExamplesOverride; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; /** - * Encodes the specified ExamplesOverride message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExamplesOverride.verify|verify} messages. - * @param message ExamplesOverride message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @param message ModelDeploymentMonitoringJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExamplesOverride, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExamplesOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExamplesOverride.verify|verify} messages. - * @param message ExamplesOverride message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @param message ModelDeploymentMonitoringJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExamplesOverride, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExamplesOverride message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExamplesOverride + * @returns ModelDeploymentMonitoringJob * @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.ExamplesOverride; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; /** - * Decodes an ExamplesOverride message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExamplesOverride + * @returns ModelDeploymentMonitoringJob * @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.ExamplesOverride; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; /** - * Verifies an ExamplesOverride message. + * Verifies a ModelDeploymentMonitoringJob 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 ExamplesOverride message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExamplesOverride - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExamplesOverride; + /** + * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelDeploymentMonitoringJob + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + + /** + * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringJob + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ModelDeploymentMonitoringJob to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ModelDeploymentMonitoringJob + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ModelDeploymentMonitoringJob { + + /** Properties of a LatestMonitoringPipelineMetadata. */ + interface ILatestMonitoringPipelineMetadata { + + /** LatestMonitoringPipelineMetadata runTime */ + runTime?: (google.protobuf.ITimestamp|null); + + /** LatestMonitoringPipelineMetadata status */ + status?: (google.rpc.IStatus|null); + } + + /** Represents a LatestMonitoringPipelineMetadata. */ + class LatestMonitoringPipelineMetadata implements ILatestMonitoringPipelineMetadata { + + /** + * Constructs a new LatestMonitoringPipelineMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata); + + /** LatestMonitoringPipelineMetadata runTime. */ + public runTime?: (google.protobuf.ITimestamp|null); + + /** LatestMonitoringPipelineMetadata status. */ + public status?: (google.rpc.IStatus|null); + + /** + * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns LatestMonitoringPipelineMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + + /** + * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @param message LatestMonitoringPipelineMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @param message LatestMonitoringPipelineMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LatestMonitoringPipelineMetadata + * @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.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + + /** + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LatestMonitoringPipelineMetadata + * @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.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + + /** + * Verifies a LatestMonitoringPipelineMetadata 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 plain object from an ExamplesOverride message. Also converts values to other types if specified. - * @param message ExamplesOverride - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExamplesOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LatestMonitoringPipelineMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; - /** - * Converts this ExamplesOverride to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. + * @param message LatestMonitoringPipelineMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for ExamplesOverride - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Converts this LatestMonitoringPipelineMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - namespace ExamplesOverride { + /** + * Gets the default type url for LatestMonitoringPipelineMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** DataFormat enum. */ - enum DataFormat { - DATA_FORMAT_UNSPECIFIED = 0, - INSTANCES = 1, - EMBEDDINGS = 2 + /** MonitoringScheduleState enum. */ + enum MonitoringScheduleState { + MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0, + PENDING = 1, + OFFLINE = 2, + RUNNING = 3 } } - /** Properties of an ExamplesRestrictionsNamespace. */ - interface IExamplesRestrictionsNamespace { + /** Properties of a ModelDeploymentMonitoringBigQueryTable. */ + interface IModelDeploymentMonitoringBigQueryTable { - /** ExamplesRestrictionsNamespace namespaceName */ - namespaceName?: (string|null); + /** ModelDeploymentMonitoringBigQueryTable logSource */ + logSource?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|null); - /** ExamplesRestrictionsNamespace allow */ - allow?: (string[]|null); + /** ModelDeploymentMonitoringBigQueryTable logType */ + logType?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|null); - /** ExamplesRestrictionsNamespace deny */ - deny?: (string[]|null); + /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ + bigqueryTablePath?: (string|null); } - /** Represents an ExamplesRestrictionsNamespace. */ - class ExamplesRestrictionsNamespace implements IExamplesRestrictionsNamespace { + /** Represents a ModelDeploymentMonitoringBigQueryTable. */ + class ModelDeploymentMonitoringBigQueryTable implements IModelDeploymentMonitoringBigQueryTable { /** - * Constructs a new ExamplesRestrictionsNamespace. + * Constructs a new ModelDeploymentMonitoringBigQueryTable. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable); - /** ExamplesRestrictionsNamespace namespaceName. */ - public namespaceName: string; + /** ModelDeploymentMonitoringBigQueryTable logSource. */ + public logSource: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource); - /** ExamplesRestrictionsNamespace allow. */ - public allow: string[]; + /** ModelDeploymentMonitoringBigQueryTable logType. */ + public logType: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType); - /** ExamplesRestrictionsNamespace deny. */ - public deny: string[]; + /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ + public bigqueryTablePath: string; /** - * Creates a new ExamplesRestrictionsNamespace instance using the specified properties. + * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. * @param [properties] Properties to set - * @returns ExamplesRestrictionsNamespace instance + * @returns ModelDeploymentMonitoringBigQueryTable instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace): google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; /** - * Encodes the specified ExamplesRestrictionsNamespace message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.verify|verify} messages. - * @param message ExamplesRestrictionsNamespace message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExamplesRestrictionsNamespace message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace.verify|verify} messages. - * @param message ExamplesRestrictionsNamespace message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExamplesRestrictionsNamespace, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExamplesRestrictionsNamespace message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExamplesRestrictionsNamespace + * @returns ModelDeploymentMonitoringBigQueryTable * @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.ExamplesRestrictionsNamespace; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; /** - * Decodes an ExamplesRestrictionsNamespace message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExamplesRestrictionsNamespace + * @returns ModelDeploymentMonitoringBigQueryTable * @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.ExamplesRestrictionsNamespace; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; /** - * Verifies an ExamplesRestrictionsNamespace message. + * Verifies a ModelDeploymentMonitoringBigQueryTable 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 ExamplesRestrictionsNamespace message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExamplesRestrictionsNamespace + * @returns ModelDeploymentMonitoringBigQueryTable */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; /** - * Creates a plain object from an ExamplesRestrictionsNamespace message. Also converts values to other types if specified. - * @param message ExamplesRestrictionsNamespace + * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringBigQueryTable * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExamplesRestrictionsNamespace to JSON. + * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExamplesRestrictionsNamespace + * Gets the default type url for ModelDeploymentMonitoringBigQueryTable * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExplanationMetadata. */ - interface IExplanationMetadata { + namespace ModelDeploymentMonitoringBigQueryTable { - /** ExplanationMetadata inputs */ - inputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata }|null); + /** LogSource enum. */ + enum LogSource { + LOG_SOURCE_UNSPECIFIED = 0, + TRAINING = 1, + SERVING = 2 + } - /** ExplanationMetadata outputs */ - outputs?: ({ [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata }|null); + /** LogType enum. */ + enum LogType { + LOG_TYPE_UNSPECIFIED = 0, + PREDICT = 1, + EXPLAIN = 2 + } + } - /** ExplanationMetadata featureAttributionsSchemaUri */ - featureAttributionsSchemaUri?: (string|null); + /** Properties of a ModelDeploymentMonitoringObjectiveConfig. */ + interface IModelDeploymentMonitoringObjectiveConfig { - /** ExplanationMetadata latentSpaceSource */ - latentSpaceSource?: (string|null); + /** ModelDeploymentMonitoringObjectiveConfig deployedModelId */ + deployedModelId?: (string|null); + + /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ + objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); } - /** Represents an ExplanationMetadata. */ - class ExplanationMetadata implements IExplanationMetadata { + /** Represents a ModelDeploymentMonitoringObjectiveConfig. */ + class ModelDeploymentMonitoringObjectiveConfig implements IModelDeploymentMonitoringObjectiveConfig { /** - * Constructs a new ExplanationMetadata. + * Constructs a new ModelDeploymentMonitoringObjectiveConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExplanationMetadata); - - /** ExplanationMetadata inputs. */ - public inputs: { [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata }; - - /** ExplanationMetadata outputs. */ - public outputs: { [k: string]: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata }; + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig); - /** ExplanationMetadata featureAttributionsSchemaUri. */ - public featureAttributionsSchemaUri: string; + /** ModelDeploymentMonitoringObjectiveConfig deployedModelId. */ + public deployedModelId: string; - /** ExplanationMetadata latentSpaceSource. */ - public latentSpaceSource: string; + /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig. */ + public objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); /** - * Creates a new ExplanationMetadata instance using the specified properties. + * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ExplanationMetadata instance + * @returns ModelDeploymentMonitoringObjectiveConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExplanationMetadata): google.cloud.aiplatform.v1beta1.ExplanationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; /** - * Encodes the specified ExplanationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.verify|verify} messages. - * @param message ExplanationMetadata message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExplanationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExplanationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.verify|verify} messages. - * @param message ExplanationMetadata message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExplanationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExplanationMetadata message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExplanationMetadata + * @returns ModelDeploymentMonitoringObjectiveConfig * @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.ExplanationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; /** - * Decodes an ExplanationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExplanationMetadata + * @returns ModelDeploymentMonitoringObjectiveConfig * @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.ExplanationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; /** - * Verifies an ExplanationMetadata message. + * Verifies a ModelDeploymentMonitoringObjectiveConfig 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 ExplanationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExplanationMetadata + * @returns ModelDeploymentMonitoringObjectiveConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; /** - * Creates a plain object from an ExplanationMetadata message. Also converts values to other types if specified. - * @param message ExplanationMetadata + * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringObjectiveConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExplanationMetadata to JSON. + * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExplanationMetadata + * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ExplanationMetadata { - - /** Properties of an InputMetadata. */ - interface IInputMetadata { - - /** InputMetadata inputBaselines */ - inputBaselines?: (google.protobuf.IValue[]|null); - - /** InputMetadata inputTensorName */ - inputTensorName?: (string|null); - - /** InputMetadata encoding */ - encoding?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding|null); - - /** InputMetadata modality */ - modality?: (string|null); - - /** InputMetadata featureValueDomain */ - featureValueDomain?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain|null); - - /** InputMetadata indicesTensorName */ - indicesTensorName?: (string|null); - - /** InputMetadata denseShapeTensorName */ - denseShapeTensorName?: (string|null); - - /** InputMetadata indexFeatureMapping */ - indexFeatureMapping?: (string[]|null); - - /** InputMetadata encodedTensorName */ - encodedTensorName?: (string|null); - - /** InputMetadata encodedBaselines */ - encodedBaselines?: (google.protobuf.IValue[]|null); - - /** InputMetadata visualization */ - visualization?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization|null); - - /** InputMetadata groupName */ - groupName?: (string|null); - } - - /** Represents an InputMetadata. */ - class InputMetadata implements IInputMetadata { - - /** - * Constructs a new InputMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata); - - /** InputMetadata inputBaselines. */ - public inputBaselines: google.protobuf.IValue[]; - - /** InputMetadata inputTensorName. */ - public inputTensorName: string; - - /** InputMetadata encoding. */ - public encoding: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Encoding); - - /** InputMetadata modality. */ - public modality: string; - - /** InputMetadata featureValueDomain. */ - public featureValueDomain?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain|null); - - /** InputMetadata indicesTensorName. */ - public indicesTensorName: string; - - /** InputMetadata denseShapeTensorName. */ - public denseShapeTensorName: string; - - /** InputMetadata indexFeatureMapping. */ - public indexFeatureMapping: string[]; - - /** InputMetadata encodedTensorName. */ - public encodedTensorName: string; - - /** InputMetadata encodedBaselines. */ - public encodedBaselines: google.protobuf.IValue[]; - - /** InputMetadata visualization. */ - public visualization?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization|null); - - /** InputMetadata groupName. */ - public groupName: string; - - /** - * Creates a new InputMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns InputMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata; - - /** - * Encodes the specified InputMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.verify|verify} messages. - * @param message InputMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified InputMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.verify|verify} messages. - * @param message InputMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IInputMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InputMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InputMetadata - * @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.ExplanationMetadata.InputMetadata; - - /** - * Decodes an InputMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns InputMetadata - * @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.ExplanationMetadata.InputMetadata; - - /** - * Verifies an InputMetadata 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 InputMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns InputMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata; - - /** - * Creates a plain object from an InputMetadata message. Also converts values to other types if specified. - * @param message InputMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this InputMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for InputMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace InputMetadata { - - /** Properties of a FeatureValueDomain. */ - interface IFeatureValueDomain { - - /** FeatureValueDomain minValue */ - minValue?: (number|null); - - /** FeatureValueDomain maxValue */ - maxValue?: (number|null); - - /** FeatureValueDomain originalMean */ - originalMean?: (number|null); - - /** FeatureValueDomain originalStddev */ - originalStddev?: (number|null); - } - - /** Represents a FeatureValueDomain. */ - class FeatureValueDomain implements IFeatureValueDomain { - - /** - * Constructs a new FeatureValueDomain. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain); - - /** FeatureValueDomain minValue. */ - public minValue: number; - - /** FeatureValueDomain maxValue. */ - public maxValue: number; - - /** FeatureValueDomain originalMean. */ - public originalMean: number; - - /** FeatureValueDomain originalStddev. */ - public originalStddev: number; - - /** - * Creates a new FeatureValueDomain instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureValueDomain instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain; - - /** - * Encodes the specified FeatureValueDomain message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain.verify|verify} messages. - * @param message FeatureValueDomain message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FeatureValueDomain message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain.verify|verify} messages. - * @param message FeatureValueDomain message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IFeatureValueDomain, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeatureValueDomain message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureValueDomain - * @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.ExplanationMetadata.InputMetadata.FeatureValueDomain; + /** Properties of a ModelDeploymentMonitoringScheduleConfig. */ + interface IModelDeploymentMonitoringScheduleConfig { - /** - * Decodes a FeatureValueDomain message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureValueDomain - * @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.ExplanationMetadata.InputMetadata.FeatureValueDomain; + /** ModelDeploymentMonitoringScheduleConfig monitorInterval */ + monitorInterval?: (google.protobuf.IDuration|null); - /** - * Verifies a FeatureValueDomain 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); + /** ModelDeploymentMonitoringScheduleConfig monitorWindow */ + monitorWindow?: (google.protobuf.IDuration|null); + } - /** - * Creates a FeatureValueDomain message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureValueDomain - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain; + /** Represents a ModelDeploymentMonitoringScheduleConfig. */ + class ModelDeploymentMonitoringScheduleConfig implements IModelDeploymentMonitoringScheduleConfig { - /** - * Creates a plain object from a FeatureValueDomain message. Also converts values to other types if specified. - * @param message FeatureValueDomain - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.FeatureValueDomain, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig); - /** - * Converts this FeatureValueDomain to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ModelDeploymentMonitoringScheduleConfig monitorInterval. */ + public monitorInterval?: (google.protobuf.IDuration|null); - /** - * Gets the default type url for FeatureValueDomain - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** ModelDeploymentMonitoringScheduleConfig monitorWindow. */ + public monitorWindow?: (google.protobuf.IDuration|null); - /** Properties of a Visualization. */ - interface IVisualization { + /** + * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelDeploymentMonitoringScheduleConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; - /** Visualization type */ - type?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type|null); + /** + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Visualization polarity */ - polarity?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity|null); + /** + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Visualization colorMap */ - colorMap?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap|null); + /** + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelDeploymentMonitoringScheduleConfig + * @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.ModelDeploymentMonitoringScheduleConfig; - /** Visualization clipPercentUpperbound */ - clipPercentUpperbound?: (number|null); + /** + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelDeploymentMonitoringScheduleConfig + * @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.ModelDeploymentMonitoringScheduleConfig; - /** Visualization clipPercentLowerbound */ - clipPercentLowerbound?: (number|null); + /** + * Verifies a ModelDeploymentMonitoringScheduleConfig 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); - /** Visualization overlayType */ - overlayType?: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType|null); - } + /** + * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelDeploymentMonitoringScheduleConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; - /** Represents a Visualization. */ - class Visualization implements IVisualization { + /** + * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringScheduleConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new Visualization. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization); + /** + * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Visualization type. */ - public type: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Type); + /** + * Gets the default type url for ModelDeploymentMonitoringScheduleConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Visualization polarity. */ - public polarity: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.Polarity); + /** Properties of a ModelMonitoringStatsAnomalies. */ + interface IModelMonitoringStatsAnomalies { - /** Visualization colorMap. */ - public colorMap: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.ColorMap); + /** ModelMonitoringStatsAnomalies objective */ + objective?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); - /** Visualization clipPercentUpperbound. */ - public clipPercentUpperbound: number; + /** ModelMonitoringStatsAnomalies deployedModelId */ + deployedModelId?: (string|null); - /** Visualization clipPercentLowerbound. */ - public clipPercentLowerbound: number; + /** ModelMonitoringStatsAnomalies anomalyCount */ + anomalyCount?: (number|null); - /** Visualization overlayType. */ - public overlayType: (google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType|keyof typeof google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.OverlayType); + /** ModelMonitoringStatsAnomalies featureStats */ + featureStats?: (google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]|null); + } - /** - * Creates a new Visualization instance using the specified properties. - * @param [properties] Properties to set - * @returns Visualization instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization; + /** Represents a ModelMonitoringStatsAnomalies. */ + class ModelMonitoringStatsAnomalies implements IModelMonitoringStatsAnomalies { - /** - * Encodes the specified Visualization message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.verify|verify} messages. - * @param message Visualization message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new ModelMonitoringStatsAnomalies. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies); - /** - * Encodes the specified Visualization message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization.verify|verify} messages. - * @param message Visualization message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.IVisualization, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelMonitoringStatsAnomalies objective. */ + public objective: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); - /** - * Decodes a Visualization message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Visualization - * @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.ExplanationMetadata.InputMetadata.Visualization; + /** ModelMonitoringStatsAnomalies deployedModelId. */ + public deployedModelId: string; - /** - * Decodes a Visualization message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Visualization - * @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.ExplanationMetadata.InputMetadata.Visualization; + /** ModelMonitoringStatsAnomalies anomalyCount. */ + public anomalyCount: number; - /** - * Verifies a Visualization 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); + /** ModelMonitoringStatsAnomalies featureStats. */ + public featureStats: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]; - /** - * Creates a Visualization message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Visualization - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization; + /** + * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelMonitoringStatsAnomalies instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; - /** - * Creates a plain object from a Visualization message. Also converts values to other types if specified. - * @param message Visualization - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.InputMetadata.Visualization, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this Visualization to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for Visualization - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelMonitoringStatsAnomalies + * @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.ModelMonitoringStatsAnomalies; - namespace Visualization { + /** + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelMonitoringStatsAnomalies + * @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.ModelMonitoringStatsAnomalies; - /** Type enum. */ - enum Type { - TYPE_UNSPECIFIED = 0, - PIXELS = 1, - OUTLINES = 2 - } + /** + * Verifies a ModelMonitoringStatsAnomalies 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); - /** Polarity enum. */ - enum Polarity { - POLARITY_UNSPECIFIED = 0, - POSITIVE = 1, - NEGATIVE = 2, - BOTH = 3 - } + /** + * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelMonitoringStatsAnomalies + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; - /** ColorMap enum. */ - enum ColorMap { - COLOR_MAP_UNSPECIFIED = 0, - PINK_GREEN = 1, - VIRIDIS = 2, - RED = 3, - GREEN = 4, - RED_GREEN = 6, - PINK_WHITE_GREEN = 5 - } + /** + * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. + * @param message ModelMonitoringStatsAnomalies + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** OverlayType enum. */ - enum OverlayType { - OVERLAY_TYPE_UNSPECIFIED = 0, - NONE = 1, - ORIGINAL = 2, - GRAYSCALE = 3, - MASK_BLACK = 4 - } - } + /** + * Converts this ModelMonitoringStatsAnomalies to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Encoding enum. */ - enum Encoding { - ENCODING_UNSPECIFIED = 0, - IDENTITY = 1, - BAG_OF_FEATURES = 2, - BAG_OF_FEATURES_SPARSE = 3, - INDICATOR = 4, - COMBINED_EMBEDDING = 5, - CONCAT_EMBEDDING = 6 - } - } + /** + * Gets the default type url for ModelMonitoringStatsAnomalies + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of an OutputMetadata. */ - interface IOutputMetadata { + namespace ModelMonitoringStatsAnomalies { - /** OutputMetadata indexDisplayNameMapping */ - indexDisplayNameMapping?: (google.protobuf.IValue|null); + /** Properties of a FeatureHistoricStatsAnomalies. */ + interface IFeatureHistoricStatsAnomalies { - /** OutputMetadata displayNameMappingKey */ - displayNameMappingKey?: (string|null); + /** FeatureHistoricStatsAnomalies featureDisplayName */ + featureDisplayName?: (string|null); - /** OutputMetadata outputTensorName */ - outputTensorName?: (string|null); + /** FeatureHistoricStatsAnomalies threshold */ + threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + + /** FeatureHistoricStatsAnomalies trainingStats */ + trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); + + /** FeatureHistoricStatsAnomalies predictionStats */ + predictionStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]|null); } - /** Represents an OutputMetadata. */ - class OutputMetadata implements IOutputMetadata { + /** Represents a FeatureHistoricStatsAnomalies. */ + class FeatureHistoricStatsAnomalies implements IFeatureHistoricStatsAnomalies { /** - * Constructs a new OutputMetadata. + * Constructs a new FeatureHistoricStatsAnomalies. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies); - /** OutputMetadata indexDisplayNameMapping. */ - public indexDisplayNameMapping?: (google.protobuf.IValue|null); + /** FeatureHistoricStatsAnomalies featureDisplayName. */ + public featureDisplayName: string; - /** OutputMetadata displayNameMappingKey. */ - public displayNameMappingKey?: (string|null); + /** FeatureHistoricStatsAnomalies threshold. */ + public threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - /** OutputMetadata outputTensorName. */ - public outputTensorName: string; + /** FeatureHistoricStatsAnomalies trainingStats. */ + public trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - /** OutputMetadata displayNameMapping. */ - public displayNameMapping?: ("indexDisplayNameMapping"|"displayNameMappingKey"); + /** FeatureHistoricStatsAnomalies predictionStats. */ + public predictionStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; /** - * Creates a new OutputMetadata instance using the specified properties. + * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. * @param [properties] Properties to set - * @returns OutputMetadata instance + * @returns FeatureHistoricStatsAnomalies instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata): google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; /** - * Encodes the specified OutputMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata.verify|verify} messages. - * @param message OutputMetadata message or plain object to encode + * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @param message FeatureHistoricStatsAnomalies message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OutputMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata.verify|verify} messages. - * @param message OutputMetadata message or plain object to encode + * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @param message FeatureHistoricStatsAnomalies message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.IOutputMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OutputMetadata message from the specified reader or buffer. + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OutputMetadata + * @returns FeatureHistoricStatsAnomalies * @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.ExplanationMetadata.OutputMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; /** - * Decodes an OutputMetadata message from the specified reader or buffer, length delimited. + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OutputMetadata + * @returns FeatureHistoricStatsAnomalies * @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.ExplanationMetadata.OutputMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; /** - * Verifies an OutputMetadata message. + * Verifies a FeatureHistoricStatsAnomalies 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 OutputMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OutputMetadata + * @returns FeatureHistoricStatsAnomalies */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; /** - * Creates a plain object from an OutputMetadata message. Also converts values to other types if specified. - * @param message OutputMetadata + * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. + * @param message FeatureHistoricStatsAnomalies * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExplanationMetadata.OutputMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OutputMetadata to JSON. + * Converts this FeatureHistoricStatsAnomalies to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for OutputMetadata + * Gets the default type url for FeatureHistoricStatsAnomalies * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ @@ -74635,34995 +80338,34853 @@ export namespace google { } } - /** Properties of an AvroSource. */ - interface IAvroSource { + /** Properties of a FeatureStatsAnomaly. */ + interface IFeatureStatsAnomaly { - /** AvroSource gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** FeatureStatsAnomaly score */ + score?: (number|null); + + /** FeatureStatsAnomaly statsUri */ + statsUri?: (string|null); + + /** FeatureStatsAnomaly anomalyUri */ + anomalyUri?: (string|null); + + /** FeatureStatsAnomaly distributionDeviation */ + distributionDeviation?: (number|null); + + /** FeatureStatsAnomaly anomalyDetectionThreshold */ + anomalyDetectionThreshold?: (number|null); + + /** FeatureStatsAnomaly startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** FeatureStatsAnomaly endTime */ + endTime?: (google.protobuf.ITimestamp|null); } - /** Represents an AvroSource. */ - class AvroSource implements IAvroSource { + /** Represents a FeatureStatsAnomaly. */ + class FeatureStatsAnomaly implements IFeatureStatsAnomaly { /** - * Constructs a new AvroSource. + * Constructs a new FeatureStatsAnomaly. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAvroSource); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly); - /** AvroSource gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** FeatureStatsAnomaly score. */ + public score: number; + + /** FeatureStatsAnomaly statsUri. */ + public statsUri: string; + + /** FeatureStatsAnomaly anomalyUri. */ + public anomalyUri: string; + + /** FeatureStatsAnomaly distributionDeviation. */ + public distributionDeviation: number; + + /** FeatureStatsAnomaly anomalyDetectionThreshold. */ + public anomalyDetectionThreshold: number; + + /** FeatureStatsAnomaly startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** FeatureStatsAnomaly endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new AvroSource instance using the specified properties. + * Creates a new FeatureStatsAnomaly instance using the specified properties. * @param [properties] Properties to set - * @returns AvroSource instance + * @returns FeatureStatsAnomaly instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAvroSource): google.cloud.aiplatform.v1beta1.AvroSource; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; /** - * Encodes the specified AvroSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AvroSource.verify|verify} messages. - * @param message AvroSource message or plain object to encode + * Encodes the specified FeatureStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. + * @param message FeatureStatsAnomaly message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAvroSource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AvroSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AvroSource.verify|verify} messages. - * @param message AvroSource message or plain object to encode + * Encodes the specified FeatureStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. + * @param message FeatureStatsAnomaly message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAvroSource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AvroSource message from the specified reader or buffer. + * Decodes a FeatureStatsAnomaly message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AvroSource + * @returns FeatureStatsAnomaly * @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.AvroSource; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; /** - * Decodes an AvroSource message from the specified reader or buffer, length delimited. + * Decodes a FeatureStatsAnomaly message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AvroSource + * @returns FeatureStatsAnomaly * @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.AvroSource; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; /** - * Verifies an AvroSource message. + * Verifies a FeatureStatsAnomaly 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 AvroSource message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureStatsAnomaly message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AvroSource + * @returns FeatureStatsAnomaly */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AvroSource; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; /** - * Creates a plain object from an AvroSource message. Also converts values to other types if specified. - * @param message AvroSource + * Creates a plain object from a FeatureStatsAnomaly message. Also converts values to other types if specified. + * @param message FeatureStatsAnomaly * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AvroSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AvroSource to JSON. + * Converts this FeatureStatsAnomaly to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AvroSource + * Gets the default type url for FeatureStatsAnomaly * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CsvSource. */ - interface ICsvSource { + /** Properties of a ModelMonitoringConfig. */ + interface IModelMonitoringConfig { - /** CsvSource gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** ModelMonitoringConfig objectiveConfigs */ + objectiveConfigs?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig[]|null); + + /** ModelMonitoringConfig alertConfig */ + alertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + + /** ModelMonitoringConfig analysisInstanceSchemaUri */ + analysisInstanceSchemaUri?: (string|null); + + /** ModelMonitoringConfig statsAnomaliesBaseDirectory */ + statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); } - /** Represents a CsvSource. */ - class CsvSource implements ICsvSource { + /** Represents a ModelMonitoringConfig. */ + class ModelMonitoringConfig implements IModelMonitoringConfig { /** - * Constructs a new CsvSource. + * Constructs a new ModelMonitoringConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICsvSource); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig); - /** CsvSource gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** ModelMonitoringConfig objectiveConfigs. */ + public objectiveConfigs: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig[]; + + /** ModelMonitoringConfig alertConfig. */ + public alertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + + /** ModelMonitoringConfig analysisInstanceSchemaUri. */ + public analysisInstanceSchemaUri: string; + + /** ModelMonitoringConfig statsAnomaliesBaseDirectory. */ + public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); /** - * Creates a new CsvSource instance using the specified properties. + * Creates a new ModelMonitoringConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CsvSource instance + * @returns ModelMonitoringConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICsvSource): google.cloud.aiplatform.v1beta1.CsvSource; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; /** - * Encodes the specified CsvSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CsvSource.verify|verify} messages. - * @param message CsvSource message or plain object to encode + * Encodes the specified ModelMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. + * @param message ModelMonitoringConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICsvSource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CsvSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CsvSource.verify|verify} messages. - * @param message CsvSource message or plain object to encode + * Encodes the specified ModelMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. + * @param message ModelMonitoringConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICsvSource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CsvSource message from the specified reader or buffer. + * Decodes a ModelMonitoringConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CsvSource + * @returns ModelMonitoringConfig * @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.CsvSource; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; /** - * Decodes a CsvSource message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CsvSource + * @returns ModelMonitoringConfig * @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.CsvSource; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; /** - * Verifies a CsvSource message. + * Verifies a ModelMonitoringConfig 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 CsvSource message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CsvSource + * @returns ModelMonitoringConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CsvSource; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; /** - * Creates a plain object from a CsvSource message. Also converts values to other types if specified. - * @param message CsvSource + * Creates a plain object from a ModelMonitoringConfig message. Also converts values to other types if specified. + * @param message ModelMonitoringConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CsvSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CsvSource to JSON. + * Converts this ModelMonitoringConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CsvSource + * Gets the default type url for ModelMonitoringConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GcsSource. */ - interface IGcsSource { + /** Properties of a ModelMonitoringObjectiveConfig. */ + interface IModelMonitoringObjectiveConfig { - /** GcsSource uris */ - uris?: (string[]|null); + /** ModelMonitoringObjectiveConfig trainingDataset */ + trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + + /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig */ + trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + + /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig */ + predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + + /** ModelMonitoringObjectiveConfig explanationConfig */ + explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); } - /** Represents a GcsSource. */ - class GcsSource implements IGcsSource { + /** Represents a ModelMonitoringObjectiveConfig. */ + class ModelMonitoringObjectiveConfig implements IModelMonitoringObjectiveConfig { /** - * Constructs a new GcsSource. + * Constructs a new ModelMonitoringObjectiveConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGcsSource); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig); - /** GcsSource uris. */ - public uris: string[]; + /** ModelMonitoringObjectiveConfig trainingDataset. */ + public trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + + /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. */ + public trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + + /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. */ + public predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + + /** ModelMonitoringObjectiveConfig explanationConfig. */ + public explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); /** - * Creates a new GcsSource instance using the specified properties. + * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. * @param [properties] Properties to set - * @returns GcsSource instance + * @returns ModelMonitoringObjectiveConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGcsSource): google.cloud.aiplatform.v1beta1.GcsSource; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; /** - * Encodes the specified GcsSource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GcsSource.verify|verify} messages. - * @param message GcsSource message or plain object to encode + * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GcsSource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GcsSource.verify|verify} messages. - * @param message GcsSource message or plain object to encode + * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGcsSource, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GcsSource message from the specified reader or buffer. + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GcsSource + * @returns ModelMonitoringObjectiveConfig * @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.GcsSource; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; /** - * Decodes a GcsSource message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GcsSource + * @returns ModelMonitoringObjectiveConfig * @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.GcsSource; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; /** - * Verifies a GcsSource message. + * Verifies a ModelMonitoringObjectiveConfig 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 GcsSource message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GcsSource + * @returns ModelMonitoringObjectiveConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GcsSource; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; /** - * Creates a plain object from a GcsSource message. Also converts values to other types if specified. - * @param message GcsSource + * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @param message ModelMonitoringObjectiveConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GcsSource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GcsSource to JSON. + * Converts this ModelMonitoringObjectiveConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GcsSource + * Gets the default type url for ModelMonitoringObjectiveConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GcsDestination. */ - interface IGcsDestination { + namespace ModelMonitoringObjectiveConfig { - /** GcsDestination outputUriPrefix */ - outputUriPrefix?: (string|null); - } + /** Properties of a TrainingDataset. */ + interface ITrainingDataset { - /** Represents a GcsDestination. */ - class GcsDestination implements IGcsDestination { + /** TrainingDataset dataset */ + dataset?: (string|null); - /** - * Constructs a new GcsDestination. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGcsDestination); + /** TrainingDataset gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** GcsDestination outputUriPrefix. */ - public outputUriPrefix: string; + /** TrainingDataset bigquerySource */ + bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - /** - * Creates a new GcsDestination instance using the specified properties. - * @param [properties] Properties to set - * @returns GcsDestination instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGcsDestination): google.cloud.aiplatform.v1beta1.GcsDestination; + /** TrainingDataset dataFormat */ + dataFormat?: (string|null); - /** - * Encodes the specified GcsDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GcsDestination.verify|verify} messages. - * @param message GcsDestination message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer; + /** TrainingDataset targetField */ + targetField?: (string|null); - /** - * Encodes the specified GcsDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GcsDestination.verify|verify} messages. - * @param message GcsDestination message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGcsDestination, writer?: $protobuf.Writer): $protobuf.Writer; + /** TrainingDataset loggingSamplingStrategy */ + loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); + } - /** - * Decodes a GcsDestination message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GcsDestination - * @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.GcsDestination; + /** Represents a TrainingDataset. */ + class TrainingDataset implements ITrainingDataset { - /** - * Decodes a GcsDestination message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GcsDestination - * @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.GcsDestination; + /** + * Constructs a new TrainingDataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset); + + /** TrainingDataset dataset. */ + public dataset?: (string|null); + + /** TrainingDataset gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + + /** TrainingDataset bigquerySource. */ + public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + + /** TrainingDataset dataFormat. */ + public dataFormat: string; + + /** TrainingDataset targetField. */ + public targetField: string; + + /** TrainingDataset loggingSamplingStrategy. */ + public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); + + /** TrainingDataset dataSource. */ + public dataSource?: ("dataset"|"gcsSource"|"bigquerySource"); + + /** + * Creates a new TrainingDataset instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingDataset instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + + /** + * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @param message TrainingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @param message TrainingDataset message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TrainingDataset message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingDataset + * @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.ModelMonitoringObjectiveConfig.TrainingDataset; + + /** + * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingDataset + * @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.ModelMonitoringObjectiveConfig.TrainingDataset; + + /** + * Verifies a TrainingDataset 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 TrainingDataset message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingDataset + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + + /** + * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. + * @param message TrainingDataset + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TrainingDataset to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TrainingDataset + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TrainingPredictionSkewDetectionConfig. */ + interface ITrainingPredictionSkewDetectionConfig { + + /** TrainingPredictionSkewDetectionConfig skewThresholds */ + skewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + + /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds */ + attributionScoreSkewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + + /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold */ + defaultSkewThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + } + + /** Represents a TrainingPredictionSkewDetectionConfig. */ + class TrainingPredictionSkewDetectionConfig implements ITrainingPredictionSkewDetectionConfig { + + /** + * Constructs a new TrainingPredictionSkewDetectionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig); + + /** TrainingPredictionSkewDetectionConfig skewThresholds. */ + public skewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + + /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. */ + public attributionScoreSkewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + + /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold. */ + public defaultSkewThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + + /** + * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingPredictionSkewDetectionConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingPredictionSkewDetectionConfig + * @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.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingPredictionSkewDetectionConfig + * @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.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + + /** + * Verifies a TrainingPredictionSkewDetectionConfig 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 TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingPredictionSkewDetectionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + + /** + * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. + * @param message TrainingPredictionSkewDetectionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this TrainingPredictionSkewDetectionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TrainingPredictionSkewDetectionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a PredictionDriftDetectionConfig. */ + interface IPredictionDriftDetectionConfig { + + /** PredictionDriftDetectionConfig driftThresholds */ + driftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + + /** PredictionDriftDetectionConfig attributionScoreDriftThresholds */ + attributionScoreDriftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + + /** PredictionDriftDetectionConfig defaultDriftThreshold */ + defaultDriftThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + } + + /** Represents a PredictionDriftDetectionConfig. */ + class PredictionDriftDetectionConfig implements IPredictionDriftDetectionConfig { + + /** + * Constructs a new PredictionDriftDetectionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig); + + /** PredictionDriftDetectionConfig driftThresholds. */ + public driftThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + + /** PredictionDriftDetectionConfig attributionScoreDriftThresholds. */ + public attributionScoreDriftThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - /** - * Verifies a GcsDestination 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); + /** PredictionDriftDetectionConfig defaultDriftThreshold. */ + public defaultDriftThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - /** - * Creates a GcsDestination message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GcsDestination - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GcsDestination; + /** + * Creates a new PredictionDriftDetectionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PredictionDriftDetectionConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** - * Creates a plain object from a GcsDestination message. Also converts values to other types if specified. - * @param message GcsDestination - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GcsDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * @param message PredictionDriftDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this GcsDestination to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * @param message PredictionDriftDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for GcsDestination - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PredictionDriftDetectionConfig + * @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.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** Properties of a BigQuerySource. */ - interface IBigQuerySource { + /** + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PredictionDriftDetectionConfig + * @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.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** BigQuerySource inputUri */ - inputUri?: (string|null); - } + /** + * Verifies a PredictionDriftDetectionConfig 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); - /** Represents a BigQuerySource. */ - class BigQuerySource implements IBigQuerySource { + /** + * Creates a PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PredictionDriftDetectionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** - * Constructs a new BigQuerySource. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBigQuerySource); + /** + * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. + * @param message PredictionDriftDetectionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** BigQuerySource inputUri. */ - public inputUri: string; + /** + * Converts this PredictionDriftDetectionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new BigQuerySource instance using the specified properties. - * @param [properties] Properties to set - * @returns BigQuerySource instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBigQuerySource): google.cloud.aiplatform.v1beta1.BigQuerySource; + /** + * Gets the default type url for PredictionDriftDetectionConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified BigQuerySource message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BigQuerySource.verify|verify} messages. - * @param message BigQuerySource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an ExplanationConfig. */ + interface IExplanationConfig { - /** - * Encodes the specified BigQuerySource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BigQuerySource.verify|verify} messages. - * @param message BigQuerySource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBigQuerySource, writer?: $protobuf.Writer): $protobuf.Writer; + /** ExplanationConfig enableFeatureAttributes */ + enableFeatureAttributes?: (boolean|null); - /** - * Decodes a BigQuerySource message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BigQuerySource - * @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.BigQuerySource; + /** ExplanationConfig explanationBaseline */ + explanationBaseline?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); + } - /** - * Decodes a BigQuerySource message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BigQuerySource - * @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.BigQuerySource; + /** Represents an ExplanationConfig. */ + class ExplanationConfig implements IExplanationConfig { - /** - * Verifies a BigQuerySource 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); + /** + * Constructs a new ExplanationConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig); - /** - * Creates a BigQuerySource message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BigQuerySource - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BigQuerySource; + /** ExplanationConfig enableFeatureAttributes. */ + public enableFeatureAttributes: boolean; - /** - * Creates a plain object from a BigQuerySource message. Also converts values to other types if specified. - * @param message BigQuerySource - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BigQuerySource, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ExplanationConfig explanationBaseline. */ + public explanationBaseline?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); - /** - * Converts this BigQuerySource to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new ExplanationConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ExplanationConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; - /** - * Gets the default type url for BigQuerySource - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @param message ExplanationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a BigQueryDestination. */ - interface IBigQueryDestination { + /** + * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @param message ExplanationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** BigQueryDestination outputUri */ - outputUri?: (string|null); - } + /** + * Decodes an ExplanationConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExplanationConfig + * @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.ModelMonitoringObjectiveConfig.ExplanationConfig; - /** Represents a BigQueryDestination. */ - class BigQueryDestination implements IBigQueryDestination { + /** + * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExplanationConfig + * @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.ModelMonitoringObjectiveConfig.ExplanationConfig; - /** - * Constructs a new BigQueryDestination. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBigQueryDestination); + /** + * Verifies an ExplanationConfig 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); - /** BigQueryDestination outputUri. */ - public outputUri: string; + /** + * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExplanationConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; - /** - * Creates a new BigQueryDestination instance using the specified properties. - * @param [properties] Properties to set - * @returns BigQueryDestination instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBigQueryDestination): google.cloud.aiplatform.v1beta1.BigQueryDestination; + /** + * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. + * @param message ExplanationConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified BigQueryDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BigQueryDestination.verify|verify} messages. - * @param message BigQueryDestination message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBigQueryDestination, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ExplanationConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified BigQueryDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BigQueryDestination.verify|verify} messages. - * @param message BigQueryDestination message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBigQueryDestination, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for ExplanationConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a BigQueryDestination message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BigQueryDestination - * @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.BigQueryDestination; + namespace ExplanationConfig { - /** - * Decodes a BigQueryDestination message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BigQueryDestination - * @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.BigQueryDestination; + /** Properties of an ExplanationBaseline. */ + interface IExplanationBaseline { - /** - * Verifies a BigQueryDestination 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); + /** ExplanationBaseline gcs */ + gcs?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** - * Creates a BigQueryDestination message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BigQueryDestination - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BigQueryDestination; + /** ExplanationBaseline bigquery */ + bigquery?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - /** - * Creates a plain object from a BigQueryDestination message. Also converts values to other types if specified. - * @param message BigQueryDestination - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BigQueryDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ExplanationBaseline predictionFormat */ + predictionFormat?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null); + } - /** - * Converts this BigQueryDestination to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents an ExplanationBaseline. */ + class ExplanationBaseline implements IExplanationBaseline { - /** - * Gets the default type url for BigQueryDestination - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new ExplanationBaseline. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline); - /** Properties of a CsvDestination. */ - interface ICsvDestination { + /** ExplanationBaseline gcs. */ + public gcs?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** CsvDestination gcsDestination */ - gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - } + /** ExplanationBaseline bigquery. */ + public bigquery?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - /** Represents a CsvDestination. */ - class CsvDestination implements ICsvDestination { + /** ExplanationBaseline predictionFormat. */ + public predictionFormat: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat); - /** - * Constructs a new CsvDestination. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICsvDestination); + /** ExplanationBaseline destination. */ + public destination?: ("gcs"|"bigquery"); - /** CsvDestination gcsDestination. */ - public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** + * Creates a new ExplanationBaseline instance using the specified properties. + * @param [properties] Properties to set + * @returns ExplanationBaseline instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; - /** - * Creates a new CsvDestination instance using the specified properties. - * @param [properties] Properties to set - * @returns CsvDestination instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICsvDestination): google.cloud.aiplatform.v1beta1.CsvDestination; + /** + * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @param message ExplanationBaseline message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CsvDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CsvDestination.verify|verify} messages. - * @param message CsvDestination message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICsvDestination, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @param message ExplanationBaseline message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CsvDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CsvDestination.verify|verify} messages. - * @param message CsvDestination message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICsvDestination, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExplanationBaseline + * @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.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; - /** - * Decodes a CsvDestination message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CsvDestination - * @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.CsvDestination; + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExplanationBaseline + * @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.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; - /** - * Decodes a CsvDestination message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CsvDestination - * @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.CsvDestination; + /** + * Verifies an ExplanationBaseline 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); - /** - * Verifies a CsvDestination 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 ExplanationBaseline message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExplanationBaseline + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; - /** - * Creates a CsvDestination message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CsvDestination - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CsvDestination; + /** + * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. + * @param message ExplanationBaseline + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a CsvDestination message. Also converts values to other types if specified. - * @param message CsvDestination - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CsvDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this ExplanationBaseline to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExplanationBaseline + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this CsvDestination to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + namespace ExplanationBaseline { - /** - * Gets the default type url for CsvDestination - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** PredictionFormat enum. */ + enum PredictionFormat { + PREDICTION_FORMAT_UNSPECIFIED = 0, + JSONL = 2, + BIGQUERY = 3 + } + } + } } - /** Properties of a TFRecordDestination. */ - interface ITFRecordDestination { + /** Properties of a ModelMonitoringAlertConfig. */ + interface IModelMonitoringAlertConfig { - /** TFRecordDestination gcsDestination */ - gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** ModelMonitoringAlertConfig emailAlertConfig */ + emailAlertConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + + /** ModelMonitoringAlertConfig enableLogging */ + enableLogging?: (boolean|null); } - /** Represents a TFRecordDestination. */ - class TFRecordDestination implements ITFRecordDestination { + /** Represents a ModelMonitoringAlertConfig. */ + class ModelMonitoringAlertConfig implements IModelMonitoringAlertConfig { /** - * Constructs a new TFRecordDestination. + * Constructs a new ModelMonitoringAlertConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ITFRecordDestination); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig); - /** TFRecordDestination gcsDestination. */ - public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** ModelMonitoringAlertConfig emailAlertConfig. */ + public emailAlertConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + + /** ModelMonitoringAlertConfig enableLogging. */ + public enableLogging: boolean; + + /** ModelMonitoringAlertConfig alert. */ + public alert?: "emailAlertConfig"; /** - * Creates a new TFRecordDestination instance using the specified properties. + * Creates a new ModelMonitoringAlertConfig instance using the specified properties. * @param [properties] Properties to set - * @returns TFRecordDestination instance + * @returns ModelMonitoringAlertConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ITFRecordDestination): google.cloud.aiplatform.v1beta1.TFRecordDestination; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; /** - * Encodes the specified TFRecordDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TFRecordDestination.verify|verify} messages. - * @param message TFRecordDestination message or plain object to encode + * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify|verify} messages. + * @param message ModelMonitoringAlertConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ITFRecordDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TFRecordDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TFRecordDestination.verify|verify} messages. - * @param message TFRecordDestination message or plain object to encode + * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify|verify} messages. + * @param message ModelMonitoringAlertConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITFRecordDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TFRecordDestination message from the specified reader or buffer. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TFRecordDestination + * @returns ModelMonitoringAlertConfig * @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.TFRecordDestination; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; /** - * Decodes a TFRecordDestination message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TFRecordDestination + * @returns ModelMonitoringAlertConfig * @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.TFRecordDestination; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; /** - * Verifies a TFRecordDestination message. + * Verifies a ModelMonitoringAlertConfig 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 TFRecordDestination message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TFRecordDestination + * @returns ModelMonitoringAlertConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TFRecordDestination; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; /** - * Creates a plain object from a TFRecordDestination message. Also converts values to other types if specified. - * @param message TFRecordDestination + * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. + * @param message ModelMonitoringAlertConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.TFRecordDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TFRecordDestination to JSON. + * Converts this ModelMonitoringAlertConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TFRecordDestination + * Gets the default type url for ModelMonitoringAlertConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ContainerRegistryDestination. */ - interface IContainerRegistryDestination { + namespace ModelMonitoringAlertConfig { - /** ContainerRegistryDestination outputUri */ - outputUri?: (string|null); + /** Properties of an EmailAlertConfig. */ + interface IEmailAlertConfig { + + /** EmailAlertConfig userEmails */ + userEmails?: (string[]|null); + } + + /** Represents an EmailAlertConfig. */ + class EmailAlertConfig implements IEmailAlertConfig { + + /** + * Constructs a new EmailAlertConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig); + + /** EmailAlertConfig userEmails. */ + public userEmails: string[]; + + /** + * Creates a new EmailAlertConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns EmailAlertConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @param message EmailAlertConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @param message EmailAlertConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EmailAlertConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EmailAlertConfig + * @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.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EmailAlertConfig + * @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.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Verifies an EmailAlertConfig 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 EmailAlertConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EmailAlertConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. + * @param message EmailAlertConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EmailAlertConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EmailAlertConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a ContainerRegistryDestination. */ - class ContainerRegistryDestination implements IContainerRegistryDestination { + /** Properties of a ThresholdConfig. */ + interface IThresholdConfig { + + /** ThresholdConfig value */ + value?: (number|null); + } + + /** Represents a ThresholdConfig. */ + class ThresholdConfig implements IThresholdConfig { /** - * Constructs a new ContainerRegistryDestination. + * Constructs a new ThresholdConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IContainerRegistryDestination); + constructor(properties?: google.cloud.aiplatform.v1beta1.IThresholdConfig); - /** ContainerRegistryDestination outputUri. */ - public outputUri: string; + /** ThresholdConfig value. */ + public value?: (number|null); + + /** ThresholdConfig threshold. */ + public threshold?: "value"; /** - * Creates a new ContainerRegistryDestination instance using the specified properties. + * Creates a new ThresholdConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ContainerRegistryDestination instance + * @returns ThresholdConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IContainerRegistryDestination): google.cloud.aiplatform.v1beta1.ContainerRegistryDestination; + public static create(properties?: google.cloud.aiplatform.v1beta1.IThresholdConfig): google.cloud.aiplatform.v1beta1.ThresholdConfig; /** - * Encodes the specified ContainerRegistryDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.verify|verify} messages. - * @param message ContainerRegistryDestination message or plain object to encode + * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IContainerRegistryDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ContainerRegistryDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerRegistryDestination.verify|verify} messages. - * @param message ContainerRegistryDestination message or plain object to encode + * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContainerRegistryDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ContainerRegistryDestination message from the specified reader or buffer. + * Decodes a ThresholdConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ContainerRegistryDestination + * @returns ThresholdConfig * @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.ContainerRegistryDestination; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ThresholdConfig; /** - * Decodes a ContainerRegistryDestination message from the specified reader or buffer, length delimited. + * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ContainerRegistryDestination + * @returns ThresholdConfig * @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.ContainerRegistryDestination; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ThresholdConfig; /** - * Verifies a ContainerRegistryDestination message. + * Verifies a ThresholdConfig 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 ContainerRegistryDestination message from a plain object. Also converts values to their respective internal types. + * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ContainerRegistryDestination + * @returns ThresholdConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ContainerRegistryDestination; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ThresholdConfig; /** - * Creates a plain object from a ContainerRegistryDestination message. Also converts values to other types if specified. - * @param message ContainerRegistryDestination + * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. + * @param message ThresholdConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ContainerRegistryDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ContainerRegistryDestination to JSON. + * Converts this ThresholdConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ContainerRegistryDestination + * Gets the default type url for ThresholdConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** JobState enum. */ - enum JobState { - JOB_STATE_UNSPECIFIED = 0, - JOB_STATE_QUEUED = 1, - JOB_STATE_PENDING = 2, - JOB_STATE_RUNNING = 3, - JOB_STATE_SUCCEEDED = 4, - JOB_STATE_FAILED = 5, - JOB_STATE_CANCELLING = 6, - JOB_STATE_CANCELLED = 7, - JOB_STATE_PAUSED = 8, - JOB_STATE_EXPIRED = 9, - JOB_STATE_UPDATING = 10 - } - - /** Properties of a MachineSpec. */ - interface IMachineSpec { - - /** MachineSpec machineType */ - machineType?: (string|null); - - /** MachineSpec acceleratorType */ - acceleratorType?: (google.cloud.aiplatform.v1beta1.AcceleratorType|keyof typeof google.cloud.aiplatform.v1beta1.AcceleratorType|null); + /** Properties of a SamplingStrategy. */ + interface ISamplingStrategy { - /** MachineSpec acceleratorCount */ - acceleratorCount?: (number|null); + /** SamplingStrategy randomSampleConfig */ + randomSampleConfig?: (google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null); } - /** Represents a MachineSpec. */ - class MachineSpec implements IMachineSpec { + /** Represents a SamplingStrategy. */ + class SamplingStrategy implements ISamplingStrategy { /** - * Constructs a new MachineSpec. + * Constructs a new SamplingStrategy. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMachineSpec); - - /** MachineSpec machineType. */ - public machineType: string; - - /** MachineSpec acceleratorType. */ - public acceleratorType: (google.cloud.aiplatform.v1beta1.AcceleratorType|keyof typeof google.cloud.aiplatform.v1beta1.AcceleratorType); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISamplingStrategy); - /** MachineSpec acceleratorCount. */ - public acceleratorCount: number; + /** SamplingStrategy randomSampleConfig. */ + public randomSampleConfig?: (google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null); /** - * Creates a new MachineSpec instance using the specified properties. + * Creates a new SamplingStrategy instance using the specified properties. * @param [properties] Properties to set - * @returns MachineSpec instance + * @returns SamplingStrategy instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMachineSpec): google.cloud.aiplatform.v1beta1.MachineSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISamplingStrategy): google.cloud.aiplatform.v1beta1.SamplingStrategy; /** - * Encodes the specified MachineSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MachineSpec.verify|verify} messages. - * @param message MachineSpec message or plain object to encode + * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.verify|verify} messages. + * @param message SamplingStrategy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMachineSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MachineSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MachineSpec.verify|verify} messages. - * @param message MachineSpec message or plain object to encode + * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.verify|verify} messages. + * @param message SamplingStrategy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMachineSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MachineSpec message from the specified reader or buffer. + * Decodes a SamplingStrategy message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MachineSpec + * @returns SamplingStrategy * @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.MachineSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SamplingStrategy; /** - * Decodes a MachineSpec message from the specified reader or buffer, length delimited. + * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MachineSpec + * @returns SamplingStrategy * @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.MachineSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SamplingStrategy; /** - * Verifies a MachineSpec message. + * Verifies a SamplingStrategy 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 MachineSpec message from a plain object. Also converts values to their respective internal types. + * Creates a SamplingStrategy message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MachineSpec + * @returns SamplingStrategy */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MachineSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SamplingStrategy; /** - * Creates a plain object from a MachineSpec message. Also converts values to other types if specified. - * @param message MachineSpec + * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. + * @param message SamplingStrategy * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MachineSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SamplingStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MachineSpec to JSON. + * Converts this SamplingStrategy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MachineSpec + * Gets the default type url for SamplingStrategy * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DedicatedResources. */ - interface IDedicatedResources { + namespace SamplingStrategy { - /** DedicatedResources machineSpec */ - machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + /** Properties of a RandomSampleConfig. */ + interface IRandomSampleConfig { - /** DedicatedResources minReplicaCount */ - minReplicaCount?: (number|null); + /** RandomSampleConfig sampleRate */ + sampleRate?: (number|null); + } - /** DedicatedResources maxReplicaCount */ - maxReplicaCount?: (number|null); + /** Represents a RandomSampleConfig. */ + class RandomSampleConfig implements IRandomSampleConfig { - /** DedicatedResources autoscalingMetricSpecs */ - autoscalingMetricSpecs?: (google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec[]|null); + /** + * Constructs a new RandomSampleConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig); + + /** RandomSampleConfig sampleRate. */ + public sampleRate: number; + + /** + * Creates a new RandomSampleConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RandomSampleConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig): google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; + + /** + * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @param message RandomSampleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @param message RandomSampleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RandomSampleConfig + * @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.SamplingStrategy.RandomSampleConfig; + + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RandomSampleConfig + * @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.SamplingStrategy.RandomSampleConfig; + + /** + * Verifies a RandomSampleConfig 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 RandomSampleConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RandomSampleConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; + + /** + * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. + * @param message RandomSampleConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RandomSampleConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RandomSampleConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a DedicatedResources. */ - class DedicatedResources implements IDedicatedResources { + /** Properties of an UnmanagedContainerModel. */ + interface IUnmanagedContainerModel { + + /** UnmanagedContainerModel artifactUri */ + artifactUri?: (string|null); + + /** UnmanagedContainerModel predictSchemata */ + predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + + /** UnmanagedContainerModel containerSpec */ + containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + } + + /** Represents an UnmanagedContainerModel. */ + class UnmanagedContainerModel implements IUnmanagedContainerModel { /** - * Constructs a new DedicatedResources. + * Constructs a new UnmanagedContainerModel. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDedicatedResources); - - /** DedicatedResources machineSpec. */ - public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel); - /** DedicatedResources minReplicaCount. */ - public minReplicaCount: number; + /** UnmanagedContainerModel artifactUri. */ + public artifactUri: string; - /** DedicatedResources maxReplicaCount. */ - public maxReplicaCount: number; + /** UnmanagedContainerModel predictSchemata. */ + public predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); - /** DedicatedResources autoscalingMetricSpecs. */ - public autoscalingMetricSpecs: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec[]; + /** UnmanagedContainerModel containerSpec. */ + public containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); /** - * Creates a new DedicatedResources instance using the specified properties. + * Creates a new UnmanagedContainerModel instance using the specified properties. * @param [properties] Properties to set - * @returns DedicatedResources instance + * @returns UnmanagedContainerModel instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDedicatedResources): google.cloud.aiplatform.v1beta1.DedicatedResources; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; /** - * Encodes the specified DedicatedResources message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DedicatedResources.verify|verify} messages. - * @param message DedicatedResources message or plain object to encode + * Encodes the specified UnmanagedContainerModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.verify|verify} messages. + * @param message UnmanagedContainerModel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDedicatedResources, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DedicatedResources message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DedicatedResources.verify|verify} messages. - * @param message DedicatedResources message or plain object to encode + * Encodes the specified UnmanagedContainerModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.verify|verify} messages. + * @param message UnmanagedContainerModel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDedicatedResources, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DedicatedResources message from the specified reader or buffer. + * Decodes an UnmanagedContainerModel message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DedicatedResources + * @returns UnmanagedContainerModel * @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.DedicatedResources; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; /** - * Decodes a DedicatedResources message from the specified reader or buffer, length delimited. + * Decodes an UnmanagedContainerModel message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DedicatedResources + * @returns UnmanagedContainerModel * @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.DedicatedResources; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; /** - * Verifies a DedicatedResources message. + * Verifies an UnmanagedContainerModel 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 DedicatedResources message from a plain object. Also converts values to their respective internal types. + * Creates an UnmanagedContainerModel message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DedicatedResources + * @returns UnmanagedContainerModel */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DedicatedResources; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; /** - * Creates a plain object from a DedicatedResources message. Also converts values to other types if specified. - * @param message DedicatedResources + * Creates a plain object from an UnmanagedContainerModel message. Also converts values to other types if specified. + * @param message UnmanagedContainerModel * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DedicatedResources, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UnmanagedContainerModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DedicatedResources to JSON. + * Converts this UnmanagedContainerModel to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DedicatedResources + * Gets the default type url for UnmanagedContainerModel * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutomaticResources. */ - interface IAutomaticResources { + /** Properties of a Model. */ + interface IModel { - /** AutomaticResources minReplicaCount */ - minReplicaCount?: (number|null); + /** Model name */ + name?: (string|null); - /** AutomaticResources maxReplicaCount */ - maxReplicaCount?: (number|null); + /** Model versionId */ + versionId?: (string|null); + + /** Model versionAliases */ + versionAliases?: (string[]|null); + + /** Model versionCreateTime */ + versionCreateTime?: (google.protobuf.ITimestamp|null); + + /** Model versionUpdateTime */ + versionUpdateTime?: (google.protobuf.ITimestamp|null); + + /** Model displayName */ + displayName?: (string|null); + + /** Model description */ + description?: (string|null); + + /** Model versionDescription */ + versionDescription?: (string|null); + + /** Model predictSchemata */ + predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + + /** Model metadataSchemaUri */ + metadataSchemaUri?: (string|null); + + /** Model metadata */ + metadata?: (google.protobuf.IValue|null); + + /** Model supportedExportFormats */ + supportedExportFormats?: (google.cloud.aiplatform.v1beta1.Model.IExportFormat[]|null); + + /** Model trainingPipeline */ + trainingPipeline?: (string|null); + + /** Model containerSpec */ + containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + + /** Model artifactUri */ + artifactUri?: (string|null); + + /** Model supportedDeploymentResourcesTypes */ + supportedDeploymentResourcesTypes?: (google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType[]|null); + + /** Model supportedInputStorageFormats */ + supportedInputStorageFormats?: (string[]|null); + + /** Model supportedOutputStorageFormats */ + supportedOutputStorageFormats?: (string[]|null); + + /** Model createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Model updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Model deployedModels */ + deployedModels?: (google.cloud.aiplatform.v1beta1.IDeployedModelRef[]|null); + + /** Model explanationSpec */ + explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + + /** Model etag */ + etag?: (string|null); + + /** Model labels */ + labels?: ({ [k: string]: string }|null); + + /** Model encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** Model modelSourceInfo */ + modelSourceInfo?: (google.cloud.aiplatform.v1beta1.IModelSourceInfo|null); + + /** Model originalModelInfo */ + originalModelInfo?: (google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo|null); + + /** Model metadataArtifact */ + metadataArtifact?: (string|null); } - /** Represents an AutomaticResources. */ - class AutomaticResources implements IAutomaticResources { + /** Represents a Model. */ + class Model implements IModel { /** - * Constructs a new AutomaticResources. + * Constructs a new Model. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAutomaticResources); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModel); - /** AutomaticResources minReplicaCount. */ - public minReplicaCount: number; + /** Model name. */ + public name: string; - /** AutomaticResources maxReplicaCount. */ - public maxReplicaCount: number; + /** Model versionId. */ + public versionId: string; + + /** Model versionAliases. */ + public versionAliases: string[]; + + /** Model versionCreateTime. */ + public versionCreateTime?: (google.protobuf.ITimestamp|null); + + /** Model versionUpdateTime. */ + public versionUpdateTime?: (google.protobuf.ITimestamp|null); + + /** Model displayName. */ + public displayName: string; + + /** Model description. */ + public description: string; + + /** Model versionDescription. */ + public versionDescription: string; + + /** Model predictSchemata. */ + public predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + + /** Model metadataSchemaUri. */ + public metadataSchemaUri: string; + + /** Model metadata. */ + public metadata?: (google.protobuf.IValue|null); + + /** Model supportedExportFormats. */ + public supportedExportFormats: google.cloud.aiplatform.v1beta1.Model.IExportFormat[]; + + /** Model trainingPipeline. */ + public trainingPipeline: string; + + /** Model containerSpec. */ + public containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + + /** Model artifactUri. */ + public artifactUri: string; + + /** Model supportedDeploymentResourcesTypes. */ + public supportedDeploymentResourcesTypes: google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType[]; + + /** Model supportedInputStorageFormats. */ + public supportedInputStorageFormats: string[]; + + /** Model supportedOutputStorageFormats. */ + public supportedOutputStorageFormats: string[]; + + /** Model createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Model updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Model deployedModels. */ + public deployedModels: google.cloud.aiplatform.v1beta1.IDeployedModelRef[]; + + /** Model explanationSpec. */ + public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + + /** Model etag. */ + public etag: string; + + /** Model labels. */ + public labels: { [k: string]: string }; + + /** Model encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** Model modelSourceInfo. */ + public modelSourceInfo?: (google.cloud.aiplatform.v1beta1.IModelSourceInfo|null); + + /** Model originalModelInfo. */ + public originalModelInfo?: (google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo|null); + + /** Model metadataArtifact. */ + public metadataArtifact: string; /** - * Creates a new AutomaticResources instance using the specified properties. + * Creates a new Model instance using the specified properties. * @param [properties] Properties to set - * @returns AutomaticResources instance + * @returns Model instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAutomaticResources): google.cloud.aiplatform.v1beta1.AutomaticResources; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModel): google.cloud.aiplatform.v1beta1.Model; /** - * Encodes the specified AutomaticResources message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AutomaticResources.verify|verify} messages. - * @param message AutomaticResources message or plain object to encode + * Encodes the specified Model message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.verify|verify} messages. + * @param message Model message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAutomaticResources, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutomaticResources message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AutomaticResources.verify|verify} messages. - * @param message AutomaticResources message or plain object to encode + * Encodes the specified Model message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.verify|verify} messages. + * @param message Model message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAutomaticResources, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutomaticResources message from the specified reader or buffer. + * Decodes a Model message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutomaticResources + * @returns Model * @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.AutomaticResources; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Model; /** - * Decodes an AutomaticResources message from the specified reader or buffer, length delimited. + * Decodes a Model message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutomaticResources + * @returns Model * @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.AutomaticResources; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Model; /** - * Verifies an AutomaticResources message. + * Verifies a Model 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 AutomaticResources message from a plain object. Also converts values to their respective internal types. + * Creates a Model message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutomaticResources + * @returns Model */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AutomaticResources; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model; /** - * Creates a plain object from an AutomaticResources message. Also converts values to other types if specified. - * @param message AutomaticResources + * Creates a plain object from a Model message. Also converts values to other types if specified. + * @param message Model * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AutomaticResources, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Model, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutomaticResources to JSON. + * Converts this Model to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutomaticResources + * Gets the default type url for Model * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchDedicatedResources. */ - interface IBatchDedicatedResources { + namespace Model { - /** BatchDedicatedResources machineSpec */ - machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + /** Properties of an ExportFormat. */ + interface IExportFormat { - /** BatchDedicatedResources startingReplicaCount */ - startingReplicaCount?: (number|null); + /** ExportFormat id */ + id?: (string|null); - /** BatchDedicatedResources maxReplicaCount */ - maxReplicaCount?: (number|null); + /** ExportFormat exportableContents */ + exportableContents?: (google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[]|null); + } + + /** Represents an ExportFormat. */ + class ExportFormat implements IExportFormat { + + /** + * Constructs a new ExportFormat. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Model.IExportFormat); + + /** ExportFormat id. */ + public id: string; + + /** ExportFormat exportableContents. */ + public exportableContents: google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[]; + + /** + * Creates a new ExportFormat instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportFormat instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Model.IExportFormat): google.cloud.aiplatform.v1beta1.Model.ExportFormat; + + /** + * Encodes the specified ExportFormat message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify|verify} messages. + * @param message ExportFormat message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Model.IExportFormat, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExportFormat message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify|verify} messages. + * @param message ExportFormat message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Model.IExportFormat, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExportFormat message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportFormat + * @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.ExportFormat; + + /** + * Decodes an ExportFormat message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportFormat + * @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.ExportFormat; + + /** + * Verifies an ExportFormat 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 ExportFormat message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportFormat + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model.ExportFormat; + + /** + * Creates a plain object from an ExportFormat message. Also converts values to other types if specified. + * @param message ExportFormat + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Model.ExportFormat, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExportFormat to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExportFormat + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ExportFormat { + + /** ExportableContent enum. */ + enum ExportableContent { + EXPORTABLE_CONTENT_UNSPECIFIED = 0, + ARTIFACT = 1, + IMAGE = 2 + } + } + + /** Properties of an OriginalModelInfo. */ + interface IOriginalModelInfo { + + /** OriginalModelInfo model */ + model?: (string|null); + } + + /** Represents an OriginalModelInfo. */ + class OriginalModelInfo implements IOriginalModelInfo { + + /** + * Constructs a new OriginalModelInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo); + + /** OriginalModelInfo model. */ + public model: string; + + /** + * Creates a new OriginalModelInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns OriginalModelInfo instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo): google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo; + + /** + * Encodes the specified OriginalModelInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.verify|verify} messages. + * @param message OriginalModelInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OriginalModelInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.verify|verify} messages. + * @param message OriginalModelInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OriginalModelInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OriginalModelInfo + * @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.OriginalModelInfo; + + /** + * Decodes an OriginalModelInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OriginalModelInfo + * @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.OriginalModelInfo; + + /** + * Verifies an OriginalModelInfo 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 OriginalModelInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OriginalModelInfo + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo; + + /** + * Creates a plain object from an OriginalModelInfo message. Also converts values to other types if specified. + * @param message OriginalModelInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OriginalModelInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OriginalModelInfo + * @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, + DEDICATED_RESOURCES = 1, + AUTOMATIC_RESOURCES = 2, + SHARED_RESOURCES = 3 + } } - /** Represents a BatchDedicatedResources. */ - class BatchDedicatedResources implements IBatchDedicatedResources { + /** Properties of a PredictSchemata. */ + interface IPredictSchemata { + + /** PredictSchemata instanceSchemaUri */ + instanceSchemaUri?: (string|null); + + /** PredictSchemata parametersSchemaUri */ + parametersSchemaUri?: (string|null); + + /** PredictSchemata predictionSchemaUri */ + predictionSchemaUri?: (string|null); + } + + /** Represents a PredictSchemata. */ + class PredictSchemata implements IPredictSchemata { /** - * Constructs a new BatchDedicatedResources. + * Constructs a new PredictSchemata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchDedicatedResources); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictSchemata); - /** BatchDedicatedResources machineSpec. */ - public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + /** PredictSchemata instanceSchemaUri. */ + public instanceSchemaUri: string; - /** BatchDedicatedResources startingReplicaCount. */ - public startingReplicaCount: number; + /** PredictSchemata parametersSchemaUri. */ + public parametersSchemaUri: string; - /** BatchDedicatedResources maxReplicaCount. */ - public maxReplicaCount: number; + /** PredictSchemata predictionSchemaUri. */ + public predictionSchemaUri: string; /** - * Creates a new BatchDedicatedResources instance using the specified properties. + * Creates a new PredictSchemata instance using the specified properties. * @param [properties] Properties to set - * @returns BatchDedicatedResources instance + * @returns PredictSchemata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchDedicatedResources): google.cloud.aiplatform.v1beta1.BatchDedicatedResources; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictSchemata): google.cloud.aiplatform.v1beta1.PredictSchemata; /** - * Encodes the specified BatchDedicatedResources message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDedicatedResources.verify|verify} messages. - * @param message BatchDedicatedResources message or plain object to encode + * Encodes the specified PredictSchemata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.verify|verify} messages. + * @param message PredictSchemata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchDedicatedResources, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPredictSchemata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchDedicatedResources message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchDedicatedResources.verify|verify} messages. - * @param message BatchDedicatedResources message or plain object to encode + * Encodes the specified PredictSchemata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.verify|verify} messages. + * @param message PredictSchemata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchDedicatedResources, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredictSchemata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchDedicatedResources message from the specified reader or buffer. + * Decodes a PredictSchemata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchDedicatedResources + * @returns PredictSchemata * @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.BatchDedicatedResources; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PredictSchemata; /** - * Decodes a BatchDedicatedResources message from the specified reader or buffer, length delimited. + * Decodes a PredictSchemata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchDedicatedResources + * @returns PredictSchemata * @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.BatchDedicatedResources; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PredictSchemata; /** - * Verifies a BatchDedicatedResources message. + * Verifies a PredictSchemata 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 BatchDedicatedResources message from a plain object. Also converts values to their respective internal types. + * Creates a PredictSchemata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchDedicatedResources + * @returns PredictSchemata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchDedicatedResources; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictSchemata; /** - * Creates a plain object from a BatchDedicatedResources message. Also converts values to other types if specified. - * @param message BatchDedicatedResources + * Creates a plain object from a PredictSchemata message. Also converts values to other types if specified. + * @param message PredictSchemata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchDedicatedResources, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PredictSchemata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchDedicatedResources to JSON. + * Converts this PredictSchemata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchDedicatedResources + * Gets the default type url for PredictSchemata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResourcesConsumed. */ - interface IResourcesConsumed { + /** Properties of a ModelContainerSpec. */ + interface IModelContainerSpec { - /** ResourcesConsumed replicaHours */ - replicaHours?: (number|null); + /** ModelContainerSpec imageUri */ + imageUri?: (string|null); + + /** ModelContainerSpec command */ + command?: (string[]|null); + + /** ModelContainerSpec args */ + args?: (string[]|null); + + /** ModelContainerSpec env */ + env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); + + /** ModelContainerSpec ports */ + ports?: (google.cloud.aiplatform.v1beta1.IPort[]|null); + + /** ModelContainerSpec predictRoute */ + predictRoute?: (string|null); + + /** ModelContainerSpec healthRoute */ + healthRoute?: (string|null); } - /** Represents a ResourcesConsumed. */ - class ResourcesConsumed implements IResourcesConsumed { + /** Represents a ModelContainerSpec. */ + class ModelContainerSpec implements IModelContainerSpec { /** - * Constructs a new ResourcesConsumed. + * Constructs a new ModelContainerSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IResourcesConsumed); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelContainerSpec); - /** ResourcesConsumed replicaHours. */ - public replicaHours: number; + /** ModelContainerSpec imageUri. */ + public imageUri: string; + + /** ModelContainerSpec command. */ + public command: string[]; + + /** ModelContainerSpec args. */ + public args: string[]; + + /** ModelContainerSpec env. */ + public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; + + /** ModelContainerSpec ports. */ + public ports: google.cloud.aiplatform.v1beta1.IPort[]; + + /** ModelContainerSpec predictRoute. */ + public predictRoute: string; + + /** ModelContainerSpec healthRoute. */ + public healthRoute: string; /** - * Creates a new ResourcesConsumed instance using the specified properties. + * Creates a new ModelContainerSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ResourcesConsumed instance + * @returns ModelContainerSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IResourcesConsumed): google.cloud.aiplatform.v1beta1.ResourcesConsumed; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelContainerSpec): google.cloud.aiplatform.v1beta1.ModelContainerSpec; /** - * Encodes the specified ResourcesConsumed message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcesConsumed.verify|verify} messages. - * @param message ResourcesConsumed message or plain object to encode + * Encodes the specified ModelContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify|verify} messages. + * @param message ModelContainerSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IResourcesConsumed, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResourcesConsumed message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResourcesConsumed.verify|verify} messages. - * @param message ResourcesConsumed message or plain object to encode + * Encodes the specified ModelContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify|verify} messages. + * @param message ModelContainerSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResourcesConsumed, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResourcesConsumed message from the specified reader or buffer. + * Decodes a ModelContainerSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResourcesConsumed + * @returns ModelContainerSpec * @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.ResourcesConsumed; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelContainerSpec; /** - * Decodes a ResourcesConsumed message from the specified reader or buffer, length delimited. + * Decodes a ModelContainerSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResourcesConsumed + * @returns ModelContainerSpec * @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.ResourcesConsumed; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelContainerSpec; /** - * Verifies a ResourcesConsumed message. + * Verifies a ModelContainerSpec 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 ResourcesConsumed message from a plain object. Also converts values to their respective internal types. + * Creates a ModelContainerSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResourcesConsumed + * @returns ModelContainerSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResourcesConsumed; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelContainerSpec; /** - * Creates a plain object from a ResourcesConsumed message. Also converts values to other types if specified. - * @param message ResourcesConsumed + * Creates a plain object from a ModelContainerSpec message. Also converts values to other types if specified. + * @param message ModelContainerSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ResourcesConsumed, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelContainerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResourcesConsumed to JSON. + * Converts this ModelContainerSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ResourcesConsumed + * Gets the default type url for ModelContainerSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DiskSpec. */ - interface IDiskSpec { - - /** DiskSpec bootDiskType */ - bootDiskType?: (string|null); + /** Properties of a Port. */ + interface IPort { - /** DiskSpec bootDiskSizeGb */ - bootDiskSizeGb?: (number|null); + /** Port containerPort */ + containerPort?: (number|null); } - /** Represents a DiskSpec. */ - class DiskSpec implements IDiskSpec { + /** Represents a Port. */ + class Port implements IPort { /** - * Constructs a new DiskSpec. + * Constructs a new Port. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDiskSpec); - - /** DiskSpec bootDiskType. */ - public bootDiskType: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IPort); - /** DiskSpec bootDiskSizeGb. */ - public bootDiskSizeGb: number; + /** Port containerPort. */ + public containerPort: number; /** - * Creates a new DiskSpec instance using the specified properties. + * Creates a new Port instance using the specified properties. * @param [properties] Properties to set - * @returns DiskSpec instance + * @returns Port instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDiskSpec): google.cloud.aiplatform.v1beta1.DiskSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPort): google.cloud.aiplatform.v1beta1.Port; /** - * Encodes the specified DiskSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DiskSpec.verify|verify} messages. - * @param message DiskSpec message or plain object to encode + * Encodes the specified Port message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Port.verify|verify} messages. + * @param message Port message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDiskSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPort, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DiskSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DiskSpec.verify|verify} messages. - * @param message DiskSpec message or plain object to encode + * Encodes the specified Port message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Port.verify|verify} messages. + * @param message Port message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDiskSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPort, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DiskSpec message from the specified reader or buffer. + * Decodes a Port message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DiskSpec + * @returns Port * @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.DiskSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Port; /** - * Decodes a DiskSpec message from the specified reader or buffer, length delimited. + * Decodes a Port message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DiskSpec + * @returns Port * @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.DiskSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Port; /** - * Verifies a DiskSpec message. + * Verifies a Port 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 DiskSpec message from a plain object. Also converts values to their respective internal types. + * Creates a Port message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DiskSpec + * @returns Port */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DiskSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Port; /** - * Creates a plain object from a DiskSpec message. Also converts values to other types if specified. - * @param message DiskSpec + * Creates a plain object from a Port message. Also converts values to other types if specified. + * @param message Port * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DiskSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Port, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DiskSpec to JSON. + * Converts this Port to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DiskSpec + * Gets the default type url for Port * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NfsMount. */ - interface INfsMount { - - /** NfsMount server */ - server?: (string|null); - - /** NfsMount path */ - path?: (string|null); + /** Properties of a ModelSourceInfo. */ + interface IModelSourceInfo { - /** NfsMount mountPoint */ - mountPoint?: (string|null); + /** ModelSourceInfo sourceType */ + sourceType?: (google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType|keyof typeof google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType|null); } - /** Represents a NfsMount. */ - class NfsMount implements INfsMount { + /** Represents a ModelSourceInfo. */ + class ModelSourceInfo implements IModelSourceInfo { /** - * Constructs a new NfsMount. + * Constructs a new ModelSourceInfo. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.INfsMount); - - /** NfsMount server. */ - public server: string; - - /** NfsMount path. */ - public path: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelSourceInfo); - /** NfsMount mountPoint. */ - public mountPoint: string; + /** ModelSourceInfo sourceType. */ + public sourceType: (google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType|keyof typeof google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType); /** - * Creates a new NfsMount instance using the specified properties. + * Creates a new ModelSourceInfo instance using the specified properties. * @param [properties] Properties to set - * @returns NfsMount instance + * @returns ModelSourceInfo instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.INfsMount): google.cloud.aiplatform.v1beta1.NfsMount; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelSourceInfo): google.cloud.aiplatform.v1beta1.ModelSourceInfo; /** - * Encodes the specified NfsMount message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NfsMount.verify|verify} messages. - * @param message NfsMount message or plain object to encode + * Encodes the specified ModelSourceInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelSourceInfo.verify|verify} messages. + * @param message ModelSourceInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.INfsMount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NfsMount message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NfsMount.verify|verify} messages. - * @param message NfsMount message or plain object to encode + * Encodes the specified ModelSourceInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelSourceInfo.verify|verify} messages. + * @param message ModelSourceInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INfsMount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NfsMount message from the specified reader or buffer. + * Decodes a ModelSourceInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NfsMount + * @returns ModelSourceInfo * @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.NfsMount; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelSourceInfo; /** - * Decodes a NfsMount message from the specified reader or buffer, length delimited. + * Decodes a ModelSourceInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NfsMount + * @returns ModelSourceInfo * @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.NfsMount; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelSourceInfo; /** - * Verifies a NfsMount message. + * Verifies a ModelSourceInfo 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 NfsMount message from a plain object. Also converts values to their respective internal types. + * Creates a ModelSourceInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NfsMount + * @returns ModelSourceInfo */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NfsMount; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelSourceInfo; /** - * Creates a plain object from a NfsMount message. Also converts values to other types if specified. - * @param message NfsMount + * Creates a plain object from a ModelSourceInfo message. Also converts values to other types if specified. + * @param message ModelSourceInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.NfsMount, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelSourceInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NfsMount to JSON. + * Converts this ModelSourceInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NfsMount + * Gets the default type url for ModelSourceInfo * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an AutoscalingMetricSpec. */ - interface IAutoscalingMetricSpec { + namespace ModelSourceInfo { - /** AutoscalingMetricSpec metricName */ - metricName?: (string|null); + /** ModelSourceType enum. */ + enum ModelSourceType { + MODEL_SOURCE_TYPE_UNSPECIFIED = 0, + AUTOML = 1, + CUSTOM = 2, + BQML = 3 + } + } - /** AutoscalingMetricSpec target */ - target?: (number|null); + /** Properties of a DeployedModelRef. */ + interface IDeployedModelRef { + + /** DeployedModelRef endpoint */ + endpoint?: (string|null); + + /** DeployedModelRef deployedModelId */ + deployedModelId?: (string|null); } - /** Represents an AutoscalingMetricSpec. */ - class AutoscalingMetricSpec implements IAutoscalingMetricSpec { + /** Represents a DeployedModelRef. */ + class DeployedModelRef implements IDeployedModelRef { /** - * Constructs a new AutoscalingMetricSpec. + * Constructs a new DeployedModelRef. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedModelRef); - /** AutoscalingMetricSpec metricName. */ - public metricName: string; + /** DeployedModelRef endpoint. */ + public endpoint: string; - /** AutoscalingMetricSpec target. */ - public target: number; + /** DeployedModelRef deployedModelId. */ + public deployedModelId: string; /** - * Creates a new AutoscalingMetricSpec instance using the specified properties. + * Creates a new DeployedModelRef instance using the specified properties. * @param [properties] Properties to set - * @returns AutoscalingMetricSpec instance + * @returns DeployedModelRef instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec): google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedModelRef): google.cloud.aiplatform.v1beta1.DeployedModelRef; /** - * Encodes the specified AutoscalingMetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.verify|verify} messages. - * @param message AutoscalingMetricSpec message or plain object to encode + * Encodes the specified DeployedModelRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModelRef.verify|verify} messages. + * @param message DeployedModelRef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedModelRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AutoscalingMetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec.verify|verify} messages. - * @param message AutoscalingMetricSpec message or plain object to encode + * Encodes the specified DeployedModelRef message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModelRef.verify|verify} messages. + * @param message DeployedModelRef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IAutoscalingMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedModelRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AutoscalingMetricSpec message from the specified reader or buffer. + * Decodes a DeployedModelRef message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AutoscalingMetricSpec + * @returns DeployedModelRef * @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.AutoscalingMetricSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedModelRef; /** - * Decodes an AutoscalingMetricSpec message from the specified reader or buffer, length delimited. + * Decodes a DeployedModelRef message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AutoscalingMetricSpec + * @returns DeployedModelRef * @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.AutoscalingMetricSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedModelRef; /** - * Verifies an AutoscalingMetricSpec message. + * Verifies a DeployedModelRef 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 AutoscalingMetricSpec message from a plain object. Also converts values to their respective internal types. + * Creates a DeployedModelRef message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AutoscalingMetricSpec + * @returns DeployedModelRef */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedModelRef; /** - * Creates a plain object from an AutoscalingMetricSpec message. Also converts values to other types if specified. - * @param message AutoscalingMetricSpec + * Creates a plain object from a DeployedModelRef message. Also converts values to other types if specified. + * @param message DeployedModelRef * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.AutoscalingMetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedModelRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AutoscalingMetricSpec to JSON. + * Converts this DeployedModelRef to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for AutoscalingMetricSpec + * Gets the default type url for DeployedModelRef * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ManualBatchTuningParameters. */ - interface IManualBatchTuningParameters { + /** Properties of an EnvVar. */ + interface IEnvVar { - /** ManualBatchTuningParameters batchSize */ - batchSize?: (number|null); + /** EnvVar name */ + name?: (string|null); + + /** EnvVar value */ + value?: (string|null); } - /** Represents a ManualBatchTuningParameters. */ - class ManualBatchTuningParameters implements IManualBatchTuningParameters { + /** Represents an EnvVar. */ + class EnvVar implements IEnvVar { /** - * Constructs a new ManualBatchTuningParameters. + * Constructs a new EnvVar. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters); + constructor(properties?: google.cloud.aiplatform.v1beta1.IEnvVar); - /** ManualBatchTuningParameters batchSize. */ - public batchSize: number; + /** EnvVar name. */ + public name: string; + + /** EnvVar value. */ + public value: string; /** - * Creates a new ManualBatchTuningParameters instance using the specified properties. + * Creates a new EnvVar instance using the specified properties. * @param [properties] Properties to set - * @returns ManualBatchTuningParameters instance + * @returns EnvVar instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters): google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEnvVar): google.cloud.aiplatform.v1beta1.EnvVar; /** - * Encodes the specified ManualBatchTuningParameters message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters.verify|verify} messages. - * @param message ManualBatchTuningParameters message or plain object to encode + * Encodes the specified EnvVar message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.verify|verify} messages. + * @param message EnvVar message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEnvVar, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ManualBatchTuningParameters message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters.verify|verify} messages. - * @param message ManualBatchTuningParameters message or plain object to encode + * Encodes the specified EnvVar message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.verify|verify} messages. + * @param message EnvVar message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEnvVar, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ManualBatchTuningParameters message from the specified reader or buffer. + * Decodes an EnvVar message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ManualBatchTuningParameters + * @returns EnvVar * @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.ManualBatchTuningParameters; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.EnvVar; /** - * Decodes a ManualBatchTuningParameters message from the specified reader or buffer, length delimited. + * Decodes an EnvVar message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ManualBatchTuningParameters + * @returns EnvVar * @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.ManualBatchTuningParameters; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.EnvVar; /** - * Verifies a ManualBatchTuningParameters message. + * Verifies an EnvVar 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 ManualBatchTuningParameters message from a plain object. Also converts values to their respective internal types. + * Creates an EnvVar message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ManualBatchTuningParameters + * @returns EnvVar */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EnvVar; /** - * Creates a plain object from a ManualBatchTuningParameters message. Also converts values to other types if specified. - * @param message ManualBatchTuningParameters + * Creates a plain object from an EnvVar message. Also converts values to other types if specified. + * @param message EnvVar * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.EnvVar, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ManualBatchTuningParameters to JSON. + * Converts this EnvVar to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ManualBatchTuningParameters + * Gets the default type url for EnvVar * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** ModelDeploymentMonitoringObjectiveType enum. */ - enum ModelDeploymentMonitoringObjectiveType { - MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0, - RAW_FEATURE_SKEW = 1, - RAW_FEATURE_DRIFT = 2, - FEATURE_ATTRIBUTION_SKEW = 3, - FEATURE_ATTRIBUTION_DRIFT = 4 - } - - /** Properties of a ModelDeploymentMonitoringJob. */ - interface IModelDeploymentMonitoringJob { + /** Properties of a Context. */ + interface IContext { - /** ModelDeploymentMonitoringJob name */ + /** Context name */ name?: (string|null); - /** ModelDeploymentMonitoringJob displayName */ + /** Context displayName */ displayName?: (string|null); - /** ModelDeploymentMonitoringJob endpoint */ - endpoint?: (string|null); - - /** ModelDeploymentMonitoringJob state */ - state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - - /** ModelDeploymentMonitoringJob scheduleState */ - scheduleState?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null); - - /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata */ - latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs */ - modelDeploymentMonitoringObjectiveConfigs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig[]|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig */ - modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null); - - /** ModelDeploymentMonitoringJob loggingSamplingStrategy */ - loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - - /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig */ - modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); - - /** ModelDeploymentMonitoringJob predictInstanceSchemaUri */ - predictInstanceSchemaUri?: (string|null); - - /** ModelDeploymentMonitoringJob samplePredictInstance */ - samplePredictInstance?: (google.protobuf.IValue|null); - - /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri */ - analysisInstanceSchemaUri?: (string|null); - - /** ModelDeploymentMonitoringJob bigqueryTables */ - bigqueryTables?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]|null); - - /** ModelDeploymentMonitoringJob logTtl */ - logTtl?: (google.protobuf.IDuration|null); + /** Context etag */ + etag?: (string|null); - /** ModelDeploymentMonitoringJob labels */ + /** Context labels */ labels?: ({ [k: string]: string }|null); - /** ModelDeploymentMonitoringJob createTime */ + /** Context createTime */ createTime?: (google.protobuf.ITimestamp|null); - /** ModelDeploymentMonitoringJob updateTime */ + /** Context updateTime */ updateTime?: (google.protobuf.ITimestamp|null); - /** ModelDeploymentMonitoringJob nextScheduleTime */ - nextScheduleTime?: (google.protobuf.ITimestamp|null); + /** Context parentContexts */ + parentContexts?: (string[]|null); - /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory */ - statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** Context schemaTitle */ + schemaTitle?: (string|null); - /** ModelDeploymentMonitoringJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** Context schemaVersion */ + schemaVersion?: (string|null); - /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs */ - enableMonitoringPipelineLogs?: (boolean|null); + /** Context metadata */ + metadata?: (google.protobuf.IStruct|null); - /** ModelDeploymentMonitoringJob error */ - error?: (google.rpc.IStatus|null); + /** Context description */ + description?: (string|null); } - /** Represents a ModelDeploymentMonitoringJob. */ - class ModelDeploymentMonitoringJob implements IModelDeploymentMonitoringJob { + /** Represents a Context. */ + class Context implements IContext { /** - * Constructs a new ModelDeploymentMonitoringJob. + * Constructs a new Context. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob); + constructor(properties?: google.cloud.aiplatform.v1beta1.IContext); - /** ModelDeploymentMonitoringJob name. */ + /** Context name. */ public name: string; - /** ModelDeploymentMonitoringJob displayName. */ + /** Context displayName. */ public displayName: string; - /** ModelDeploymentMonitoringJob endpoint. */ - public endpoint: string; - - /** ModelDeploymentMonitoringJob state. */ - public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - - /** ModelDeploymentMonitoringJob scheduleState. */ - public scheduleState: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState); - - /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. */ - public latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. */ - public modelDeploymentMonitoringObjectiveConfigs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig[]; - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. */ - public modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null); - - /** ModelDeploymentMonitoringJob loggingSamplingStrategy. */ - public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - - /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig. */ - public modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); - - /** ModelDeploymentMonitoringJob predictInstanceSchemaUri. */ - public predictInstanceSchemaUri: string; - - /** ModelDeploymentMonitoringJob samplePredictInstance. */ - public samplePredictInstance?: (google.protobuf.IValue|null); - - /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri. */ - public analysisInstanceSchemaUri: string; - - /** ModelDeploymentMonitoringJob bigqueryTables. */ - public bigqueryTables: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]; - - /** ModelDeploymentMonitoringJob logTtl. */ - public logTtl?: (google.protobuf.IDuration|null); + /** Context etag. */ + public etag: string; - /** ModelDeploymentMonitoringJob labels. */ + /** Context labels. */ public labels: { [k: string]: string }; - /** ModelDeploymentMonitoringJob createTime. */ + /** Context createTime. */ public createTime?: (google.protobuf.ITimestamp|null); - /** ModelDeploymentMonitoringJob updateTime. */ + /** Context updateTime. */ public updateTime?: (google.protobuf.ITimestamp|null); - /** ModelDeploymentMonitoringJob nextScheduleTime. */ - public nextScheduleTime?: (google.protobuf.ITimestamp|null); + /** Context parentContexts. */ + public parentContexts: string[]; - /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. */ - public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** Context schemaTitle. */ + public schemaTitle: string; - /** ModelDeploymentMonitoringJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** Context schemaVersion. */ + public schemaVersion: string; - /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. */ - public enableMonitoringPipelineLogs: boolean; + /** Context metadata. */ + public metadata?: (google.protobuf.IStruct|null); - /** ModelDeploymentMonitoringJob error. */ - public error?: (google.rpc.IStatus|null); + /** Context description. */ + public description: string; /** - * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * Creates a new Context instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringJob instance + * @returns Context instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.IContext): google.cloud.aiplatform.v1beta1.Context; /** - * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. - * @param message ModelDeploymentMonitoringJob message or plain object to encode + * Encodes the specified Context message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.verify|verify} messages. + * @param message Context message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IContext, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. - * @param message ModelDeploymentMonitoringJob message or plain object to encode + * Encodes the specified Context message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.verify|verify} messages. + * @param message Context message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContext, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * Decodes a Context message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringJob + * @returns Context * @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.ModelDeploymentMonitoringJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Context; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. + * Decodes a Context message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringJob + * @returns Context * @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.ModelDeploymentMonitoringJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Context; /** - * Verifies a ModelDeploymentMonitoringJob message. + * Verifies a Context 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 ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * Creates a Context message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringJob + * @returns Context */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Context; /** - * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringJob + * Creates a plain object from a Context message. Also converts values to other types if specified. + * @param message Context * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Context, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringJob to JSON. + * Converts this Context to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringJob + * Gets the default type url for Context * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelDeploymentMonitoringJob { - - /** Properties of a LatestMonitoringPipelineMetadata. */ - interface ILatestMonitoringPipelineMetadata { + /** Properties of a CustomJob. */ + interface ICustomJob { - /** LatestMonitoringPipelineMetadata runTime */ - runTime?: (google.protobuf.ITimestamp|null); + /** CustomJob name */ + name?: (string|null); - /** LatestMonitoringPipelineMetadata status */ - status?: (google.rpc.IStatus|null); - } + /** CustomJob displayName */ + displayName?: (string|null); - /** Represents a LatestMonitoringPipelineMetadata. */ - class LatestMonitoringPipelineMetadata implements ILatestMonitoringPipelineMetadata { + /** CustomJob jobSpec */ + jobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - /** - * Constructs a new LatestMonitoringPipelineMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata); + /** CustomJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - /** LatestMonitoringPipelineMetadata runTime. */ - public runTime?: (google.protobuf.ITimestamp|null); + /** CustomJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** LatestMonitoringPipelineMetadata status. */ - public status?: (google.rpc.IStatus|null); + /** CustomJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns LatestMonitoringPipelineMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + /** CustomJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @param message LatestMonitoringPipelineMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** CustomJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @param message LatestMonitoringPipelineMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** CustomJob error */ + error?: (google.rpc.IStatus|null); - /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LatestMonitoringPipelineMetadata - * @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.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + /** CustomJob labels */ + labels?: ({ [k: string]: string }|null); - /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LatestMonitoringPipelineMetadata - * @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.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + /** CustomJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** - * Verifies a LatestMonitoringPipelineMetadata 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); + /** CustomJob webAccessUris */ + webAccessUris?: ({ [k: string]: string }|null); + } - /** - * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LatestMonitoringPipelineMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + /** Represents a CustomJob. */ + class CustomJob implements ICustomJob { - /** - * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. - * @param message LatestMonitoringPipelineMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new CustomJob. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICustomJob); - /** - * Converts this LatestMonitoringPipelineMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** CustomJob name. */ + public name: string; - /** - * Gets the default type url for LatestMonitoringPipelineMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** CustomJob displayName. */ + public displayName: string; - /** MonitoringScheduleState enum. */ - enum MonitoringScheduleState { - MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0, - PENDING = 1, - OFFLINE = 2, - RUNNING = 3 - } - } + /** CustomJob jobSpec. */ + public jobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - /** Properties of a ModelDeploymentMonitoringBigQueryTable. */ - interface IModelDeploymentMonitoringBigQueryTable { + /** CustomJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - /** ModelDeploymentMonitoringBigQueryTable logSource */ - logSource?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|null); + /** CustomJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ModelDeploymentMonitoringBigQueryTable logType */ - logType?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|null); + /** CustomJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ - bigqueryTablePath?: (string|null); - } + /** CustomJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** Represents a ModelDeploymentMonitoringBigQueryTable. */ - class ModelDeploymentMonitoringBigQueryTable implements IModelDeploymentMonitoringBigQueryTable { + /** CustomJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new ModelDeploymentMonitoringBigQueryTable. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable); + /** CustomJob error. */ + public error?: (google.rpc.IStatus|null); - /** ModelDeploymentMonitoringBigQueryTable logSource. */ - public logSource: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource); + /** CustomJob labels. */ + public labels: { [k: string]: string }; - /** ModelDeploymentMonitoringBigQueryTable logType. */ - public logType: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType); + /** CustomJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ - public bigqueryTablePath: string; + /** CustomJob webAccessUris. */ + public webAccessUris: { [k: string]: string }; /** - * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * Creates a new CustomJob instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringBigQueryTable instance + * @returns CustomJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICustomJob): google.cloud.aiplatform.v1beta1.CustomJob; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. - * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * Encodes the specified CustomJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.verify|verify} messages. + * @param message CustomJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICustomJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. - * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * Encodes the specified CustomJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.verify|verify} messages. + * @param message CustomJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICustomJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * Decodes a CustomJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns CustomJob * @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.ModelDeploymentMonitoringBigQueryTable; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CustomJob; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * Decodes a CustomJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns CustomJob * @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.ModelDeploymentMonitoringBigQueryTable; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CustomJob; /** - * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * Verifies a CustomJob 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 ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * Creates a CustomJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns CustomJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CustomJob; /** - * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringBigQueryTable + * Creates a plain object from a CustomJob message. Also converts values to other types if specified. + * @param message CustomJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CustomJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * Converts this CustomJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringBigQueryTable + * Gets the default type url for CustomJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelDeploymentMonitoringBigQueryTable { + /** Properties of a CustomJobSpec. */ + interface ICustomJobSpec { - /** LogSource enum. */ - enum LogSource { - LOG_SOURCE_UNSPECIFIED = 0, - TRAINING = 1, - SERVING = 2 - } + /** CustomJobSpec workerPoolSpecs */ + workerPoolSpecs?: (google.cloud.aiplatform.v1beta1.IWorkerPoolSpec[]|null); - /** LogType enum. */ - enum LogType { - LOG_TYPE_UNSPECIFIED = 0, - PREDICT = 1, - EXPLAIN = 2 - } - } + /** CustomJobSpec scheduling */ + scheduling?: (google.cloud.aiplatform.v1beta1.IScheduling|null); - /** Properties of a ModelDeploymentMonitoringObjectiveConfig. */ - interface IModelDeploymentMonitoringObjectiveConfig { + /** CustomJobSpec serviceAccount */ + serviceAccount?: (string|null); - /** ModelDeploymentMonitoringObjectiveConfig deployedModelId */ - deployedModelId?: (string|null); + /** CustomJobSpec network */ + network?: (string|null); - /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ - objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); + /** CustomJobSpec reservedIpRanges */ + reservedIpRanges?: (string[]|null); + + /** CustomJobSpec baseOutputDirectory */ + baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** CustomJobSpec tensorboard */ + tensorboard?: (string|null); + + /** CustomJobSpec enableWebAccess */ + enableWebAccess?: (boolean|null); + + /** CustomJobSpec enableDashboardAccess */ + enableDashboardAccess?: (boolean|null); } - /** Represents a ModelDeploymentMonitoringObjectiveConfig. */ - class ModelDeploymentMonitoringObjectiveConfig implements IModelDeploymentMonitoringObjectiveConfig { + /** Represents a CustomJobSpec. */ + class CustomJobSpec implements ICustomJobSpec { /** - * Constructs a new ModelDeploymentMonitoringObjectiveConfig. + * Constructs a new CustomJobSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICustomJobSpec); - /** ModelDeploymentMonitoringObjectiveConfig deployedModelId. */ - public deployedModelId: string; + /** CustomJobSpec workerPoolSpecs. */ + public workerPoolSpecs: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec[]; - /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig. */ - public objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); + /** CustomJobSpec scheduling. */ + public scheduling?: (google.cloud.aiplatform.v1beta1.IScheduling|null); + + /** CustomJobSpec serviceAccount. */ + public serviceAccount: string; + + /** CustomJobSpec network. */ + public network: string; + + /** CustomJobSpec reservedIpRanges. */ + public reservedIpRanges: string[]; + + /** CustomJobSpec baseOutputDirectory. */ + public baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** CustomJobSpec tensorboard. */ + public tensorboard: string; + + /** CustomJobSpec enableWebAccess. */ + public enableWebAccess: boolean; + + /** CustomJobSpec enableDashboardAccess. */ + public enableDashboardAccess: boolean; /** - * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. + * Creates a new CustomJobSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringObjectiveConfig instance + * @returns CustomJobSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICustomJobSpec): google.cloud.aiplatform.v1beta1.CustomJobSpec; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified CustomJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.verify|verify} messages. + * @param message CustomJobSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICustomJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified CustomJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.verify|verify} messages. + * @param message CustomJobSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICustomJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes a CustomJobSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns CustomJobSpec * @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.ModelDeploymentMonitoringObjectiveConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CustomJobSpec; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes a CustomJobSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns CustomJobSpec * @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.ModelDeploymentMonitoringObjectiveConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CustomJobSpec; /** - * Verifies a ModelDeploymentMonitoringObjectiveConfig message. + * Verifies a CustomJobSpec 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 ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a CustomJobSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns CustomJobSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CustomJobSpec; /** - * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringObjectiveConfig + * Creates a plain object from a CustomJobSpec message. Also converts values to other types if specified. + * @param message CustomJobSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CustomJobSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. + * Converts this CustomJobSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig + * Gets the default type url for CustomJobSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelDeploymentMonitoringScheduleConfig. */ - interface IModelDeploymentMonitoringScheduleConfig { + /** Properties of a WorkerPoolSpec. */ + interface IWorkerPoolSpec { + + /** WorkerPoolSpec containerSpec */ + containerSpec?: (google.cloud.aiplatform.v1beta1.IContainerSpec|null); + + /** WorkerPoolSpec pythonPackageSpec */ + pythonPackageSpec?: (google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null); + + /** WorkerPoolSpec machineSpec */ + machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + + /** WorkerPoolSpec replicaCount */ + replicaCount?: (number|Long|string|null); - /** ModelDeploymentMonitoringScheduleConfig monitorInterval */ - monitorInterval?: (google.protobuf.IDuration|null); + /** WorkerPoolSpec nfsMounts */ + nfsMounts?: (google.cloud.aiplatform.v1beta1.INfsMount[]|null); - /** ModelDeploymentMonitoringScheduleConfig monitorWindow */ - monitorWindow?: (google.protobuf.IDuration|null); + /** WorkerPoolSpec diskSpec */ + diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); } - /** Represents a ModelDeploymentMonitoringScheduleConfig. */ - class ModelDeploymentMonitoringScheduleConfig implements IModelDeploymentMonitoringScheduleConfig { + /** Represents a WorkerPoolSpec. */ + class WorkerPoolSpec implements IWorkerPoolSpec { /** - * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * Constructs a new WorkerPoolSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec); - /** ModelDeploymentMonitoringScheduleConfig monitorInterval. */ - public monitorInterval?: (google.protobuf.IDuration|null); + /** WorkerPoolSpec containerSpec. */ + public containerSpec?: (google.cloud.aiplatform.v1beta1.IContainerSpec|null); - /** ModelDeploymentMonitoringScheduleConfig monitorWindow. */ - public monitorWindow?: (google.protobuf.IDuration|null); + /** WorkerPoolSpec pythonPackageSpec. */ + public pythonPackageSpec?: (google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null); + + /** WorkerPoolSpec machineSpec. */ + public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + + /** WorkerPoolSpec replicaCount. */ + public replicaCount: (number|Long|string); + + /** WorkerPoolSpec nfsMounts. */ + public nfsMounts: google.cloud.aiplatform.v1beta1.INfsMount[]; + + /** WorkerPoolSpec diskSpec. */ + public diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); + + /** WorkerPoolSpec task. */ + public task?: ("containerSpec"|"pythonPackageSpec"); /** - * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * Creates a new WorkerPoolSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringScheduleConfig instance + * @returns WorkerPoolSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * Encodes the specified WorkerPoolSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify|verify} messages. + * @param message WorkerPoolSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * Encodes the specified WorkerPoolSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify|verify} messages. + * @param message WorkerPoolSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * Decodes a WorkerPoolSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns WorkerPoolSpec * @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.ModelDeploymentMonitoringScheduleConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * Decodes a WorkerPoolSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns WorkerPoolSpec * @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.ModelDeploymentMonitoringScheduleConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; /** - * Verifies a ModelDeploymentMonitoringScheduleConfig message. + * Verifies a WorkerPoolSpec 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 ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a WorkerPoolSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns WorkerPoolSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; /** - * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringScheduleConfig + * Creates a plain object from a WorkerPoolSpec message. Also converts values to other types if specified. + * @param message WorkerPoolSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.WorkerPoolSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * Converts this WorkerPoolSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelDeploymentMonitoringScheduleConfig + * Gets the default type url for WorkerPoolSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelMonitoringStatsAnomalies. */ - interface IModelMonitoringStatsAnomalies { + /** Properties of a ContainerSpec. */ + interface IContainerSpec { - /** ModelMonitoringStatsAnomalies objective */ - objective?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); + /** ContainerSpec imageUri */ + imageUri?: (string|null); - /** ModelMonitoringStatsAnomalies deployedModelId */ - deployedModelId?: (string|null); + /** ContainerSpec command */ + command?: (string[]|null); - /** ModelMonitoringStatsAnomalies anomalyCount */ - anomalyCount?: (number|null); + /** ContainerSpec args */ + args?: (string[]|null); - /** ModelMonitoringStatsAnomalies featureStats */ - featureStats?: (google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]|null); + /** ContainerSpec env */ + env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); } - /** Represents a ModelMonitoringStatsAnomalies. */ - class ModelMonitoringStatsAnomalies implements IModelMonitoringStatsAnomalies { + /** Represents a ContainerSpec. */ + class ContainerSpec implements IContainerSpec { /** - * Constructs a new ModelMonitoringStatsAnomalies. + * Constructs a new ContainerSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies); + constructor(properties?: google.cloud.aiplatform.v1beta1.IContainerSpec); - /** ModelMonitoringStatsAnomalies objective. */ - public objective: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); + /** ContainerSpec imageUri. */ + public imageUri: string; - /** ModelMonitoringStatsAnomalies deployedModelId. */ - public deployedModelId: string; + /** ContainerSpec command. */ + public command: string[]; - /** ModelMonitoringStatsAnomalies anomalyCount. */ - public anomalyCount: number; + /** ContainerSpec args. */ + public args: string[]; - /** ModelMonitoringStatsAnomalies featureStats. */ - public featureStats: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]; + /** ContainerSpec env. */ + public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; /** - * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * Creates a new ContainerSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringStatsAnomalies instance + * @returns ContainerSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + public static create(properties?: google.cloud.aiplatform.v1beta1.IContainerSpec): google.cloud.aiplatform.v1beta1.ContainerSpec; /** - * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. - * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * Encodes the specified ContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.verify|verify} messages. + * @param message ContainerSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. - * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * Encodes the specified ContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.verify|verify} messages. + * @param message ContainerSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * Decodes a ContainerSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringStatsAnomalies + * @returns ContainerSpec * @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.ModelMonitoringStatsAnomalies; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ContainerSpec; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * Decodes a ContainerSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringStatsAnomalies + * @returns ContainerSpec * @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.ModelMonitoringStatsAnomalies; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ContainerSpec; /** - * Verifies a ModelMonitoringStatsAnomalies message. + * Verifies a ContainerSpec 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 ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * Creates a ContainerSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringStatsAnomalies + * @returns ContainerSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ContainerSpec; /** - * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. - * @param message ModelMonitoringStatsAnomalies + * Creates a plain object from a ContainerSpec message. Also converts values to other types if specified. + * @param message ContainerSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ContainerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringStatsAnomalies to JSON. + * Converts this ContainerSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringStatsAnomalies + * Gets the default type url for ContainerSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelMonitoringStatsAnomalies { - - /** Properties of a FeatureHistoricStatsAnomalies. */ - interface IFeatureHistoricStatsAnomalies { - - /** FeatureHistoricStatsAnomalies featureDisplayName */ - featureDisplayName?: (string|null); - - /** FeatureHistoricStatsAnomalies threshold */ - threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - - /** FeatureHistoricStatsAnomalies trainingStats */ - trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - - /** FeatureHistoricStatsAnomalies predictionStats */ - predictionStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]|null); - } - - /** Represents a FeatureHistoricStatsAnomalies. */ - class FeatureHistoricStatsAnomalies implements IFeatureHistoricStatsAnomalies { - - /** - * Constructs a new FeatureHistoricStatsAnomalies. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies); - - /** FeatureHistoricStatsAnomalies featureDisplayName. */ - public featureDisplayName: string; - - /** FeatureHistoricStatsAnomalies threshold. */ - public threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - - /** FeatureHistoricStatsAnomalies trainingStats. */ - public trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - - /** FeatureHistoricStatsAnomalies predictionStats. */ - public predictionStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; - - /** - * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureHistoricStatsAnomalies instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - - /** - * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @param message FeatureHistoricStatsAnomalies message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @param message FeatureHistoricStatsAnomalies message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureHistoricStatsAnomalies - * @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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureHistoricStatsAnomalies - * @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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - - /** - * Verifies a FeatureHistoricStatsAnomalies 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 FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureHistoricStatsAnomalies - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - - /** - * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. - * @param message FeatureHistoricStatsAnomalies - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FeatureHistoricStatsAnomalies to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for FeatureHistoricStatsAnomalies - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a FeatureStatsAnomaly. */ - interface IFeatureStatsAnomaly { - - /** FeatureStatsAnomaly score */ - score?: (number|null); - - /** FeatureStatsAnomaly statsUri */ - statsUri?: (string|null); + /** Properties of a PythonPackageSpec. */ + interface IPythonPackageSpec { - /** FeatureStatsAnomaly anomalyUri */ - anomalyUri?: (string|null); + /** PythonPackageSpec executorImageUri */ + executorImageUri?: (string|null); - /** FeatureStatsAnomaly distributionDeviation */ - distributionDeviation?: (number|null); + /** PythonPackageSpec packageUris */ + packageUris?: (string[]|null); - /** FeatureStatsAnomaly anomalyDetectionThreshold */ - anomalyDetectionThreshold?: (number|null); + /** PythonPackageSpec pythonModule */ + pythonModule?: (string|null); - /** FeatureStatsAnomaly startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** PythonPackageSpec args */ + args?: (string[]|null); - /** FeatureStatsAnomaly endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** PythonPackageSpec env */ + env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); } - /** Represents a FeatureStatsAnomaly. */ - class FeatureStatsAnomaly implements IFeatureStatsAnomaly { + /** Represents a PythonPackageSpec. */ + class PythonPackageSpec implements IPythonPackageSpec { /** - * Constructs a new FeatureStatsAnomaly. + * Constructs a new PythonPackageSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly); - - /** FeatureStatsAnomaly score. */ - public score: number; - - /** FeatureStatsAnomaly statsUri. */ - public statsUri: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IPythonPackageSpec); - /** FeatureStatsAnomaly anomalyUri. */ - public anomalyUri: string; + /** PythonPackageSpec executorImageUri. */ + public executorImageUri: string; - /** FeatureStatsAnomaly distributionDeviation. */ - public distributionDeviation: number; + /** PythonPackageSpec packageUris. */ + public packageUris: string[]; - /** FeatureStatsAnomaly anomalyDetectionThreshold. */ - public anomalyDetectionThreshold: number; + /** PythonPackageSpec pythonModule. */ + public pythonModule: string; - /** FeatureStatsAnomaly startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** PythonPackageSpec args. */ + public args: string[]; - /** FeatureStatsAnomaly endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** PythonPackageSpec env. */ + public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; /** - * Creates a new FeatureStatsAnomaly instance using the specified properties. + * Creates a new PythonPackageSpec instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureStatsAnomaly instance + * @returns PythonPackageSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPythonPackageSpec): google.cloud.aiplatform.v1beta1.PythonPackageSpec; /** - * Encodes the specified FeatureStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. - * @param message FeatureStatsAnomaly message or plain object to encode + * Encodes the specified PythonPackageSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify|verify} messages. + * @param message PythonPackageSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPythonPackageSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. - * @param message FeatureStatsAnomaly message or plain object to encode + * Encodes the specified PythonPackageSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify|verify} messages. + * @param message PythonPackageSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPythonPackageSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureStatsAnomaly message from the specified reader or buffer. + * Decodes a PythonPackageSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureStatsAnomaly + * @returns PythonPackageSpec * @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.FeatureStatsAnomaly; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PythonPackageSpec; /** - * Decodes a FeatureStatsAnomaly message from the specified reader or buffer, length delimited. + * Decodes a PythonPackageSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureStatsAnomaly + * @returns PythonPackageSpec * @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.FeatureStatsAnomaly; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PythonPackageSpec; /** - * Verifies a FeatureStatsAnomaly message. + * Verifies a PythonPackageSpec 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 FeatureStatsAnomaly message from a plain object. Also converts values to their respective internal types. + * Creates a PythonPackageSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureStatsAnomaly + * @returns PythonPackageSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PythonPackageSpec; /** - * Creates a plain object from a FeatureStatsAnomaly message. Also converts values to other types if specified. - * @param message FeatureStatsAnomaly + * Creates a plain object from a PythonPackageSpec message. Also converts values to other types if specified. + * @param message PythonPackageSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PythonPackageSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureStatsAnomaly to JSON. + * Converts this PythonPackageSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeatureStatsAnomaly + * Gets the default type url for PythonPackageSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelMonitoringConfig. */ - interface IModelMonitoringConfig { - - /** ModelMonitoringConfig objectiveConfigs */ - objectiveConfigs?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig[]|null); - - /** ModelMonitoringConfig alertConfig */ - alertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + /** Properties of a Scheduling. */ + interface IScheduling { - /** ModelMonitoringConfig analysisInstanceSchemaUri */ - analysisInstanceSchemaUri?: (string|null); + /** Scheduling timeout */ + timeout?: (google.protobuf.IDuration|null); - /** ModelMonitoringConfig statsAnomaliesBaseDirectory */ - statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** Scheduling restartJobOnWorkerRestart */ + restartJobOnWorkerRestart?: (boolean|null); } - /** Represents a ModelMonitoringConfig. */ - class ModelMonitoringConfig implements IModelMonitoringConfig { + /** Represents a Scheduling. */ + class Scheduling implements IScheduling { /** - * Constructs a new ModelMonitoringConfig. + * Constructs a new Scheduling. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig); - - /** ModelMonitoringConfig objectiveConfigs. */ - public objectiveConfigs: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig[]; - - /** ModelMonitoringConfig alertConfig. */ - public alertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IScheduling); - /** ModelMonitoringConfig analysisInstanceSchemaUri. */ - public analysisInstanceSchemaUri: string; + /** Scheduling timeout. */ + public timeout?: (google.protobuf.IDuration|null); - /** ModelMonitoringConfig statsAnomaliesBaseDirectory. */ - public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** Scheduling restartJobOnWorkerRestart. */ + public restartJobOnWorkerRestart: boolean; /** - * Creates a new ModelMonitoringConfig instance using the specified properties. + * Creates a new Scheduling instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringConfig instance + * @returns Scheduling instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IScheduling): google.cloud.aiplatform.v1beta1.Scheduling; /** - * Encodes the specified ModelMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. - * @param message ModelMonitoringConfig message or plain object to encode + * Encodes the specified Scheduling message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.verify|verify} messages. + * @param message Scheduling message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IScheduling, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. - * @param message ModelMonitoringConfig message or plain object to encode + * Encodes the specified Scheduling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.verify|verify} messages. + * @param message Scheduling message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IScheduling, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringConfig message from the specified reader or buffer. + * Decodes a Scheduling message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringConfig + * @returns Scheduling * @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.ModelMonitoringConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Scheduling; /** - * Decodes a ModelMonitoringConfig message from the specified reader or buffer, length delimited. + * Decodes a Scheduling message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringConfig + * @returns Scheduling * @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.ModelMonitoringConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Scheduling; /** - * Verifies a ModelMonitoringConfig message. + * Verifies a Scheduling 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 ModelMonitoringConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Scheduling message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringConfig + * @returns Scheduling */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Scheduling; /** - * Creates a plain object from a ModelMonitoringConfig message. Also converts values to other types if specified. - * @param message ModelMonitoringConfig + * Creates a plain object from a Scheduling message. Also converts values to other types if specified. + * @param message Scheduling * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Scheduling, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringConfig to JSON. + * Converts this Scheduling to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringConfig + * Gets the default type url for Scheduling * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelMonitoringObjectiveConfig. */ - interface IModelMonitoringObjectiveConfig { + /** Properties of a DataItem. */ + interface IDataItem { - /** ModelMonitoringObjectiveConfig trainingDataset */ - trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + /** DataItem name */ + name?: (string|null); + + /** DataItem createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig */ - trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + /** DataItem updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig */ - predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + /** DataItem labels */ + labels?: ({ [k: string]: string }|null); - /** ModelMonitoringObjectiveConfig explanationConfig */ - explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + /** DataItem payload */ + payload?: (google.protobuf.IValue|null); + + /** DataItem etag */ + etag?: (string|null); } - /** Represents a ModelMonitoringObjectiveConfig. */ - class ModelMonitoringObjectiveConfig implements IModelMonitoringObjectiveConfig { + /** Represents a DataItem. */ + class DataItem implements IDataItem { /** - * Constructs a new ModelMonitoringObjectiveConfig. + * Constructs a new DataItem. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDataItem); - /** ModelMonitoringObjectiveConfig trainingDataset. */ - public trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); + /** DataItem name. */ + public name: string; - /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. */ - public trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); + /** DataItem createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. */ - public predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + /** DataItem updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** ModelMonitoringObjectiveConfig explanationConfig. */ - public explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + /** DataItem labels. */ + public labels: { [k: string]: string }; + + /** DataItem payload. */ + public payload?: (google.protobuf.IValue|null); + + /** DataItem etag. */ + public etag: string; /** - * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * Creates a new DataItem instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringObjectiveConfig instance + * @returns DataItem instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDataItem): google.cloud.aiplatform.v1beta1.DataItem; /** - * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified DataItem message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.verify|verify} messages. + * @param message DataItem message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDataItem, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified DataItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.verify|verify} messages. + * @param message DataItem message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataItem, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes a DataItem message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringObjectiveConfig + * @returns DataItem * @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.ModelMonitoringObjectiveConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DataItem; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes a DataItem message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringObjectiveConfig + * @returns DataItem * @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.ModelMonitoringObjectiveConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DataItem; /** - * Verifies a ModelMonitoringObjectiveConfig message. + * Verifies a DataItem 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 ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DataItem message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringObjectiveConfig + * @returns DataItem */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataItem; /** - * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. - * @param message ModelMonitoringObjectiveConfig + * Creates a plain object from a DataItem message. Also converts values to other types if specified. + * @param message DataItem * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DataItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringObjectiveConfig to JSON. + * Converts this DataItem to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringObjectiveConfig + * Gets the default type url for DataItem * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelMonitoringObjectiveConfig { - - /** Properties of a TrainingDataset. */ - interface ITrainingDataset { - - /** TrainingDataset dataset */ - dataset?: (string|null); - - /** TrainingDataset gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - - /** TrainingDataset bigquerySource */ - bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - - /** TrainingDataset dataFormat */ - dataFormat?: (string|null); - - /** TrainingDataset targetField */ - targetField?: (string|null); - - /** TrainingDataset loggingSamplingStrategy */ - loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - } - - /** Represents a TrainingDataset. */ - class TrainingDataset implements ITrainingDataset { - - /** - * Constructs a new TrainingDataset. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset); - - /** TrainingDataset dataset. */ - public dataset?: (string|null); - - /** TrainingDataset gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - - /** TrainingDataset bigquerySource. */ - public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - - /** TrainingDataset dataFormat. */ - public dataFormat: string; - - /** TrainingDataset targetField. */ - public targetField: string; - - /** TrainingDataset loggingSamplingStrategy. */ - public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - - /** TrainingDataset dataSource. */ - public dataSource?: ("dataset"|"gcsSource"|"bigquerySource"); - - /** - * Creates a new TrainingDataset instance using the specified properties. - * @param [properties] Properties to set - * @returns TrainingDataset instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; - - /** - * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @param message TrainingDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @param message TrainingDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TrainingDataset message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrainingDataset - * @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.ModelMonitoringObjectiveConfig.TrainingDataset; - - /** - * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrainingDataset - * @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.ModelMonitoringObjectiveConfig.TrainingDataset; - - /** - * Verifies a TrainingDataset 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 TrainingDataset message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrainingDataset - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; - - /** - * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. - * @param message TrainingDataset - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TrainingDataset to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TrainingDataset - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a TrainingPredictionSkewDetectionConfig. */ - interface ITrainingPredictionSkewDetectionConfig { - - /** TrainingPredictionSkewDetectionConfig skewThresholds */ - skewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - - /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds */ - attributionScoreSkewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - - /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold */ - defaultSkewThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - } - - /** Represents a TrainingPredictionSkewDetectionConfig. */ - class TrainingPredictionSkewDetectionConfig implements ITrainingPredictionSkewDetectionConfig { - - /** - * Constructs a new TrainingPredictionSkewDetectionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig); - - /** TrainingPredictionSkewDetectionConfig skewThresholds. */ - public skewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - - /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. */ - public attributionScoreSkewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - - /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold. */ - public defaultSkewThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - - /** - * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns TrainingPredictionSkewDetectionConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrainingPredictionSkewDetectionConfig - * @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.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrainingPredictionSkewDetectionConfig - * @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.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - - /** - * Verifies a TrainingPredictionSkewDetectionConfig 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 TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrainingPredictionSkewDetectionConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - - /** - * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. - * @param message TrainingPredictionSkewDetectionConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this TrainingPredictionSkewDetectionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for TrainingPredictionSkewDetectionConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a PredictionDriftDetectionConfig. */ - interface IPredictionDriftDetectionConfig { - - /** PredictionDriftDetectionConfig driftThresholds */ - driftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - - /** PredictionDriftDetectionConfig attributionScoreDriftThresholds */ - attributionScoreDriftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - - /** PredictionDriftDetectionConfig defaultDriftThreshold */ - defaultDriftThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - } - - /** Represents a PredictionDriftDetectionConfig. */ - class PredictionDriftDetectionConfig implements IPredictionDriftDetectionConfig { - - /** - * Constructs a new PredictionDriftDetectionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig); - - /** PredictionDriftDetectionConfig driftThresholds. */ - public driftThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - - /** PredictionDriftDetectionConfig attributionScoreDriftThresholds. */ - public attributionScoreDriftThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - - /** PredictionDriftDetectionConfig defaultDriftThreshold. */ - public defaultDriftThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - - /** - * Creates a new PredictionDriftDetectionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns PredictionDriftDetectionConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - - /** - * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @param message PredictionDriftDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @param message PredictionDriftDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PredictionDriftDetectionConfig - * @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.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PredictionDriftDetectionConfig - * @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.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - - /** - * Verifies a PredictionDriftDetectionConfig 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 PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PredictionDriftDetectionConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - - /** - * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. - * @param message PredictionDriftDetectionConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PredictionDriftDetectionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PredictionDriftDetectionConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ExplanationConfig. */ - interface IExplanationConfig { - - /** ExplanationConfig enableFeatureAttributes */ - enableFeatureAttributes?: (boolean|null); - - /** ExplanationConfig explanationBaseline */ - explanationBaseline?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); - } - - /** Represents an ExplanationConfig. */ - class ExplanationConfig implements IExplanationConfig { - - /** - * Constructs a new ExplanationConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig); - - /** ExplanationConfig enableFeatureAttributes. */ - public enableFeatureAttributes: boolean; - - /** ExplanationConfig explanationBaseline. */ - public explanationBaseline?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); - - /** - * Creates a new ExplanationConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ExplanationConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; - - /** - * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. - * @param message ExplanationConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. - * @param message ExplanationConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a DataLabelingJob. */ + interface IDataLabelingJob { - /** - * Decodes an ExplanationConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExplanationConfig - * @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.ModelMonitoringObjectiveConfig.ExplanationConfig; + /** DataLabelingJob name */ + name?: (string|null); - /** - * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExplanationConfig - * @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.ModelMonitoringObjectiveConfig.ExplanationConfig; + /** DataLabelingJob displayName */ + displayName?: (string|null); - /** - * Verifies an ExplanationConfig 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); + /** DataLabelingJob datasets */ + datasets?: (string[]|null); - /** - * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExplanationConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; + /** DataLabelingJob annotationLabels */ + annotationLabels?: ({ [k: string]: string }|null); - /** - * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. - * @param message ExplanationConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** DataLabelingJob labelerCount */ + labelerCount?: (number|null); - /** - * Converts this ExplanationConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** DataLabelingJob instructionUri */ + instructionUri?: (string|null); - /** - * Gets the default type url for ExplanationConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** DataLabelingJob inputsSchemaUri */ + inputsSchemaUri?: (string|null); - namespace ExplanationConfig { + /** DataLabelingJob inputs */ + inputs?: (google.protobuf.IValue|null); - /** Properties of an ExplanationBaseline. */ - interface IExplanationBaseline { + /** DataLabelingJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - /** ExplanationBaseline gcs */ - gcs?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** DataLabelingJob labelingProgress */ + labelingProgress?: (number|null); - /** ExplanationBaseline bigquery */ - bigquery?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** DataLabelingJob currentSpend */ + currentSpend?: (google.type.IMoney|null); - /** ExplanationBaseline predictionFormat */ - predictionFormat?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null); - } + /** DataLabelingJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** Represents an ExplanationBaseline. */ - class ExplanationBaseline implements IExplanationBaseline { + /** DataLabelingJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new ExplanationBaseline. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline); + /** DataLabelingJob error */ + error?: (google.rpc.IStatus|null); - /** ExplanationBaseline gcs. */ - public gcs?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** DataLabelingJob labels */ + labels?: ({ [k: string]: string }|null); - /** ExplanationBaseline bigquery. */ - public bigquery?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** DataLabelingJob specialistPools */ + specialistPools?: (string[]|null); - /** ExplanationBaseline predictionFormat. */ - public predictionFormat: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat); + /** DataLabelingJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** ExplanationBaseline destination. */ - public destination?: ("gcs"|"bigquery"); + /** DataLabelingJob activeLearningConfig */ + activeLearningConfig?: (google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null); + } - /** - * Creates a new ExplanationBaseline instance using the specified properties. - * @param [properties] Properties to set - * @returns ExplanationBaseline instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** Represents a DataLabelingJob. */ + class DataLabelingJob implements IDataLabelingJob { - /** - * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @param message ExplanationBaseline message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new DataLabelingJob. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDataLabelingJob); - /** - * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @param message ExplanationBaseline message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + /** DataLabelingJob name. */ + public name: string; - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExplanationBaseline - * @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.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** DataLabelingJob displayName. */ + public displayName: string; - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExplanationBaseline - * @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.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** DataLabelingJob datasets. */ + public datasets: string[]; - /** - * Verifies an ExplanationBaseline 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); + /** DataLabelingJob annotationLabels. */ + public annotationLabels: { [k: string]: string }; - /** - * Creates an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExplanationBaseline - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** DataLabelingJob labelerCount. */ + public labelerCount: number; - /** - * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. - * @param message ExplanationBaseline - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** DataLabelingJob instructionUri. */ + public instructionUri: string; - /** - * Converts this ExplanationBaseline to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** DataLabelingJob inputsSchemaUri. */ + public inputsSchemaUri: string; - /** - * Gets the default type url for ExplanationBaseline - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** DataLabelingJob inputs. */ + public inputs?: (google.protobuf.IValue|null); - namespace ExplanationBaseline { + /** DataLabelingJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - /** PredictionFormat enum. */ - enum PredictionFormat { - PREDICTION_FORMAT_UNSPECIFIED = 0, - JSONL = 2, - BIGQUERY = 3 - } - } - } - } + /** DataLabelingJob labelingProgress. */ + public labelingProgress: number; - /** Properties of a ModelMonitoringAlertConfig. */ - interface IModelMonitoringAlertConfig { + /** DataLabelingJob currentSpend. */ + public currentSpend?: (google.type.IMoney|null); - /** ModelMonitoringAlertConfig emailAlertConfig */ - emailAlertConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + /** DataLabelingJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ModelMonitoringAlertConfig enableLogging */ - enableLogging?: (boolean|null); - } + /** DataLabelingJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** Represents a ModelMonitoringAlertConfig. */ - class ModelMonitoringAlertConfig implements IModelMonitoringAlertConfig { + /** DataLabelingJob error. */ + public error?: (google.rpc.IStatus|null); - /** - * Constructs a new ModelMonitoringAlertConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig); + /** DataLabelingJob labels. */ + public labels: { [k: string]: string }; - /** ModelMonitoringAlertConfig emailAlertConfig. */ - public emailAlertConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + /** DataLabelingJob specialistPools. */ + public specialistPools: string[]; - /** ModelMonitoringAlertConfig enableLogging. */ - public enableLogging: boolean; + /** DataLabelingJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** ModelMonitoringAlertConfig alert. */ - public alert?: "emailAlertConfig"; + /** DataLabelingJob activeLearningConfig. */ + public activeLearningConfig?: (google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null); /** - * Creates a new ModelMonitoringAlertConfig instance using the specified properties. + * Creates a new DataLabelingJob instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringAlertConfig instance + * @returns DataLabelingJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDataLabelingJob): google.cloud.aiplatform.v1beta1.DataLabelingJob; /** - * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify|verify} messages. - * @param message ModelMonitoringAlertConfig message or plain object to encode + * Encodes the specified DataLabelingJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.verify|verify} messages. + * @param message DataLabelingJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDataLabelingJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify|verify} messages. - * @param message ModelMonitoringAlertConfig message or plain object to encode + * Encodes the specified DataLabelingJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.verify|verify} messages. + * @param message DataLabelingJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataLabelingJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. + * Decodes a DataLabelingJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringAlertConfig + * @returns DataLabelingJob * @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.ModelMonitoringAlertConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DataLabelingJob; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. + * Decodes a DataLabelingJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringAlertConfig + * @returns DataLabelingJob * @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.ModelMonitoringAlertConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DataLabelingJob; /** - * Verifies a ModelMonitoringAlertConfig message. + * Verifies a DataLabelingJob 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 ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DataLabelingJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringAlertConfig + * @returns DataLabelingJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataLabelingJob; /** - * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. - * @param message ModelMonitoringAlertConfig + * Creates a plain object from a DataLabelingJob message. Also converts values to other types if specified. + * @param message DataLabelingJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DataLabelingJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringAlertConfig to JSON. + * Converts this DataLabelingJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelMonitoringAlertConfig + * Gets the default type url for DataLabelingJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelMonitoringAlertConfig { + /** Properties of an ActiveLearningConfig. */ + interface IActiveLearningConfig { - /** Properties of an EmailAlertConfig. */ - interface IEmailAlertConfig { + /** ActiveLearningConfig maxDataItemCount */ + maxDataItemCount?: (number|Long|string|null); - /** EmailAlertConfig userEmails */ - userEmails?: (string[]|null); - } + /** ActiveLearningConfig maxDataItemPercentage */ + maxDataItemPercentage?: (number|null); - /** Represents an EmailAlertConfig. */ - class EmailAlertConfig implements IEmailAlertConfig { + /** ActiveLearningConfig sampleConfig */ + sampleConfig?: (google.cloud.aiplatform.v1beta1.ISampleConfig|null); - /** - * Constructs a new EmailAlertConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig); + /** ActiveLearningConfig trainingConfig */ + trainingConfig?: (google.cloud.aiplatform.v1beta1.ITrainingConfig|null); + } - /** EmailAlertConfig userEmails. */ - public userEmails: string[]; + /** Represents an ActiveLearningConfig. */ + class ActiveLearningConfig implements IActiveLearningConfig { - /** - * Creates a new EmailAlertConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns EmailAlertConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; + /** + * Constructs a new ActiveLearningConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IActiveLearningConfig); - /** - * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. - * @param message EmailAlertConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** ActiveLearningConfig maxDataItemCount. */ + public maxDataItemCount?: (number|Long|string|null); - /** - * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. - * @param message EmailAlertConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** ActiveLearningConfig maxDataItemPercentage. */ + public maxDataItemPercentage?: (number|null); - /** - * Decodes an EmailAlertConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EmailAlertConfig - * @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.ModelMonitoringAlertConfig.EmailAlertConfig; + /** ActiveLearningConfig sampleConfig. */ + public sampleConfig?: (google.cloud.aiplatform.v1beta1.ISampleConfig|null); - /** - * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EmailAlertConfig - * @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.ModelMonitoringAlertConfig.EmailAlertConfig; + /** ActiveLearningConfig trainingConfig. */ + public trainingConfig?: (google.cloud.aiplatform.v1beta1.ITrainingConfig|null); - /** - * Verifies an EmailAlertConfig 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); + /** ActiveLearningConfig humanLabelingBudget. */ + public humanLabelingBudget?: ("maxDataItemCount"|"maxDataItemPercentage"); - /** - * Creates an EmailAlertConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EmailAlertConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; + /** + * Creates a new ActiveLearningConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ActiveLearningConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IActiveLearningConfig): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; - /** - * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. - * @param message EmailAlertConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified ActiveLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify|verify} messages. + * @param message ActiveLearningConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IActiveLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this EmailAlertConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified ActiveLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify|verify} messages. + * @param message ActiveLearningConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IActiveLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for EmailAlertConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes an ActiveLearningConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ActiveLearningConfig + * @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.ActiveLearningConfig; + + /** + * Decodes an ActiveLearningConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ActiveLearningConfig + * @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.ActiveLearningConfig; + + /** + * Verifies an ActiveLearningConfig 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 ActiveLearningConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ActiveLearningConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; + + /** + * Creates a plain object from an ActiveLearningConfig message. Also converts values to other types if specified. + * @param message ActiveLearningConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ActiveLearningConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ActiveLearningConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ActiveLearningConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ThresholdConfig. */ - interface IThresholdConfig { + /** Properties of a SampleConfig. */ + interface ISampleConfig { - /** ThresholdConfig value */ - value?: (number|null); + /** SampleConfig initialBatchSamplePercentage */ + initialBatchSamplePercentage?: (number|null); + + /** SampleConfig followingBatchSamplePercentage */ + followingBatchSamplePercentage?: (number|null); + + /** SampleConfig sampleStrategy */ + sampleStrategy?: (google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|keyof typeof google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|null); } - /** Represents a ThresholdConfig. */ - class ThresholdConfig implements IThresholdConfig { + /** Represents a SampleConfig. */ + class SampleConfig implements ISampleConfig { /** - * Constructs a new ThresholdConfig. + * Constructs a new SampleConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IThresholdConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISampleConfig); - /** ThresholdConfig value. */ - public value?: (number|null); + /** SampleConfig initialBatchSamplePercentage. */ + public initialBatchSamplePercentage?: (number|null); - /** ThresholdConfig threshold. */ - public threshold?: "value"; + /** SampleConfig followingBatchSamplePercentage. */ + public followingBatchSamplePercentage?: (number|null); + + /** SampleConfig sampleStrategy. */ + public sampleStrategy: (google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|keyof typeof google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy); + + /** SampleConfig initialBatchSampleSize. */ + public initialBatchSampleSize?: "initialBatchSamplePercentage"; + + /** SampleConfig followingBatchSampleSize. */ + public followingBatchSampleSize?: "followingBatchSamplePercentage"; /** - * Creates a new ThresholdConfig instance using the specified properties. + * Creates a new SampleConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ThresholdConfig instance + * @returns SampleConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IThresholdConfig): google.cloud.aiplatform.v1beta1.ThresholdConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISampleConfig): google.cloud.aiplatform.v1beta1.SampleConfig; /** - * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode + * Encodes the specified SampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.verify|verify} messages. + * @param message SampleConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode + * Encodes the specified SampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.verify|verify} messages. + * @param message SampleConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ThresholdConfig message from the specified reader or buffer. + * Decodes a SampleConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ThresholdConfig + * @returns SampleConfig * @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.ThresholdConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SampleConfig; /** - * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. + * Decodes a SampleConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ThresholdConfig + * @returns SampleConfig * @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.ThresholdConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SampleConfig; /** - * Verifies a ThresholdConfig message. + * Verifies a SampleConfig 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 ThresholdConfig message from a plain object. Also converts values to their respective internal types. + * Creates a SampleConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ThresholdConfig + * @returns SampleConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ThresholdConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SampleConfig; /** - * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. - * @param message ThresholdConfig + * Creates a plain object from a SampleConfig message. Also converts values to other types if specified. + * @param message SampleConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ThresholdConfig to JSON. + * Converts this SampleConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ThresholdConfig + * Gets the default type url for SampleConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SamplingStrategy. */ - interface ISamplingStrategy { + namespace SampleConfig { - /** SamplingStrategy randomSampleConfig */ - randomSampleConfig?: (google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null); + /** SampleStrategy enum. */ + enum SampleStrategy { + SAMPLE_STRATEGY_UNSPECIFIED = 0, + UNCERTAINTY = 1 + } } - /** Represents a SamplingStrategy. */ - class SamplingStrategy implements ISamplingStrategy { + /** Properties of a TrainingConfig. */ + interface ITrainingConfig { + + /** TrainingConfig timeoutTrainingMilliHours */ + timeoutTrainingMilliHours?: (number|Long|string|null); + } + + /** Represents a TrainingConfig. */ + class TrainingConfig implements ITrainingConfig { /** - * Constructs a new SamplingStrategy. + * Constructs a new TrainingConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISamplingStrategy); + constructor(properties?: google.cloud.aiplatform.v1beta1.ITrainingConfig); - /** SamplingStrategy randomSampleConfig. */ - public randomSampleConfig?: (google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null); + /** TrainingConfig timeoutTrainingMilliHours. */ + public timeoutTrainingMilliHours: (number|Long|string); /** - * Creates a new SamplingStrategy instance using the specified properties. + * Creates a new TrainingConfig instance using the specified properties. * @param [properties] Properties to set - * @returns SamplingStrategy instance + * @returns TrainingConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISamplingStrategy): google.cloud.aiplatform.v1beta1.SamplingStrategy; + public static create(properties?: google.cloud.aiplatform.v1beta1.ITrainingConfig): google.cloud.aiplatform.v1beta1.TrainingConfig; /** - * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.verify|verify} messages. - * @param message SamplingStrategy message or plain object to encode + * Encodes the specified TrainingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.verify|verify} messages. + * @param message TrainingConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ITrainingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.verify|verify} messages. - * @param message SamplingStrategy message or plain object to encode + * Encodes the specified TrainingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.verify|verify} messages. + * @param message TrainingConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITrainingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SamplingStrategy message from the specified reader or buffer. + * Decodes a TrainingConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SamplingStrategy + * @returns TrainingConfig * @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.SamplingStrategy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.TrainingConfig; /** - * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. + * Decodes a TrainingConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SamplingStrategy + * @returns TrainingConfig * @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.SamplingStrategy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.TrainingConfig; /** - * Verifies a SamplingStrategy message. + * Verifies a TrainingConfig 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 SamplingStrategy message from a plain object. Also converts values to their respective internal types. + * Creates a TrainingConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SamplingStrategy + * @returns TrainingConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SamplingStrategy; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TrainingConfig; /** - * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. - * @param message SamplingStrategy + * Creates a plain object from a TrainingConfig message. Also converts values to other types if specified. + * @param message TrainingConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SamplingStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.TrainingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SamplingStrategy to JSON. + * Converts this TrainingConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SamplingStrategy + * Gets the default type url for TrainingConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace SamplingStrategy { + /** Properties of a Dataset. */ + interface IDataset { - /** Properties of a RandomSampleConfig. */ - interface IRandomSampleConfig { + /** Dataset name */ + name?: (string|null); - /** RandomSampleConfig sampleRate */ - sampleRate?: (number|null); - } + /** Dataset displayName */ + displayName?: (string|null); - /** Represents a RandomSampleConfig. */ - class RandomSampleConfig implements IRandomSampleConfig { + /** Dataset description */ + description?: (string|null); - /** - * Constructs a new RandomSampleConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig); + /** Dataset metadataSchemaUri */ + metadataSchemaUri?: (string|null); - /** RandomSampleConfig sampleRate. */ - public sampleRate: number; + /** Dataset metadata */ + metadata?: (google.protobuf.IValue|null); - /** - * Creates a new RandomSampleConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns RandomSampleConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig): google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; + /** Dataset createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. - * @param message RandomSampleConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** Dataset updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. - * @param message RandomSampleConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** Dataset etag */ + etag?: (string|null); - /** - * Decodes a RandomSampleConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RandomSampleConfig - * @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.SamplingStrategy.RandomSampleConfig; + /** Dataset labels */ + labels?: ({ [k: string]: string }|null); - /** - * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RandomSampleConfig - * @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.SamplingStrategy.RandomSampleConfig; + /** Dataset savedQueries */ + savedQueries?: (google.cloud.aiplatform.v1beta1.ISavedQuery[]|null); - /** - * Verifies a RandomSampleConfig 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); + /** Dataset encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** - * Creates a RandomSampleConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RandomSampleConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; + /** Dataset metadataArtifact */ + metadataArtifact?: (string|null); + } - /** - * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. - * @param message RandomSampleConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a Dataset. */ + class Dataset implements IDataset { - /** - * Converts this RandomSampleConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new Dataset. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDataset); - /** - * Gets the default type url for RandomSampleConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** Dataset name. */ + public name: string; - /** Properties of an UnmanagedContainerModel. */ - interface IUnmanagedContainerModel { + /** Dataset displayName. */ + public displayName: string; - /** UnmanagedContainerModel artifactUri */ - artifactUri?: (string|null); + /** Dataset description. */ + public description: string; - /** UnmanagedContainerModel predictSchemata */ - predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + /** Dataset metadataSchemaUri. */ + public metadataSchemaUri: string; - /** UnmanagedContainerModel containerSpec */ - containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); - } + /** Dataset metadata. */ + public metadata?: (google.protobuf.IValue|null); - /** Represents an UnmanagedContainerModel. */ - class UnmanagedContainerModel implements IUnmanagedContainerModel { + /** Dataset createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new UnmanagedContainerModel. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel); + /** Dataset updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** UnmanagedContainerModel artifactUri. */ - public artifactUri: string; + /** Dataset etag. */ + public etag: string; - /** UnmanagedContainerModel predictSchemata. */ - public predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + /** Dataset labels. */ + public labels: { [k: string]: string }; - /** UnmanagedContainerModel containerSpec. */ - public containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + /** Dataset savedQueries. */ + public savedQueries: google.cloud.aiplatform.v1beta1.ISavedQuery[]; + + /** Dataset encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** Dataset metadataArtifact. */ + public metadataArtifact: string; /** - * Creates a new UnmanagedContainerModel instance using the specified properties. + * Creates a new Dataset instance using the specified properties. * @param [properties] Properties to set - * @returns UnmanagedContainerModel instance + * @returns Dataset instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDataset): google.cloud.aiplatform.v1beta1.Dataset; /** - * Encodes the specified UnmanagedContainerModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.verify|verify} messages. - * @param message UnmanagedContainerModel message or plain object to encode + * Encodes the specified Dataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.verify|verify} messages. + * @param message Dataset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UnmanagedContainerModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.verify|verify} messages. - * @param message UnmanagedContainerModel message or plain object to encode + * Encodes the specified Dataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.verify|verify} messages. + * @param message Dataset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UnmanagedContainerModel message from the specified reader or buffer. + * Decodes a Dataset message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UnmanagedContainerModel + * @returns Dataset * @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.UnmanagedContainerModel; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Dataset; /** - * Decodes an UnmanagedContainerModel message from the specified reader or buffer, length delimited. + * Decodes a Dataset message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UnmanagedContainerModel + * @returns Dataset * @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.UnmanagedContainerModel; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Dataset; /** - * Verifies an UnmanagedContainerModel message. + * Verifies a Dataset 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 UnmanagedContainerModel message from a plain object. Also converts values to their respective internal types. + * Creates a Dataset message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UnmanagedContainerModel + * @returns Dataset */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Dataset; /** - * Creates a plain object from an UnmanagedContainerModel message. Also converts values to other types if specified. - * @param message UnmanagedContainerModel + * Creates a plain object from a Dataset message. Also converts values to other types if specified. + * @param message Dataset * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UnmanagedContainerModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Dataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UnmanagedContainerModel to JSON. + * Converts this Dataset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UnmanagedContainerModel + * Gets the default type url for Dataset * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Model. */ - interface IModel { - - /** Model name */ - name?: (string|null); - - /** Model versionId */ - versionId?: (string|null); - - /** Model versionAliases */ - versionAliases?: (string[]|null); - - /** Model versionCreateTime */ - versionCreateTime?: (google.protobuf.ITimestamp|null); - - /** Model versionUpdateTime */ - versionUpdateTime?: (google.protobuf.ITimestamp|null); - - /** Model displayName */ - displayName?: (string|null); - - /** Model description */ - description?: (string|null); - - /** Model versionDescription */ - versionDescription?: (string|null); - - /** Model predictSchemata */ - predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); - - /** Model metadataSchemaUri */ - metadataSchemaUri?: (string|null); - - /** Model metadata */ - metadata?: (google.protobuf.IValue|null); - - /** Model supportedExportFormats */ - supportedExportFormats?: (google.cloud.aiplatform.v1beta1.Model.IExportFormat[]|null); - - /** Model trainingPipeline */ - trainingPipeline?: (string|null); - - /** Model containerSpec */ - containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); - - /** Model artifactUri */ - artifactUri?: (string|null); - - /** Model supportedDeploymentResourcesTypes */ - supportedDeploymentResourcesTypes?: (google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType[]|null); - - /** Model supportedInputStorageFormats */ - supportedInputStorageFormats?: (string[]|null); - - /** Model supportedOutputStorageFormats */ - supportedOutputStorageFormats?: (string[]|null); - - /** Model createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Model updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Model deployedModels */ - deployedModels?: (google.cloud.aiplatform.v1beta1.IDeployedModelRef[]|null); - - /** Model explanationSpec */ - explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); - - /** Model etag */ - etag?: (string|null); + /** Properties of an ImportDataConfig. */ + interface IImportDataConfig { - /** Model labels */ - labels?: ({ [k: string]: string }|null); + /** ImportDataConfig gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** Model encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ImportDataConfig dataItemLabels */ + dataItemLabels?: ({ [k: string]: string }|null); - /** Model modelSourceInfo */ - modelSourceInfo?: (google.cloud.aiplatform.v1beta1.IModelSourceInfo|null); + /** ImportDataConfig annotationLabels */ + annotationLabels?: ({ [k: string]: string }|null); - /** Model metadataArtifact */ - metadataArtifact?: (string|null); + /** ImportDataConfig importSchemaUri */ + importSchemaUri?: (string|null); } - /** Represents a Model. */ - class Model implements IModel { + /** Represents an ImportDataConfig. */ + class ImportDataConfig implements IImportDataConfig { /** - * Constructs a new Model. + * Constructs a new ImportDataConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModel); - - /** Model name. */ - public name: string; - - /** Model versionId. */ - public versionId: string; - - /** Model versionAliases. */ - public versionAliases: string[]; - - /** Model versionCreateTime. */ - public versionCreateTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataConfig); - /** Model versionUpdateTime. */ - public versionUpdateTime?: (google.protobuf.ITimestamp|null); + /** ImportDataConfig gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** Model displayName. */ - public displayName: string; + /** ImportDataConfig dataItemLabels. */ + public dataItemLabels: { [k: string]: string }; - /** Model description. */ - public description: string; + /** ImportDataConfig annotationLabels. */ + public annotationLabels: { [k: string]: string }; - /** Model versionDescription. */ - public versionDescription: string; + /** ImportDataConfig importSchemaUri. */ + public importSchemaUri: string; - /** Model predictSchemata. */ - public predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + /** ImportDataConfig source. */ + public source?: "gcsSource"; - /** Model metadataSchemaUri. */ - public metadataSchemaUri: string; + /** + * Creates a new ImportDataConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportDataConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataConfig): google.cloud.aiplatform.v1beta1.ImportDataConfig; - /** Model metadata. */ - public metadata?: (google.protobuf.IValue|null); + /** + * Encodes the specified ImportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.verify|verify} messages. + * @param message ImportDataConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Model supportedExportFormats. */ - public supportedExportFormats: google.cloud.aiplatform.v1beta1.Model.IExportFormat[]; + /** + * Encodes the specified ImportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.verify|verify} messages. + * @param message ImportDataConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Model trainingPipeline. */ - public trainingPipeline: string; + /** + * Decodes an ImportDataConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImportDataConfig + * @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.ImportDataConfig; - /** Model containerSpec. */ - public containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + /** + * Decodes an ImportDataConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImportDataConfig + * @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.ImportDataConfig; - /** Model artifactUri. */ - public artifactUri: string; + /** + * Verifies an ImportDataConfig 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); - /** Model supportedDeploymentResourcesTypes. */ - public supportedDeploymentResourcesTypes: google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType[]; + /** + * Creates an ImportDataConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportDataConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataConfig; - /** Model supportedInputStorageFormats. */ - public supportedInputStorageFormats: string[]; + /** + * Creates a plain object from an ImportDataConfig message. Also converts values to other types if specified. + * @param message ImportDataConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Model supportedOutputStorageFormats. */ - public supportedOutputStorageFormats: string[]; + /** + * Converts this ImportDataConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Model createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Gets the default type url for ImportDataConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Model updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of an ExportDataConfig. */ + interface IExportDataConfig { - /** Model deployedModels. */ - public deployedModels: google.cloud.aiplatform.v1beta1.IDeployedModelRef[]; + /** ExportDataConfig gcsDestination */ + gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** Model explanationSpec. */ - public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + /** ExportDataConfig annotationsFilter */ + annotationsFilter?: (string|null); + } - /** Model etag. */ - public etag: string; + /** Represents an ExportDataConfig. */ + class ExportDataConfig implements IExportDataConfig { - /** Model labels. */ - public labels: { [k: string]: string }; + /** + * Constructs a new ExportDataConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataConfig); - /** Model encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ExportDataConfig gcsDestination. */ + public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** Model modelSourceInfo. */ - public modelSourceInfo?: (google.cloud.aiplatform.v1beta1.IModelSourceInfo|null); + /** ExportDataConfig annotationsFilter. */ + public annotationsFilter: string; - /** Model metadataArtifact. */ - public metadataArtifact: string; + /** ExportDataConfig destination. */ + public destination?: "gcsDestination"; /** - * Creates a new Model instance using the specified properties. + * Creates a new ExportDataConfig instance using the specified properties. * @param [properties] Properties to set - * @returns Model instance + * @returns ExportDataConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModel): google.cloud.aiplatform.v1beta1.Model; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataConfig): google.cloud.aiplatform.v1beta1.ExportDataConfig; /** - * Encodes the specified Model message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.verify|verify} messages. - * @param message Model message or plain object to encode + * Encodes the specified ExportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.verify|verify} messages. + * @param message ExportDataConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Model message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.verify|verify} messages. - * @param message Model message or plain object to encode + * Encodes the specified ExportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.verify|verify} messages. + * @param message ExportDataConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Model message from the specified reader or buffer. + * Decodes an ExportDataConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Model + * @returns ExportDataConfig * @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; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataConfig; /** - * Decodes a Model message from the specified reader or buffer, length delimited. + * Decodes an ExportDataConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Model + * @returns ExportDataConfig * @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; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataConfig; /** - * Verifies a Model message. + * Verifies an ExportDataConfig 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 Model message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Model + * @returns ExportDataConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataConfig; /** - * Creates a plain object from a Model message. Also converts values to other types if specified. - * @param message Model + * Creates a plain object from an ExportDataConfig message. Also converts values to other types if specified. + * @param message ExportDataConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Model, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Model to JSON. + * Converts this ExportDataConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Model + * Gets the default type url for ExportDataConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Model { - - /** Properties of an ExportFormat. */ - interface IExportFormat { - - /** ExportFormat id */ - id?: (string|null); - - /** ExportFormat exportableContents */ - exportableContents?: (google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[]|null); - } - - /** Represents an ExportFormat. */ - class ExportFormat implements IExportFormat { - - /** - * Constructs a new ExportFormat. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Model.IExportFormat); - - /** ExportFormat id. */ - public id: string; - - /** ExportFormat exportableContents. */ - public exportableContents: google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[]; + /** Properties of a SavedQuery. */ + interface ISavedQuery { - /** - * Creates a new ExportFormat instance using the specified properties. - * @param [properties] Properties to set - * @returns ExportFormat instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Model.IExportFormat): google.cloud.aiplatform.v1beta1.Model.ExportFormat; + /** SavedQuery name */ + name?: (string|null); - /** - * Encodes the specified ExportFormat message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify|verify} messages. - * @param message ExportFormat message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.Model.IExportFormat, writer?: $protobuf.Writer): $protobuf.Writer; + /** SavedQuery displayName */ + displayName?: (string|null); - /** - * Encodes the specified ExportFormat message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify|verify} messages. - * @param message ExportFormat message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Model.IExportFormat, writer?: $protobuf.Writer): $protobuf.Writer; + /** SavedQuery metadata */ + metadata?: (google.protobuf.IValue|null); - /** - * Decodes an ExportFormat message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExportFormat - * @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.ExportFormat; + /** SavedQuery createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes an ExportFormat message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExportFormat - * @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.ExportFormat; + /** SavedQuery updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Verifies an ExportFormat 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); + /** SavedQuery annotationFilter */ + annotationFilter?: (string|null); - /** - * Creates an ExportFormat message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExportFormat - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model.ExportFormat; + /** SavedQuery problemType */ + problemType?: (string|null); - /** - * Creates a plain object from an ExportFormat message. Also converts values to other types if specified. - * @param message ExportFormat - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Model.ExportFormat, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** SavedQuery annotationSpecCount */ + annotationSpecCount?: (number|null); - /** - * Converts this ExportFormat to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** SavedQuery etag */ + etag?: (string|null); - /** - * Gets the default type url for ExportFormat - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** SavedQuery supportAutomlTraining */ + supportAutomlTraining?: (boolean|null); + } - namespace ExportFormat { + /** Represents a SavedQuery. */ + class SavedQuery implements ISavedQuery { - /** ExportableContent enum. */ - enum ExportableContent { - EXPORTABLE_CONTENT_UNSPECIFIED = 0, - ARTIFACT = 1, - IMAGE = 2 - } - } + /** + * Constructs a new SavedQuery. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ISavedQuery); - /** DeploymentResourcesType enum. */ - enum DeploymentResourcesType { - DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED = 0, - DEDICATED_RESOURCES = 1, - AUTOMATIC_RESOURCES = 2, - SHARED_RESOURCES = 3 - } - } + /** SavedQuery name. */ + public name: string; - /** Properties of a PredictSchemata. */ - interface IPredictSchemata { + /** SavedQuery displayName. */ + public displayName: string; - /** PredictSchemata instanceSchemaUri */ - instanceSchemaUri?: (string|null); + /** SavedQuery metadata. */ + public metadata?: (google.protobuf.IValue|null); - /** PredictSchemata parametersSchemaUri */ - parametersSchemaUri?: (string|null); + /** SavedQuery createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** PredictSchemata predictionSchemaUri */ - predictionSchemaUri?: (string|null); - } + /** SavedQuery updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** Represents a PredictSchemata. */ - class PredictSchemata implements IPredictSchemata { + /** SavedQuery annotationFilter. */ + public annotationFilter: string; - /** - * Constructs a new PredictSchemata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictSchemata); + /** SavedQuery problemType. */ + public problemType: string; - /** PredictSchemata instanceSchemaUri. */ - public instanceSchemaUri: string; + /** SavedQuery annotationSpecCount. */ + public annotationSpecCount: number; - /** PredictSchemata parametersSchemaUri. */ - public parametersSchemaUri: string; + /** SavedQuery etag. */ + public etag: string; - /** PredictSchemata predictionSchemaUri. */ - public predictionSchemaUri: string; + /** SavedQuery supportAutomlTraining. */ + public supportAutomlTraining: boolean; /** - * Creates a new PredictSchemata instance using the specified properties. + * Creates a new SavedQuery instance using the specified properties. * @param [properties] Properties to set - * @returns PredictSchemata instance + * @returns SavedQuery instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictSchemata): google.cloud.aiplatform.v1beta1.PredictSchemata; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISavedQuery): google.cloud.aiplatform.v1beta1.SavedQuery; /** - * Encodes the specified PredictSchemata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.verify|verify} messages. - * @param message PredictSchemata message or plain object to encode + * Encodes the specified SavedQuery message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SavedQuery.verify|verify} messages. + * @param message SavedQuery message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPredictSchemata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISavedQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PredictSchemata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.verify|verify} messages. - * @param message PredictSchemata message or plain object to encode + * Encodes the specified SavedQuery message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SavedQuery.verify|verify} messages. + * @param message SavedQuery message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredictSchemata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISavedQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PredictSchemata message from the specified reader or buffer. + * Decodes a SavedQuery message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PredictSchemata + * @returns SavedQuery * @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.PredictSchemata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SavedQuery; /** - * Decodes a PredictSchemata message from the specified reader or buffer, length delimited. + * Decodes a SavedQuery message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PredictSchemata + * @returns SavedQuery * @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.PredictSchemata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SavedQuery; /** - * Verifies a PredictSchemata message. + * Verifies a SavedQuery 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 PredictSchemata message from a plain object. Also converts values to their respective internal types. + * Creates a SavedQuery message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PredictSchemata + * @returns SavedQuery */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictSchemata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SavedQuery; /** - * Creates a plain object from a PredictSchemata message. Also converts values to other types if specified. - * @param message PredictSchemata + * Creates a plain object from a SavedQuery message. Also converts values to other types if specified. + * @param message SavedQuery * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PredictSchemata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SavedQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PredictSchemata to JSON. + * Converts this SavedQuery to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PredictSchemata + * Gets the default type url for SavedQuery * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ModelContainerSpec. */ - interface IModelContainerSpec { - - /** ModelContainerSpec imageUri */ - imageUri?: (string|null); + /** Represents a DatasetService */ + class DatasetService extends $protobuf.rpc.Service { - /** ModelContainerSpec command */ - command?: (string[]|null); + /** + * Constructs a new DatasetService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** ModelContainerSpec args */ - args?: (string[]|null); + /** + * Creates new DatasetService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DatasetService; - /** ModelContainerSpec env */ - env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); + /** + * Calls CreateDataset. + * @param request CreateDatasetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createDataset(request: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.CreateDatasetCallback): void; - /** ModelContainerSpec ports */ - ports?: (google.cloud.aiplatform.v1beta1.IPort[]|null); + /** + * Calls CreateDataset. + * @param request CreateDatasetRequest message or plain object + * @returns Promise + */ + public createDataset(request: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest): Promise; - /** ModelContainerSpec predictRoute */ - predictRoute?: (string|null); + /** + * Calls GetDataset. + * @param request GetDatasetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Dataset + */ + public getDataset(request: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.GetDatasetCallback): void; - /** ModelContainerSpec healthRoute */ - healthRoute?: (string|null); - } + /** + * Calls GetDataset. + * @param request GetDatasetRequest message or plain object + * @returns Promise + */ + public getDataset(request: google.cloud.aiplatform.v1beta1.IGetDatasetRequest): Promise; - /** Represents a ModelContainerSpec. */ - class ModelContainerSpec implements IModelContainerSpec { + /** + * Calls UpdateDataset. + * @param request UpdateDatasetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Dataset + */ + public updateDataset(request: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.UpdateDatasetCallback): void; /** - * Constructs a new ModelContainerSpec. - * @param [properties] Properties to set + * Calls UpdateDataset. + * @param request UpdateDatasetRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelContainerSpec); + public updateDataset(request: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest): Promise; - /** ModelContainerSpec imageUri. */ - public imageUri: string; + /** + * Calls ListDatasets. + * @param request ListDatasetsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDatasetsResponse + */ + public listDatasets(request: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListDatasetsCallback): void; - /** ModelContainerSpec command. */ - public command: string[]; + /** + * Calls ListDatasets. + * @param request ListDatasetsRequest message or plain object + * @returns Promise + */ + public listDatasets(request: google.cloud.aiplatform.v1beta1.IListDatasetsRequest): Promise; - /** ModelContainerSpec args. */ - public args: string[]; + /** + * Calls DeleteDataset. + * @param request DeleteDatasetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteDataset(request: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.DeleteDatasetCallback): void; - /** ModelContainerSpec env. */ - public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; + /** + * Calls DeleteDataset. + * @param request DeleteDatasetRequest message or plain object + * @returns Promise + */ + public deleteDataset(request: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest): Promise; - /** ModelContainerSpec ports. */ - public ports: google.cloud.aiplatform.v1beta1.IPort[]; + /** + * Calls ImportData. + * @param request ImportDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public importData(request: google.cloud.aiplatform.v1beta1.IImportDataRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ImportDataCallback): void; - /** ModelContainerSpec predictRoute. */ - public predictRoute: string; + /** + * Calls ImportData. + * @param request ImportDataRequest message or plain object + * @returns Promise + */ + public importData(request: google.cloud.aiplatform.v1beta1.IImportDataRequest): Promise; - /** ModelContainerSpec healthRoute. */ - public healthRoute: string; + /** + * Calls ExportData. + * @param request ExportDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public exportData(request: google.cloud.aiplatform.v1beta1.IExportDataRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ExportDataCallback): void; /** - * Creates a new ModelContainerSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns ModelContainerSpec instance + * Calls ExportData. + * @param request ExportDataRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelContainerSpec): google.cloud.aiplatform.v1beta1.ModelContainerSpec; + public exportData(request: google.cloud.aiplatform.v1beta1.IExportDataRequest): Promise; /** - * Encodes the specified ModelContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify|verify} messages. - * @param message ModelContainerSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListDataItems. + * @param request ListDataItemsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDataItemsResponse */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public listDataItems(request: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListDataItemsCallback): void; /** - * Encodes the specified ModelContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify|verify} messages. - * @param message ModelContainerSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListDataItems. + * @param request ListDataItemsRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public listDataItems(request: google.cloud.aiplatform.v1beta1.IListDataItemsRequest): Promise; /** - * Decodes a ModelContainerSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ModelContainerSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls SearchDataItems. + * @param request SearchDataItemsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchDataItemsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelContainerSpec; + public searchDataItems(request: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItemsCallback): void; /** - * Decodes a ModelContainerSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ModelContainerSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls SearchDataItems. + * @param request SearchDataItemsRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelContainerSpec; + public searchDataItems(request: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest): Promise; /** - * Verifies a ModelContainerSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListSavedQueries. + * @param request ListSavedQueriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSavedQueriesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public listSavedQueries(request: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueriesCallback): void; /** - * Creates a ModelContainerSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ModelContainerSpec + * Calls ListSavedQueries. + * @param request ListSavedQueriesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelContainerSpec; + public listSavedQueries(request: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest): Promise; /** - * Creates a plain object from a ModelContainerSpec message. Also converts values to other types if specified. - * @param message ModelContainerSpec - * @param [options] Conversion options - * @returns Plain object + * Calls GetAnnotationSpec. + * @param request GetAnnotationSpecRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AnnotationSpec */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelContainerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public getAnnotationSpec(request: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.GetAnnotationSpecCallback): void; /** - * Converts this ModelContainerSpec to JSON. - * @returns JSON object + * Calls GetAnnotationSpec. + * @param request GetAnnotationSpecRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public getAnnotationSpec(request: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest): Promise; /** - * Gets the default type url for ModelContainerSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls ListAnnotations. + * @param request ListAnnotationsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListAnnotationsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a Port. */ - interface IPort { + public listAnnotations(request: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotationsCallback): void; - /** Port containerPort */ - containerPort?: (number|null); + /** + * Calls ListAnnotations. + * @param request ListAnnotationsRequest message or plain object + * @returns Promise + */ + public listAnnotations(request: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest): Promise; } - /** Represents a Port. */ - class Port implements IPort { + namespace DatasetService { /** - * Constructs a new Port. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|createDataset}. + * @param error Error, if any + * @param [response] Operation */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPort); + type CreateDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** Port containerPort. */ - public containerPort: number; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|getDataset}. + * @param error Error, if any + * @param [response] Dataset + */ + type GetDatasetCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Dataset) => void; /** - * Creates a new Port instance using the specified properties. - * @param [properties] Properties to set - * @returns Port instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|updateDataset}. + * @param error Error, if any + * @param [response] Dataset */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPort): google.cloud.aiplatform.v1beta1.Port; + type UpdateDatasetCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Dataset) => void; /** - * Encodes the specified Port message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Port.verify|verify} messages. - * @param message Port message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|listDatasets}. + * @param error Error, if any + * @param [response] ListDatasetsResponse */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPort, writer?: $protobuf.Writer): $protobuf.Writer; + type ListDatasetsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDatasetsResponse) => void; /** - * Encodes the specified Port message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Port.verify|verify} messages. - * @param message Port message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|deleteDataset}. + * @param error Error, if any + * @param [response] Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPort, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a Port message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Port - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|importData}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Port; + type ImportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a Port message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Port - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|exportData}. + * @param error Error, if any + * @param [response] Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Port; + type ExportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Verifies a Port message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|listDataItems}. + * @param error Error, if any + * @param [response] ListDataItemsResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ListDataItemsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDataItemsResponse) => void; /** - * Creates a Port message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Port + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|searchDataItems}. + * @param error Error, if any + * @param [response] SearchDataItemsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Port; + type SearchDataItemsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchDataItemsResponse) => void; /** - * Creates a plain object from a Port message. Also converts values to other types if specified. - * @param message Port - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|listSavedQueries}. + * @param error Error, if any + * @param [response] ListSavedQueriesResponse */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Port, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ListSavedQueriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse) => void; /** - * Converts this Port to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|getAnnotationSpec}. + * @param error Error, if any + * @param [response] AnnotationSpec */ - public toJSON(): { [k: string]: any }; + type GetAnnotationSpecCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AnnotationSpec) => void; /** - * Gets the default type url for Port - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|listAnnotations}. + * @param error Error, if any + * @param [response] ListAnnotationsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type ListAnnotationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListAnnotationsResponse) => void; } - /** Properties of a ModelSourceInfo. */ - interface IModelSourceInfo { + /** Properties of a CreateDatasetRequest. */ + interface ICreateDatasetRequest { - /** ModelSourceInfo sourceType */ - sourceType?: (google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType|keyof typeof google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType|null); + /** CreateDatasetRequest parent */ + parent?: (string|null); + + /** CreateDatasetRequest dataset */ + dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); } - /** Represents a ModelSourceInfo. */ - class ModelSourceInfo implements IModelSourceInfo { + /** Represents a CreateDatasetRequest. */ + class CreateDatasetRequest implements ICreateDatasetRequest { /** - * Constructs a new ModelSourceInfo. + * Constructs a new CreateDatasetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelSourceInfo); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest); - /** ModelSourceInfo sourceType. */ - public sourceType: (google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType|keyof typeof google.cloud.aiplatform.v1beta1.ModelSourceInfo.ModelSourceType); + /** CreateDatasetRequest parent. */ + public parent: string; + + /** CreateDatasetRequest dataset. */ + public dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); /** - * Creates a new ModelSourceInfo instance using the specified properties. + * Creates a new CreateDatasetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelSourceInfo instance + * @returns CreateDatasetRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelSourceInfo): google.cloud.aiplatform.v1beta1.ModelSourceInfo; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; /** - * Encodes the specified ModelSourceInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelSourceInfo.verify|verify} messages. - * @param message ModelSourceInfo message or plain object to encode + * Encodes the specified CreateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetRequest.verify|verify} messages. + * @param message CreateDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelSourceInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelSourceInfo.verify|verify} messages. - * @param message ModelSourceInfo message or plain object to encode + * Encodes the specified CreateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetRequest.verify|verify} messages. + * @param message CreateDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelSourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelSourceInfo message from the specified reader or buffer. + * Decodes a CreateDatasetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelSourceInfo + * @returns CreateDatasetRequest * @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.ModelSourceInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; /** - * Decodes a ModelSourceInfo message from the specified reader or buffer, length delimited. + * Decodes a CreateDatasetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelSourceInfo + * @returns CreateDatasetRequest * @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.ModelSourceInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; /** - * Verifies a ModelSourceInfo message. + * Verifies a CreateDatasetRequest 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 ModelSourceInfo message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDatasetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelSourceInfo + * @returns CreateDatasetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelSourceInfo; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; /** - * Creates a plain object from a ModelSourceInfo message. Also converts values to other types if specified. - * @param message ModelSourceInfo + * Creates a plain object from a CreateDatasetRequest message. Also converts values to other types if specified. + * @param message CreateDatasetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelSourceInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelSourceInfo to JSON. + * Converts this CreateDatasetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ModelSourceInfo + * Gets the default type url for CreateDatasetRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ModelSourceInfo { - - /** ModelSourceType enum. */ - enum ModelSourceType { - MODEL_SOURCE_TYPE_UNSPECIFIED = 0, - AUTOML = 1, - CUSTOM = 2, - BQML = 3 - } - } - - /** Properties of a DeployedModelRef. */ - interface IDeployedModelRef { - - /** DeployedModelRef endpoint */ - endpoint?: (string|null); + /** Properties of a CreateDatasetOperationMetadata. */ + interface ICreateDatasetOperationMetadata { - /** DeployedModelRef deployedModelId */ - deployedModelId?: (string|null); + /** CreateDatasetOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a DeployedModelRef. */ - class DeployedModelRef implements IDeployedModelRef { + /** Represents a CreateDatasetOperationMetadata. */ + class CreateDatasetOperationMetadata implements ICreateDatasetOperationMetadata { /** - * Constructs a new DeployedModelRef. + * Constructs a new CreateDatasetOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedModelRef); - - /** DeployedModelRef endpoint. */ - public endpoint: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata); - /** DeployedModelRef deployedModelId. */ - public deployedModelId: string; + /** CreateDatasetOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new DeployedModelRef instance using the specified properties. + * Creates a new CreateDatasetOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedModelRef instance + * @returns CreateDatasetOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedModelRef): google.cloud.aiplatform.v1beta1.DeployedModelRef; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; /** - * Encodes the specified DeployedModelRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModelRef.verify|verify} messages. - * @param message DeployedModelRef message or plain object to encode + * Encodes the specified CreateDatasetOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.verify|verify} messages. + * @param message CreateDatasetOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedModelRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployedModelRef message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModelRef.verify|verify} messages. - * @param message DeployedModelRef message or plain object to encode + * Encodes the specified CreateDatasetOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.verify|verify} messages. + * @param message CreateDatasetOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedModelRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedModelRef message from the specified reader or buffer. + * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployedModelRef + * @returns CreateDatasetOperationMetadata * @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.DeployedModelRef; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; /** - * Decodes a DeployedModelRef message from the specified reader or buffer, length delimited. + * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployedModelRef + * @returns CreateDatasetOperationMetadata * @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.DeployedModelRef; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; /** - * Verifies a DeployedModelRef message. + * Verifies a CreateDatasetOperationMetadata 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 DeployedModelRef message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDatasetOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployedModelRef + * @returns CreateDatasetOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedModelRef; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; /** - * Creates a plain object from a DeployedModelRef message. Also converts values to other types if specified. - * @param message DeployedModelRef + * Creates a plain object from a CreateDatasetOperationMetadata message. Also converts values to other types if specified. + * @param message CreateDatasetOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedModelRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedModelRef to JSON. + * Converts this CreateDatasetOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployedModelRef + * Gets the default type url for CreateDatasetOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EnvVar. */ - interface IEnvVar { + /** Properties of a GetDatasetRequest. */ + interface IGetDatasetRequest { - /** EnvVar name */ + /** GetDatasetRequest name */ name?: (string|null); - /** EnvVar value */ - value?: (string|null); + /** GetDatasetRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents an EnvVar. */ - class EnvVar implements IEnvVar { + /** Represents a GetDatasetRequest. */ + class GetDatasetRequest implements IGetDatasetRequest { /** - * Constructs a new EnvVar. + * Constructs a new GetDatasetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEnvVar); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDatasetRequest); - /** EnvVar name. */ + /** GetDatasetRequest name. */ public name: string; - /** EnvVar value. */ - public value: string; + /** GetDatasetRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new EnvVar instance using the specified properties. + * Creates a new GetDatasetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns EnvVar instance + * @returns GetDatasetRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEnvVar): google.cloud.aiplatform.v1beta1.EnvVar; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDatasetRequest): google.cloud.aiplatform.v1beta1.GetDatasetRequest; /** - * Encodes the specified EnvVar message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.verify|verify} messages. - * @param message EnvVar message or plain object to encode + * Encodes the specified GetDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.verify|verify} messages. + * @param message GetDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IEnvVar, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnvVar message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.verify|verify} messages. - * @param message EnvVar message or plain object to encode + * Encodes the specified GetDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.verify|verify} messages. + * @param message GetDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEnvVar, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnvVar message from the specified reader or buffer. + * Decodes a GetDatasetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnvVar + * @returns GetDatasetRequest * @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.EnvVar; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetDatasetRequest; /** - * Decodes an EnvVar message from the specified reader or buffer, length delimited. + * Decodes a GetDatasetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnvVar + * @returns GetDatasetRequest * @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.EnvVar; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetDatasetRequest; /** - * Verifies an EnvVar message. + * Verifies a GetDatasetRequest 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 EnvVar message from a plain object. Also converts values to their respective internal types. + * Creates a GetDatasetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnvVar + * @returns GetDatasetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EnvVar; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDatasetRequest; /** - * Creates a plain object from an EnvVar message. Also converts values to other types if specified. - * @param message EnvVar + * Creates a plain object from a GetDatasetRequest message. Also converts values to other types if specified. + * @param message GetDatasetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.EnvVar, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnvVar to JSON. + * Converts this GetDatasetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EnvVar + * Gets the default type url for GetDatasetRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Context. */ - interface IContext { - - /** Context name */ - name?: (string|null); - - /** Context displayName */ - displayName?: (string|null); - - /** Context etag */ - etag?: (string|null); - - /** Context labels */ - labels?: ({ [k: string]: string }|null); - - /** Context createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Context updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Context parentContexts */ - parentContexts?: (string[]|null); - - /** Context schemaTitle */ - schemaTitle?: (string|null); - - /** Context schemaVersion */ - schemaVersion?: (string|null); + /** Properties of an UpdateDatasetRequest. */ + interface IUpdateDatasetRequest { - /** Context metadata */ - metadata?: (google.protobuf.IStruct|null); + /** UpdateDatasetRequest dataset */ + dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); - /** Context description */ - description?: (string|null); + /** UpdateDatasetRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a Context. */ - class Context implements IContext { + /** Represents an UpdateDatasetRequest. */ + class UpdateDatasetRequest implements IUpdateDatasetRequest { /** - * Constructs a new Context. + * Constructs a new UpdateDatasetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IContext); - - /** Context name. */ - public name: string; - - /** Context displayName. */ - public displayName: string; - - /** Context etag. */ - public etag: string; - - /** Context labels. */ - public labels: { [k: string]: string }; - - /** Context createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Context updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Context parentContexts. */ - public parentContexts: string[]; - - /** Context schemaTitle. */ - public schemaTitle: string; - - /** Context schemaVersion. */ - public schemaVersion: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest); - /** Context metadata. */ - public metadata?: (google.protobuf.IStruct|null); + /** UpdateDatasetRequest dataset. */ + public dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); - /** Context description. */ - public description: string; + /** UpdateDatasetRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new Context instance using the specified properties. + * Creates a new UpdateDatasetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Context instance + * @returns UpdateDatasetRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IContext): google.cloud.aiplatform.v1beta1.Context; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; /** - * Encodes the specified Context message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.verify|verify} messages. - * @param message Context message or plain object to encode + * Encodes the specified UpdateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.verify|verify} messages. + * @param message UpdateDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IContext, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Context message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.verify|verify} messages. - * @param message Context message or plain object to encode + * Encodes the specified UpdateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.verify|verify} messages. + * @param message UpdateDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContext, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Context message from the specified reader or buffer. + * Decodes an UpdateDatasetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Context + * @returns UpdateDatasetRequest * @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.Context; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; /** - * Decodes a Context message from the specified reader or buffer, length delimited. + * Decodes an UpdateDatasetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Context + * @returns UpdateDatasetRequest * @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.Context; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; /** - * Verifies a Context message. + * Verifies an UpdateDatasetRequest 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 Context message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDatasetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Context + * @returns UpdateDatasetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Context; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; /** - * Creates a plain object from a Context message. Also converts values to other types if specified. - * @param message Context + * Creates a plain object from an UpdateDatasetRequest message. Also converts values to other types if specified. + * @param message UpdateDatasetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Context, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Context to JSON. + * Converts this UpdateDatasetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Context + * Gets the default type url for UpdateDatasetRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CustomJob. */ - interface ICustomJob { - - /** CustomJob name */ - name?: (string|null); - - /** CustomJob displayName */ - displayName?: (string|null); - - /** CustomJob jobSpec */ - jobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - - /** CustomJob state */ - state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - - /** CustomJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** CustomJob startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** Properties of a ListDatasetsRequest. */ + interface IListDatasetsRequest { - /** CustomJob endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** ListDatasetsRequest parent */ + parent?: (string|null); - /** CustomJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** ListDatasetsRequest filter */ + filter?: (string|null); - /** CustomJob error */ - error?: (google.rpc.IStatus|null); + /** ListDatasetsRequest pageSize */ + pageSize?: (number|null); - /** CustomJob labels */ - labels?: ({ [k: string]: string }|null); + /** ListDatasetsRequest pageToken */ + pageToken?: (string|null); - /** CustomJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ListDatasetsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); - /** CustomJob webAccessUris */ - webAccessUris?: ({ [k: string]: string }|null); + /** ListDatasetsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a CustomJob. */ - class CustomJob implements ICustomJob { + /** Represents a ListDatasetsRequest. */ + class ListDatasetsRequest implements IListDatasetsRequest { /** - * Constructs a new CustomJob. + * Constructs a new ListDatasetsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICustomJob); - - /** CustomJob name. */ - public name: string; - - /** CustomJob displayName. */ - public displayName: string; - - /** CustomJob jobSpec. */ - public jobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - - /** CustomJob state. */ - public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - - /** CustomJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** CustomJob startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsRequest); - /** CustomJob endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** ListDatasetsRequest parent. */ + public parent: string; - /** CustomJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListDatasetsRequest filter. */ + public filter: string; - /** CustomJob error. */ - public error?: (google.rpc.IStatus|null); + /** ListDatasetsRequest pageSize. */ + public pageSize: number; - /** CustomJob labels. */ - public labels: { [k: string]: string }; + /** ListDatasetsRequest pageToken. */ + public pageToken: string; - /** CustomJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ListDatasetsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** CustomJob webAccessUris. */ - public webAccessUris: { [k: string]: string }; + /** ListDatasetsRequest orderBy. */ + public orderBy: string; /** - * Creates a new CustomJob instance using the specified properties. + * Creates a new ListDatasetsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CustomJob instance + * @returns ListDatasetsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICustomJob): google.cloud.aiplatform.v1beta1.CustomJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsRequest): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; /** - * Encodes the specified CustomJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.verify|verify} messages. - * @param message CustomJob message or plain object to encode + * Encodes the specified ListDatasetsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.verify|verify} messages. + * @param message ListDatasetsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICustomJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CustomJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.verify|verify} messages. - * @param message CustomJob message or plain object to encode + * Encodes the specified ListDatasetsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.verify|verify} messages. + * @param message ListDatasetsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICustomJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomJob message from the specified reader or buffer. + * Decodes a ListDatasetsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CustomJob + * @returns ListDatasetsRequest * @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.CustomJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; /** - * Decodes a CustomJob message from the specified reader or buffer, length delimited. + * Decodes a ListDatasetsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CustomJob + * @returns ListDatasetsRequest * @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.CustomJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; /** - * Verifies a CustomJob message. + * Verifies a ListDatasetsRequest 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 CustomJob message from a plain object. Also converts values to their respective internal types. + * Creates a ListDatasetsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CustomJob + * @returns ListDatasetsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CustomJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; /** - * Creates a plain object from a CustomJob message. Also converts values to other types if specified. - * @param message CustomJob + * Creates a plain object from a ListDatasetsRequest message. Also converts values to other types if specified. + * @param message ListDatasetsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CustomJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDatasetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomJob to JSON. + * Converts this ListDatasetsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CustomJob + * Gets the default type url for ListDatasetsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CustomJobSpec. */ - interface ICustomJobSpec { - - /** CustomJobSpec workerPoolSpecs */ - workerPoolSpecs?: (google.cloud.aiplatform.v1beta1.IWorkerPoolSpec[]|null); - - /** CustomJobSpec scheduling */ - scheduling?: (google.cloud.aiplatform.v1beta1.IScheduling|null); - - /** CustomJobSpec serviceAccount */ - serviceAccount?: (string|null); - - /** CustomJobSpec network */ - network?: (string|null); - - /** CustomJobSpec reservedIpRanges */ - reservedIpRanges?: (string[]|null); - - /** CustomJobSpec baseOutputDirectory */ - baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - - /** CustomJobSpec tensorboard */ - tensorboard?: (string|null); + /** Properties of a ListDatasetsResponse. */ + interface IListDatasetsResponse { - /** CustomJobSpec enableWebAccess */ - enableWebAccess?: (boolean|null); + /** ListDatasetsResponse datasets */ + datasets?: (google.cloud.aiplatform.v1beta1.IDataset[]|null); - /** CustomJobSpec enableDashboardAccess */ - enableDashboardAccess?: (boolean|null); + /** ListDatasetsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CustomJobSpec. */ - class CustomJobSpec implements ICustomJobSpec { + /** Represents a ListDatasetsResponse. */ + class ListDatasetsResponse implements IListDatasetsResponse { /** - * Constructs a new CustomJobSpec. + * Constructs a new ListDatasetsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICustomJobSpec); - - /** CustomJobSpec workerPoolSpecs. */ - public workerPoolSpecs: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec[]; - - /** CustomJobSpec scheduling. */ - public scheduling?: (google.cloud.aiplatform.v1beta1.IScheduling|null); - - /** CustomJobSpec serviceAccount. */ - public serviceAccount: string; - - /** CustomJobSpec network. */ - public network: string; - - /** CustomJobSpec reservedIpRanges. */ - public reservedIpRanges: string[]; - - /** CustomJobSpec baseOutputDirectory. */ - public baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - - /** CustomJobSpec tensorboard. */ - public tensorboard: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsResponse); - /** CustomJobSpec enableWebAccess. */ - public enableWebAccess: boolean; + /** ListDatasetsResponse datasets. */ + public datasets: google.cloud.aiplatform.v1beta1.IDataset[]; - /** CustomJobSpec enableDashboardAccess. */ - public enableDashboardAccess: boolean; + /** ListDatasetsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CustomJobSpec instance using the specified properties. + * Creates a new ListDatasetsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CustomJobSpec instance + * @returns ListDatasetsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICustomJobSpec): google.cloud.aiplatform.v1beta1.CustomJobSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsResponse): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; /** - * Encodes the specified CustomJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.verify|verify} messages. - * @param message CustomJobSpec message or plain object to encode + * Encodes the specified ListDatasetsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.verify|verify} messages. + * @param message ListDatasetsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICustomJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CustomJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.verify|verify} messages. - * @param message CustomJobSpec message or plain object to encode + * Encodes the specified ListDatasetsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.verify|verify} messages. + * @param message ListDatasetsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICustomJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomJobSpec message from the specified reader or buffer. + * Decodes a ListDatasetsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CustomJobSpec + * @returns ListDatasetsResponse * @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.CustomJobSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; /** - * Decodes a CustomJobSpec message from the specified reader or buffer, length delimited. + * Decodes a ListDatasetsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CustomJobSpec + * @returns ListDatasetsResponse * @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.CustomJobSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; /** - * Verifies a CustomJobSpec message. + * Verifies a ListDatasetsResponse 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 CustomJobSpec message from a plain object. Also converts values to their respective internal types. + * Creates a ListDatasetsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CustomJobSpec + * @returns ListDatasetsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CustomJobSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; /** - * Creates a plain object from a CustomJobSpec message. Also converts values to other types if specified. - * @param message CustomJobSpec + * Creates a plain object from a ListDatasetsResponse message. Also converts values to other types if specified. + * @param message ListDatasetsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CustomJobSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDatasetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomJobSpec to JSON. + * Converts this ListDatasetsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CustomJobSpec + * Gets the default type url for ListDatasetsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WorkerPoolSpec. */ - interface IWorkerPoolSpec { - - /** WorkerPoolSpec containerSpec */ - containerSpec?: (google.cloud.aiplatform.v1beta1.IContainerSpec|null); - - /** WorkerPoolSpec pythonPackageSpec */ - pythonPackageSpec?: (google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null); - - /** WorkerPoolSpec machineSpec */ - machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); - - /** WorkerPoolSpec replicaCount */ - replicaCount?: (number|Long|string|null); - - /** WorkerPoolSpec nfsMounts */ - nfsMounts?: (google.cloud.aiplatform.v1beta1.INfsMount[]|null); + /** Properties of a DeleteDatasetRequest. */ + interface IDeleteDatasetRequest { - /** WorkerPoolSpec diskSpec */ - diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); + /** DeleteDatasetRequest name */ + name?: (string|null); } - /** Represents a WorkerPoolSpec. */ - class WorkerPoolSpec implements IWorkerPoolSpec { + /** Represents a DeleteDatasetRequest. */ + class DeleteDatasetRequest implements IDeleteDatasetRequest { /** - * Constructs a new WorkerPoolSpec. + * Constructs a new DeleteDatasetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec); - - /** WorkerPoolSpec containerSpec. */ - public containerSpec?: (google.cloud.aiplatform.v1beta1.IContainerSpec|null); - - /** WorkerPoolSpec pythonPackageSpec. */ - public pythonPackageSpec?: (google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null); - - /** WorkerPoolSpec machineSpec. */ - public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); - - /** WorkerPoolSpec replicaCount. */ - public replicaCount: (number|Long|string); - - /** WorkerPoolSpec nfsMounts. */ - public nfsMounts: google.cloud.aiplatform.v1beta1.INfsMount[]; - - /** WorkerPoolSpec diskSpec. */ - public diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest); - /** WorkerPoolSpec task. */ - public task?: ("containerSpec"|"pythonPackageSpec"); + /** DeleteDatasetRequest name. */ + public name: string; /** - * Creates a new WorkerPoolSpec instance using the specified properties. + * Creates a new DeleteDatasetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WorkerPoolSpec instance + * @returns DeleteDatasetRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; /** - * Encodes the specified WorkerPoolSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify|verify} messages. - * @param message WorkerPoolSpec message or plain object to encode + * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.verify|verify} messages. + * @param message DeleteDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WorkerPoolSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify|verify} messages. - * @param message WorkerPoolSpec message or plain object to encode + * Encodes the specified DeleteDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.verify|verify} messages. + * @param message DeleteDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WorkerPoolSpec message from the specified reader or buffer. + * Decodes a DeleteDatasetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WorkerPoolSpec + * @returns DeleteDatasetRequest * @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.WorkerPoolSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; /** - * Decodes a WorkerPoolSpec message from the specified reader or buffer, length delimited. + * Decodes a DeleteDatasetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WorkerPoolSpec + * @returns DeleteDatasetRequest * @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.WorkerPoolSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; /** - * Verifies a WorkerPoolSpec message. + * Verifies a DeleteDatasetRequest 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 WorkerPoolSpec message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDatasetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WorkerPoolSpec + * @returns DeleteDatasetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; /** - * Creates a plain object from a WorkerPoolSpec message. Also converts values to other types if specified. - * @param message WorkerPoolSpec + * Creates a plain object from a DeleteDatasetRequest message. Also converts values to other types if specified. + * @param message DeleteDatasetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.WorkerPoolSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WorkerPoolSpec to JSON. + * Converts this DeleteDatasetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WorkerPoolSpec + * Gets the default type url for DeleteDatasetRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ContainerSpec. */ - interface IContainerSpec { - - /** ContainerSpec imageUri */ - imageUri?: (string|null); - - /** ContainerSpec command */ - command?: (string[]|null); + /** Properties of an ImportDataRequest. */ + interface IImportDataRequest { - /** ContainerSpec args */ - args?: (string[]|null); + /** ImportDataRequest name */ + name?: (string|null); - /** ContainerSpec env */ - env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); + /** ImportDataRequest importConfigs */ + importConfigs?: (google.cloud.aiplatform.v1beta1.IImportDataConfig[]|null); } - /** Represents a ContainerSpec. */ - class ContainerSpec implements IContainerSpec { + /** Represents an ImportDataRequest. */ + class ImportDataRequest implements IImportDataRequest { /** - * Constructs a new ContainerSpec. + * Constructs a new ImportDataRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IContainerSpec); - - /** ContainerSpec imageUri. */ - public imageUri: string; - - /** ContainerSpec command. */ - public command: string[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataRequest); - /** ContainerSpec args. */ - public args: string[]; + /** ImportDataRequest name. */ + public name: string; - /** ContainerSpec env. */ - public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; + /** ImportDataRequest importConfigs. */ + public importConfigs: google.cloud.aiplatform.v1beta1.IImportDataConfig[]; /** - * Creates a new ContainerSpec instance using the specified properties. + * Creates a new ImportDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ContainerSpec instance + * @returns ImportDataRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IContainerSpec): google.cloud.aiplatform.v1beta1.ContainerSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataRequest): google.cloud.aiplatform.v1beta1.ImportDataRequest; /** - * Encodes the specified ContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.verify|verify} messages. - * @param message ContainerSpec message or plain object to encode + * Encodes the specified ImportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.verify|verify} messages. + * @param message ImportDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.verify|verify} messages. - * @param message ContainerSpec message or plain object to encode + * Encodes the specified ImportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.verify|verify} messages. + * @param message ImportDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ContainerSpec message from the specified reader or buffer. + * Decodes an ImportDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ContainerSpec + * @returns ImportDataRequest * @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.ContainerSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataRequest; /** - * Decodes a ContainerSpec message from the specified reader or buffer, length delimited. + * Decodes an ImportDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ContainerSpec + * @returns ImportDataRequest * @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.ContainerSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataRequest; /** - * Verifies a ContainerSpec message. + * Verifies an ImportDataRequest 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 ContainerSpec message from a plain object. Also converts values to their respective internal types. + * Creates an ImportDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ContainerSpec + * @returns ImportDataRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ContainerSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataRequest; /** - * Creates a plain object from a ContainerSpec message. Also converts values to other types if specified. - * @param message ContainerSpec + * Creates a plain object from an ImportDataRequest message. Also converts values to other types if specified. + * @param message ImportDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ContainerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ContainerSpec to JSON. + * Converts this ImportDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ContainerSpec + * Gets the default type url for ImportDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PythonPackageSpec. */ - interface IPythonPackageSpec { - - /** PythonPackageSpec executorImageUri */ - executorImageUri?: (string|null); - - /** PythonPackageSpec packageUris */ - packageUris?: (string[]|null); - - /** PythonPackageSpec pythonModule */ - pythonModule?: (string|null); - - /** PythonPackageSpec args */ - args?: (string[]|null); - - /** PythonPackageSpec env */ - env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); + /** Properties of an ImportDataResponse. */ + interface IImportDataResponse { } - /** Represents a PythonPackageSpec. */ - class PythonPackageSpec implements IPythonPackageSpec { + /** Represents an ImportDataResponse. */ + class ImportDataResponse implements IImportDataResponse { /** - * Constructs a new PythonPackageSpec. + * Constructs a new ImportDataResponse. * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPythonPackageSpec); - - /** PythonPackageSpec executorImageUri. */ - public executorImageUri: string; - - /** PythonPackageSpec packageUris. */ - public packageUris: string[]; - - /** PythonPackageSpec pythonModule. */ - public pythonModule: string; - - /** PythonPackageSpec args. */ - public args: string[]; - - /** PythonPackageSpec env. */ - public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataResponse); /** - * Creates a new PythonPackageSpec instance using the specified properties. + * Creates a new ImportDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PythonPackageSpec instance + * @returns ImportDataResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPythonPackageSpec): google.cloud.aiplatform.v1beta1.PythonPackageSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataResponse): google.cloud.aiplatform.v1beta1.ImportDataResponse; /** - * Encodes the specified PythonPackageSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify|verify} messages. - * @param message PythonPackageSpec message or plain object to encode + * Encodes the specified ImportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.verify|verify} messages. + * @param message ImportDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPythonPackageSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PythonPackageSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify|verify} messages. - * @param message PythonPackageSpec message or plain object to encode + * Encodes the specified ImportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.verify|verify} messages. + * @param message ImportDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPythonPackageSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PythonPackageSpec message from the specified reader or buffer. + * Decodes an ImportDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PythonPackageSpec + * @returns ImportDataResponse * @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.PythonPackageSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataResponse; /** - * Decodes a PythonPackageSpec message from the specified reader or buffer, length delimited. + * Decodes an ImportDataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PythonPackageSpec + * @returns ImportDataResponse * @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.PythonPackageSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataResponse; /** - * Verifies a PythonPackageSpec message. + * Verifies an ImportDataResponse 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 PythonPackageSpec message from a plain object. Also converts values to their respective internal types. + * Creates an ImportDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PythonPackageSpec + * @returns ImportDataResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PythonPackageSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataResponse; /** - * Creates a plain object from a PythonPackageSpec message. Also converts values to other types if specified. - * @param message PythonPackageSpec + * Creates a plain object from an ImportDataResponse message. Also converts values to other types if specified. + * @param message ImportDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PythonPackageSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PythonPackageSpec to JSON. + * Converts this ImportDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PythonPackageSpec + * Gets the default type url for ImportDataResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Scheduling. */ - interface IScheduling { - - /** Scheduling timeout */ - timeout?: (google.protobuf.IDuration|null); + /** Properties of an ImportDataOperationMetadata. */ + interface IImportDataOperationMetadata { - /** Scheduling restartJobOnWorkerRestart */ - restartJobOnWorkerRestart?: (boolean|null); + /** ImportDataOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a Scheduling. */ - class Scheduling implements IScheduling { + /** Represents an ImportDataOperationMetadata. */ + class ImportDataOperationMetadata implements IImportDataOperationMetadata { /** - * Constructs a new Scheduling. + * Constructs a new ImportDataOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IScheduling); - - /** Scheduling timeout. */ - public timeout?: (google.protobuf.IDuration|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata); - /** Scheduling restartJobOnWorkerRestart. */ - public restartJobOnWorkerRestart: boolean; + /** ImportDataOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new Scheduling instance using the specified properties. + * Creates a new ImportDataOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns Scheduling instance + * @returns ImportDataOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IScheduling): google.cloud.aiplatform.v1beta1.Scheduling; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; /** - * Encodes the specified Scheduling message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.verify|verify} messages. - * @param message Scheduling message or plain object to encode + * Encodes the specified ImportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.verify|verify} messages. + * @param message ImportDataOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IScheduling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Scheduling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.verify|verify} messages. - * @param message Scheduling message or plain object to encode + * Encodes the specified ImportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.verify|verify} messages. + * @param message ImportDataOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IScheduling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Scheduling message from the specified reader or buffer. + * Decodes an ImportDataOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Scheduling + * @returns ImportDataOperationMetadata * @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.Scheduling; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; /** - * Decodes a Scheduling message from the specified reader or buffer, length delimited. + * Decodes an ImportDataOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Scheduling + * @returns ImportDataOperationMetadata * @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.Scheduling; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; /** - * Verifies a Scheduling message. + * Verifies an ImportDataOperationMetadata 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 Scheduling message from a plain object. Also converts values to their respective internal types. + * Creates an ImportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Scheduling + * @returns ImportDataOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Scheduling; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; /** - * Creates a plain object from a Scheduling message. Also converts values to other types if specified. - * @param message Scheduling + * Creates a plain object from an ImportDataOperationMetadata message. Also converts values to other types if specified. + * @param message ImportDataOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Scheduling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Scheduling to JSON. + * Converts this ImportDataOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Scheduling + * Gets the default type url for ImportDataOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DataItem. */ - interface IDataItem { + /** Properties of an ExportDataRequest. */ + interface IExportDataRequest { - /** DataItem name */ + /** ExportDataRequest name */ name?: (string|null); - /** DataItem createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** DataItem updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** DataItem labels */ - labels?: ({ [k: string]: string }|null); - - /** DataItem payload */ - payload?: (google.protobuf.IValue|null); - - /** DataItem etag */ - etag?: (string|null); + /** ExportDataRequest exportConfig */ + exportConfig?: (google.cloud.aiplatform.v1beta1.IExportDataConfig|null); } - /** Represents a DataItem. */ - class DataItem implements IDataItem { + /** Represents an ExportDataRequest. */ + class ExportDataRequest implements IExportDataRequest { /** - * Constructs a new DataItem. + * Constructs a new ExportDataRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDataItem); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataRequest); - /** DataItem name. */ + /** ExportDataRequest name. */ public name: string; - /** DataItem createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** DataItem updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** DataItem labels. */ - public labels: { [k: string]: string }; - - /** DataItem payload. */ - public payload?: (google.protobuf.IValue|null); - - /** DataItem etag. */ - public etag: string; + /** ExportDataRequest exportConfig. */ + public exportConfig?: (google.cloud.aiplatform.v1beta1.IExportDataConfig|null); /** - * Creates a new DataItem instance using the specified properties. + * Creates a new ExportDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DataItem instance + * @returns ExportDataRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDataItem): google.cloud.aiplatform.v1beta1.DataItem; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataRequest): google.cloud.aiplatform.v1beta1.ExportDataRequest; /** - * Encodes the specified DataItem message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.verify|verify} messages. - * @param message DataItem message or plain object to encode + * Encodes the specified ExportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.verify|verify} messages. + * @param message ExportDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDataItem, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DataItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.verify|verify} messages. - * @param message DataItem message or plain object to encode + * Encodes the specified ExportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.verify|verify} messages. + * @param message ExportDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataItem, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataItem message from the specified reader or buffer. + * Decodes an ExportDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DataItem + * @returns ExportDataRequest * @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.DataItem; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataRequest; /** - * Decodes a DataItem message from the specified reader or buffer, length delimited. + * Decodes an ExportDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DataItem + * @returns ExportDataRequest * @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.DataItem; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataRequest; /** - * Verifies a DataItem message. + * Verifies an ExportDataRequest 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 DataItem message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DataItem + * @returns ExportDataRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataItem; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataRequest; /** - * Creates a plain object from a DataItem message. Also converts values to other types if specified. - * @param message DataItem + * Creates a plain object from an ExportDataRequest message. Also converts values to other types if specified. + * @param message ExportDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DataItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataItem to JSON. + * Converts this ExportDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DataItem + * Gets the default type url for ExportDataRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DataLabelingJob. */ - interface IDataLabelingJob { - - /** DataLabelingJob name */ - name?: (string|null); - - /** DataLabelingJob displayName */ - displayName?: (string|null); - - /** DataLabelingJob datasets */ - datasets?: (string[]|null); - - /** DataLabelingJob annotationLabels */ - annotationLabels?: ({ [k: string]: string }|null); - - /** DataLabelingJob labelerCount */ - labelerCount?: (number|null); - - /** DataLabelingJob instructionUri */ - instructionUri?: (string|null); - - /** DataLabelingJob inputsSchemaUri */ - inputsSchemaUri?: (string|null); - - /** DataLabelingJob inputs */ - inputs?: (google.protobuf.IValue|null); - - /** DataLabelingJob state */ - state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - - /** DataLabelingJob labelingProgress */ - labelingProgress?: (number|null); - - /** DataLabelingJob currentSpend */ - currentSpend?: (google.type.IMoney|null); - - /** DataLabelingJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** DataLabelingJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** DataLabelingJob error */ - error?: (google.rpc.IStatus|null); - - /** DataLabelingJob labels */ - labels?: ({ [k: string]: string }|null); - - /** DataLabelingJob specialistPools */ - specialistPools?: (string[]|null); - - /** DataLabelingJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** Properties of an ExportDataResponse. */ + interface IExportDataResponse { - /** DataLabelingJob activeLearningConfig */ - activeLearningConfig?: (google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null); + /** ExportDataResponse exportedFiles */ + exportedFiles?: (string[]|null); } - /** Represents a DataLabelingJob. */ - class DataLabelingJob implements IDataLabelingJob { + /** Represents an ExportDataResponse. */ + class ExportDataResponse implements IExportDataResponse { /** - * Constructs a new DataLabelingJob. + * Constructs a new ExportDataResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDataLabelingJob); - - /** DataLabelingJob name. */ - public name: string; - - /** DataLabelingJob displayName. */ - public displayName: string; - - /** DataLabelingJob datasets. */ - public datasets: string[]; - - /** DataLabelingJob annotationLabels. */ - public annotationLabels: { [k: string]: string }; - - /** DataLabelingJob labelerCount. */ - public labelerCount: number; - - /** DataLabelingJob instructionUri. */ - public instructionUri: string; - - /** DataLabelingJob inputsSchemaUri. */ - public inputsSchemaUri: string; - - /** DataLabelingJob inputs. */ - public inputs?: (google.protobuf.IValue|null); - - /** DataLabelingJob state. */ - public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - - /** DataLabelingJob labelingProgress. */ - public labelingProgress: number; - - /** DataLabelingJob currentSpend. */ - public currentSpend?: (google.type.IMoney|null); - - /** DataLabelingJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** DataLabelingJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** DataLabelingJob error. */ - public error?: (google.rpc.IStatus|null); - - /** DataLabelingJob labels. */ - public labels: { [k: string]: string }; - - /** DataLabelingJob specialistPools. */ - public specialistPools: string[]; - - /** DataLabelingJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataResponse); - /** DataLabelingJob activeLearningConfig. */ - public activeLearningConfig?: (google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null); + /** ExportDataResponse exportedFiles. */ + public exportedFiles: string[]; /** - * Creates a new DataLabelingJob instance using the specified properties. + * Creates a new ExportDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DataLabelingJob instance + * @returns ExportDataResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDataLabelingJob): google.cloud.aiplatform.v1beta1.DataLabelingJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataResponse): google.cloud.aiplatform.v1beta1.ExportDataResponse; /** - * Encodes the specified DataLabelingJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.verify|verify} messages. - * @param message DataLabelingJob message or plain object to encode + * Encodes the specified ExportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.verify|verify} messages. + * @param message ExportDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDataLabelingJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DataLabelingJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.verify|verify} messages. - * @param message DataLabelingJob message or plain object to encode + * Encodes the specified ExportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.verify|verify} messages. + * @param message ExportDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataLabelingJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataLabelingJob message from the specified reader or buffer. + * Decodes an ExportDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DataLabelingJob + * @returns ExportDataResponse * @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.DataLabelingJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataResponse; /** - * Decodes a DataLabelingJob message from the specified reader or buffer, length delimited. + * Decodes an ExportDataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DataLabelingJob + * @returns ExportDataResponse * @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.DataLabelingJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataResponse; /** - * Verifies a DataLabelingJob message. + * Verifies an ExportDataResponse 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 DataLabelingJob message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DataLabelingJob + * @returns ExportDataResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataLabelingJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataResponse; /** - * Creates a plain object from a DataLabelingJob message. Also converts values to other types if specified. - * @param message DataLabelingJob + * Creates a plain object from an ExportDataResponse message. Also converts values to other types if specified. + * @param message ExportDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DataLabelingJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataLabelingJob to JSON. + * Converts this ExportDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DataLabelingJob + * Gets the default type url for ExportDataResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ActiveLearningConfig. */ - interface IActiveLearningConfig { - - /** ActiveLearningConfig maxDataItemCount */ - maxDataItemCount?: (number|Long|string|null); - - /** ActiveLearningConfig maxDataItemPercentage */ - maxDataItemPercentage?: (number|null); + /** Properties of an ExportDataOperationMetadata. */ + interface IExportDataOperationMetadata { - /** ActiveLearningConfig sampleConfig */ - sampleConfig?: (google.cloud.aiplatform.v1beta1.ISampleConfig|null); + /** ExportDataOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ActiveLearningConfig trainingConfig */ - trainingConfig?: (google.cloud.aiplatform.v1beta1.ITrainingConfig|null); + /** ExportDataOperationMetadata gcsOutputDirectory */ + gcsOutputDirectory?: (string|null); } - /** Represents an ActiveLearningConfig. */ - class ActiveLearningConfig implements IActiveLearningConfig { + /** Represents an ExportDataOperationMetadata. */ + class ExportDataOperationMetadata implements IExportDataOperationMetadata { /** - * Constructs a new ActiveLearningConfig. + * Constructs a new ExportDataOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IActiveLearningConfig); - - /** ActiveLearningConfig maxDataItemCount. */ - public maxDataItemCount?: (number|Long|string|null); - - /** ActiveLearningConfig maxDataItemPercentage. */ - public maxDataItemPercentage?: (number|null); - - /** ActiveLearningConfig sampleConfig. */ - public sampleConfig?: (google.cloud.aiplatform.v1beta1.ISampleConfig|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata); - /** ActiveLearningConfig trainingConfig. */ - public trainingConfig?: (google.cloud.aiplatform.v1beta1.ITrainingConfig|null); + /** ExportDataOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ActiveLearningConfig humanLabelingBudget. */ - public humanLabelingBudget?: ("maxDataItemCount"|"maxDataItemPercentage"); + /** ExportDataOperationMetadata gcsOutputDirectory. */ + public gcsOutputDirectory: string; /** - * Creates a new ActiveLearningConfig instance using the specified properties. + * Creates a new ExportDataOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ActiveLearningConfig instance + * @returns ExportDataOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IActiveLearningConfig): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; /** - * Encodes the specified ActiveLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify|verify} messages. - * @param message ActiveLearningConfig message or plain object to encode + * Encodes the specified ExportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. + * @param message ExportDataOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IActiveLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ActiveLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify|verify} messages. - * @param message ActiveLearningConfig message or plain object to encode + * Encodes the specified ExportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. + * @param message ExportDataOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IActiveLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ActiveLearningConfig message from the specified reader or buffer. + * Decodes an ExportDataOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ActiveLearningConfig + * @returns ExportDataOperationMetadata * @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.ActiveLearningConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; /** - * Decodes an ActiveLearningConfig message from the specified reader or buffer, length delimited. + * Decodes an ExportDataOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ActiveLearningConfig + * @returns ExportDataOperationMetadata * @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.ActiveLearningConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; /** - * Verifies an ActiveLearningConfig message. + * Verifies an ExportDataOperationMetadata 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 ActiveLearningConfig message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ActiveLearningConfig + * @returns ExportDataOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; /** - * Creates a plain object from an ActiveLearningConfig message. Also converts values to other types if specified. - * @param message ActiveLearningConfig + * Creates a plain object from an ExportDataOperationMetadata message. Also converts values to other types if specified. + * @param message ExportDataOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ActiveLearningConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ActiveLearningConfig to JSON. + * Converts this ExportDataOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ActiveLearningConfig + * Gets the default type url for ExportDataOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SampleConfig. */ - interface ISampleConfig { + /** Properties of a ListDataItemsRequest. */ + interface IListDataItemsRequest { - /** SampleConfig initialBatchSamplePercentage */ - initialBatchSamplePercentage?: (number|null); + /** ListDataItemsRequest parent */ + parent?: (string|null); - /** SampleConfig followingBatchSamplePercentage */ - followingBatchSamplePercentage?: (number|null); + /** ListDataItemsRequest filter */ + filter?: (string|null); - /** SampleConfig sampleStrategy */ - sampleStrategy?: (google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|keyof typeof google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|null); + /** ListDataItemsRequest pageSize */ + pageSize?: (number|null); + + /** ListDataItemsRequest pageToken */ + pageToken?: (string|null); + + /** ListDataItemsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + + /** ListDataItemsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a SampleConfig. */ - class SampleConfig implements ISampleConfig { + /** Represents a ListDataItemsRequest. */ + class ListDataItemsRequest implements IListDataItemsRequest { /** - * Constructs a new SampleConfig. + * Constructs a new ListDataItemsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISampleConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsRequest); - /** SampleConfig initialBatchSamplePercentage. */ - public initialBatchSamplePercentage?: (number|null); + /** ListDataItemsRequest parent. */ + public parent: string; - /** SampleConfig followingBatchSamplePercentage. */ - public followingBatchSamplePercentage?: (number|null); + /** ListDataItemsRequest filter. */ + public filter: string; - /** SampleConfig sampleStrategy. */ - public sampleStrategy: (google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|keyof typeof google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy); + /** ListDataItemsRequest pageSize. */ + public pageSize: number; - /** SampleConfig initialBatchSampleSize. */ - public initialBatchSampleSize?: "initialBatchSamplePercentage"; + /** ListDataItemsRequest pageToken. */ + public pageToken: string; - /** SampleConfig followingBatchSampleSize. */ - public followingBatchSampleSize?: "followingBatchSamplePercentage"; + /** ListDataItemsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** ListDataItemsRequest orderBy. */ + public orderBy: string; /** - * Creates a new SampleConfig instance using the specified properties. + * Creates a new ListDataItemsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SampleConfig instance + * @returns ListDataItemsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISampleConfig): google.cloud.aiplatform.v1beta1.SampleConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsRequest): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; /** - * Encodes the specified SampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.verify|verify} messages. - * @param message SampleConfig message or plain object to encode + * Encodes the specified ListDataItemsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. + * @param message ListDataItemsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.verify|verify} messages. - * @param message SampleConfig message or plain object to encode + * Encodes the specified ListDataItemsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. + * @param message ListDataItemsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SampleConfig message from the specified reader or buffer. + * Decodes a ListDataItemsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SampleConfig + * @returns ListDataItemsRequest * @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.SampleConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; /** - * Decodes a SampleConfig message from the specified reader or buffer, length delimited. + * Decodes a ListDataItemsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SampleConfig + * @returns ListDataItemsRequest * @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.SampleConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; /** - * Verifies a SampleConfig message. + * Verifies a ListDataItemsRequest 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 SampleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataItemsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SampleConfig + * @returns ListDataItemsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SampleConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; /** - * Creates a plain object from a SampleConfig message. Also converts values to other types if specified. - * @param message SampleConfig + * Creates a plain object from a ListDataItemsRequest message. Also converts values to other types if specified. + * @param message ListDataItemsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataItemsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SampleConfig to JSON. + * Converts this ListDataItemsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SampleConfig + * Gets the default type url for ListDataItemsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace SampleConfig { - - /** SampleStrategy enum. */ - enum SampleStrategy { - SAMPLE_STRATEGY_UNSPECIFIED = 0, - UNCERTAINTY = 1 - } - } + /** Properties of a ListDataItemsResponse. */ + interface IListDataItemsResponse { - /** Properties of a TrainingConfig. */ - interface ITrainingConfig { + /** ListDataItemsResponse dataItems */ + dataItems?: (google.cloud.aiplatform.v1beta1.IDataItem[]|null); - /** TrainingConfig timeoutTrainingMilliHours */ - timeoutTrainingMilliHours?: (number|Long|string|null); + /** ListDataItemsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a TrainingConfig. */ - class TrainingConfig implements ITrainingConfig { + /** Represents a ListDataItemsResponse. */ + class ListDataItemsResponse implements IListDataItemsResponse { /** - * Constructs a new TrainingConfig. + * Constructs a new ListDataItemsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ITrainingConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsResponse); - /** TrainingConfig timeoutTrainingMilliHours. */ - public timeoutTrainingMilliHours: (number|Long|string); + /** ListDataItemsResponse dataItems. */ + public dataItems: google.cloud.aiplatform.v1beta1.IDataItem[]; + + /** ListDataItemsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new TrainingConfig instance using the specified properties. + * Creates a new ListDataItemsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns TrainingConfig instance + * @returns ListDataItemsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ITrainingConfig): google.cloud.aiplatform.v1beta1.TrainingConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsResponse): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; /** - * Encodes the specified TrainingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.verify|verify} messages. - * @param message TrainingConfig message or plain object to encode + * Encodes the specified ListDataItemsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.verify|verify} messages. + * @param message ListDataItemsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ITrainingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TrainingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.verify|verify} messages. - * @param message TrainingConfig message or plain object to encode + * Encodes the specified ListDataItemsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.verify|verify} messages. + * @param message ListDataItemsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITrainingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TrainingConfig message from the specified reader or buffer. + * Decodes a ListDataItemsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TrainingConfig + * @returns ListDataItemsResponse * @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.TrainingConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; /** - * Decodes a TrainingConfig message from the specified reader or buffer, length delimited. + * Decodes a ListDataItemsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TrainingConfig + * @returns ListDataItemsResponse * @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.TrainingConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; /** - * Verifies a TrainingConfig message. + * Verifies a ListDataItemsResponse 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 TrainingConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataItemsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TrainingConfig + * @returns ListDataItemsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TrainingConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; /** - * Creates a plain object from a TrainingConfig message. Also converts values to other types if specified. - * @param message TrainingConfig + * Creates a plain object from a ListDataItemsResponse message. Also converts values to other types if specified. + * @param message ListDataItemsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.TrainingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataItemsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TrainingConfig to JSON. + * Converts this ListDataItemsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for TrainingConfig + * Gets the default type url for ListDataItemsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Dataset. */ - interface IDataset { + /** Properties of a SearchDataItemsRequest. */ + interface ISearchDataItemsRequest { - /** Dataset name */ - name?: (string|null); + /** SearchDataItemsRequest orderByDataItem */ + orderByDataItem?: (string|null); - /** Dataset displayName */ - displayName?: (string|null); + /** SearchDataItemsRequest orderByAnnotation */ + orderByAnnotation?: (google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation|null); - /** Dataset description */ - description?: (string|null); + /** SearchDataItemsRequest dataset */ + dataset?: (string|null); - /** Dataset metadataSchemaUri */ - metadataSchemaUri?: (string|null); + /** SearchDataItemsRequest savedQuery */ + savedQuery?: (string|null); - /** Dataset metadata */ - metadata?: (google.protobuf.IValue|null); + /** SearchDataItemsRequest dataLabelingJob */ + dataLabelingJob?: (string|null); - /** Dataset createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** SearchDataItemsRequest dataItemFilter */ + dataItemFilter?: (string|null); - /** Dataset updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** SearchDataItemsRequest annotationsFilter */ + annotationsFilter?: (string|null); - /** Dataset etag */ - etag?: (string|null); + /** SearchDataItemsRequest annotationFilters */ + annotationFilters?: (string[]|null); - /** Dataset labels */ - labels?: ({ [k: string]: string }|null); + /** SearchDataItemsRequest fieldMask */ + fieldMask?: (google.protobuf.IFieldMask|null); - /** Dataset savedQueries */ - savedQueries?: (google.cloud.aiplatform.v1beta1.ISavedQuery[]|null); + /** SearchDataItemsRequest annotationsLimit */ + annotationsLimit?: (number|null); - /** Dataset encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** SearchDataItemsRequest pageSize */ + pageSize?: (number|null); - /** Dataset metadataArtifact */ - metadataArtifact?: (string|null); + /** SearchDataItemsRequest orderBy */ + orderBy?: (string|null); + + /** SearchDataItemsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a Dataset. */ - class Dataset implements IDataset { + /** Represents a SearchDataItemsRequest. */ + class SearchDataItemsRequest implements ISearchDataItemsRequest { /** - * Constructs a new Dataset. + * Constructs a new SearchDataItemsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDataset); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest); - /** Dataset name. */ - public name: string; + /** SearchDataItemsRequest orderByDataItem. */ + public orderByDataItem?: (string|null); - /** Dataset displayName. */ - public displayName: string; + /** SearchDataItemsRequest orderByAnnotation. */ + public orderByAnnotation?: (google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation|null); - /** Dataset description. */ - public description: string; + /** SearchDataItemsRequest dataset. */ + public dataset: string; - /** Dataset metadataSchemaUri. */ - public metadataSchemaUri: string; + /** SearchDataItemsRequest savedQuery. */ + public savedQuery: string; - /** Dataset metadata. */ - public metadata?: (google.protobuf.IValue|null); + /** SearchDataItemsRequest dataLabelingJob. */ + public dataLabelingJob: string; - /** Dataset createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** SearchDataItemsRequest dataItemFilter. */ + public dataItemFilter: string; - /** Dataset updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** SearchDataItemsRequest annotationsFilter. */ + public annotationsFilter: string; - /** Dataset etag. */ - public etag: string; + /** SearchDataItemsRequest annotationFilters. */ + public annotationFilters: string[]; - /** Dataset labels. */ - public labels: { [k: string]: string }; + /** SearchDataItemsRequest fieldMask. */ + public fieldMask?: (google.protobuf.IFieldMask|null); - /** Dataset savedQueries. */ - public savedQueries: google.cloud.aiplatform.v1beta1.ISavedQuery[]; + /** SearchDataItemsRequest annotationsLimit. */ + public annotationsLimit: number; - /** Dataset encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** SearchDataItemsRequest pageSize. */ + public pageSize: number; - /** Dataset metadataArtifact. */ - public metadataArtifact: string; + /** SearchDataItemsRequest orderBy. */ + public orderBy: string; + + /** SearchDataItemsRequest pageToken. */ + public pageToken: string; + + /** SearchDataItemsRequest order. */ + public order?: ("orderByDataItem"|"orderByAnnotation"); /** - * Creates a new Dataset instance using the specified properties. + * Creates a new SearchDataItemsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Dataset instance + * @returns SearchDataItemsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDataset): google.cloud.aiplatform.v1beta1.Dataset; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; /** - * Encodes the specified Dataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.verify|verify} messages. - * @param message Dataset message or plain object to encode + * Encodes the specified SearchDataItemsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.verify|verify} messages. + * @param message SearchDataItemsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Dataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.verify|verify} messages. - * @param message Dataset message or plain object to encode + * Encodes the specified SearchDataItemsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.verify|verify} messages. + * @param message SearchDataItemsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Dataset message from the specified reader or buffer. + * Decodes a SearchDataItemsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Dataset + * @returns SearchDataItemsRequest * @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.Dataset; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; /** - * Decodes a Dataset message from the specified reader or buffer, length delimited. + * Decodes a SearchDataItemsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Dataset + * @returns SearchDataItemsRequest * @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.Dataset; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; /** - * Verifies a Dataset message. + * Verifies a SearchDataItemsRequest 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 Dataset message from a plain object. Also converts values to their respective internal types. + * Creates a SearchDataItemsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Dataset + * @returns SearchDataItemsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Dataset; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; /** - * Creates a plain object from a Dataset message. Also converts values to other types if specified. - * @param message Dataset + * Creates a plain object from a SearchDataItemsRequest message. Also converts values to other types if specified. + * @param message SearchDataItemsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Dataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Dataset to JSON. + * Converts this SearchDataItemsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Dataset + * Gets the default type url for SearchDataItemsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportDataConfig. */ - interface IImportDataConfig { - - /** ImportDataConfig gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - - /** ImportDataConfig dataItemLabels */ - dataItemLabels?: ({ [k: string]: string }|null); - - /** ImportDataConfig annotationLabels */ - annotationLabels?: ({ [k: string]: string }|null); - - /** ImportDataConfig importSchemaUri */ - importSchemaUri?: (string|null); - } + namespace SearchDataItemsRequest { - /** Represents an ImportDataConfig. */ - class ImportDataConfig implements IImportDataConfig { + /** Properties of an OrderByAnnotation. */ + interface IOrderByAnnotation { - /** - * Constructs a new ImportDataConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataConfig); + /** OrderByAnnotation savedQuery */ + savedQuery?: (string|null); - /** ImportDataConfig gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** OrderByAnnotation orderBy */ + orderBy?: (string|null); + } - /** ImportDataConfig dataItemLabels. */ - public dataItemLabels: { [k: string]: string }; + /** Represents an OrderByAnnotation. */ + class OrderByAnnotation implements IOrderByAnnotation { - /** ImportDataConfig annotationLabels. */ - public annotationLabels: { [k: string]: string }; + /** + * Constructs a new OrderByAnnotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation); - /** ImportDataConfig importSchemaUri. */ - public importSchemaUri: string; + /** OrderByAnnotation savedQuery. */ + public savedQuery: string; - /** ImportDataConfig source. */ - public source?: "gcsSource"; + /** OrderByAnnotation orderBy. */ + public orderBy: string; - /** - * Creates a new ImportDataConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportDataConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataConfig): google.cloud.aiplatform.v1beta1.ImportDataConfig; + /** + * Creates a new OrderByAnnotation instance using the specified properties. + * @param [properties] Properties to set + * @returns OrderByAnnotation instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation; - /** - * Encodes the specified ImportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.verify|verify} messages. - * @param message ImportDataConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified OrderByAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation.verify|verify} messages. + * @param message OrderByAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ImportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.verify|verify} messages. - * @param message ImportDataConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified OrderByAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation.verify|verify} messages. + * @param message OrderByAnnotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an ImportDataConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportDataConfig - * @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.ImportDataConfig; + /** + * Decodes an OrderByAnnotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OrderByAnnotation + * @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.SearchDataItemsRequest.OrderByAnnotation; - /** - * Decodes an ImportDataConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportDataConfig - * @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.ImportDataConfig; + /** + * Decodes an OrderByAnnotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OrderByAnnotation + * @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.SearchDataItemsRequest.OrderByAnnotation; - /** - * Verifies an ImportDataConfig 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); + /** + * Verifies an OrderByAnnotation 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 ImportDataConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportDataConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataConfig; + /** + * Creates an OrderByAnnotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OrderByAnnotation + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation; - /** - * Creates a plain object from an ImportDataConfig message. Also converts values to other types if specified. - * @param message ImportDataConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an OrderByAnnotation message. Also converts values to other types if specified. + * @param message OrderByAnnotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this ImportDataConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this OrderByAnnotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for ImportDataConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Gets the default type url for OrderByAnnotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of an ExportDataConfig. */ - interface IExportDataConfig { + /** Properties of a SearchDataItemsResponse. */ + interface ISearchDataItemsResponse { - /** ExportDataConfig gcsDestination */ - gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** SearchDataItemsResponse dataItemViews */ + dataItemViews?: (google.cloud.aiplatform.v1beta1.IDataItemView[]|null); - /** ExportDataConfig annotationsFilter */ - annotationsFilter?: (string|null); + /** SearchDataItemsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an ExportDataConfig. */ - class ExportDataConfig implements IExportDataConfig { + /** Represents a SearchDataItemsResponse. */ + class SearchDataItemsResponse implements ISearchDataItemsResponse { /** - * Constructs a new ExportDataConfig. + * Constructs a new SearchDataItemsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataConfig); - - /** ExportDataConfig gcsDestination. */ - public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchDataItemsResponse); - /** ExportDataConfig annotationsFilter. */ - public annotationsFilter: string; + /** SearchDataItemsResponse dataItemViews. */ + public dataItemViews: google.cloud.aiplatform.v1beta1.IDataItemView[]; - /** ExportDataConfig destination. */ - public destination?: "gcsDestination"; + /** SearchDataItemsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ExportDataConfig instance using the specified properties. + * Creates a new SearchDataItemsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExportDataConfig instance + * @returns SearchDataItemsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataConfig): google.cloud.aiplatform.v1beta1.ExportDataConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchDataItemsResponse): google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; /** - * Encodes the specified ExportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.verify|verify} messages. - * @param message ExportDataConfig message or plain object to encode + * Encodes the specified SearchDataItemsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.verify|verify} messages. + * @param message SearchDataItemsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.verify|verify} messages. - * @param message ExportDataConfig message or plain object to encode + * Encodes the specified SearchDataItemsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.verify|verify} messages. + * @param message SearchDataItemsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportDataConfig message from the specified reader or buffer. + * Decodes a SearchDataItemsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportDataConfig + * @returns SearchDataItemsResponse * @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.ExportDataConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; /** - * Decodes an ExportDataConfig message from the specified reader or buffer, length delimited. + * Decodes a SearchDataItemsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportDataConfig + * @returns SearchDataItemsResponse * @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.ExportDataConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; /** - * Verifies an ExportDataConfig message. + * Verifies a SearchDataItemsResponse 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 ExportDataConfig message from a plain object. Also converts values to their respective internal types. + * Creates a SearchDataItemsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportDataConfig + * @returns SearchDataItemsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; /** - * Creates a plain object from an ExportDataConfig message. Also converts values to other types if specified. - * @param message ExportDataConfig + * Creates a plain object from a SearchDataItemsResponse message. Also converts values to other types if specified. + * @param message SearchDataItemsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchDataItemsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportDataConfig to JSON. + * Converts this SearchDataItemsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportDataConfig + * Gets the default type url for SearchDataItemsResponse * @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 { - - /** SavedQuery name */ - name?: (string|null); - - /** SavedQuery displayName */ - displayName?: (string|null); - - /** SavedQuery metadata */ - metadata?: (google.protobuf.IValue|null); - - /** SavedQuery createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** SavedQuery updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** SavedQuery annotationFilter */ - annotationFilter?: (string|null); - - /** SavedQuery problemType */ - problemType?: (string|null); + /** Properties of a DataItemView. */ + interface IDataItemView { - /** SavedQuery annotationSpecCount */ - annotationSpecCount?: (number|null); + /** DataItemView dataItem */ + dataItem?: (google.cloud.aiplatform.v1beta1.IDataItem|null); - /** SavedQuery etag */ - etag?: (string|null); + /** DataItemView annotations */ + annotations?: (google.cloud.aiplatform.v1beta1.IAnnotation[]|null); - /** SavedQuery supportAutomlTraining */ - supportAutomlTraining?: (boolean|null); + /** DataItemView hasTruncatedAnnotations */ + hasTruncatedAnnotations?: (boolean|null); } - /** Represents a SavedQuery. */ - class SavedQuery implements ISavedQuery { + /** Represents a DataItemView. */ + class DataItemView implements IDataItemView { /** - * Constructs a new SavedQuery. + * Constructs a new DataItemView. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISavedQuery); - - /** SavedQuery name. */ - public name: string; - - /** SavedQuery displayName. */ - public displayName: string; - - /** SavedQuery metadata. */ - public metadata?: (google.protobuf.IValue|null); - - /** SavedQuery createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** SavedQuery updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** SavedQuery annotationFilter. */ - public annotationFilter: string; - - /** SavedQuery problemType. */ - public problemType: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDataItemView); - /** SavedQuery annotationSpecCount. */ - public annotationSpecCount: number; + /** DataItemView dataItem. */ + public dataItem?: (google.cloud.aiplatform.v1beta1.IDataItem|null); - /** SavedQuery etag. */ - public etag: string; + /** DataItemView annotations. */ + public annotations: google.cloud.aiplatform.v1beta1.IAnnotation[]; - /** SavedQuery supportAutomlTraining. */ - public supportAutomlTraining: boolean; + /** DataItemView hasTruncatedAnnotations. */ + public hasTruncatedAnnotations: boolean; /** - * Creates a new SavedQuery instance using the specified properties. + * Creates a new DataItemView instance using the specified properties. * @param [properties] Properties to set - * @returns SavedQuery instance + * @returns DataItemView instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISavedQuery): google.cloud.aiplatform.v1beta1.SavedQuery; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDataItemView): google.cloud.aiplatform.v1beta1.DataItemView; /** - * Encodes the specified SavedQuery message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SavedQuery.verify|verify} messages. - * @param message SavedQuery message or plain object to encode + * Encodes the specified DataItemView message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItemView.verify|verify} messages. + * @param message DataItemView message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISavedQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDataItemView, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SavedQuery message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SavedQuery.verify|verify} messages. - * @param message SavedQuery message or plain object to encode + * Encodes the specified DataItemView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItemView.verify|verify} messages. + * @param message DataItemView message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISavedQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataItemView, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SavedQuery message from the specified reader or buffer. + * Decodes a DataItemView message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SavedQuery + * @returns DataItemView * @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.SavedQuery; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DataItemView; /** - * Decodes a SavedQuery message from the specified reader or buffer, length delimited. + * Decodes a DataItemView message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SavedQuery + * @returns DataItemView * @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.SavedQuery; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DataItemView; /** - * Verifies a SavedQuery message. + * Verifies a DataItemView 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 SavedQuery message from a plain object. Also converts values to their respective internal types. + * Creates a DataItemView message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SavedQuery + * @returns DataItemView */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SavedQuery; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataItemView; /** - * Creates a plain object from a SavedQuery message. Also converts values to other types if specified. - * @param message SavedQuery + * Creates a plain object from a DataItemView message. Also converts values to other types if specified. + * @param message DataItemView * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SavedQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DataItemView, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SavedQuery to JSON. + * Converts this DataItemView to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SavedQuery + * Gets the default type url for DataItemView * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a DatasetService */ - class DatasetService extends $protobuf.rpc.Service { + /** Properties of a ListSavedQueriesRequest. */ + interface IListSavedQueriesRequest { - /** - * Constructs a new DatasetService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** ListSavedQueriesRequest parent */ + parent?: (string|null); - /** - * Creates new DatasetService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DatasetService; + /** ListSavedQueriesRequest filter */ + filter?: (string|null); - /** - * Calls CreateDataset. - * @param request CreateDatasetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createDataset(request: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.CreateDatasetCallback): void; + /** ListSavedQueriesRequest pageSize */ + pageSize?: (number|null); - /** - * Calls CreateDataset. - * @param request CreateDatasetRequest message or plain object - * @returns Promise - */ - public createDataset(request: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest): Promise; + /** ListSavedQueriesRequest pageToken */ + pageToken?: (string|null); - /** - * Calls GetDataset. - * @param request GetDatasetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Dataset - */ - public getDataset(request: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.GetDatasetCallback): void; + /** ListSavedQueriesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); - /** - * Calls GetDataset. - * @param request GetDatasetRequest message or plain object - * @returns Promise - */ - public getDataset(request: google.cloud.aiplatform.v1beta1.IGetDatasetRequest): Promise; + /** ListSavedQueriesRequest orderBy */ + orderBy?: (string|null); + } - /** - * Calls UpdateDataset. - * @param request UpdateDatasetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Dataset - */ - public updateDataset(request: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.UpdateDatasetCallback): void; + /** Represents a ListSavedQueriesRequest. */ + class ListSavedQueriesRequest implements IListSavedQueriesRequest { /** - * Calls UpdateDataset. - * @param request UpdateDatasetRequest message or plain object - * @returns Promise + * Constructs a new ListSavedQueriesRequest. + * @param [properties] Properties to set */ - public updateDataset(request: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest); - /** - * Calls ListDatasets. - * @param request ListDatasetsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDatasetsResponse - */ - public listDatasets(request: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListDatasetsCallback): void; + /** ListSavedQueriesRequest parent. */ + public parent: string; - /** - * Calls ListDatasets. - * @param request ListDatasetsRequest message or plain object - * @returns Promise - */ - public listDatasets(request: google.cloud.aiplatform.v1beta1.IListDatasetsRequest): Promise; + /** ListSavedQueriesRequest filter. */ + public filter: string; - /** - * Calls DeleteDataset. - * @param request DeleteDatasetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteDataset(request: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.DeleteDatasetCallback): void; + /** ListSavedQueriesRequest pageSize. */ + public pageSize: number; - /** - * Calls DeleteDataset. - * @param request DeleteDatasetRequest message or plain object - * @returns Promise - */ - public deleteDataset(request: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest): Promise; + /** ListSavedQueriesRequest pageToken. */ + public pageToken: string; - /** - * Calls ImportData. - * @param request ImportDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public importData(request: google.cloud.aiplatform.v1beta1.IImportDataRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ImportDataCallback): void; + /** ListSavedQueriesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** - * Calls ImportData. - * @param request ImportDataRequest message or plain object - * @returns Promise - */ - public importData(request: google.cloud.aiplatform.v1beta1.IImportDataRequest): Promise; + /** ListSavedQueriesRequest orderBy. */ + public orderBy: string; /** - * Calls ExportData. - * @param request ExportDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new ListSavedQueriesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSavedQueriesRequest instance */ - public exportData(request: google.cloud.aiplatform.v1beta1.IExportDataRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ExportDataCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest): google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; /** - * Calls ExportData. - * @param request ExportDataRequest message or plain object - * @returns Promise + * Encodes the specified ListSavedQueriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.verify|verify} messages. + * @param message ListSavedQueriesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public exportData(request: google.cloud.aiplatform.v1beta1.IExportDataRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListDataItems. - * @param request ListDataItemsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDataItemsResponse + * Encodes the specified ListSavedQueriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.verify|verify} messages. + * @param message ListSavedQueriesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listDataItems(request: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListDataItemsCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListDataItems. - * @param request ListDataItemsRequest message or plain object - * @returns Promise + * Decodes a ListSavedQueriesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSavedQueriesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listDataItems(request: google.cloud.aiplatform.v1beta1.IListDataItemsRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; /** - * Calls SearchDataItems. - * @param request SearchDataItemsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SearchDataItemsResponse + * Decodes a ListSavedQueriesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSavedQueriesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public searchDataItems(request: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.SearchDataItemsCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; /** - * Calls SearchDataItems. - * @param request SearchDataItemsRequest message or plain object - * @returns Promise + * Verifies a ListSavedQueriesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public searchDataItems(request: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListSavedQueries. - * @param request ListSavedQueriesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListSavedQueriesResponse + * Creates a ListSavedQueriesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSavedQueriesRequest */ - public listSavedQueries(request: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueriesCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; /** - * Calls ListSavedQueries. - * @param request ListSavedQueriesRequest message or plain object - * @returns Promise + * Creates a plain object from a ListSavedQueriesRequest message. Also converts values to other types if specified. + * @param message ListSavedQueriesRequest + * @param [options] Conversion options + * @returns Plain object */ - public listSavedQueries(request: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetAnnotationSpec. - * @param request GetAnnotationSpecRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AnnotationSpec + * Converts this ListSavedQueriesRequest to JSON. + * @returns JSON object */ - public getAnnotationSpec(request: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.GetAnnotationSpecCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls GetAnnotationSpec. - * @param request GetAnnotationSpecRequest message or plain object - * @returns Promise + * Gets the default type url for ListSavedQueriesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public getAnnotationSpec(request: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls ListAnnotations. - * @param request ListAnnotationsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListAnnotationsResponse - */ - public listAnnotations(request: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotationsCallback): void; + /** Properties of a ListSavedQueriesResponse. */ + interface IListSavedQueriesResponse { - /** - * Calls ListAnnotations. - * @param request ListAnnotationsRequest message or plain object - * @returns Promise - */ - public listAnnotations(request: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest): Promise; + /** ListSavedQueriesResponse savedQueries */ + savedQueries?: (google.cloud.aiplatform.v1beta1.ISavedQuery[]|null); + + /** ListSavedQueriesResponse nextPageToken */ + nextPageToken?: (string|null); } - namespace DatasetService { + /** Represents a ListSavedQueriesResponse. */ + class ListSavedQueriesResponse implements IListSavedQueriesResponse { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|createDataset}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new ListSavedQueriesResponse. + * @param [properties] Properties to set */ - type CreateDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|getDataset}. - * @param error Error, if any - * @param [response] Dataset - */ - type GetDatasetCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Dataset) => void; + /** ListSavedQueriesResponse savedQueries. */ + public savedQueries: google.cloud.aiplatform.v1beta1.ISavedQuery[]; + + /** ListSavedQueriesResponse nextPageToken. */ + public nextPageToken: string; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|updateDataset}. - * @param error Error, if any - * @param [response] Dataset + * Creates a new ListSavedQueriesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSavedQueriesResponse instance */ - type UpdateDatasetCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Dataset) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse): google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|listDatasets}. - * @param error Error, if any - * @param [response] ListDatasetsResponse + * Encodes the specified ListSavedQueriesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.verify|verify} messages. + * @param message ListSavedQueriesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListDatasetsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDatasetsResponse) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|deleteDataset}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified ListSavedQueriesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.verify|verify} messages. + * @param message ListSavedQueriesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type DeleteDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|importData}. - * @param error Error, if any - * @param [response] Operation + * Decodes a ListSavedQueriesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSavedQueriesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ImportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|exportData}. - * @param error Error, if any - * @param [response] Operation + * Decodes a ListSavedQueriesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSavedQueriesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ExportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|listDataItems}. - * @param error Error, if any - * @param [response] ListDataItemsResponse + * Verifies a ListSavedQueriesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ListDataItemsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDataItemsResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|searchDataItems}. - * @param error Error, if any - * @param [response] SearchDataItemsResponse + * Creates a ListSavedQueriesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSavedQueriesResponse */ - type SearchDataItemsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchDataItemsResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|listSavedQueries}. - * @param error Error, if any - * @param [response] ListSavedQueriesResponse + /** + * Creates a plain object from a ListSavedQueriesResponse message. Also converts values to other types if specified. + * @param message ListSavedQueriesResponse + * @param [options] Conversion options + * @returns Plain object */ - type ListSavedQueriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|getAnnotationSpec}. - * @param error Error, if any - * @param [response] AnnotationSpec + * Converts this ListSavedQueriesResponse to JSON. + * @returns JSON object */ - type GetAnnotationSpecCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AnnotationSpec) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService|listAnnotations}. - * @param error Error, if any - * @param [response] ListAnnotationsResponse + * Gets the default type url for ListSavedQueriesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ListAnnotationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListAnnotationsResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateDatasetRequest. */ - interface ICreateDatasetRequest { + /** Properties of a GetAnnotationSpecRequest. */ + interface IGetAnnotationSpecRequest { - /** CreateDatasetRequest parent */ - parent?: (string|null); + /** GetAnnotationSpecRequest name */ + name?: (string|null); - /** CreateDatasetRequest dataset */ - dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); + /** GetAnnotationSpecRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a CreateDatasetRequest. */ - class CreateDatasetRequest implements ICreateDatasetRequest { + /** Represents a GetAnnotationSpecRequest. */ + class GetAnnotationSpecRequest implements IGetAnnotationSpecRequest { /** - * Constructs a new CreateDatasetRequest. + * Constructs a new GetAnnotationSpecRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest); - /** CreateDatasetRequest parent. */ - public parent: string; + /** GetAnnotationSpecRequest name. */ + public name: string; - /** CreateDatasetRequest dataset. */ - public dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); + /** GetAnnotationSpecRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new CreateDatasetRequest instance using the specified properties. + * Creates a new GetAnnotationSpecRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDatasetRequest instance + * @returns GetAnnotationSpecRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; /** - * Encodes the specified CreateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetRequest.verify|verify} messages. - * @param message CreateDatasetRequest message or plain object to encode + * Encodes the specified GetAnnotationSpecRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.verify|verify} messages. + * @param message GetAnnotationSpecRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetRequest.verify|verify} messages. - * @param message CreateDatasetRequest message or plain object to encode + * Encodes the specified GetAnnotationSpecRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.verify|verify} messages. + * @param message GetAnnotationSpecRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDatasetRequest message from the specified reader or buffer. + * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateDatasetRequest + * @returns GetAnnotationSpecRequest * @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.CreateDatasetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; /** - * Decodes a CreateDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateDatasetRequest + * @returns GetAnnotationSpecRequest * @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.CreateDatasetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; /** - * Verifies a CreateDatasetRequest message. + * Verifies a GetAnnotationSpecRequest 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 CreateDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetAnnotationSpecRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateDatasetRequest + * @returns GetAnnotationSpecRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; /** - * Creates a plain object from a CreateDatasetRequest message. Also converts values to other types if specified. - * @param message CreateDatasetRequest + * Creates a plain object from a GetAnnotationSpecRequest message. Also converts values to other types if specified. + * @param message GetAnnotationSpecRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDatasetRequest to JSON. + * Converts this GetAnnotationSpecRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateDatasetRequest + * Gets the default type url for GetAnnotationSpecRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateDatasetOperationMetadata. */ - interface ICreateDatasetOperationMetadata { + /** Properties of a ListAnnotationsRequest. */ + interface IListAnnotationsRequest { - /** CreateDatasetOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListAnnotationsRequest parent */ + parent?: (string|null); + + /** ListAnnotationsRequest filter */ + filter?: (string|null); + + /** ListAnnotationsRequest pageSize */ + pageSize?: (number|null); + + /** ListAnnotationsRequest pageToken */ + pageToken?: (string|null); + + /** ListAnnotationsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + + /** ListAnnotationsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a CreateDatasetOperationMetadata. */ - class CreateDatasetOperationMetadata implements ICreateDatasetOperationMetadata { + /** Represents a ListAnnotationsRequest. */ + class ListAnnotationsRequest implements IListAnnotationsRequest { /** - * Constructs a new CreateDatasetOperationMetadata. + * Constructs a new ListAnnotationsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest); - /** CreateDatasetOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListAnnotationsRequest parent. */ + public parent: string; + + /** ListAnnotationsRequest filter. */ + public filter: string; + + /** ListAnnotationsRequest pageSize. */ + public pageSize: number; + + /** ListAnnotationsRequest pageToken. */ + public pageToken: string; + + /** ListAnnotationsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** ListAnnotationsRequest orderBy. */ + public orderBy: string; /** - * Creates a new CreateDatasetOperationMetadata instance using the specified properties. + * Creates a new ListAnnotationsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDatasetOperationMetadata instance + * @returns ListAnnotationsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; /** - * Encodes the specified CreateDatasetOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.verify|verify} messages. - * @param message CreateDatasetOperationMetadata message or plain object to encode + * Encodes the specified ListAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.verify|verify} messages. + * @param message ListAnnotationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateDatasetOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.verify|verify} messages. - * @param message CreateDatasetOperationMetadata message or plain object to encode + * Encodes the specified ListAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.verify|verify} messages. + * @param message ListAnnotationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer. + * Decodes a ListAnnotationsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateDatasetOperationMetadata + * @returns ListAnnotationsRequest * @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.CreateDatasetOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; /** - * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListAnnotationsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateDatasetOperationMetadata + * @returns ListAnnotationsRequest * @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.CreateDatasetOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; /** - * Verifies a CreateDatasetOperationMetadata message. + * Verifies a ListAnnotationsRequest 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 CreateDatasetOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListAnnotationsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateDatasetOperationMetadata + * @returns ListAnnotationsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; /** - * Creates a plain object from a CreateDatasetOperationMetadata message. Also converts values to other types if specified. - * @param message CreateDatasetOperationMetadata + * Creates a plain object from a ListAnnotationsRequest message. Also converts values to other types if specified. + * @param message ListAnnotationsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListAnnotationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDatasetOperationMetadata to JSON. + * Converts this ListAnnotationsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateDatasetOperationMetadata + * Gets the default type url for ListAnnotationsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetDatasetRequest. */ - interface IGetDatasetRequest { + /** Properties of a ListAnnotationsResponse. */ + interface IListAnnotationsResponse { - /** GetDatasetRequest name */ - name?: (string|null); + /** ListAnnotationsResponse annotations */ + annotations?: (google.cloud.aiplatform.v1beta1.IAnnotation[]|null); - /** GetDatasetRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** ListAnnotationsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GetDatasetRequest. */ - class GetDatasetRequest implements IGetDatasetRequest { + /** Represents a ListAnnotationsResponse. */ + class ListAnnotationsResponse implements IListAnnotationsResponse { /** - * Constructs a new GetDatasetRequest. + * Constructs a new ListAnnotationsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDatasetRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse); - /** GetDatasetRequest name. */ - public name: string; + /** ListAnnotationsResponse annotations. */ + public annotations: google.cloud.aiplatform.v1beta1.IAnnotation[]; - /** GetDatasetRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ListAnnotationsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetDatasetRequest instance using the specified properties. + * Creates a new ListAnnotationsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetDatasetRequest instance + * @returns ListAnnotationsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDatasetRequest): google.cloud.aiplatform.v1beta1.GetDatasetRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; /** - * Encodes the specified GetDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.verify|verify} messages. - * @param message GetDatasetRequest message or plain object to encode + * Encodes the specified ListAnnotationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.verify|verify} messages. + * @param message ListAnnotationsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.verify|verify} messages. - * @param message GetDatasetRequest message or plain object to encode + * Encodes the specified ListAnnotationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.verify|verify} messages. + * @param message ListAnnotationsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDatasetRequest message from the specified reader or buffer. + * Decodes a ListAnnotationsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDatasetRequest + * @returns ListAnnotationsResponse * @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.GetDatasetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; /** - * Decodes a GetDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAnnotationsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDatasetRequest + * @returns ListAnnotationsResponse * @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.GetDatasetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; /** - * Verifies a GetDatasetRequest message. + * Verifies a ListAnnotationsResponse 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 GetDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAnnotationsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetDatasetRequest + * @returns ListAnnotationsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDatasetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; /** - * Creates a plain object from a GetDatasetRequest message. Also converts values to other types if specified. - * @param message GetDatasetRequest + * Creates a plain object from a ListAnnotationsResponse message. Also converts values to other types if specified. + * @param message ListAnnotationsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListAnnotationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDatasetRequest to JSON. + * Converts this ListAnnotationsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetDatasetRequest + * Gets the default type url for ListAnnotationsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateDatasetRequest. */ - interface IUpdateDatasetRequest { + /** Properties of a GenericOperationMetadata. */ + interface IGenericOperationMetadata { - /** UpdateDatasetRequest dataset */ - dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); + /** GenericOperationMetadata partialFailures */ + partialFailures?: (google.rpc.IStatus[]|null); - /** UpdateDatasetRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** GenericOperationMetadata createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** GenericOperationMetadata updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); } - /** Represents an UpdateDatasetRequest. */ - class UpdateDatasetRequest implements IUpdateDatasetRequest { + /** Represents a GenericOperationMetadata. */ + class GenericOperationMetadata implements IGenericOperationMetadata { /** - * Constructs a new UpdateDatasetRequest. + * Constructs a new GenericOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata); - /** UpdateDatasetRequest dataset. */ - public dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); + /** GenericOperationMetadata partialFailures. */ + public partialFailures: google.rpc.IStatus[]; - /** UpdateDatasetRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** GenericOperationMetadata createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** GenericOperationMetadata updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new UpdateDatasetRequest instance using the specified properties. + * Creates a new GenericOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateDatasetRequest instance + * @returns GenericOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; /** - * Encodes the specified UpdateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.verify|verify} messages. - * @param message UpdateDatasetRequest message or plain object to encode + * Encodes the specified GenericOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify|verify} messages. + * @param message GenericOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.verify|verify} messages. - * @param message UpdateDatasetRequest message or plain object to encode + * Encodes the specified GenericOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify|verify} messages. + * @param message GenericOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateDatasetRequest message from the specified reader or buffer. + * Decodes a GenericOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateDatasetRequest + * @returns GenericOperationMetadata * @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.UpdateDatasetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; /** - * Decodes an UpdateDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes a GenericOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateDatasetRequest + * @returns GenericOperationMetadata * @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.UpdateDatasetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; /** - * Verifies an UpdateDatasetRequest message. + * Verifies a GenericOperationMetadata 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 UpdateDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GenericOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateDatasetRequest + * @returns GenericOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; /** - * Creates a plain object from an UpdateDatasetRequest message. Also converts values to other types if specified. - * @param message UpdateDatasetRequest + * Creates a plain object from a GenericOperationMetadata message. Also converts values to other types if specified. + * @param message GenericOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GenericOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateDatasetRequest to JSON. + * Converts this GenericOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateDatasetRequest + * Gets the default type url for GenericOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDatasetsRequest. */ - interface IListDatasetsRequest { - - /** ListDatasetsRequest parent */ - parent?: (string|null); - - /** ListDatasetsRequest filter */ - filter?: (string|null); - - /** ListDatasetsRequest pageSize */ - pageSize?: (number|null); - - /** ListDatasetsRequest pageToken */ - pageToken?: (string|null); - - /** ListDatasetsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** Properties of a DeleteOperationMetadata. */ + interface IDeleteOperationMetadata { - /** ListDatasetsRequest orderBy */ - orderBy?: (string|null); + /** DeleteOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a ListDatasetsRequest. */ - class ListDatasetsRequest implements IListDatasetsRequest { + /** Represents a DeleteOperationMetadata. */ + class DeleteOperationMetadata implements IDeleteOperationMetadata { /** - * Constructs a new ListDatasetsRequest. + * Constructs a new DeleteOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsRequest); - - /** ListDatasetsRequest parent. */ - public parent: string; - - /** ListDatasetsRequest filter. */ - public filter: string; - - /** ListDatasetsRequest pageSize. */ - public pageSize: number; - - /** ListDatasetsRequest pageToken. */ - public pageToken: string; - - /** ListDatasetsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata); - /** ListDatasetsRequest orderBy. */ - public orderBy: string; + /** DeleteOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ListDatasetsRequest instance using the specified properties. + * Creates a new DeleteOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListDatasetsRequest instance + * @returns DeleteOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsRequest): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; /** - * Encodes the specified ListDatasetsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.verify|verify} messages. - * @param message ListDatasetsRequest message or plain object to encode + * Encodes the specified DeleteOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. + * @param message DeleteOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDatasetsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.verify|verify} messages. - * @param message ListDatasetsRequest message or plain object to encode + * Encodes the specified DeleteOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. + * @param message DeleteOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDatasetsRequest message from the specified reader or buffer. + * Decodes a DeleteOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDatasetsRequest + * @returns DeleteOperationMetadata * @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.ListDatasetsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; /** - * Decodes a ListDatasetsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDatasetsRequest + * @returns DeleteOperationMetadata * @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.ListDatasetsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; /** - * Verifies a ListDatasetsRequest message. + * Verifies a DeleteOperationMetadata 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 ListDatasetsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDatasetsRequest + * @returns DeleteOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; /** - * Creates a plain object from a ListDatasetsRequest message. Also converts values to other types if specified. - * @param message ListDatasetsRequest + * Creates a plain object from a DeleteOperationMetadata message. Also converts values to other types if specified. + * @param message DeleteOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDatasetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDatasetsRequest to JSON. + * Converts this DeleteOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDatasetsRequest + * Gets the default type url for DeleteOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDatasetsResponse. */ - interface IListDatasetsResponse { + /** Properties of a DeployedIndexRef. */ + interface IDeployedIndexRef { - /** ListDatasetsResponse datasets */ - datasets?: (google.cloud.aiplatform.v1beta1.IDataset[]|null); + /** DeployedIndexRef indexEndpoint */ + indexEndpoint?: (string|null); - /** ListDatasetsResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeployedIndexRef deployedIndexId */ + deployedIndexId?: (string|null); } - /** Represents a ListDatasetsResponse. */ - class ListDatasetsResponse implements IListDatasetsResponse { + /** Represents a DeployedIndexRef. */ + class DeployedIndexRef implements IDeployedIndexRef { /** - * Constructs a new ListDatasetsResponse. + * Constructs a new DeployedIndexRef. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexRef); - /** ListDatasetsResponse datasets. */ - public datasets: google.cloud.aiplatform.v1beta1.IDataset[]; + /** DeployedIndexRef indexEndpoint. */ + public indexEndpoint: string; - /** ListDatasetsResponse nextPageToken. */ - public nextPageToken: string; + /** DeployedIndexRef deployedIndexId. */ + public deployedIndexId: string; /** - * Creates a new ListDatasetsResponse instance using the specified properties. + * Creates a new DeployedIndexRef instance using the specified properties. * @param [properties] Properties to set - * @returns ListDatasetsResponse instance + * @returns DeployedIndexRef instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsResponse): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexRef): google.cloud.aiplatform.v1beta1.DeployedIndexRef; /** - * Encodes the specified ListDatasetsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.verify|verify} messages. - * @param message ListDatasetsResponse message or plain object to encode + * Encodes the specified DeployedIndexRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify|verify} messages. + * @param message DeployedIndexRef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndexRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDatasetsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.verify|verify} messages. - * @param message ListDatasetsResponse message or plain object to encode + * Encodes the specified DeployedIndexRef message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify|verify} messages. + * @param message DeployedIndexRef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndexRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDatasetsResponse message from the specified reader or buffer. + * Decodes a DeployedIndexRef message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDatasetsResponse + * @returns DeployedIndexRef * @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.ListDatasetsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedIndexRef; /** - * Decodes a ListDatasetsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeployedIndexRef message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDatasetsResponse + * @returns DeployedIndexRef * @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.ListDatasetsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedIndexRef; /** - * Verifies a ListDatasetsResponse message. + * Verifies a DeployedIndexRef 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 ListDatasetsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeployedIndexRef message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDatasetsResponse + * @returns DeployedIndexRef */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexRef; /** - * Creates a plain object from a ListDatasetsResponse message. Also converts values to other types if specified. - * @param message ListDatasetsResponse + * Creates a plain object from a DeployedIndexRef message. Also converts values to other types if specified. + * @param message DeployedIndexRef * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDatasetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDatasetsResponse to JSON. + * Converts this DeployedIndexRef to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDatasetsResponse + * Gets the default type url for DeployedIndexRef * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteDatasetRequest. */ - interface IDeleteDatasetRequest { + /** Properties of a DeploymentResourcePool. */ + interface IDeploymentResourcePool { - /** DeleteDatasetRequest name */ + /** DeploymentResourcePool name */ name?: (string|null); + + /** DeploymentResourcePool dedicatedResources */ + dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + + /** DeploymentResourcePool createTime */ + createTime?: (google.protobuf.ITimestamp|null); } - /** Represents a DeleteDatasetRequest. */ - class DeleteDatasetRequest implements IDeleteDatasetRequest { + /** Represents a DeploymentResourcePool. */ + class DeploymentResourcePool implements IDeploymentResourcePool { /** - * Constructs a new DeleteDatasetRequest. + * Constructs a new DeploymentResourcePool. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool); - /** DeleteDatasetRequest name. */ + /** DeploymentResourcePool name. */ public name: string; + /** DeploymentResourcePool dedicatedResources. */ + public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + + /** DeploymentResourcePool createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + /** - * Creates a new DeleteDatasetRequest instance using the specified properties. + * Creates a new DeploymentResourcePool instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteDatasetRequest instance + * @returns DeploymentResourcePool instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool): google.cloud.aiplatform.v1beta1.DeploymentResourcePool; /** - * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.verify|verify} messages. - * @param message DeleteDatasetRequest message or plain object to encode + * Encodes the specified DeploymentResourcePool message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePool.verify|verify} messages. + * @param message DeploymentResourcePool message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.verify|verify} messages. - * @param message DeleteDatasetRequest message or plain object to encode + * Encodes the specified DeploymentResourcePool message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePool.verify|verify} messages. + * @param message DeploymentResourcePool message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteDatasetRequest message from the specified reader or buffer. + * Decodes a DeploymentResourcePool message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteDatasetRequest + * @returns DeploymentResourcePool * @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.DeleteDatasetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeploymentResourcePool; /** - * Decodes a DeleteDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes a DeploymentResourcePool message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteDatasetRequest + * @returns DeploymentResourcePool * @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.DeleteDatasetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeploymentResourcePool; /** - * Verifies a DeleteDatasetRequest message. + * Verifies a DeploymentResourcePool 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 DeleteDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeploymentResourcePool message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteDatasetRequest + * @returns DeploymentResourcePool */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeploymentResourcePool; /** - * Creates a plain object from a DeleteDatasetRequest message. Also converts values to other types if specified. - * @param message DeleteDatasetRequest + * Creates a plain object from a DeploymentResourcePool message. Also converts values to other types if specified. + * @param message DeploymentResourcePool * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeploymentResourcePool, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteDatasetRequest to JSON. + * Converts this DeploymentResourcePool to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteDatasetRequest + * Gets the default type url for DeploymentResourcePool * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportDataRequest. */ - interface IImportDataRequest { + /** Represents a DeploymentResourcePoolService */ + class DeploymentResourcePoolService extends $protobuf.rpc.Service { - /** ImportDataRequest name */ - name?: (string|null); + /** + * Constructs a new DeploymentResourcePoolService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** ImportDataRequest importConfigs */ - importConfigs?: (google.cloud.aiplatform.v1beta1.IImportDataConfig[]|null); - } + /** + * Creates new DeploymentResourcePoolService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DeploymentResourcePoolService; - /** Represents an ImportDataRequest. */ - class ImportDataRequest implements IImportDataRequest { + /** + * Calls CreateDeploymentResourcePool. + * @param request CreateDeploymentResourcePoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.CreateDeploymentResourcePoolCallback): void; /** - * Constructs a new ImportDataRequest. - * @param [properties] Properties to set + * Calls CreateDeploymentResourcePool. + * @param request CreateDeploymentResourcePoolRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataRequest); + public createDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest): Promise; - /** ImportDataRequest name. */ - public name: string; + /** + * Calls GetDeploymentResourcePool. + * @param request GetDeploymentResourcePoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DeploymentResourcePool + */ + public getDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.GetDeploymentResourcePoolCallback): void; - /** ImportDataRequest importConfigs. */ - public importConfigs: google.cloud.aiplatform.v1beta1.IImportDataConfig[]; + /** + * Calls GetDeploymentResourcePool. + * @param request GetDeploymentResourcePoolRequest message or plain object + * @returns Promise + */ + public getDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest): Promise; /** - * Creates a new ImportDataRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportDataRequest instance + * Calls ListDeploymentResourcePools. + * @param request ListDeploymentResourcePoolsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDeploymentResourcePoolsResponse */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataRequest): google.cloud.aiplatform.v1beta1.ImportDataRequest; + public listDeploymentResourcePools(request: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.ListDeploymentResourcePoolsCallback): void; /** - * Encodes the specified ImportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.verify|verify} messages. - * @param message ImportDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListDeploymentResourcePools. + * @param request ListDeploymentResourcePoolsRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listDeploymentResourcePools(request: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest): Promise; /** - * Encodes the specified ImportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.verify|verify} messages. - * @param message ImportDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteDeploymentResourcePool. + * @param request DeleteDeploymentResourcePoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.DeleteDeploymentResourcePoolCallback): void; /** - * Decodes an ImportDataRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteDeploymentResourcePool. + * @param request DeleteDeploymentResourcePoolRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataRequest; + public deleteDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest): Promise; /** - * Decodes an ImportDataRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls QueryDeployedModels. + * @param request QueryDeployedModelsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and QueryDeployedModelsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataRequest; + public queryDeployedModels(request: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.QueryDeployedModelsCallback): void; /** - * Verifies an ImportDataRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls QueryDeployedModels. + * @param request QueryDeployedModelsRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public queryDeployedModels(request: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest): Promise; + } + + namespace DeploymentResourcePoolService { /** - * Creates an ImportDataRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportDataRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|createDeploymentResourcePool}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataRequest; + type CreateDeploymentResourcePoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from an ImportDataRequest message. Also converts values to other types if specified. - * @param message ImportDataRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|getDeploymentResourcePool}. + * @param error Error, if any + * @param [response] DeploymentResourcePool */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type GetDeploymentResourcePoolCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DeploymentResourcePool) => void; /** - * Converts this ImportDataRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|listDeploymentResourcePools}. + * @param error Error, if any + * @param [response] ListDeploymentResourcePoolsResponse */ - public toJSON(): { [k: string]: any }; + type ListDeploymentResourcePoolsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse) => void; /** - * Gets the default type url for ImportDataRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|deleteDeploymentResourcePool}. + * @param error Error, if any + * @param [response] Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type DeleteDeploymentResourcePoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|queryDeployedModels}. + * @param error Error, if any + * @param [response] QueryDeployedModelsResponse + */ + type QueryDeployedModelsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse) => void; } - /** Properties of an ImportDataResponse. */ - interface IImportDataResponse { + /** Properties of a CreateDeploymentResourcePoolRequest. */ + interface ICreateDeploymentResourcePoolRequest { + + /** CreateDeploymentResourcePoolRequest parent */ + parent?: (string|null); + + /** CreateDeploymentResourcePoolRequest deploymentResourcePool */ + deploymentResourcePool?: (google.cloud.aiplatform.v1beta1.IDeploymentResourcePool|null); + + /** CreateDeploymentResourcePoolRequest deploymentResourcePoolId */ + deploymentResourcePoolId?: (string|null); } - /** Represents an ImportDataResponse. */ - class ImportDataResponse implements IImportDataResponse { + /** Represents a CreateDeploymentResourcePoolRequest. */ + class CreateDeploymentResourcePoolRequest implements ICreateDeploymentResourcePoolRequest { /** - * Constructs a new ImportDataResponse. + * Constructs a new CreateDeploymentResourcePoolRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest); + + /** CreateDeploymentResourcePoolRequest parent. */ + public parent: string; + + /** CreateDeploymentResourcePoolRequest deploymentResourcePool. */ + public deploymentResourcePool?: (google.cloud.aiplatform.v1beta1.IDeploymentResourcePool|null); + + /** CreateDeploymentResourcePoolRequest deploymentResourcePoolId. */ + public deploymentResourcePoolId: string; /** - * Creates a new ImportDataResponse instance using the specified properties. + * Creates a new CreateDeploymentResourcePoolRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportDataResponse instance + * @returns CreateDeploymentResourcePoolRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataResponse): google.cloud.aiplatform.v1beta1.ImportDataResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest; /** - * Encodes the specified ImportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.verify|verify} messages. - * @param message ImportDataResponse message or plain object to encode + * Encodes the specified CreateDeploymentResourcePoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest.verify|verify} messages. + * @param message CreateDeploymentResourcePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.verify|verify} messages. - * @param message ImportDataResponse message or plain object to encode + * Encodes the specified CreateDeploymentResourcePoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest.verify|verify} messages. + * @param message CreateDeploymentResourcePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportDataResponse message from the specified reader or buffer. + * Decodes a CreateDeploymentResourcePoolRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportDataResponse + * @returns CreateDeploymentResourcePoolRequest * @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.ImportDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest; /** - * Decodes an ImportDataResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateDeploymentResourcePoolRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportDataResponse + * @returns CreateDeploymentResourcePoolRequest * @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.ImportDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest; /** - * Verifies an ImportDataResponse message. + * Verifies a CreateDeploymentResourcePoolRequest 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 ImportDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDeploymentResourcePoolRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportDataResponse + * @returns CreateDeploymentResourcePoolRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest; /** - * Creates a plain object from an ImportDataResponse message. Also converts values to other types if specified. - * @param message ImportDataResponse + * Creates a plain object from a CreateDeploymentResourcePoolRequest message. Also converts values to other types if specified. + * @param message CreateDeploymentResourcePoolRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportDataResponse to JSON. + * Converts this CreateDeploymentResourcePoolRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportDataResponse + * Gets the default type url for CreateDeploymentResourcePoolRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportDataOperationMetadata. */ - interface IImportDataOperationMetadata { + /** Properties of a CreateDeploymentResourcePoolOperationMetadata. */ + interface ICreateDeploymentResourcePoolOperationMetadata { - /** ImportDataOperationMetadata genericMetadata */ + /** CreateDeploymentResourcePoolOperationMetadata genericMetadata */ genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents an ImportDataOperationMetadata. */ - class ImportDataOperationMetadata implements IImportDataOperationMetadata { + /** Represents a CreateDeploymentResourcePoolOperationMetadata. */ + class CreateDeploymentResourcePoolOperationMetadata implements ICreateDeploymentResourcePoolOperationMetadata { /** - * Constructs a new ImportDataOperationMetadata. + * Constructs a new CreateDeploymentResourcePoolOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolOperationMetadata); - /** ImportDataOperationMetadata genericMetadata. */ + /** CreateDeploymentResourcePoolOperationMetadata genericMetadata. */ public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ImportDataOperationMetadata instance using the specified properties. + * Creates a new CreateDeploymentResourcePoolOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ImportDataOperationMetadata instance + * @returns CreateDeploymentResourcePoolOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolOperationMetadata): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata; /** - * Encodes the specified ImportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.verify|verify} messages. - * @param message ImportDataOperationMetadata message or plain object to encode + * Encodes the specified CreateDeploymentResourcePoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata.verify|verify} messages. + * @param message CreateDeploymentResourcePoolOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.verify|verify} messages. - * @param message ImportDataOperationMetadata message or plain object to encode + * Encodes the specified CreateDeploymentResourcePoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata.verify|verify} messages. + * @param message CreateDeploymentResourcePoolOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportDataOperationMetadata message from the specified reader or buffer. + * Decodes a CreateDeploymentResourcePoolOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportDataOperationMetadata + * @returns CreateDeploymentResourcePoolOperationMetadata * @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.ImportDataOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata; /** - * Decodes an ImportDataOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateDeploymentResourcePoolOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportDataOperationMetadata + * @returns CreateDeploymentResourcePoolOperationMetadata * @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.ImportDataOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata; /** - * Verifies an ImportDataOperationMetadata message. + * Verifies a CreateDeploymentResourcePoolOperationMetadata 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 ImportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDeploymentResourcePoolOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportDataOperationMetadata + * @returns CreateDeploymentResourcePoolOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata; /** - * Creates a plain object from an ImportDataOperationMetadata message. Also converts values to other types if specified. - * @param message ImportDataOperationMetadata + * Creates a plain object from a CreateDeploymentResourcePoolOperationMetadata message. Also converts values to other types if specified. + * @param message CreateDeploymentResourcePoolOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportDataOperationMetadata to JSON. + * Converts this CreateDeploymentResourcePoolOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportDataOperationMetadata + * Gets the default type url for CreateDeploymentResourcePoolOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportDataRequest. */ - interface IExportDataRequest { + /** Properties of a GetDeploymentResourcePoolRequest. */ + interface IGetDeploymentResourcePoolRequest { - /** ExportDataRequest name */ + /** GetDeploymentResourcePoolRequest name */ name?: (string|null); - - /** ExportDataRequest exportConfig */ - exportConfig?: (google.cloud.aiplatform.v1beta1.IExportDataConfig|null); } - /** Represents an ExportDataRequest. */ - class ExportDataRequest implements IExportDataRequest { + /** Represents a GetDeploymentResourcePoolRequest. */ + class GetDeploymentResourcePoolRequest implements IGetDeploymentResourcePoolRequest { /** - * Constructs a new ExportDataRequest. + * Constructs a new GetDeploymentResourcePoolRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest); - /** ExportDataRequest name. */ + /** GetDeploymentResourcePoolRequest name. */ public name: string; - /** ExportDataRequest exportConfig. */ - public exportConfig?: (google.cloud.aiplatform.v1beta1.IExportDataConfig|null); - /** - * Creates a new ExportDataRequest instance using the specified properties. + * Creates a new GetDeploymentResourcePoolRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportDataRequest instance + * @returns GetDeploymentResourcePoolRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataRequest): google.cloud.aiplatform.v1beta1.ExportDataRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest): google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest; /** - * Encodes the specified ExportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.verify|verify} messages. - * @param message ExportDataRequest message or plain object to encode + * Encodes the specified GetDeploymentResourcePoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest.verify|verify} messages. + * @param message GetDeploymentResourcePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.verify|verify} messages. - * @param message ExportDataRequest message or plain object to encode + * Encodes the specified GetDeploymentResourcePoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest.verify|verify} messages. + * @param message GetDeploymentResourcePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportDataRequest message from the specified reader or buffer. + * Decodes a GetDeploymentResourcePoolRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportDataRequest + * @returns GetDeploymentResourcePoolRequest * @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.ExportDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest; /** - * Decodes an ExportDataRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDeploymentResourcePoolRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportDataRequest + * @returns GetDeploymentResourcePoolRequest * @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.ExportDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest; /** - * Verifies an ExportDataRequest message. + * Verifies a GetDeploymentResourcePoolRequest 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 ExportDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDeploymentResourcePoolRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportDataRequest + * @returns GetDeploymentResourcePoolRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest; /** - * Creates a plain object from an ExportDataRequest message. Also converts values to other types if specified. - * @param message ExportDataRequest + * Creates a plain object from a GetDeploymentResourcePoolRequest message. Also converts values to other types if specified. + * @param message GetDeploymentResourcePoolRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportDataRequest to JSON. + * Converts this GetDeploymentResourcePoolRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportDataRequest + * Gets the default type url for GetDeploymentResourcePoolRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportDataResponse. */ - interface IExportDataResponse { + /** Properties of a ListDeploymentResourcePoolsRequest. */ + interface IListDeploymentResourcePoolsRequest { - /** ExportDataResponse exportedFiles */ - exportedFiles?: (string[]|null); + /** ListDeploymentResourcePoolsRequest parent */ + parent?: (string|null); + + /** ListDeploymentResourcePoolsRequest pageSize */ + pageSize?: (number|null); + + /** ListDeploymentResourcePoolsRequest pageToken */ + pageToken?: (string|null); } - /** Represents an ExportDataResponse. */ - class ExportDataResponse implements IExportDataResponse { + /** Represents a ListDeploymentResourcePoolsRequest. */ + class ListDeploymentResourcePoolsRequest implements IListDeploymentResourcePoolsRequest { /** - * Constructs a new ExportDataResponse. + * Constructs a new ListDeploymentResourcePoolsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest); - /** ExportDataResponse exportedFiles. */ - public exportedFiles: string[]; + /** ListDeploymentResourcePoolsRequest parent. */ + public parent: string; + + /** ListDeploymentResourcePoolsRequest pageSize. */ + public pageSize: number; + + /** ListDeploymentResourcePoolsRequest pageToken. */ + public pageToken: string; /** - * Creates a new ExportDataResponse instance using the specified properties. + * Creates a new ListDeploymentResourcePoolsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportDataResponse instance + * @returns ListDeploymentResourcePoolsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataResponse): google.cloud.aiplatform.v1beta1.ExportDataResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest; /** - * Encodes the specified ExportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.verify|verify} messages. - * @param message ExportDataResponse message or plain object to encode + * Encodes the specified ListDeploymentResourcePoolsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest.verify|verify} messages. + * @param message ListDeploymentResourcePoolsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.verify|verify} messages. - * @param message ExportDataResponse message or plain object to encode + * Encodes the specified ListDeploymentResourcePoolsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest.verify|verify} messages. + * @param message ListDeploymentResourcePoolsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportDataResponse message from the specified reader or buffer. + * Decodes a ListDeploymentResourcePoolsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportDataResponse + * @returns ListDeploymentResourcePoolsRequest * @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.ExportDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest; /** - * Decodes an ExportDataResponse message from the specified reader or buffer, length delimited. + * Decodes a ListDeploymentResourcePoolsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportDataResponse + * @returns ListDeploymentResourcePoolsRequest * @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.ExportDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest; /** - * Verifies an ExportDataResponse message. + * Verifies a ListDeploymentResourcePoolsRequest 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 ExportDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListDeploymentResourcePoolsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportDataResponse + * @returns ListDeploymentResourcePoolsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest; /** - * Creates a plain object from an ExportDataResponse message. Also converts values to other types if specified. - * @param message ExportDataResponse + * Creates a plain object from a ListDeploymentResourcePoolsRequest message. Also converts values to other types if specified. + * @param message ListDeploymentResourcePoolsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportDataResponse to JSON. + * Converts this ListDeploymentResourcePoolsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportDataResponse + * Gets the default type url for ListDeploymentResourcePoolsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportDataOperationMetadata. */ - interface IExportDataOperationMetadata { + /** Properties of a ListDeploymentResourcePoolsResponse. */ + interface IListDeploymentResourcePoolsResponse { - /** ExportDataOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListDeploymentResourcePoolsResponse deploymentResourcePools */ + deploymentResourcePools?: (google.cloud.aiplatform.v1beta1.IDeploymentResourcePool[]|null); - /** ExportDataOperationMetadata gcsOutputDirectory */ - gcsOutputDirectory?: (string|null); + /** ListDeploymentResourcePoolsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an ExportDataOperationMetadata. */ - class ExportDataOperationMetadata implements IExportDataOperationMetadata { + /** Represents a ListDeploymentResourcePoolsResponse. */ + class ListDeploymentResourcePoolsResponse implements IListDeploymentResourcePoolsResponse { /** - * Constructs a new ExportDataOperationMetadata. + * Constructs a new ListDeploymentResourcePoolsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsResponse); - /** ExportDataOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListDeploymentResourcePoolsResponse deploymentResourcePools. */ + public deploymentResourcePools: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool[]; - /** ExportDataOperationMetadata gcsOutputDirectory. */ - public gcsOutputDirectory: string; + /** ListDeploymentResourcePoolsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ExportDataOperationMetadata instance using the specified properties. + * Creates a new ListDeploymentResourcePoolsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExportDataOperationMetadata instance + * @returns ListDeploymentResourcePoolsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsResponse): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse; /** - * Encodes the specified ExportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. - * @param message ExportDataOperationMetadata message or plain object to encode + * Encodes the specified ListDeploymentResourcePoolsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse.verify|verify} messages. + * @param message ListDeploymentResourcePoolsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. - * @param message ExportDataOperationMetadata message or plain object to encode + * Encodes the specified ListDeploymentResourcePoolsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse.verify|verify} messages. + * @param message ListDeploymentResourcePoolsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportDataOperationMetadata message from the specified reader or buffer. + * Decodes a ListDeploymentResourcePoolsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportDataOperationMetadata + * @returns ListDeploymentResourcePoolsResponse * @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.ExportDataOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse; /** - * Decodes an ExportDataOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListDeploymentResourcePoolsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportDataOperationMetadata + * @returns ListDeploymentResourcePoolsResponse * @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.ExportDataOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse; /** - * Verifies an ExportDataOperationMetadata message. + * Verifies a ListDeploymentResourcePoolsResponse 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 ExportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListDeploymentResourcePoolsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportDataOperationMetadata + * @returns ListDeploymentResourcePoolsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse; /** - * Creates a plain object from an ExportDataOperationMetadata message. Also converts values to other types if specified. - * @param message ExportDataOperationMetadata + * Creates a plain object from a ListDeploymentResourcePoolsResponse message. Also converts values to other types if specified. + * @param message ListDeploymentResourcePoolsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportDataOperationMetadata to JSON. + * Converts this ListDeploymentResourcePoolsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportDataOperationMetadata + * Gets the default type url for ListDeploymentResourcePoolsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDataItemsRequest. */ - interface IListDataItemsRequest { - - /** ListDataItemsRequest parent */ - parent?: (string|null); - - /** ListDataItemsRequest filter */ - filter?: (string|null); - - /** ListDataItemsRequest pageSize */ - pageSize?: (number|null); - - /** ListDataItemsRequest pageToken */ - pageToken?: (string|null); - - /** ListDataItemsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** Properties of an UpdateDeploymentResourcePoolOperationMetadata. */ + interface IUpdateDeploymentResourcePoolOperationMetadata { - /** ListDataItemsRequest orderBy */ - orderBy?: (string|null); + /** UpdateDeploymentResourcePoolOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a ListDataItemsRequest. */ - class ListDataItemsRequest implements IListDataItemsRequest { + /** Represents an UpdateDeploymentResourcePoolOperationMetadata. */ + class UpdateDeploymentResourcePoolOperationMetadata implements IUpdateDeploymentResourcePoolOperationMetadata { /** - * Constructs a new ListDataItemsRequest. + * Constructs a new UpdateDeploymentResourcePoolOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsRequest); - - /** ListDataItemsRequest parent. */ - public parent: string; - - /** ListDataItemsRequest filter. */ - public filter: string; - - /** ListDataItemsRequest pageSize. */ - public pageSize: number; - - /** ListDataItemsRequest pageToken. */ - public pageToken: string; - - /** ListDataItemsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateDeploymentResourcePoolOperationMetadata); - /** ListDataItemsRequest orderBy. */ - public orderBy: string; + /** UpdateDeploymentResourcePoolOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ListDataItemsRequest instance using the specified properties. + * Creates a new UpdateDeploymentResourcePoolOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataItemsRequest instance + * @returns UpdateDeploymentResourcePoolOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsRequest): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateDeploymentResourcePoolOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata; /** - * Encodes the specified ListDataItemsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. - * @param message ListDataItemsRequest message or plain object to encode + * Encodes the specified UpdateDeploymentResourcePoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata.verify|verify} messages. + * @param message UpdateDeploymentResourcePoolOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateDeploymentResourcePoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDataItemsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. - * @param message ListDataItemsRequest message or plain object to encode + * Encodes the specified UpdateDeploymentResourcePoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata.verify|verify} messages. + * @param message UpdateDeploymentResourcePoolOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateDeploymentResourcePoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataItemsRequest message from the specified reader or buffer. + * Decodes an UpdateDeploymentResourcePoolOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDataItemsRequest + * @returns UpdateDeploymentResourcePoolOperationMetadata * @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.ListDataItemsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata; /** - * Decodes a ListDataItemsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateDeploymentResourcePoolOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDataItemsRequest + * @returns UpdateDeploymentResourcePoolOperationMetadata * @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.ListDataItemsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata; /** - * Verifies a ListDataItemsRequest message. + * Verifies an UpdateDeploymentResourcePoolOperationMetadata 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 ListDataItemsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDeploymentResourcePoolOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDataItemsRequest + * @returns UpdateDeploymentResourcePoolOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata; /** - * Creates a plain object from a ListDataItemsRequest message. Also converts values to other types if specified. - * @param message ListDataItemsRequest + * Creates a plain object from an UpdateDeploymentResourcePoolOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateDeploymentResourcePoolOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataItemsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataItemsRequest to JSON. + * Converts this UpdateDeploymentResourcePoolOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDataItemsRequest + * Gets the default type url for UpdateDeploymentResourcePoolOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDataItemsResponse. */ - interface IListDataItemsResponse { - - /** ListDataItemsResponse dataItems */ - dataItems?: (google.cloud.aiplatform.v1beta1.IDataItem[]|null); + /** Properties of a DeleteDeploymentResourcePoolRequest. */ + interface IDeleteDeploymentResourcePoolRequest { - /** ListDataItemsResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeleteDeploymentResourcePoolRequest name */ + name?: (string|null); } - /** Represents a ListDataItemsResponse. */ - class ListDataItemsResponse implements IListDataItemsResponse { + /** Represents a DeleteDeploymentResourcePoolRequest. */ + class DeleteDeploymentResourcePoolRequest implements IDeleteDeploymentResourcePoolRequest { /** - * Constructs a new ListDataItemsResponse. + * Constructs a new DeleteDeploymentResourcePoolRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsResponse); - - /** ListDataItemsResponse dataItems. */ - public dataItems: google.cloud.aiplatform.v1beta1.IDataItem[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest); - /** ListDataItemsResponse nextPageToken. */ - public nextPageToken: string; + /** DeleteDeploymentResourcePoolRequest name. */ + public name: string; /** - * Creates a new ListDataItemsResponse instance using the specified properties. + * Creates a new DeleteDeploymentResourcePoolRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataItemsResponse instance + * @returns DeleteDeploymentResourcePoolRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsResponse): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest): google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest; /** - * Encodes the specified ListDataItemsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.verify|verify} messages. - * @param message ListDataItemsResponse message or plain object to encode + * Encodes the specified DeleteDeploymentResourcePoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest.verify|verify} messages. + * @param message DeleteDeploymentResourcePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDataItemsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.verify|verify} messages. - * @param message ListDataItemsResponse message or plain object to encode + * Encodes the specified DeleteDeploymentResourcePoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest.verify|verify} messages. + * @param message DeleteDeploymentResourcePoolRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataItemsResponse message from the specified reader or buffer. + * Decodes a DeleteDeploymentResourcePoolRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDataItemsResponse + * @returns DeleteDeploymentResourcePoolRequest * @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.ListDataItemsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest; /** - * Decodes a ListDataItemsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteDeploymentResourcePoolRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDataItemsResponse + * @returns DeleteDeploymentResourcePoolRequest * @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.ListDataItemsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest; /** - * Verifies a ListDataItemsResponse message. + * Verifies a DeleteDeploymentResourcePoolRequest 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 ListDataItemsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDeploymentResourcePoolRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDataItemsResponse + * @returns DeleteDeploymentResourcePoolRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest; /** - * Creates a plain object from a ListDataItemsResponse message. Also converts values to other types if specified. - * @param message ListDataItemsResponse + * Creates a plain object from a DeleteDeploymentResourcePoolRequest message. Also converts values to other types if specified. + * @param message DeleteDeploymentResourcePoolRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataItemsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataItemsResponse to JSON. + * Converts this DeleteDeploymentResourcePoolRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDataItemsResponse + * Gets the default type url for DeleteDeploymentResourcePoolRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchDataItemsRequest. */ - interface ISearchDataItemsRequest { - - /** SearchDataItemsRequest orderByDataItem */ - orderByDataItem?: (string|null); - - /** SearchDataItemsRequest orderByAnnotation */ - orderByAnnotation?: (google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation|null); - - /** SearchDataItemsRequest dataset */ - dataset?: (string|null); - - /** SearchDataItemsRequest savedQuery */ - savedQuery?: (string|null); - - /** SearchDataItemsRequest dataLabelingJob */ - dataLabelingJob?: (string|null); - - /** SearchDataItemsRequest dataItemFilter */ - dataItemFilter?: (string|null); - - /** SearchDataItemsRequest annotationsFilter */ - annotationsFilter?: (string|null); - - /** SearchDataItemsRequest annotationFilters */ - annotationFilters?: (string[]|null); - - /** SearchDataItemsRequest fieldMask */ - fieldMask?: (google.protobuf.IFieldMask|null); + /** Properties of a QueryDeployedModelsRequest. */ + interface IQueryDeployedModelsRequest { - /** SearchDataItemsRequest annotationsLimit */ - annotationsLimit?: (number|null); + /** QueryDeployedModelsRequest deploymentResourcePool */ + deploymentResourcePool?: (string|null); - /** SearchDataItemsRequest pageSize */ + /** QueryDeployedModelsRequest pageSize */ pageSize?: (number|null); - /** SearchDataItemsRequest orderBy */ - orderBy?: (string|null); - - /** SearchDataItemsRequest pageToken */ + /** QueryDeployedModelsRequest pageToken */ pageToken?: (string|null); } - /** Represents a SearchDataItemsRequest. */ - class SearchDataItemsRequest implements ISearchDataItemsRequest { + /** Represents a QueryDeployedModelsRequest. */ + class QueryDeployedModelsRequest implements IQueryDeployedModelsRequest { /** - * Constructs a new SearchDataItemsRequest. + * Constructs a new QueryDeployedModelsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest); - - /** SearchDataItemsRequest orderByDataItem. */ - public orderByDataItem?: (string|null); - - /** SearchDataItemsRequest orderByAnnotation. */ - public orderByAnnotation?: (google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation|null); - - /** SearchDataItemsRequest dataset. */ - public dataset: string; - - /** SearchDataItemsRequest savedQuery. */ - public savedQuery: string; - - /** SearchDataItemsRequest dataLabelingJob. */ - public dataLabelingJob: string; - - /** SearchDataItemsRequest dataItemFilter. */ - public dataItemFilter: string; - - /** SearchDataItemsRequest annotationsFilter. */ - public annotationsFilter: string; - - /** SearchDataItemsRequest annotationFilters. */ - public annotationFilters: string[]; - - /** SearchDataItemsRequest fieldMask. */ - public fieldMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest); - /** SearchDataItemsRequest annotationsLimit. */ - public annotationsLimit: number; + /** QueryDeployedModelsRequest deploymentResourcePool. */ + public deploymentResourcePool: string; - /** SearchDataItemsRequest pageSize. */ + /** QueryDeployedModelsRequest pageSize. */ public pageSize: number; - /** SearchDataItemsRequest orderBy. */ - public orderBy: string; - - /** SearchDataItemsRequest pageToken. */ + /** QueryDeployedModelsRequest pageToken. */ public pageToken: string; - /** SearchDataItemsRequest order. */ - public order?: ("orderByDataItem"|"orderByAnnotation"); - /** - * Creates a new SearchDataItemsRequest instance using the specified properties. + * Creates a new QueryDeployedModelsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchDataItemsRequest instance + * @returns QueryDeployedModelsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest): google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest; /** - * Encodes the specified SearchDataItemsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.verify|verify} messages. - * @param message SearchDataItemsRequest message or plain object to encode + * Encodes the specified QueryDeployedModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest.verify|verify} messages. + * @param message QueryDeployedModelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchDataItemsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.verify|verify} messages. - * @param message SearchDataItemsRequest message or plain object to encode + * Encodes the specified QueryDeployedModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest.verify|verify} messages. + * @param message QueryDeployedModelsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchDataItemsRequest message from the specified reader or buffer. + * Decodes a QueryDeployedModelsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchDataItemsRequest + * @returns QueryDeployedModelsRequest * @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.SearchDataItemsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest; /** - * Decodes a SearchDataItemsRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryDeployedModelsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchDataItemsRequest + * @returns QueryDeployedModelsRequest * @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.SearchDataItemsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest; /** - * Verifies a SearchDataItemsRequest message. + * Verifies a QueryDeployedModelsRequest 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 SearchDataItemsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDeployedModelsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchDataItemsRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest; - - /** - * Creates a plain object from a SearchDataItemsRequest message. Also converts values to other types if specified. - * @param message SearchDataItemsRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SearchDataItemsRequest to JSON. - * @returns JSON object + * @returns QueryDeployedModelsRequest */ - public toJSON(): { [k: string]: any }; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest; /** - * Gets the default type url for SearchDataItemsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace SearchDataItemsRequest { - - /** Properties of an OrderByAnnotation. */ - interface IOrderByAnnotation { - - /** OrderByAnnotation savedQuery */ - savedQuery?: (string|null); - - /** OrderByAnnotation orderBy */ - orderBy?: (string|null); - } - - /** Represents an OrderByAnnotation. */ - class OrderByAnnotation implements IOrderByAnnotation { - - /** - * Constructs a new OrderByAnnotation. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation); - - /** OrderByAnnotation savedQuery. */ - public savedQuery: string; - - /** OrderByAnnotation orderBy. */ - public orderBy: string; - - /** - * Creates a new OrderByAnnotation instance using the specified properties. - * @param [properties] Properties to set - * @returns OrderByAnnotation instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation; - - /** - * Encodes the specified OrderByAnnotation message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation.verify|verify} messages. - * @param message OrderByAnnotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified OrderByAnnotation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation.verify|verify} messages. - * @param message OrderByAnnotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.IOrderByAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OrderByAnnotation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OrderByAnnotation - * @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.SearchDataItemsRequest.OrderByAnnotation; - - /** - * Decodes an OrderByAnnotation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OrderByAnnotation - * @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.SearchDataItemsRequest.OrderByAnnotation; - - /** - * Verifies an OrderByAnnotation 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 OrderByAnnotation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OrderByAnnotation - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation; - - /** - * Creates a plain object from an OrderByAnnotation message. Also converts values to other types if specified. - * @param message OrderByAnnotation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchDataItemsRequest.OrderByAnnotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + * Creates a plain object from a QueryDeployedModelsRequest message. Also converts values to other types if specified. + * @param message QueryDeployedModelsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this OrderByAnnotation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this QueryDeployedModelsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for OrderByAnnotation - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for QueryDeployedModelsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchDataItemsResponse. */ - interface ISearchDataItemsResponse { + /** Properties of a QueryDeployedModelsResponse. */ + interface IQueryDeployedModelsResponse { - /** SearchDataItemsResponse dataItemViews */ - dataItemViews?: (google.cloud.aiplatform.v1beta1.IDataItemView[]|null); + /** QueryDeployedModelsResponse deployedModels */ + deployedModels?: (google.cloud.aiplatform.v1beta1.IDeployedModel[]|null); - /** SearchDataItemsResponse nextPageToken */ + /** QueryDeployedModelsResponse nextPageToken */ nextPageToken?: (string|null); + + /** QueryDeployedModelsResponse deployedModelRefs */ + deployedModelRefs?: (google.cloud.aiplatform.v1beta1.IDeployedModelRef[]|null); + + /** QueryDeployedModelsResponse totalDeployedModelCount */ + totalDeployedModelCount?: (number|null); + + /** QueryDeployedModelsResponse totalEndpointCount */ + totalEndpointCount?: (number|null); } - /** Represents a SearchDataItemsResponse. */ - class SearchDataItemsResponse implements ISearchDataItemsResponse { + /** Represents a QueryDeployedModelsResponse. */ + class QueryDeployedModelsResponse implements IQueryDeployedModelsResponse { /** - * Constructs a new SearchDataItemsResponse. + * Constructs a new QueryDeployedModelsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchDataItemsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsResponse); - /** SearchDataItemsResponse dataItemViews. */ - public dataItemViews: google.cloud.aiplatform.v1beta1.IDataItemView[]; + /** QueryDeployedModelsResponse deployedModels. */ + public deployedModels: google.cloud.aiplatform.v1beta1.IDeployedModel[]; - /** SearchDataItemsResponse nextPageToken. */ + /** QueryDeployedModelsResponse nextPageToken. */ public nextPageToken: string; + /** QueryDeployedModelsResponse deployedModelRefs. */ + public deployedModelRefs: google.cloud.aiplatform.v1beta1.IDeployedModelRef[]; + + /** QueryDeployedModelsResponse totalDeployedModelCount. */ + public totalDeployedModelCount: number; + + /** QueryDeployedModelsResponse totalEndpointCount. */ + public totalEndpointCount: number; + /** - * Creates a new SearchDataItemsResponse instance using the specified properties. + * Creates a new QueryDeployedModelsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns SearchDataItemsResponse instance + * @returns QueryDeployedModelsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchDataItemsResponse): google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsResponse): google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse; /** - * Encodes the specified SearchDataItemsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.verify|verify} messages. - * @param message SearchDataItemsResponse message or plain object to encode + * Encodes the specified QueryDeployedModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse.verify|verify} messages. + * @param message QueryDeployedModelsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchDataItemsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchDataItemsResponse.verify|verify} messages. - * @param message SearchDataItemsResponse message or plain object to encode + * Encodes the specified QueryDeployedModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse.verify|verify} messages. + * @param message QueryDeployedModelsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchDataItemsResponse message from the specified reader or buffer. + * Decodes a QueryDeployedModelsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchDataItemsResponse + * @returns QueryDeployedModelsResponse * @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.SearchDataItemsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse; /** - * Decodes a SearchDataItemsResponse message from the specified reader or buffer, length delimited. + * Decodes a QueryDeployedModelsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchDataItemsResponse + * @returns QueryDeployedModelsResponse * @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.SearchDataItemsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse; /** - * Verifies a SearchDataItemsResponse message. + * Verifies a QueryDeployedModelsResponse 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 SearchDataItemsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a QueryDeployedModelsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchDataItemsResponse + * @returns QueryDeployedModelsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchDataItemsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse; /** - * Creates a plain object from a SearchDataItemsResponse message. Also converts values to other types if specified. - * @param message SearchDataItemsResponse + * Creates a plain object from a QueryDeployedModelsResponse message. Also converts values to other types if specified. + * @param message QueryDeployedModelsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchDataItemsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchDataItemsResponse to JSON. + * Converts this QueryDeployedModelsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchDataItemsResponse + * Gets the default type url for QueryDeployedModelsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DataItemView. */ - interface IDataItemView { + /** Properties of an Endpoint. */ + interface IEndpoint { - /** DataItemView dataItem */ - dataItem?: (google.cloud.aiplatform.v1beta1.IDataItem|null); + /** Endpoint name */ + name?: (string|null); - /** DataItemView annotations */ - annotations?: (google.cloud.aiplatform.v1beta1.IAnnotation[]|null); + /** Endpoint displayName */ + displayName?: (string|null); - /** DataItemView hasTruncatedAnnotations */ - hasTruncatedAnnotations?: (boolean|null); + /** Endpoint description */ + description?: (string|null); + + /** Endpoint deployedModels */ + deployedModels?: (google.cloud.aiplatform.v1beta1.IDeployedModel[]|null); + + /** Endpoint trafficSplit */ + trafficSplit?: ({ [k: string]: number }|null); + + /** Endpoint etag */ + etag?: (string|null); + + /** Endpoint labels */ + labels?: ({ [k: string]: string }|null); + + /** Endpoint createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Endpoint updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Endpoint encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** Endpoint network */ + network?: (string|null); + + /** Endpoint enablePrivateServiceConnect */ + enablePrivateServiceConnect?: (boolean|null); + + /** Endpoint modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (string|null); + + /** Endpoint predictRequestResponseLoggingConfig */ + predictRequestResponseLoggingConfig?: (google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig|null); } - /** Represents a DataItemView. */ - class DataItemView implements IDataItemView { + /** Represents an Endpoint. */ + class Endpoint implements IEndpoint { /** - * Constructs a new DataItemView. + * Constructs a new Endpoint. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDataItemView); + constructor(properties?: google.cloud.aiplatform.v1beta1.IEndpoint); - /** DataItemView dataItem. */ - public dataItem?: (google.cloud.aiplatform.v1beta1.IDataItem|null); + /** Endpoint name. */ + public name: string; - /** DataItemView annotations. */ - public annotations: google.cloud.aiplatform.v1beta1.IAnnotation[]; + /** Endpoint displayName. */ + public displayName: string; - /** DataItemView hasTruncatedAnnotations. */ - public hasTruncatedAnnotations: boolean; + /** Endpoint description. */ + public description: string; + + /** Endpoint deployedModels. */ + public deployedModels: google.cloud.aiplatform.v1beta1.IDeployedModel[]; + + /** Endpoint trafficSplit. */ + public trafficSplit: { [k: string]: number }; + + /** Endpoint etag. */ + public etag: string; + + /** Endpoint labels. */ + public labels: { [k: string]: string }; + + /** Endpoint createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Endpoint updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Endpoint encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** Endpoint network. */ + public network: string; + + /** Endpoint enablePrivateServiceConnect. */ + public enablePrivateServiceConnect: boolean; + + /** Endpoint modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob: string; + + /** Endpoint predictRequestResponseLoggingConfig. */ + public predictRequestResponseLoggingConfig?: (google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig|null); /** - * Creates a new DataItemView instance using the specified properties. + * Creates a new Endpoint instance using the specified properties. * @param [properties] Properties to set - * @returns DataItemView instance + * @returns Endpoint instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDataItemView): google.cloud.aiplatform.v1beta1.DataItemView; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEndpoint): google.cloud.aiplatform.v1beta1.Endpoint; /** - * Encodes the specified DataItemView message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItemView.verify|verify} messages. - * @param message DataItemView message or plain object to encode + * Encodes the specified Endpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.verify|verify} messages. + * @param message Endpoint message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDataItemView, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DataItemView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItemView.verify|verify} messages. - * @param message DataItemView message or plain object to encode + * Encodes the specified Endpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.verify|verify} messages. + * @param message Endpoint message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataItemView, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataItemView message from the specified reader or buffer. + * Decodes an Endpoint message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DataItemView + * @returns Endpoint * @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.DataItemView; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Endpoint; /** - * Decodes a DataItemView message from the specified reader or buffer, length delimited. + * Decodes an Endpoint message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DataItemView + * @returns Endpoint * @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.DataItemView; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Endpoint; /** - * Verifies a DataItemView message. + * Verifies an Endpoint 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 DataItemView message from a plain object. Also converts values to their respective internal types. + * Creates an Endpoint message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DataItemView + * @returns Endpoint */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataItemView; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Endpoint; /** - * Creates a plain object from a DataItemView message. Also converts values to other types if specified. - * @param message DataItemView + * Creates a plain object from an Endpoint message. Also converts values to other types if specified. + * @param message Endpoint * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DataItemView, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Endpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataItemView to JSON. + * Converts this Endpoint to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DataItemView + * Gets the default type url for Endpoint * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListSavedQueriesRequest. */ - interface IListSavedQueriesRequest { + /** Properties of a DeployedModel. */ + interface IDeployedModel { - /** ListSavedQueriesRequest parent */ - parent?: (string|null); + /** DeployedModel dedicatedResources */ + dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - /** ListSavedQueriesRequest filter */ - filter?: (string|null); + /** DeployedModel automaticResources */ + automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - /** ListSavedQueriesRequest pageSize */ - pageSize?: (number|null); + /** DeployedModel sharedResources */ + sharedResources?: (string|null); - /** ListSavedQueriesRequest pageToken */ - pageToken?: (string|null); + /** DeployedModel id */ + id?: (string|null); - /** ListSavedQueriesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** DeployedModel model */ + model?: (string|null); - /** ListSavedQueriesRequest orderBy */ - orderBy?: (string|null); + /** DeployedModel modelVersionId */ + modelVersionId?: (string|null); + + /** DeployedModel displayName */ + displayName?: (string|null); + + /** DeployedModel createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** DeployedModel explanationSpec */ + explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + + /** DeployedModel disableExplanations */ + disableExplanations?: (boolean|null); + + /** DeployedModel serviceAccount */ + serviceAccount?: (string|null); + + /** DeployedModel enableContainerLogging */ + enableContainerLogging?: (boolean|null); + + /** DeployedModel enableAccessLogging */ + enableAccessLogging?: (boolean|null); + + /** DeployedModel privateEndpoints */ + privateEndpoints?: (google.cloud.aiplatform.v1beta1.IPrivateEndpoints|null); } - /** Represents a ListSavedQueriesRequest. */ - class ListSavedQueriesRequest implements IListSavedQueriesRequest { + /** Represents a DeployedModel. */ + class DeployedModel implements IDeployedModel { /** - * Constructs a new ListSavedQueriesRequest. + * Constructs a new DeployedModel. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedModel); - /** ListSavedQueriesRequest parent. */ - public parent: string; + /** DeployedModel dedicatedResources. */ + public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - /** ListSavedQueriesRequest filter. */ - public filter: string; + /** DeployedModel automaticResources. */ + public automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - /** ListSavedQueriesRequest pageSize. */ - public pageSize: number; + /** DeployedModel sharedResources. */ + public sharedResources?: (string|null); - /** ListSavedQueriesRequest pageToken. */ - public pageToken: string; + /** DeployedModel id. */ + public id: string; - /** ListSavedQueriesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** DeployedModel model. */ + public model: string; - /** ListSavedQueriesRequest orderBy. */ - public orderBy: string; + /** DeployedModel modelVersionId. */ + public modelVersionId: string; + + /** DeployedModel displayName. */ + public displayName: string; + + /** DeployedModel createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** DeployedModel explanationSpec. */ + public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + + /** DeployedModel disableExplanations. */ + public disableExplanations: boolean; + + /** DeployedModel serviceAccount. */ + public serviceAccount: string; + + /** DeployedModel enableContainerLogging. */ + public enableContainerLogging: boolean; + + /** DeployedModel enableAccessLogging. */ + public enableAccessLogging: boolean; + + /** DeployedModel privateEndpoints. */ + public privateEndpoints?: (google.cloud.aiplatform.v1beta1.IPrivateEndpoints|null); + + /** DeployedModel predictionResources. */ + public predictionResources?: ("dedicatedResources"|"automaticResources"|"sharedResources"); /** - * Creates a new ListSavedQueriesRequest instance using the specified properties. + * Creates a new DeployedModel instance using the specified properties. * @param [properties] Properties to set - * @returns ListSavedQueriesRequest instance + * @returns DeployedModel instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest): google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedModel): google.cloud.aiplatform.v1beta1.DeployedModel; /** - * Encodes the specified ListSavedQueriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.verify|verify} messages. - * @param message ListSavedQueriesRequest message or plain object to encode + * Encodes the specified DeployedModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.verify|verify} messages. + * @param message DeployedModel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSavedQueriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.verify|verify} messages. - * @param message ListSavedQueriesRequest message or plain object to encode + * Encodes the specified DeployedModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.verify|verify} messages. + * @param message DeployedModel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSavedQueriesRequest message from the specified reader or buffer. + * Decodes a DeployedModel message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSavedQueriesRequest + * @returns DeployedModel * @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.ListSavedQueriesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedModel; /** - * Decodes a ListSavedQueriesRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployedModel message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSavedQueriesRequest + * @returns DeployedModel * @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.ListSavedQueriesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedModel; /** - * Verifies a ListSavedQueriesRequest message. + * Verifies a DeployedModel 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 ListSavedQueriesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployedModel message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSavedQueriesRequest + * @returns DeployedModel */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedModel; /** - * Creates a plain object from a ListSavedQueriesRequest message. Also converts values to other types if specified. - * @param message ListSavedQueriesRequest + * Creates a plain object from a DeployedModel message. Also converts values to other types if specified. + * @param message DeployedModel * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSavedQueriesRequest to JSON. + * Converts this DeployedModel to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListSavedQueriesRequest + * Gets the default type url for DeployedModel * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListSavedQueriesResponse. */ - interface IListSavedQueriesResponse { + /** Properties of a PrivateEndpoints. */ + interface IPrivateEndpoints { - /** ListSavedQueriesResponse savedQueries */ - savedQueries?: (google.cloud.aiplatform.v1beta1.ISavedQuery[]|null); + /** PrivateEndpoints predictHttpUri */ + predictHttpUri?: (string|null); - /** ListSavedQueriesResponse nextPageToken */ - nextPageToken?: (string|null); + /** PrivateEndpoints explainHttpUri */ + explainHttpUri?: (string|null); + + /** PrivateEndpoints healthHttpUri */ + healthHttpUri?: (string|null); + + /** PrivateEndpoints serviceAttachment */ + serviceAttachment?: (string|null); } - /** Represents a ListSavedQueriesResponse. */ - class ListSavedQueriesResponse implements IListSavedQueriesResponse { + /** Represents a PrivateEndpoints. */ + class PrivateEndpoints implements IPrivateEndpoints { /** - * Constructs a new ListSavedQueriesResponse. + * Constructs a new PrivateEndpoints. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPrivateEndpoints); - /** ListSavedQueriesResponse savedQueries. */ - public savedQueries: google.cloud.aiplatform.v1beta1.ISavedQuery[]; + /** PrivateEndpoints predictHttpUri. */ + public predictHttpUri: string; - /** ListSavedQueriesResponse nextPageToken. */ - public nextPageToken: string; + /** PrivateEndpoints explainHttpUri. */ + public explainHttpUri: string; + + /** PrivateEndpoints healthHttpUri. */ + public healthHttpUri: string; + + /** PrivateEndpoints serviceAttachment. */ + public serviceAttachment: string; /** - * Creates a new ListSavedQueriesResponse instance using the specified properties. + * Creates a new PrivateEndpoints instance using the specified properties. * @param [properties] Properties to set - * @returns ListSavedQueriesResponse instance + * @returns PrivateEndpoints instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse): google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPrivateEndpoints): google.cloud.aiplatform.v1beta1.PrivateEndpoints; /** - * Encodes the specified ListSavedQueriesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.verify|verify} messages. - * @param message ListSavedQueriesResponse message or plain object to encode + * Encodes the specified PrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. + * @param message PrivateEndpoints message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListSavedQueriesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.verify|verify} messages. - * @param message ListSavedQueriesResponse message or plain object to encode + * Encodes the specified PrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. + * @param message PrivateEndpoints message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListSavedQueriesResponse message from the specified reader or buffer. + * Decodes a PrivateEndpoints message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListSavedQueriesResponse + * @returns PrivateEndpoints * @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.ListSavedQueriesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PrivateEndpoints; /** - * Decodes a ListSavedQueriesResponse message from the specified reader or buffer, length delimited. + * Decodes a PrivateEndpoints message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListSavedQueriesResponse + * @returns PrivateEndpoints * @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.ListSavedQueriesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PrivateEndpoints; /** - * Verifies a ListSavedQueriesResponse message. + * Verifies a PrivateEndpoints 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 ListSavedQueriesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PrivateEndpoints message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListSavedQueriesResponse + * @returns PrivateEndpoints */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PrivateEndpoints; /** - * Creates a plain object from a ListSavedQueriesResponse message. Also converts values to other types if specified. - * @param message ListSavedQueriesResponse + * Creates a plain object from a PrivateEndpoints message. Also converts values to other types if specified. + * @param message PrivateEndpoints * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PrivateEndpoints, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListSavedQueriesResponse to JSON. + * Converts this PrivateEndpoints to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListSavedQueriesResponse + * Gets the default type url for PrivateEndpoints * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetAnnotationSpecRequest. */ - interface IGetAnnotationSpecRequest { + /** Properties of a PredictRequestResponseLoggingConfig. */ + interface IPredictRequestResponseLoggingConfig { - /** GetAnnotationSpecRequest name */ - name?: (string|null); + /** PredictRequestResponseLoggingConfig enabled */ + enabled?: (boolean|null); - /** GetAnnotationSpecRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** PredictRequestResponseLoggingConfig samplingRate */ + samplingRate?: (number|null); + + /** PredictRequestResponseLoggingConfig bigqueryDestination */ + bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); } - /** Represents a GetAnnotationSpecRequest. */ - class GetAnnotationSpecRequest implements IGetAnnotationSpecRequest { + /** Represents a PredictRequestResponseLoggingConfig. */ + class PredictRequestResponseLoggingConfig implements IPredictRequestResponseLoggingConfig { /** - * Constructs a new GetAnnotationSpecRequest. + * Constructs a new PredictRequestResponseLoggingConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig); - /** GetAnnotationSpecRequest name. */ - public name: string; + /** PredictRequestResponseLoggingConfig enabled. */ + public enabled: boolean; - /** GetAnnotationSpecRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** PredictRequestResponseLoggingConfig samplingRate. */ + public samplingRate: number; + + /** PredictRequestResponseLoggingConfig bigqueryDestination. */ + public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); /** - * Creates a new GetAnnotationSpecRequest instance using the specified properties. + * Creates a new PredictRequestResponseLoggingConfig instance using the specified properties. * @param [properties] Properties to set - * @returns GetAnnotationSpecRequest instance + * @returns PredictRequestResponseLoggingConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; /** - * Encodes the specified GetAnnotationSpecRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.verify|verify} messages. - * @param message GetAnnotationSpecRequest message or plain object to encode + * Encodes the specified PredictRequestResponseLoggingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify|verify} messages. + * @param message PredictRequestResponseLoggingConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetAnnotationSpecRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.verify|verify} messages. - * @param message GetAnnotationSpecRequest message or plain object to encode + * Encodes the specified PredictRequestResponseLoggingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify|verify} messages. + * @param message PredictRequestResponseLoggingConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer. + * Decodes a PredictRequestResponseLoggingConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetAnnotationSpecRequest + * @returns PredictRequestResponseLoggingConfig * @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.GetAnnotationSpecRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; /** - * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer, length delimited. + * Decodes a PredictRequestResponseLoggingConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetAnnotationSpecRequest + * @returns PredictRequestResponseLoggingConfig * @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.GetAnnotationSpecRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; /** - * Verifies a GetAnnotationSpecRequest message. + * Verifies a PredictRequestResponseLoggingConfig 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 GetAnnotationSpecRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PredictRequestResponseLoggingConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetAnnotationSpecRequest + * @returns PredictRequestResponseLoggingConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; /** - * Creates a plain object from a GetAnnotationSpecRequest message. Also converts values to other types if specified. - * @param message GetAnnotationSpecRequest + * Creates a plain object from a PredictRequestResponseLoggingConfig message. Also converts values to other types if specified. + * @param message PredictRequestResponseLoggingConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetAnnotationSpecRequest to JSON. + * Converts this PredictRequestResponseLoggingConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetAnnotationSpecRequest + * Gets the default type url for PredictRequestResponseLoggingConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListAnnotationsRequest. */ - interface IListAnnotationsRequest { - - /** ListAnnotationsRequest parent */ - parent?: (string|null); + /** Represents an EndpointService */ + class EndpointService extends $protobuf.rpc.Service { - /** ListAnnotationsRequest filter */ - filter?: (string|null); + /** + * Constructs a new EndpointService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** ListAnnotationsRequest pageSize */ - pageSize?: (number|null); + /** + * Creates new EndpointService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): EndpointService; - /** ListAnnotationsRequest pageToken */ - pageToken?: (string|null); + /** + * Calls CreateEndpoint. + * @param request CreateEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.CreateEndpointCallback): void; - /** ListAnnotationsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** + * Calls CreateEndpoint. + * @param request CreateEndpointRequest message or plain object + * @returns Promise + */ + public createEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest): Promise; - /** ListAnnotationsRequest orderBy */ - orderBy?: (string|null); - } + /** + * Calls GetEndpoint. + * @param request GetEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Endpoint + */ + public getEndpoint(request: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.GetEndpointCallback): void; - /** Represents a ListAnnotationsRequest. */ - class ListAnnotationsRequest implements IListAnnotationsRequest { + /** + * Calls GetEndpoint. + * @param request GetEndpointRequest message or plain object + * @returns Promise + */ + public getEndpoint(request: google.cloud.aiplatform.v1beta1.IGetEndpointRequest): Promise; /** - * Constructs a new ListAnnotationsRequest. - * @param [properties] Properties to set + * Calls ListEndpoints. + * @param request ListEndpointsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEndpointsResponse */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest); + public listEndpoints(request: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.ListEndpointsCallback): void; - /** ListAnnotationsRequest parent. */ - public parent: string; + /** + * Calls ListEndpoints. + * @param request ListEndpointsRequest message or plain object + * @returns Promise + */ + public listEndpoints(request: google.cloud.aiplatform.v1beta1.IListEndpointsRequest): Promise; - /** ListAnnotationsRequest filter. */ - public filter: string; + /** + * Calls UpdateEndpoint. + * @param request UpdateEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Endpoint + */ + public updateEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.UpdateEndpointCallback): void; - /** ListAnnotationsRequest pageSize. */ - public pageSize: number; + /** + * Calls UpdateEndpoint. + * @param request UpdateEndpointRequest message or plain object + * @returns Promise + */ + public updateEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest): Promise; - /** ListAnnotationsRequest pageToken. */ - public pageToken: string; + /** + * Calls DeleteEndpoint. + * @param request DeleteEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.DeleteEndpointCallback): void; - /** ListAnnotationsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** + * Calls DeleteEndpoint. + * @param request DeleteEndpointRequest message or plain object + * @returns Promise + */ + public deleteEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest): Promise; - /** ListAnnotationsRequest orderBy. */ - public orderBy: string; + /** + * Calls DeployModel. + * @param request DeployModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deployModel(request: google.cloud.aiplatform.v1beta1.IDeployModelRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.DeployModelCallback): void; /** - * Creates a new ListAnnotationsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListAnnotationsRequest instance + * Calls DeployModel. + * @param request DeployModelRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; + public deployModel(request: google.cloud.aiplatform.v1beta1.IDeployModelRequest): Promise; /** - * Encodes the specified ListAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.verify|verify} messages. - * @param message ListAnnotationsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UndeployModel. + * @param request UndeployModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public undeployModel(request: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.UndeployModelCallback): void; /** - * Encodes the specified ListAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.verify|verify} messages. - * @param message ListAnnotationsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UndeployModel. + * @param request UndeployModelRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public undeployModel(request: google.cloud.aiplatform.v1beta1.IUndeployModelRequest): Promise; + } + + namespace EndpointService { /** - * Decodes a ListAnnotationsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListAnnotationsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|createEndpoint}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; + type CreateEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a ListAnnotationsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListAnnotationsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|getEndpoint}. + * @param error Error, if any + * @param [response] Endpoint */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; + type GetEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Endpoint) => void; /** - * Verifies a ListAnnotationsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|listEndpoints}. + * @param error Error, if any + * @param [response] ListEndpointsResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ListEndpointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListEndpointsResponse) => void; /** - * Creates a ListAnnotationsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListAnnotationsRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|updateEndpoint}. + * @param error Error, if any + * @param [response] Endpoint */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; + type UpdateEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Endpoint) => void; /** - * Creates a plain object from a ListAnnotationsRequest message. Also converts values to other types if specified. - * @param message ListAnnotationsRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|deleteEndpoint}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListAnnotationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type DeleteEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this ListAnnotationsRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|deployModel}. + * @param error Error, if any + * @param [response] Operation */ - public toJSON(): { [k: string]: any }; + type DeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Gets the default type url for ListAnnotationsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|undeployModel}. + * @param error Error, if any + * @param [response] Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type UndeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of a ListAnnotationsResponse. */ - interface IListAnnotationsResponse { + /** Properties of a CreateEndpointRequest. */ + interface ICreateEndpointRequest { - /** ListAnnotationsResponse annotations */ - annotations?: (google.cloud.aiplatform.v1beta1.IAnnotation[]|null); + /** CreateEndpointRequest parent */ + parent?: (string|null); - /** ListAnnotationsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateEndpointRequest endpoint */ + endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + + /** CreateEndpointRequest endpointId */ + endpointId?: (string|null); } - /** Represents a ListAnnotationsResponse. */ - class ListAnnotationsResponse implements IListAnnotationsResponse { + /** Represents a CreateEndpointRequest. */ + class CreateEndpointRequest implements ICreateEndpointRequest { /** - * Constructs a new ListAnnotationsResponse. + * Constructs a new CreateEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest); - /** ListAnnotationsResponse annotations. */ - public annotations: google.cloud.aiplatform.v1beta1.IAnnotation[]; + /** CreateEndpointRequest parent. */ + public parent: string; - /** ListAnnotationsResponse nextPageToken. */ - public nextPageToken: string; + /** CreateEndpointRequest endpoint. */ + public endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + + /** CreateEndpointRequest endpointId. */ + public endpointId: string; /** - * Creates a new ListAnnotationsResponse instance using the specified properties. + * Creates a new CreateEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListAnnotationsResponse instance + * @returns CreateEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; /** - * Encodes the specified ListAnnotationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.verify|verify} messages. - * @param message ListAnnotationsResponse message or plain object to encode + * Encodes the specified CreateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.verify|verify} messages. + * @param message CreateEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListAnnotationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.verify|verify} messages. - * @param message ListAnnotationsResponse message or plain object to encode + * Encodes the specified CreateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.verify|verify} messages. + * @param message CreateEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListAnnotationsResponse message from the specified reader or buffer. + * Decodes a CreateEndpointRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListAnnotationsResponse + * @returns CreateEndpointRequest * @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.ListAnnotationsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; /** - * Decodes a ListAnnotationsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateEndpointRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListAnnotationsResponse + * @returns CreateEndpointRequest * @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.ListAnnotationsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; /** - * Verifies a ListAnnotationsResponse message. + * Verifies a CreateEndpointRequest 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 ListAnnotationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEndpointRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListAnnotationsResponse + * @returns CreateEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; /** - * Creates a plain object from a ListAnnotationsResponse message. Also converts values to other types if specified. - * @param message ListAnnotationsResponse + * Creates a plain object from a CreateEndpointRequest message. Also converts values to other types if specified. + * @param message CreateEndpointRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListAnnotationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListAnnotationsResponse to JSON. + * Converts this CreateEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListAnnotationsResponse + * Gets the default type url for CreateEndpointRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GenericOperationMetadata. */ - interface IGenericOperationMetadata { - - /** GenericOperationMetadata partialFailures */ - partialFailures?: (google.rpc.IStatus[]|null); - - /** GenericOperationMetadata createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Properties of a CreateEndpointOperationMetadata. */ + interface ICreateEndpointOperationMetadata { - /** GenericOperationMetadata updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** CreateEndpointOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a GenericOperationMetadata. */ - class GenericOperationMetadata implements IGenericOperationMetadata { + /** Represents a CreateEndpointOperationMetadata. */ + class CreateEndpointOperationMetadata implements ICreateEndpointOperationMetadata { /** - * Constructs a new GenericOperationMetadata. + * Constructs a new CreateEndpointOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata); - - /** GenericOperationMetadata partialFailures. */ - public partialFailures: google.rpc.IStatus[]; - - /** GenericOperationMetadata createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata); - /** GenericOperationMetadata updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** CreateEndpointOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new GenericOperationMetadata instance using the specified properties. + * Creates a new CreateEndpointOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GenericOperationMetadata instance + * @returns CreateEndpointOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; /** - * Encodes the specified GenericOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify|verify} messages. - * @param message GenericOperationMetadata message or plain object to encode + * Encodes the specified CreateEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. + * @param message CreateEndpointOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenericOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify|verify} messages. - * @param message GenericOperationMetadata message or plain object to encode + * Encodes the specified CreateEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. + * @param message CreateEndpointOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenericOperationMetadata message from the specified reader or buffer. + * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GenericOperationMetadata + * @returns CreateEndpointOperationMetadata * @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.GenericOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; /** - * Decodes a GenericOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenericOperationMetadata + * @returns CreateEndpointOperationMetadata * @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.GenericOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; /** - * Verifies a GenericOperationMetadata message. + * Verifies a CreateEndpointOperationMetadata 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 GenericOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenericOperationMetadata + * @returns CreateEndpointOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; /** - * Creates a plain object from a GenericOperationMetadata message. Also converts values to other types if specified. - * @param message GenericOperationMetadata + * Creates a plain object from a CreateEndpointOperationMetadata message. Also converts values to other types if specified. + * @param message CreateEndpointOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GenericOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenericOperationMetadata to JSON. + * Converts this CreateEndpointOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GenericOperationMetadata + * Gets the default type url for CreateEndpointOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteOperationMetadata. */ - interface IDeleteOperationMetadata { + /** Properties of a GetEndpointRequest. */ + interface IGetEndpointRequest { - /** DeleteOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetEndpointRequest name */ + name?: (string|null); } - /** Represents a DeleteOperationMetadata. */ - class DeleteOperationMetadata implements IDeleteOperationMetadata { + /** Represents a GetEndpointRequest. */ + class GetEndpointRequest implements IGetEndpointRequest { /** - * Constructs a new DeleteOperationMetadata. + * Constructs a new GetEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetEndpointRequest); - /** DeleteOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetEndpointRequest name. */ + public name: string; /** - * Creates a new DeleteOperationMetadata instance using the specified properties. + * Creates a new GetEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteOperationMetadata instance + * @returns GetEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetEndpointRequest): google.cloud.aiplatform.v1beta1.GetEndpointRequest; /** - * Encodes the specified DeleteOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. - * @param message DeleteOperationMetadata message or plain object to encode + * Encodes the specified GetEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.verify|verify} messages. + * @param message GetEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. - * @param message DeleteOperationMetadata message or plain object to encode + * Encodes the specified GetEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.verify|verify} messages. + * @param message GetEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteOperationMetadata message from the specified reader or buffer. + * Decodes a GetEndpointRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteOperationMetadata + * @returns GetEndpointRequest * @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.DeleteOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetEndpointRequest; /** - * Decodes a DeleteOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetEndpointRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteOperationMetadata + * @returns GetEndpointRequest * @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.DeleteOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetEndpointRequest; /** - * Verifies a DeleteOperationMetadata message. + * Verifies a GetEndpointRequest 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 DeleteOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetEndpointRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteOperationMetadata + * @returns GetEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetEndpointRequest; /** - * Creates a plain object from a DeleteOperationMetadata message. Also converts values to other types if specified. - * @param message DeleteOperationMetadata + * Creates a plain object from a GetEndpointRequest message. Also converts values to other types if specified. + * @param message GetEndpointRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteOperationMetadata to JSON. + * Converts this GetEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteOperationMetadata + * Gets the default type url for GetEndpointRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployedIndexRef. */ - interface IDeployedIndexRef { + /** Properties of a ListEndpointsRequest. */ + interface IListEndpointsRequest { - /** DeployedIndexRef indexEndpoint */ - indexEndpoint?: (string|null); + /** ListEndpointsRequest parent */ + parent?: (string|null); - /** DeployedIndexRef deployedIndexId */ - deployedIndexId?: (string|null); + /** ListEndpointsRequest filter */ + filter?: (string|null); + + /** ListEndpointsRequest pageSize */ + pageSize?: (number|null); + + /** ListEndpointsRequest pageToken */ + pageToken?: (string|null); + + /** ListEndpointsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a DeployedIndexRef. */ - class DeployedIndexRef implements IDeployedIndexRef { + /** Represents a ListEndpointsRequest. */ + class ListEndpointsRequest implements IListEndpointsRequest { /** - * Constructs a new DeployedIndexRef. + * Constructs a new ListEndpointsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexRef); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsRequest); - /** DeployedIndexRef indexEndpoint. */ - public indexEndpoint: string; + /** ListEndpointsRequest parent. */ + public parent: string; - /** DeployedIndexRef deployedIndexId. */ - public deployedIndexId: string; + /** ListEndpointsRequest filter. */ + public filter: string; + + /** ListEndpointsRequest pageSize. */ + public pageSize: number; + + /** ListEndpointsRequest pageToken. */ + public pageToken: string; + + /** ListEndpointsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new DeployedIndexRef instance using the specified properties. + * Creates a new ListEndpointsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedIndexRef instance + * @returns ListEndpointsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexRef): google.cloud.aiplatform.v1beta1.DeployedIndexRef; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsRequest): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; /** - * Encodes the specified DeployedIndexRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify|verify} messages. - * @param message DeployedIndexRef message or plain object to encode + * Encodes the specified ListEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsRequest.verify|verify} messages. + * @param message ListEndpointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndexRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployedIndexRef message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify|verify} messages. - * @param message DeployedIndexRef message or plain object to encode + * Encodes the specified ListEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsRequest.verify|verify} messages. + * @param message ListEndpointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndexRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedIndexRef message from the specified reader or buffer. + * Decodes a ListEndpointsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployedIndexRef + * @returns ListEndpointsRequest * @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.DeployedIndexRef; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; /** - * Decodes a DeployedIndexRef message from the specified reader or buffer, length delimited. + * Decodes a ListEndpointsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployedIndexRef + * @returns ListEndpointsRequest * @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.DeployedIndexRef; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; /** - * Verifies a DeployedIndexRef message. + * Verifies a ListEndpointsRequest 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 DeployedIndexRef message from a plain object. Also converts values to their respective internal types. + * Creates a ListEndpointsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployedIndexRef + * @returns ListEndpointsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexRef; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; /** - * Creates a plain object from a DeployedIndexRef message. Also converts values to other types if specified. - * @param message DeployedIndexRef + * Creates a plain object from a ListEndpointsRequest message. Also converts values to other types if specified. + * @param message ListEndpointsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedIndexRef to JSON. + * Converts this ListEndpointsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployedIndexRef + * Gets the default type url for ListEndpointsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeploymentResourcePool. */ - interface IDeploymentResourcePool { - - /** DeploymentResourcePool name */ - name?: (string|null); + /** Properties of a ListEndpointsResponse. */ + interface IListEndpointsResponse { - /** DeploymentResourcePool dedicatedResources */ - dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + /** ListEndpointsResponse endpoints */ + endpoints?: (google.cloud.aiplatform.v1beta1.IEndpoint[]|null); - /** DeploymentResourcePool createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** ListEndpointsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a DeploymentResourcePool. */ - class DeploymentResourcePool implements IDeploymentResourcePool { + /** Represents a ListEndpointsResponse. */ + class ListEndpointsResponse implements IListEndpointsResponse { /** - * Constructs a new DeploymentResourcePool. + * Constructs a new ListEndpointsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool); - - /** DeploymentResourcePool name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsResponse); - /** DeploymentResourcePool dedicatedResources. */ - public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + /** ListEndpointsResponse endpoints. */ + public endpoints: google.cloud.aiplatform.v1beta1.IEndpoint[]; - /** DeploymentResourcePool createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ListEndpointsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new DeploymentResourcePool instance using the specified properties. + * Creates a new ListEndpointsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeploymentResourcePool instance + * @returns ListEndpointsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool): google.cloud.aiplatform.v1beta1.DeploymentResourcePool; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsResponse): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; /** - * Encodes the specified DeploymentResourcePool message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePool.verify|verify} messages. - * @param message DeploymentResourcePool message or plain object to encode + * Encodes the specified ListEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.verify|verify} messages. + * @param message ListEndpointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeploymentResourcePool message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePool.verify|verify} messages. - * @param message DeploymentResourcePool message or plain object to encode + * Encodes the specified ListEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.verify|verify} messages. + * @param message ListEndpointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeploymentResourcePool message from the specified reader or buffer. + * Decodes a ListEndpointsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeploymentResourcePool + * @returns ListEndpointsResponse * @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.DeploymentResourcePool; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; /** - * Decodes a DeploymentResourcePool message from the specified reader or buffer, length delimited. + * Decodes a ListEndpointsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeploymentResourcePool + * @returns ListEndpointsResponse * @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.DeploymentResourcePool; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; /** - * Verifies a DeploymentResourcePool message. + * Verifies a ListEndpointsResponse 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 DeploymentResourcePool message from a plain object. Also converts values to their respective internal types. + * Creates a ListEndpointsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeploymentResourcePool + * @returns ListEndpointsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeploymentResourcePool; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; /** - * Creates a plain object from a DeploymentResourcePool message. Also converts values to other types if specified. - * @param message DeploymentResourcePool + * Creates a plain object from a ListEndpointsResponse message. Also converts values to other types if specified. + * @param message ListEndpointsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeploymentResourcePool, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListEndpointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeploymentResourcePool to JSON. + * Converts this ListEndpointsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeploymentResourcePool + * Gets the default type url for ListEndpointsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a DeploymentResourcePoolService */ - class DeploymentResourcePoolService extends $protobuf.rpc.Service { - - /** - * Constructs a new DeploymentResourcePoolService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** Properties of an UpdateEndpointRequest. */ + interface IUpdateEndpointRequest { - /** - * Creates new DeploymentResourcePoolService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DeploymentResourcePoolService; + /** UpdateEndpointRequest endpoint */ + endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); - /** - * Calls CreateDeploymentResourcePool. - * @param request CreateDeploymentResourcePoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.CreateDeploymentResourcePoolCallback): void; + /** UpdateEndpointRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** - * Calls CreateDeploymentResourcePool. - * @param request CreateDeploymentResourcePoolRequest message or plain object - * @returns Promise - */ - public createDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest): Promise; + /** Represents an UpdateEndpointRequest. */ + class UpdateEndpointRequest implements IUpdateEndpointRequest { /** - * Calls GetDeploymentResourcePool. - * @param request GetDeploymentResourcePoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DeploymentResourcePool + * Constructs a new UpdateEndpointRequest. + * @param [properties] Properties to set */ - public getDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.GetDeploymentResourcePoolCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest); - /** - * Calls GetDeploymentResourcePool. - * @param request GetDeploymentResourcePoolRequest message or plain object - * @returns Promise - */ - public getDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest): Promise; + /** UpdateEndpointRequest endpoint. */ + public endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); - /** - * Calls ListDeploymentResourcePools. - * @param request ListDeploymentResourcePoolsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDeploymentResourcePoolsResponse - */ - public listDeploymentResourcePools(request: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.ListDeploymentResourcePoolsCallback): void; + /** UpdateEndpointRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Calls ListDeploymentResourcePools. - * @param request ListDeploymentResourcePoolsRequest message or plain object - * @returns Promise + * Creates a new UpdateEndpointRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateEndpointRequest instance */ - public listDeploymentResourcePools(request: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; /** - * Calls DeleteDeploymentResourcePool. - * @param request DeleteDeploymentResourcePoolRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified UpdateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.verify|verify} messages. + * @param message UpdateEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.DeleteDeploymentResourcePoolCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteDeploymentResourcePool. - * @param request DeleteDeploymentResourcePoolRequest message or plain object - * @returns Promise + * Encodes the specified UpdateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.verify|verify} messages. + * @param message UpdateEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteDeploymentResourcePool(request: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls QueryDeployedModels. - * @param request QueryDeployedModelsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and QueryDeployedModelsResponse + * Decodes an UpdateEndpointRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public queryDeployedModels(request: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest, callback: google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService.QueryDeployedModelsCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; /** - * Calls QueryDeployedModels. - * @param request QueryDeployedModelsRequest message or plain object - * @returns Promise + * Decodes an UpdateEndpointRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public queryDeployedModels(request: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest): Promise; - } - - namespace DeploymentResourcePoolService { + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|createDeploymentResourcePool}. - * @param error Error, if any - * @param [response] Operation + * Verifies an UpdateEndpointRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CreateDeploymentResourcePoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|getDeploymentResourcePool}. - * @param error Error, if any - * @param [response] DeploymentResourcePool + * Creates an UpdateEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateEndpointRequest */ - type GetDeploymentResourcePoolCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DeploymentResourcePool) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|listDeploymentResourcePools}. - * @param error Error, if any - * @param [response] ListDeploymentResourcePoolsResponse + * Creates a plain object from an UpdateEndpointRequest message. Also converts values to other types if specified. + * @param message UpdateEndpointRequest + * @param [options] Conversion options + * @returns Plain object */ - type ListDeploymentResourcePoolsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|deleteDeploymentResourcePool}. - * @param error Error, if any - * @param [response] Operation + * Converts this UpdateEndpointRequest to JSON. + * @returns JSON object */ - type DeleteDeploymentResourcePoolCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DeploymentResourcePoolService|queryDeployedModels}. - * @param error Error, if any - * @param [response] QueryDeployedModelsResponse + * Gets the default type url for UpdateEndpointRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type QueryDeployedModelsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateDeploymentResourcePoolRequest. */ - interface ICreateDeploymentResourcePoolRequest { - - /** CreateDeploymentResourcePoolRequest parent */ - parent?: (string|null); - - /** CreateDeploymentResourcePoolRequest deploymentResourcePool */ - deploymentResourcePool?: (google.cloud.aiplatform.v1beta1.IDeploymentResourcePool|null); + /** Properties of a DeleteEndpointRequest. */ + interface IDeleteEndpointRequest { - /** CreateDeploymentResourcePoolRequest deploymentResourcePoolId */ - deploymentResourcePoolId?: (string|null); + /** DeleteEndpointRequest name */ + name?: (string|null); } - /** Represents a CreateDeploymentResourcePoolRequest. */ - class CreateDeploymentResourcePoolRequest implements ICreateDeploymentResourcePoolRequest { + /** Represents a DeleteEndpointRequest. */ + class DeleteEndpointRequest implements IDeleteEndpointRequest { /** - * Constructs a new CreateDeploymentResourcePoolRequest. + * Constructs a new DeleteEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest); - - /** CreateDeploymentResourcePoolRequest parent. */ - public parent: string; - - /** CreateDeploymentResourcePoolRequest deploymentResourcePool. */ - public deploymentResourcePool?: (google.cloud.aiplatform.v1beta1.IDeploymentResourcePool|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest); - /** CreateDeploymentResourcePoolRequest deploymentResourcePoolId. */ - public deploymentResourcePoolId: string; + /** DeleteEndpointRequest name. */ + public name: string; /** - * Creates a new CreateDeploymentResourcePoolRequest instance using the specified properties. + * Creates a new DeleteEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDeploymentResourcePoolRequest instance + * @returns DeleteEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; /** - * Encodes the specified CreateDeploymentResourcePoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest.verify|verify} messages. - * @param message CreateDeploymentResourcePoolRequest message or plain object to encode + * Encodes the specified DeleteEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. + * @param message DeleteEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateDeploymentResourcePoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest.verify|verify} messages. - * @param message CreateDeploymentResourcePoolRequest message or plain object to encode + * Encodes the specified DeleteEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. + * @param message DeleteEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDeploymentResourcePoolRequest message from the specified reader or buffer. + * Decodes a DeleteEndpointRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateDeploymentResourcePoolRequest + * @returns DeleteEndpointRequest * @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.CreateDeploymentResourcePoolRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; /** - * Decodes a CreateDeploymentResourcePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteEndpointRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateDeploymentResourcePoolRequest + * @returns DeleteEndpointRequest * @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.CreateDeploymentResourcePoolRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; /** - * Verifies a CreateDeploymentResourcePoolRequest message. + * Verifies a DeleteEndpointRequest 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 CreateDeploymentResourcePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteEndpointRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateDeploymentResourcePoolRequest + * @returns DeleteEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; /** - * Creates a plain object from a CreateDeploymentResourcePoolRequest message. Also converts values to other types if specified. - * @param message CreateDeploymentResourcePoolRequest + * Creates a plain object from a DeleteEndpointRequest message. Also converts values to other types if specified. + * @param message DeleteEndpointRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDeploymentResourcePoolRequest to JSON. + * Converts this DeleteEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateDeploymentResourcePoolRequest + * Gets the default type url for DeleteEndpointRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateDeploymentResourcePoolOperationMetadata. */ - interface ICreateDeploymentResourcePoolOperationMetadata { + /** Properties of a DeployModelRequest. */ + interface IDeployModelRequest { - /** CreateDeploymentResourcePoolOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** DeployModelRequest endpoint */ + endpoint?: (string|null); + + /** DeployModelRequest deployedModel */ + deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + + /** DeployModelRequest trafficSplit */ + trafficSplit?: ({ [k: string]: number }|null); } - /** Represents a CreateDeploymentResourcePoolOperationMetadata. */ - class CreateDeploymentResourcePoolOperationMetadata implements ICreateDeploymentResourcePoolOperationMetadata { + /** Represents a DeployModelRequest. */ + class DeployModelRequest implements IDeployModelRequest { /** - * Constructs a new CreateDeploymentResourcePoolOperationMetadata. + * Constructs a new DeployModelRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelRequest); - /** CreateDeploymentResourcePoolOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** DeployModelRequest endpoint. */ + public endpoint: string; + + /** DeployModelRequest deployedModel. */ + public deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + + /** DeployModelRequest trafficSplit. */ + public trafficSplit: { [k: string]: number }; /** - * Creates a new CreateDeploymentResourcePoolOperationMetadata instance using the specified properties. + * Creates a new DeployModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDeploymentResourcePoolOperationMetadata instance + * @returns DeployModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolOperationMetadata): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelRequest): google.cloud.aiplatform.v1beta1.DeployModelRequest; /** - * Encodes the specified CreateDeploymentResourcePoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata.verify|verify} messages. - * @param message CreateDeploymentResourcePoolOperationMetadata message or plain object to encode + * Encodes the specified DeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.verify|verify} messages. + * @param message DeployModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateDeploymentResourcePoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata.verify|verify} messages. - * @param message CreateDeploymentResourcePoolOperationMetadata message or plain object to encode + * Encodes the specified DeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.verify|verify} messages. + * @param message DeployModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDeploymentResourcePoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDeploymentResourcePoolOperationMetadata message from the specified reader or buffer. + * Decodes a DeployModelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateDeploymentResourcePoolOperationMetadata + * @returns DeployModelRequest * @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.CreateDeploymentResourcePoolOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployModelRequest; /** - * Decodes a CreateDeploymentResourcePoolOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeployModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateDeploymentResourcePoolOperationMetadata + * @returns DeployModelRequest * @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.CreateDeploymentResourcePoolOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployModelRequest; /** - * Verifies a CreateDeploymentResourcePoolOperationMetadata message. + * Verifies a DeployModelRequest 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 CreateDeploymentResourcePoolOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeployModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateDeploymentResourcePoolOperationMetadata + * @returns DeployModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelRequest; /** - * Creates a plain object from a CreateDeploymentResourcePoolOperationMetadata message. Also converts values to other types if specified. - * @param message CreateDeploymentResourcePoolOperationMetadata + * Creates a plain object from a DeployModelRequest message. Also converts values to other types if specified. + * @param message DeployModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDeploymentResourcePoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDeploymentResourcePoolOperationMetadata to JSON. + * Converts this DeployModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateDeploymentResourcePoolOperationMetadata + * Gets the default type url for DeployModelRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetDeploymentResourcePoolRequest. */ - interface IGetDeploymentResourcePoolRequest { + /** Properties of a DeployModelResponse. */ + interface IDeployModelResponse { - /** GetDeploymentResourcePoolRequest name */ - name?: (string|null); + /** DeployModelResponse deployedModel */ + deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); } - /** Represents a GetDeploymentResourcePoolRequest. */ - class GetDeploymentResourcePoolRequest implements IGetDeploymentResourcePoolRequest { + /** Represents a DeployModelResponse. */ + class DeployModelResponse implements IDeployModelResponse { /** - * Constructs a new GetDeploymentResourcePoolRequest. + * Constructs a new DeployModelResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelResponse); - /** GetDeploymentResourcePoolRequest name. */ - public name: string; + /** DeployModelResponse deployedModel. */ + public deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); /** - * Creates a new GetDeploymentResourcePoolRequest instance using the specified properties. + * Creates a new DeployModelResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetDeploymentResourcePoolRequest instance + * @returns DeployModelResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest): google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelResponse): google.cloud.aiplatform.v1beta1.DeployModelResponse; /** - * Encodes the specified GetDeploymentResourcePoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest.verify|verify} messages. - * @param message GetDeploymentResourcePoolRequest message or plain object to encode + * Encodes the specified DeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.verify|verify} messages. + * @param message DeployModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDeploymentResourcePoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest.verify|verify} messages. - * @param message GetDeploymentResourcePoolRequest message or plain object to encode + * Encodes the specified DeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.verify|verify} messages. + * @param message DeployModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDeploymentResourcePoolRequest message from the specified reader or buffer. + * Decodes a DeployModelResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDeploymentResourcePoolRequest + * @returns DeployModelResponse * @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.GetDeploymentResourcePoolRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployModelResponse; /** - * Decodes a GetDeploymentResourcePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployModelResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDeploymentResourcePoolRequest + * @returns DeployModelResponse * @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.GetDeploymentResourcePoolRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployModelResponse; /** - * Verifies a GetDeploymentResourcePoolRequest message. + * Verifies a DeployModelResponse 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 GetDeploymentResourcePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployModelResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetDeploymentResourcePoolRequest + * @returns DeployModelResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelResponse; /** - * Creates a plain object from a GetDeploymentResourcePoolRequest message. Also converts values to other types if specified. - * @param message GetDeploymentResourcePoolRequest + * Creates a plain object from a DeployModelResponse message. Also converts values to other types if specified. + * @param message DeployModelResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetDeploymentResourcePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDeploymentResourcePoolRequest to JSON. + * Converts this DeployModelResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetDeploymentResourcePoolRequest + * Gets the default type url for DeployModelResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDeploymentResourcePoolsRequest. */ - interface IListDeploymentResourcePoolsRequest { - - /** ListDeploymentResourcePoolsRequest parent */ - parent?: (string|null); - - /** ListDeploymentResourcePoolsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a DeployModelOperationMetadata. */ + interface IDeployModelOperationMetadata { - /** ListDeploymentResourcePoolsRequest pageToken */ - pageToken?: (string|null); + /** DeployModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a ListDeploymentResourcePoolsRequest. */ - class ListDeploymentResourcePoolsRequest implements IListDeploymentResourcePoolsRequest { + /** Represents a DeployModelOperationMetadata. */ + class DeployModelOperationMetadata implements IDeployModelOperationMetadata { /** - * Constructs a new ListDeploymentResourcePoolsRequest. + * Constructs a new DeployModelOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest); - - /** ListDeploymentResourcePoolsRequest parent. */ - public parent: string; - - /** ListDeploymentResourcePoolsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata); - /** ListDeploymentResourcePoolsRequest pageToken. */ - public pageToken: string; + /** DeployModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ListDeploymentResourcePoolsRequest instance using the specified properties. + * Creates a new DeployModelOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListDeploymentResourcePoolsRequest instance + * @returns DeployModelOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; /** - * Encodes the specified ListDeploymentResourcePoolsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest.verify|verify} messages. - * @param message ListDeploymentResourcePoolsRequest message or plain object to encode + * Encodes the specified DeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.verify|verify} messages. + * @param message DeployModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDeploymentResourcePoolsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest.verify|verify} messages. - * @param message ListDeploymentResourcePoolsRequest message or plain object to encode + * Encodes the specified DeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.verify|verify} messages. + * @param message DeployModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDeploymentResourcePoolsRequest message from the specified reader or buffer. + * Decodes a DeployModelOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDeploymentResourcePoolsRequest + * @returns DeployModelOperationMetadata * @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.ListDeploymentResourcePoolsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; /** - * Decodes a ListDeploymentResourcePoolsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployModelOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDeploymentResourcePoolsRequest + * @returns DeployModelOperationMetadata * @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.ListDeploymentResourcePoolsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; /** - * Verifies a ListDeploymentResourcePoolsRequest message. + * Verifies a DeployModelOperationMetadata 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 ListDeploymentResourcePoolsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDeploymentResourcePoolsRequest + * @returns DeployModelOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; /** - * Creates a plain object from a ListDeploymentResourcePoolsRequest message. Also converts values to other types if specified. - * @param message ListDeploymentResourcePoolsRequest + * Creates a plain object from a DeployModelOperationMetadata message. Also converts values to other types if specified. + * @param message DeployModelOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDeploymentResourcePoolsRequest to JSON. + * Converts this DeployModelOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDeploymentResourcePoolsRequest + * Gets the default type url for DeployModelOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDeploymentResourcePoolsResponse. */ - interface IListDeploymentResourcePoolsResponse { + /** Properties of an UndeployModelRequest. */ + interface IUndeployModelRequest { - /** ListDeploymentResourcePoolsResponse deploymentResourcePools */ - deploymentResourcePools?: (google.cloud.aiplatform.v1beta1.IDeploymentResourcePool[]|null); + /** UndeployModelRequest endpoint */ + endpoint?: (string|null); - /** ListDeploymentResourcePoolsResponse nextPageToken */ - nextPageToken?: (string|null); + /** UndeployModelRequest deployedModelId */ + deployedModelId?: (string|null); + + /** UndeployModelRequest trafficSplit */ + trafficSplit?: ({ [k: string]: number }|null); } - /** Represents a ListDeploymentResourcePoolsResponse. */ - class ListDeploymentResourcePoolsResponse implements IListDeploymentResourcePoolsResponse { + /** Represents an UndeployModelRequest. */ + class UndeployModelRequest implements IUndeployModelRequest { /** - * Constructs a new ListDeploymentResourcePoolsResponse. + * Constructs a new UndeployModelRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelRequest); - /** ListDeploymentResourcePoolsResponse deploymentResourcePools. */ - public deploymentResourcePools: google.cloud.aiplatform.v1beta1.IDeploymentResourcePool[]; + /** UndeployModelRequest endpoint. */ + public endpoint: string; - /** ListDeploymentResourcePoolsResponse nextPageToken. */ - public nextPageToken: string; + /** UndeployModelRequest deployedModelId. */ + public deployedModelId: string; + + /** UndeployModelRequest trafficSplit. */ + public trafficSplit: { [k: string]: number }; /** - * Creates a new ListDeploymentResourcePoolsResponse instance using the specified properties. + * Creates a new UndeployModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDeploymentResourcePoolsResponse instance + * @returns UndeployModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsResponse): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelRequest): google.cloud.aiplatform.v1beta1.UndeployModelRequest; /** - * Encodes the specified ListDeploymentResourcePoolsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse.verify|verify} messages. - * @param message ListDeploymentResourcePoolsResponse message or plain object to encode + * Encodes the specified UndeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.verify|verify} messages. + * @param message UndeployModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDeploymentResourcePoolsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse.verify|verify} messages. - * @param message ListDeploymentResourcePoolsResponse message or plain object to encode + * Encodes the specified UndeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.verify|verify} messages. + * @param message UndeployModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDeploymentResourcePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDeploymentResourcePoolsResponse message from the specified reader or buffer. + * Decodes an UndeployModelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDeploymentResourcePoolsResponse + * @returns UndeployModelRequest * @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.ListDeploymentResourcePoolsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployModelRequest; /** - * Decodes a ListDeploymentResourcePoolsResponse message from the specified reader or buffer, length delimited. + * Decodes an UndeployModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDeploymentResourcePoolsResponse + * @returns UndeployModelRequest * @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.ListDeploymentResourcePoolsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployModelRequest; /** - * Verifies a ListDeploymentResourcePoolsResponse message. + * Verifies an UndeployModelRequest 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 ListDeploymentResourcePoolsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDeploymentResourcePoolsResponse + * @returns UndeployModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelRequest; /** - * Creates a plain object from a ListDeploymentResourcePoolsResponse message. Also converts values to other types if specified. - * @param message ListDeploymentResourcePoolsResponse + * Creates a plain object from an UndeployModelRequest message. Also converts values to other types if specified. + * @param message UndeployModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDeploymentResourcePoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDeploymentResourcePoolsResponse to JSON. + * Converts this UndeployModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDeploymentResourcePoolsResponse + * Gets the default type url for UndeployModelRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateDeploymentResourcePoolOperationMetadata. */ - interface IUpdateDeploymentResourcePoolOperationMetadata { - - /** UpdateDeploymentResourcePoolOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Properties of an UndeployModelResponse. */ + interface IUndeployModelResponse { } - /** Represents an UpdateDeploymentResourcePoolOperationMetadata. */ - class UpdateDeploymentResourcePoolOperationMetadata implements IUpdateDeploymentResourcePoolOperationMetadata { + /** Represents an UndeployModelResponse. */ + class UndeployModelResponse implements IUndeployModelResponse { /** - * Constructs a new UpdateDeploymentResourcePoolOperationMetadata. + * Constructs a new UndeployModelResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateDeploymentResourcePoolOperationMetadata); - - /** UpdateDeploymentResourcePoolOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelResponse); /** - * Creates a new UpdateDeploymentResourcePoolOperationMetadata instance using the specified properties. + * Creates a new UndeployModelResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateDeploymentResourcePoolOperationMetadata instance + * @returns UndeployModelResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateDeploymentResourcePoolOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelResponse): google.cloud.aiplatform.v1beta1.UndeployModelResponse; /** - * Encodes the specified UpdateDeploymentResourcePoolOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata.verify|verify} messages. - * @param message UpdateDeploymentResourcePoolOperationMetadata message or plain object to encode + * Encodes the specified UndeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.verify|verify} messages. + * @param message UndeployModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateDeploymentResourcePoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateDeploymentResourcePoolOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata.verify|verify} messages. - * @param message UpdateDeploymentResourcePoolOperationMetadata message or plain object to encode + * Encodes the specified UndeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.verify|verify} messages. + * @param message UndeployModelResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateDeploymentResourcePoolOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateDeploymentResourcePoolOperationMetadata message from the specified reader or buffer. + * Decodes an UndeployModelResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateDeploymentResourcePoolOperationMetadata + * @returns UndeployModelResponse * @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.UpdateDeploymentResourcePoolOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployModelResponse; /** - * Decodes an UpdateDeploymentResourcePoolOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UndeployModelResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateDeploymentResourcePoolOperationMetadata + * @returns UndeployModelResponse * @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.UpdateDeploymentResourcePoolOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployModelResponse; /** - * Verifies an UpdateDeploymentResourcePoolOperationMetadata message. + * Verifies an UndeployModelResponse 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 UpdateDeploymentResourcePoolOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployModelResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateDeploymentResourcePoolOperationMetadata + * @returns UndeployModelResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelResponse; /** - * Creates a plain object from an UpdateDeploymentResourcePoolOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateDeploymentResourcePoolOperationMetadata + * Creates a plain object from an UndeployModelResponse message. Also converts values to other types if specified. + * @param message UndeployModelResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateDeploymentResourcePoolOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateDeploymentResourcePoolOperationMetadata to JSON. + * Converts this UndeployModelResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateDeploymentResourcePoolOperationMetadata + * Gets the default type url for UndeployModelResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteDeploymentResourcePoolRequest. */ - interface IDeleteDeploymentResourcePoolRequest { + /** Properties of an UndeployModelOperationMetadata. */ + interface IUndeployModelOperationMetadata { - /** DeleteDeploymentResourcePoolRequest name */ - name?: (string|null); + /** UndeployModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a DeleteDeploymentResourcePoolRequest. */ - class DeleteDeploymentResourcePoolRequest implements IDeleteDeploymentResourcePoolRequest { + /** Represents an UndeployModelOperationMetadata. */ + class UndeployModelOperationMetadata implements IUndeployModelOperationMetadata { /** - * Constructs a new DeleteDeploymentResourcePoolRequest. + * Constructs a new UndeployModelOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata); - /** DeleteDeploymentResourcePoolRequest name. */ - public name: string; + /** UndeployModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new DeleteDeploymentResourcePoolRequest instance using the specified properties. + * Creates a new UndeployModelOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteDeploymentResourcePoolRequest instance + * @returns UndeployModelOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest): google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; /** - * Encodes the specified DeleteDeploymentResourcePoolRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest.verify|verify} messages. - * @param message DeleteDeploymentResourcePoolRequest message or plain object to encode + * Encodes the specified UndeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. + * @param message UndeployModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteDeploymentResourcePoolRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest.verify|verify} messages. - * @param message DeleteDeploymentResourcePoolRequest message or plain object to encode + * Encodes the specified UndeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. + * @param message UndeployModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDeploymentResourcePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteDeploymentResourcePoolRequest message from the specified reader or buffer. + * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteDeploymentResourcePoolRequest + * @returns UndeployModelOperationMetadata * @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.DeleteDeploymentResourcePoolRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; /** - * Decodes a DeleteDeploymentResourcePoolRequest message from the specified reader or buffer, length delimited. + * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteDeploymentResourcePoolRequest + * @returns UndeployModelOperationMetadata * @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.DeleteDeploymentResourcePoolRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; /** - * Verifies a DeleteDeploymentResourcePoolRequest message. + * Verifies an UndeployModelOperationMetadata 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 DeleteDeploymentResourcePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteDeploymentResourcePoolRequest + * @returns UndeployModelOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; /** - * Creates a plain object from a DeleteDeploymentResourcePoolRequest message. Also converts values to other types if specified. - * @param message DeleteDeploymentResourcePoolRequest + * Creates a plain object from an UndeployModelOperationMetadata message. Also converts values to other types if specified. + * @param message UndeployModelOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDeploymentResourcePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteDeploymentResourcePoolRequest to JSON. + * Converts this UndeployModelOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteDeploymentResourcePoolRequest + * Gets the default type url for UndeployModelOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a QueryDeployedModelsRequest. */ - interface IQueryDeployedModelsRequest { + /** Properties of an EntityType. */ + interface IEntityType { - /** QueryDeployedModelsRequest deploymentResourcePool */ - deploymentResourcePool?: (string|null); + /** EntityType name */ + name?: (string|null); - /** QueryDeployedModelsRequest pageSize */ - pageSize?: (number|null); + /** EntityType description */ + description?: (string|null); - /** QueryDeployedModelsRequest pageToken */ - pageToken?: (string|null); + /** EntityType createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** EntityType updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** EntityType labels */ + labels?: ({ [k: string]: string }|null); + + /** EntityType etag */ + etag?: (string|null); + + /** EntityType monitoringConfig */ + monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + + /** EntityType offlineStorageTtlDays */ + offlineStorageTtlDays?: (number|null); } - /** Represents a QueryDeployedModelsRequest. */ - class QueryDeployedModelsRequest implements IQueryDeployedModelsRequest { + /** Represents an EntityType. */ + class EntityType implements IEntityType { /** - * Constructs a new QueryDeployedModelsRequest. + * Constructs a new EntityType. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IEntityType); - /** QueryDeployedModelsRequest deploymentResourcePool. */ - public deploymentResourcePool: string; + /** EntityType name. */ + public name: string; - /** QueryDeployedModelsRequest pageSize. */ - public pageSize: number; + /** EntityType description. */ + public description: string; - /** QueryDeployedModelsRequest pageToken. */ - public pageToken: string; + /** EntityType createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** EntityType updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** EntityType labels. */ + public labels: { [k: string]: string }; + + /** EntityType etag. */ + public etag: string; + + /** EntityType monitoringConfig. */ + public monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + + /** EntityType offlineStorageTtlDays. */ + public offlineStorageTtlDays: number; /** - * Creates a new QueryDeployedModelsRequest instance using the specified properties. + * Creates a new EntityType instance using the specified properties. * @param [properties] Properties to set - * @returns QueryDeployedModelsRequest instance + * @returns EntityType instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest): google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEntityType): google.cloud.aiplatform.v1beta1.EntityType; /** - * Encodes the specified QueryDeployedModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest.verify|verify} messages. - * @param message QueryDeployedModelsRequest message or plain object to encode + * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityType.verify|verify} messages. + * @param message EntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryDeployedModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest.verify|verify} messages. - * @param message QueryDeployedModelsRequest message or plain object to encode + * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityType.verify|verify} messages. + * @param message EntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryDeployedModelsRequest message from the specified reader or buffer. + * Decodes an EntityType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryDeployedModelsRequest + * @returns EntityType * @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.QueryDeployedModelsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.EntityType; /** - * Decodes a QueryDeployedModelsRequest message from the specified reader or buffer, length delimited. + * Decodes an EntityType message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryDeployedModelsRequest + * @returns EntityType * @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.QueryDeployedModelsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.EntityType; /** - * Verifies a QueryDeployedModelsRequest message. + * Verifies an EntityType 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 QueryDeployedModelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EntityType message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryDeployedModelsRequest + * @returns EntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EntityType; /** - * Creates a plain object from a QueryDeployedModelsRequest message. Also converts values to other types if specified. - * @param message QueryDeployedModelsRequest + * Creates a plain object from an EntityType message. Also converts values to other types if specified. + * @param message EntityType * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.QueryDeployedModelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryDeployedModelsRequest to JSON. + * Converts this EntityType to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryDeployedModelsRequest + * Gets the default type url for EntityType * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a QueryDeployedModelsResponse. */ - interface IQueryDeployedModelsResponse { - - /** QueryDeployedModelsResponse deployedModels */ - deployedModels?: (google.cloud.aiplatform.v1beta1.IDeployedModel[]|null); + /** Properties of a FeaturestoreMonitoringConfig. */ + interface IFeaturestoreMonitoringConfig { - /** QueryDeployedModelsResponse nextPageToken */ - nextPageToken?: (string|null); + /** FeaturestoreMonitoringConfig snapshotAnalysis */ + snapshotAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); - /** QueryDeployedModelsResponse deployedModelRefs */ - deployedModelRefs?: (google.cloud.aiplatform.v1beta1.IDeployedModelRef[]|null); + /** FeaturestoreMonitoringConfig importFeaturesAnalysis */ + importFeaturesAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); - /** QueryDeployedModelsResponse totalDeployedModelCount */ - totalDeployedModelCount?: (number|null); + /** FeaturestoreMonitoringConfig numericalThresholdConfig */ + numericalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); - /** QueryDeployedModelsResponse totalEndpointCount */ - totalEndpointCount?: (number|null); + /** FeaturestoreMonitoringConfig categoricalThresholdConfig */ + categoricalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); } - /** Represents a QueryDeployedModelsResponse. */ - class QueryDeployedModelsResponse implements IQueryDeployedModelsResponse { + /** Represents a FeaturestoreMonitoringConfig. */ + class FeaturestoreMonitoringConfig implements IFeaturestoreMonitoringConfig { /** - * Constructs a new QueryDeployedModelsResponse. + * Constructs a new FeaturestoreMonitoringConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsResponse); - - /** QueryDeployedModelsResponse deployedModels. */ - public deployedModels: google.cloud.aiplatform.v1beta1.IDeployedModel[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig); - /** QueryDeployedModelsResponse nextPageToken. */ - public nextPageToken: string; + /** FeaturestoreMonitoringConfig snapshotAnalysis. */ + public snapshotAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); - /** QueryDeployedModelsResponse deployedModelRefs. */ - public deployedModelRefs: google.cloud.aiplatform.v1beta1.IDeployedModelRef[]; + /** FeaturestoreMonitoringConfig importFeaturesAnalysis. */ + public importFeaturesAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); - /** QueryDeployedModelsResponse totalDeployedModelCount. */ - public totalDeployedModelCount: number; + /** FeaturestoreMonitoringConfig numericalThresholdConfig. */ + public numericalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); - /** QueryDeployedModelsResponse totalEndpointCount. */ - public totalEndpointCount: number; + /** FeaturestoreMonitoringConfig categoricalThresholdConfig. */ + public categoricalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); /** - * Creates a new QueryDeployedModelsResponse instance using the specified properties. + * Creates a new FeaturestoreMonitoringConfig instance using the specified properties. * @param [properties] Properties to set - * @returns QueryDeployedModelsResponse instance + * @returns FeaturestoreMonitoringConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsResponse): google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; /** - * Encodes the specified QueryDeployedModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse.verify|verify} messages. - * @param message QueryDeployedModelsResponse message or plain object to encode + * Encodes the specified FeaturestoreMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify|verify} messages. + * @param message FeaturestoreMonitoringConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified QueryDeployedModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse.verify|verify} messages. - * @param message QueryDeployedModelsResponse message or plain object to encode + * Encodes the specified FeaturestoreMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify|verify} messages. + * @param message FeaturestoreMonitoringConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IQueryDeployedModelsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a QueryDeployedModelsResponse message from the specified reader or buffer. + * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns QueryDeployedModelsResponse + * @returns FeaturestoreMonitoringConfig * @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.QueryDeployedModelsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; /** - * Decodes a QueryDeployedModelsResponse message from the specified reader or buffer, length delimited. + * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns QueryDeployedModelsResponse + * @returns FeaturestoreMonitoringConfig * @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.QueryDeployedModelsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; /** - * Verifies a QueryDeployedModelsResponse message. + * Verifies a FeaturestoreMonitoringConfig 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 QueryDeployedModelsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FeaturestoreMonitoringConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns QueryDeployedModelsResponse + * @returns FeaturestoreMonitoringConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; /** - * Creates a plain object from a QueryDeployedModelsResponse message. Also converts values to other types if specified. - * @param message QueryDeployedModelsResponse + * Creates a plain object from a FeaturestoreMonitoringConfig message. Also converts values to other types if specified. + * @param message FeaturestoreMonitoringConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.QueryDeployedModelsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this QueryDeployedModelsResponse to JSON. + * Converts this FeaturestoreMonitoringConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for QueryDeployedModelsResponse + * Gets the default type url for FeaturestoreMonitoringConfig * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Endpoint. */ - interface IEndpoint { + namespace FeaturestoreMonitoringConfig { - /** Endpoint name */ - name?: (string|null); + /** Properties of a SnapshotAnalysis. */ + interface ISnapshotAnalysis { - /** Endpoint displayName */ - displayName?: (string|null); + /** SnapshotAnalysis disabled */ + disabled?: (boolean|null); - /** Endpoint description */ - description?: (string|null); + /** SnapshotAnalysis monitoringInterval */ + monitoringInterval?: (google.protobuf.IDuration|null); - /** Endpoint deployedModels */ - deployedModels?: (google.cloud.aiplatform.v1beta1.IDeployedModel[]|null); + /** SnapshotAnalysis monitoringIntervalDays */ + monitoringIntervalDays?: (number|null); - /** Endpoint trafficSplit */ - trafficSplit?: ({ [k: string]: number }|null); + /** SnapshotAnalysis stalenessDays */ + stalenessDays?: (number|null); + } - /** Endpoint etag */ - etag?: (string|null); + /** Represents a SnapshotAnalysis. */ + class SnapshotAnalysis implements ISnapshotAnalysis { - /** Endpoint labels */ - labels?: ({ [k: string]: string }|null); + /** + * Constructs a new SnapshotAnalysis. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis); - /** Endpoint createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** SnapshotAnalysis disabled. */ + public disabled: boolean; - /** Endpoint updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** SnapshotAnalysis monitoringInterval. */ + public monitoringInterval?: (google.protobuf.IDuration|null); - /** Endpoint encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** SnapshotAnalysis monitoringIntervalDays. */ + public monitoringIntervalDays: number; - /** Endpoint network */ - network?: (string|null); + /** SnapshotAnalysis stalenessDays. */ + public stalenessDays: number; - /** Endpoint enablePrivateServiceConnect */ - enablePrivateServiceConnect?: (boolean|null); + /** + * Creates a new SnapshotAnalysis instance using the specified properties. + * @param [properties] Properties to set + * @returns SnapshotAnalysis instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - /** Endpoint modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (string|null); + /** + * Encodes the specified SnapshotAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. + * @param message SnapshotAnalysis message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - /** Endpoint predictRequestResponseLoggingConfig */ - predictRequestResponseLoggingConfig?: (google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig|null); - } + /** + * Encodes the specified SnapshotAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. + * @param message SnapshotAnalysis message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents an Endpoint. */ - class Endpoint implements IEndpoint { + /** + * Decodes a SnapshotAnalysis message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SnapshotAnalysis + * @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.FeaturestoreMonitoringConfig.SnapshotAnalysis; - /** - * Constructs a new Endpoint. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEndpoint); + /** + * Decodes a SnapshotAnalysis message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SnapshotAnalysis + * @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.FeaturestoreMonitoringConfig.SnapshotAnalysis; - /** Endpoint name. */ - public name: string; + /** + * Verifies a SnapshotAnalysis 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); - /** Endpoint displayName. */ - public displayName: string; + /** + * Creates a SnapshotAnalysis message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SnapshotAnalysis + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - /** Endpoint description. */ - public description: string; + /** + * Creates a plain object from a SnapshotAnalysis message. Also converts values to other types if specified. + * @param message SnapshotAnalysis + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Endpoint deployedModels. */ - public deployedModels: google.cloud.aiplatform.v1beta1.IDeployedModel[]; + /** + * Converts this SnapshotAnalysis to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Endpoint trafficSplit. */ - public trafficSplit: { [k: string]: number }; + /** + * Gets the default type url for SnapshotAnalysis + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Endpoint etag. */ - public etag: string; + /** Properties of an ImportFeaturesAnalysis. */ + interface IImportFeaturesAnalysis { - /** Endpoint labels. */ - public labels: { [k: string]: string }; + /** ImportFeaturesAnalysis state */ + state?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|null); - /** Endpoint createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ImportFeaturesAnalysis anomalyDetectionBaseline */ + anomalyDetectionBaseline?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|null); + } - /** Endpoint updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** Represents an ImportFeaturesAnalysis. */ + class ImportFeaturesAnalysis implements IImportFeaturesAnalysis { - /** Endpoint encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** + * Constructs a new ImportFeaturesAnalysis. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis); - /** Endpoint network. */ - public network: string; + /** ImportFeaturesAnalysis state. */ + public state: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State); - /** Endpoint enablePrivateServiceConnect. */ - public enablePrivateServiceConnect: boolean; + /** ImportFeaturesAnalysis anomalyDetectionBaseline. */ + public anomalyDetectionBaseline: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline); - /** Endpoint modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob: string; + /** + * Creates a new ImportFeaturesAnalysis instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportFeaturesAnalysis instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - /** Endpoint predictRequestResponseLoggingConfig. */ - public predictRequestResponseLoggingConfig?: (google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig|null); + /** + * Encodes the specified ImportFeaturesAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. + * @param message ImportFeaturesAnalysis message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new Endpoint instance using the specified properties. - * @param [properties] Properties to set - * @returns Endpoint instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEndpoint): google.cloud.aiplatform.v1beta1.Endpoint; + /** + * Encodes the specified ImportFeaturesAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. + * @param message ImportFeaturesAnalysis message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Endpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.verify|verify} messages. - * @param message Endpoint message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImportFeaturesAnalysis + * @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.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - /** - * Encodes the specified Endpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.verify|verify} messages. - * @param message Endpoint message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImportFeaturesAnalysis + * @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.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - /** - * Decodes an Endpoint message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Endpoint - * @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.Endpoint; + /** + * Verifies an ImportFeaturesAnalysis 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); - /** - * Decodes an Endpoint message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Endpoint - * @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.Endpoint; + /** + * Creates an ImportFeaturesAnalysis message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportFeaturesAnalysis + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - /** - * Verifies an Endpoint 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 plain object from an ImportFeaturesAnalysis message. Also converts values to other types if specified. + * @param message ImportFeaturesAnalysis + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates an Endpoint message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Endpoint - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Endpoint; + /** + * Converts this ImportFeaturesAnalysis to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from an Endpoint message. Also converts values to other types if specified. - * @param message Endpoint - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Endpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for ImportFeaturesAnalysis + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this Endpoint to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + namespace ImportFeaturesAnalysis { - /** - * Gets the default type url for Endpoint - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + DEFAULT = 1, + ENABLED = 2, + DISABLED = 3 + } - /** Properties of a DeployedModel. */ - interface IDeployedModel { + /** Baseline enum. */ + enum Baseline { + BASELINE_UNSPECIFIED = 0, + LATEST_STATS = 1, + MOST_RECENT_SNAPSHOT_STATS = 2, + PREVIOUS_IMPORT_FEATURES_STATS = 3 + } + } - /** DeployedModel dedicatedResources */ - dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + /** Properties of a ThresholdConfig. */ + interface IThresholdConfig { - /** DeployedModel automaticResources */ - automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); + /** ThresholdConfig value */ + value?: (number|null); + } - /** DeployedModel sharedResources */ - sharedResources?: (string|null); + /** Represents a ThresholdConfig. */ + class ThresholdConfig implements IThresholdConfig { - /** DeployedModel id */ - id?: (string|null); + /** + * Constructs a new ThresholdConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig); - /** DeployedModel model */ - model?: (string|null); + /** ThresholdConfig value. */ + public value?: (number|null); - /** DeployedModel modelVersionId */ - modelVersionId?: (string|null); + /** ThresholdConfig threshold. */ + public threshold?: "value"; - /** DeployedModel displayName */ - displayName?: (string|null); + /** + * Creates a new ThresholdConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ThresholdConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; - /** DeployedModel createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** DeployedModel explanationSpec */ - explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + /** + * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** DeployedModel serviceAccount */ - serviceAccount?: (string|null); + /** + * Decodes a ThresholdConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ThresholdConfig + * @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.FeaturestoreMonitoringConfig.ThresholdConfig; - /** DeployedModel enableContainerLogging */ - enableContainerLogging?: (boolean|null); + /** + * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ThresholdConfig + * @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.FeaturestoreMonitoringConfig.ThresholdConfig; - /** DeployedModel enableAccessLogging */ - enableAccessLogging?: (boolean|null); + /** + * Verifies a ThresholdConfig 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); - /** DeployedModel privateEndpoints */ - privateEndpoints?: (google.cloud.aiplatform.v1beta1.IPrivateEndpoints|null); - } + /** + * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ThresholdConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; - /** Represents a DeployedModel. */ - class DeployedModel implements IDeployedModel { + /** + * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. + * @param message ThresholdConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new DeployedModel. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedModel); + /** + * Converts this ThresholdConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** DeployedModel dedicatedResources. */ - public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + /** + * Gets the default type url for ThresholdConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** DeployedModel automaticResources. */ - public automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); + /** Properties of an Event. */ + interface IEvent { - /** DeployedModel sharedResources. */ - public sharedResources?: (string|null); + /** Event artifact */ + artifact?: (string|null); - /** DeployedModel id. */ - public id: string; + /** Event execution */ + execution?: (string|null); - /** DeployedModel model. */ - public model: string; + /** Event eventTime */ + eventTime?: (google.protobuf.ITimestamp|null); - /** DeployedModel modelVersionId. */ - public modelVersionId: string; + /** Event type */ + type?: (google.cloud.aiplatform.v1beta1.Event.Type|keyof typeof google.cloud.aiplatform.v1beta1.Event.Type|null); - /** DeployedModel displayName. */ - public displayName: string; + /** Event labels */ + labels?: ({ [k: string]: string }|null); + } - /** DeployedModel createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** Represents an Event. */ + class Event implements IEvent { - /** DeployedModel explanationSpec. */ - public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + /** + * Constructs a new Event. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IEvent); - /** DeployedModel serviceAccount. */ - public serviceAccount: string; + /** Event artifact. */ + public artifact: string; - /** DeployedModel enableContainerLogging. */ - public enableContainerLogging: boolean; + /** Event execution. */ + public execution: string; - /** DeployedModel enableAccessLogging. */ - public enableAccessLogging: boolean; + /** Event eventTime. */ + public eventTime?: (google.protobuf.ITimestamp|null); - /** DeployedModel privateEndpoints. */ - public privateEndpoints?: (google.cloud.aiplatform.v1beta1.IPrivateEndpoints|null); + /** Event type. */ + public type: (google.cloud.aiplatform.v1beta1.Event.Type|keyof typeof google.cloud.aiplatform.v1beta1.Event.Type); - /** DeployedModel predictionResources. */ - public predictionResources?: ("dedicatedResources"|"automaticResources"|"sharedResources"); + /** Event labels. */ + public labels: { [k: string]: string }; /** - * Creates a new DeployedModel instance using the specified properties. + * Creates a new Event instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedModel instance + * @returns Event instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedModel): google.cloud.aiplatform.v1beta1.DeployedModel; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEvent): google.cloud.aiplatform.v1beta1.Event; /** - * Encodes the specified DeployedModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.verify|verify} messages. - * @param message DeployedModel message or plain object to encode + * Encodes the specified Event message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.verify|verify} messages. + * @param message Event message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployedModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.verify|verify} messages. - * @param message DeployedModel message or plain object to encode + * Encodes the specified Event message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.verify|verify} messages. + * @param message Event message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedModel message from the specified reader or buffer. + * Decodes an Event message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployedModel + * @returns Event * @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.DeployedModel; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Event; /** - * Decodes a DeployedModel message from the specified reader or buffer, length delimited. + * Decodes an Event message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployedModel + * @returns Event * @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.DeployedModel; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Event; /** - * Verifies a DeployedModel message. + * Verifies an Event 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 DeployedModel message from a plain object. Also converts values to their respective internal types. + * Creates an Event message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployedModel + * @returns Event */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedModel; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Event; /** - * Creates a plain object from a DeployedModel message. Also converts values to other types if specified. - * @param message DeployedModel + * Creates a plain object from an Event message. Also converts values to other types if specified. + * @param message Event * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Event, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedModel to JSON. + * Converts this Event to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployedModel + * Gets the default type url for Event * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PrivateEndpoints. */ - interface IPrivateEndpoints { + namespace Event { - /** PrivateEndpoints predictHttpUri */ - predictHttpUri?: (string|null); + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + INPUT = 1, + OUTPUT = 2 + } + } - /** PrivateEndpoints explainHttpUri */ - explainHttpUri?: (string|null); + /** Properties of an Execution. */ + interface IExecution { - /** PrivateEndpoints healthHttpUri */ - healthHttpUri?: (string|null); + /** Execution name */ + name?: (string|null); - /** PrivateEndpoints serviceAttachment */ - serviceAttachment?: (string|null); + /** Execution displayName */ + displayName?: (string|null); + + /** Execution state */ + state?: (google.cloud.aiplatform.v1beta1.Execution.State|keyof typeof google.cloud.aiplatform.v1beta1.Execution.State|null); + + /** Execution etag */ + etag?: (string|null); + + /** Execution labels */ + labels?: ({ [k: string]: string }|null); + + /** Execution createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Execution updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Execution schemaTitle */ + schemaTitle?: (string|null); + + /** Execution schemaVersion */ + schemaVersion?: (string|null); + + /** Execution metadata */ + metadata?: (google.protobuf.IStruct|null); + + /** Execution description */ + description?: (string|null); } - /** Represents a PrivateEndpoints. */ - class PrivateEndpoints implements IPrivateEndpoints { + /** Represents an Execution. */ + class Execution implements IExecution { /** - * Constructs a new PrivateEndpoints. + * Constructs a new Execution. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPrivateEndpoints); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExecution); - /** PrivateEndpoints predictHttpUri. */ - public predictHttpUri: string; + /** Execution name. */ + public name: string; - /** PrivateEndpoints explainHttpUri. */ - public explainHttpUri: string; + /** Execution displayName. */ + public displayName: string; - /** PrivateEndpoints healthHttpUri. */ - public healthHttpUri: string; + /** Execution state. */ + public state: (google.cloud.aiplatform.v1beta1.Execution.State|keyof typeof google.cloud.aiplatform.v1beta1.Execution.State); - /** PrivateEndpoints serviceAttachment. */ - public serviceAttachment: string; + /** Execution etag. */ + public etag: string; + + /** Execution labels. */ + public labels: { [k: string]: string }; + + /** Execution createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Execution updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Execution schemaTitle. */ + public schemaTitle: string; + + /** Execution schemaVersion. */ + public schemaVersion: string; + + /** Execution metadata. */ + public metadata?: (google.protobuf.IStruct|null); + + /** Execution description. */ + public description: string; /** - * Creates a new PrivateEndpoints instance using the specified properties. + * Creates a new Execution instance using the specified properties. * @param [properties] Properties to set - * @returns PrivateEndpoints instance + * @returns Execution instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPrivateEndpoints): google.cloud.aiplatform.v1beta1.PrivateEndpoints; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExecution): google.cloud.aiplatform.v1beta1.Execution; /** - * Encodes the specified PrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. - * @param message PrivateEndpoints message or plain object to encode + * Encodes the specified Execution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.verify|verify} messages. + * @param message Execution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. - * @param message PrivateEndpoints message or plain object to encode + * Encodes the specified Execution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.verify|verify} messages. + * @param message Execution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PrivateEndpoints message from the specified reader or buffer. + * Decodes an Execution message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PrivateEndpoints + * @returns Execution * @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.PrivateEndpoints; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Execution; /** - * Decodes a PrivateEndpoints message from the specified reader or buffer, length delimited. + * Decodes an Execution message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PrivateEndpoints + * @returns Execution * @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.PrivateEndpoints; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Execution; /** - * Verifies a PrivateEndpoints message. + * Verifies an Execution 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 PrivateEndpoints message from a plain object. Also converts values to their respective internal types. + * Creates an Execution message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PrivateEndpoints + * @returns Execution */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PrivateEndpoints; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Execution; /** - * Creates a plain object from a PrivateEndpoints message. Also converts values to other types if specified. - * @param message PrivateEndpoints + * Creates a plain object from an Execution message. Also converts values to other types if specified. + * @param message Execution * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PrivateEndpoints, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Execution, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PrivateEndpoints to JSON. + * Converts this Execution to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PrivateEndpoints + * Gets the default type url for Execution * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a PredictRequestResponseLoggingConfig. */ - interface IPredictRequestResponseLoggingConfig { + namespace Execution { - /** PredictRequestResponseLoggingConfig enabled */ - enabled?: (boolean|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + NEW = 1, + RUNNING = 2, + COMPLETE = 3, + FAILED = 4, + CACHED = 5, + CANCELLED = 6 + } + } - /** PredictRequestResponseLoggingConfig samplingRate */ - samplingRate?: (number|null); + /** Properties of a Feature. */ + interface IFeature { - /** PredictRequestResponseLoggingConfig bigqueryDestination */ - bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** Feature name */ + name?: (string|null); + + /** Feature description */ + description?: (string|null); + + /** Feature valueType */ + valueType?: (google.cloud.aiplatform.v1beta1.Feature.ValueType|keyof typeof google.cloud.aiplatform.v1beta1.Feature.ValueType|null); + + /** Feature createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Feature updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Feature labels */ + labels?: ({ [k: string]: string }|null); + + /** Feature etag */ + etag?: (string|null); + + /** Feature monitoringConfig */ + monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + + /** Feature disableMonitoring */ + disableMonitoring?: (boolean|null); + + /** Feature monitoringStats */ + monitoringStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]|null); + + /** Feature monitoringStatsAnomalies */ + monitoringStatsAnomalies?: (google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]|null); } - /** Represents a PredictRequestResponseLoggingConfig. */ - class PredictRequestResponseLoggingConfig implements IPredictRequestResponseLoggingConfig { + /** Represents a Feature. */ + class Feature implements IFeature { /** - * Constructs a new PredictRequestResponseLoggingConfig. + * Constructs a new Feature. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeature); - /** PredictRequestResponseLoggingConfig enabled. */ - public enabled: boolean; + /** Feature name. */ + public name: string; - /** PredictRequestResponseLoggingConfig samplingRate. */ - public samplingRate: number; + /** Feature description. */ + public description: string; - /** PredictRequestResponseLoggingConfig bigqueryDestination. */ - public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** Feature valueType. */ + public valueType: (google.cloud.aiplatform.v1beta1.Feature.ValueType|keyof typeof google.cloud.aiplatform.v1beta1.Feature.ValueType); + + /** Feature createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Feature updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Feature labels. */ + public labels: { [k: string]: string }; + + /** Feature etag. */ + public etag: string; + + /** Feature monitoringConfig. */ + public monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + + /** Feature disableMonitoring. */ + public disableMonitoring: boolean; + + /** Feature monitoringStats. */ + public monitoringStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; + + /** Feature monitoringStatsAnomalies. */ + public monitoringStatsAnomalies: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]; /** - * Creates a new PredictRequestResponseLoggingConfig instance using the specified properties. + * Creates a new Feature instance using the specified properties. * @param [properties] Properties to set - * @returns PredictRequestResponseLoggingConfig instance + * @returns Feature instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeature): google.cloud.aiplatform.v1beta1.Feature; /** - * Encodes the specified PredictRequestResponseLoggingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify|verify} messages. - * @param message PredictRequestResponseLoggingConfig message or plain object to encode + * Encodes the specified Feature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.verify|verify} messages. + * @param message Feature message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeature, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PredictRequestResponseLoggingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify|verify} messages. - * @param message PredictRequestResponseLoggingConfig message or plain object to encode + * Encodes the specified Feature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.verify|verify} messages. + * @param message Feature message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeature, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PredictRequestResponseLoggingConfig message from the specified reader or buffer. + * Decodes a Feature message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PredictRequestResponseLoggingConfig + * @returns Feature * @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.PredictRequestResponseLoggingConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Feature; /** - * Decodes a PredictRequestResponseLoggingConfig message from the specified reader or buffer, length delimited. + * Decodes a Feature message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PredictRequestResponseLoggingConfig + * @returns Feature * @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.PredictRequestResponseLoggingConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Feature; /** - * Verifies a PredictRequestResponseLoggingConfig message. + * Verifies a Feature 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 PredictRequestResponseLoggingConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Feature message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PredictRequestResponseLoggingConfig + * @returns Feature */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Feature; /** - * Creates a plain object from a PredictRequestResponseLoggingConfig message. Also converts values to other types if specified. - * @param message PredictRequestResponseLoggingConfig + * Creates a plain object from a Feature message. Also converts values to other types if specified. + * @param message Feature * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Feature, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PredictRequestResponseLoggingConfig to JSON. + * Converts this Feature to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PredictRequestResponseLoggingConfig + * Gets the default type url for Feature * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents an EndpointService */ - class EndpointService extends $protobuf.rpc.Service { - - /** - * Constructs a new EndpointService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new EndpointService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): EndpointService; - - /** - * Calls CreateEndpoint. - * @param request CreateEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.CreateEndpointCallback): void; - - /** - * Calls CreateEndpoint. - * @param request CreateEndpointRequest message or plain object - * @returns Promise - */ - public createEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest): Promise; + namespace Feature { - /** - * Calls GetEndpoint. - * @param request GetEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Endpoint - */ - public getEndpoint(request: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.GetEndpointCallback): void; + /** Properties of a MonitoringStatsAnomaly. */ + interface IMonitoringStatsAnomaly { - /** - * Calls GetEndpoint. - * @param request GetEndpointRequest message or plain object - * @returns Promise - */ - public getEndpoint(request: google.cloud.aiplatform.v1beta1.IGetEndpointRequest): Promise; + /** MonitoringStatsAnomaly objective */ + objective?: (google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|keyof typeof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|null); - /** - * Calls ListEndpoints. - * @param request ListEndpointsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListEndpointsResponse - */ - public listEndpoints(request: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.ListEndpointsCallback): void; + /** MonitoringStatsAnomaly featureStatsAnomaly */ + featureStatsAnomaly?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); + } - /** - * Calls ListEndpoints. - * @param request ListEndpointsRequest message or plain object - * @returns Promise - */ - public listEndpoints(request: google.cloud.aiplatform.v1beta1.IListEndpointsRequest): Promise; + /** Represents a MonitoringStatsAnomaly. */ + class MonitoringStatsAnomaly implements IMonitoringStatsAnomaly { - /** - * Calls UpdateEndpoint. - * @param request UpdateEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Endpoint - */ - public updateEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.UpdateEndpointCallback): void; + /** + * Constructs a new MonitoringStatsAnomaly. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly); - /** - * Calls UpdateEndpoint. - * @param request UpdateEndpointRequest message or plain object - * @returns Promise - */ - public updateEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest): Promise; + /** MonitoringStatsAnomaly objective. */ + public objective: (google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|keyof typeof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective); - /** - * Calls DeleteEndpoint. - * @param request DeleteEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.DeleteEndpointCallback): void; + /** MonitoringStatsAnomaly featureStatsAnomaly. */ + public featureStatsAnomaly?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - /** - * Calls DeleteEndpoint. - * @param request DeleteEndpointRequest message or plain object - * @returns Promise - */ - public deleteEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest): Promise; + /** + * Creates a new MonitoringStatsAnomaly instance using the specified properties. + * @param [properties] Properties to set + * @returns MonitoringStatsAnomaly instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; - /** - * Calls DeployModel. - * @param request DeployModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deployModel(request: google.cloud.aiplatform.v1beta1.IDeployModelRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.DeployModelCallback): void; + /** + * Encodes the specified MonitoringStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify|verify} messages. + * @param message MonitoringStatsAnomaly message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls DeployModel. - * @param request DeployModelRequest message or plain object - * @returns Promise - */ - public deployModel(request: google.cloud.aiplatform.v1beta1.IDeployModelRequest): Promise; + /** + * Encodes the specified MonitoringStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify|verify} messages. + * @param message MonitoringStatsAnomaly message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls UndeployModel. - * @param request UndeployModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public undeployModel(request: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.UndeployModelCallback): void; + /** + * Decodes a MonitoringStatsAnomaly message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MonitoringStatsAnomaly + * @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.Feature.MonitoringStatsAnomaly; - /** - * Calls UndeployModel. - * @param request UndeployModelRequest message or plain object - * @returns Promise - */ - public undeployModel(request: google.cloud.aiplatform.v1beta1.IUndeployModelRequest): Promise; - } + /** + * Decodes a MonitoringStatsAnomaly message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MonitoringStatsAnomaly + * @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.Feature.MonitoringStatsAnomaly; - namespace EndpointService { + /** + * Verifies a MonitoringStatsAnomaly 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); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|createEndpoint}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Creates a MonitoringStatsAnomaly message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MonitoringStatsAnomaly + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|getEndpoint}. - * @param error Error, if any - * @param [response] Endpoint - */ - type GetEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Endpoint) => void; + /** + * Creates a plain object from a MonitoringStatsAnomaly message. Also converts values to other types if specified. + * @param message MonitoringStatsAnomaly + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|listEndpoints}. - * @param error Error, if any - * @param [response] ListEndpointsResponse - */ - type ListEndpointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListEndpointsResponse) => void; + /** + * Converts this MonitoringStatsAnomaly to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|updateEndpoint}. - * @param error Error, if any - * @param [response] Endpoint - */ - type UpdateEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Endpoint) => void; + /** + * Gets the default type url for MonitoringStatsAnomaly + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|deleteEndpoint}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + namespace MonitoringStatsAnomaly { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|deployModel}. - * @param error Error, if any - * @param [response] Operation - */ - type DeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Objective enum. */ + enum Objective { + OBJECTIVE_UNSPECIFIED = 0, + IMPORT_FEATURE_ANALYSIS = 1, + SNAPSHOT_ANALYSIS = 2 + } + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService|undeployModel}. - * @param error Error, if any - * @param [response] Operation - */ - type UndeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** ValueType enum. */ + enum ValueType { + VALUE_TYPE_UNSPECIFIED = 0, + BOOL = 1, + BOOL_ARRAY = 2, + DOUBLE = 3, + DOUBLE_ARRAY = 4, + INT64 = 9, + INT64_ARRAY = 10, + STRING = 11, + STRING_ARRAY = 12, + BYTES = 13 + } } - /** Properties of a CreateEndpointRequest. */ - interface ICreateEndpointRequest { - - /** CreateEndpointRequest parent */ - parent?: (string|null); - - /** CreateEndpointRequest endpoint */ - endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + /** Properties of an IdMatcher. */ + interface IIdMatcher { - /** CreateEndpointRequest endpointId */ - endpointId?: (string|null); + /** IdMatcher ids */ + ids?: (string[]|null); } - /** Represents a CreateEndpointRequest. */ - class CreateEndpointRequest implements ICreateEndpointRequest { + /** Represents an IdMatcher. */ + class IdMatcher implements IIdMatcher { /** - * Constructs a new CreateEndpointRequest. + * Constructs a new IdMatcher. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest); - - /** CreateEndpointRequest parent. */ - public parent: string; - - /** CreateEndpointRequest endpoint. */ - public endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IIdMatcher); - /** CreateEndpointRequest endpointId. */ - public endpointId: string; + /** IdMatcher ids. */ + public ids: string[]; /** - * Creates a new CreateEndpointRequest instance using the specified properties. + * Creates a new IdMatcher instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEndpointRequest instance + * @returns IdMatcher instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IIdMatcher): google.cloud.aiplatform.v1beta1.IdMatcher; /** - * Encodes the specified CreateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.verify|verify} messages. - * @param message CreateEndpointRequest message or plain object to encode + * Encodes the specified IdMatcher message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.verify|verify} messages. + * @param message IdMatcher message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.verify|verify} messages. - * @param message CreateEndpointRequest message or plain object to encode + * Encodes the specified IdMatcher message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.verify|verify} messages. + * @param message IdMatcher message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEndpointRequest message from the specified reader or buffer. + * Decodes an IdMatcher message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEndpointRequest + * @returns IdMatcher * @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.CreateEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IdMatcher; /** - * Decodes a CreateEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes an IdMatcher message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEndpointRequest + * @returns IdMatcher * @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.CreateEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IdMatcher; /** - * Verifies a CreateEndpointRequest message. + * Verifies an IdMatcher 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 CreateEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IdMatcher message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEndpointRequest + * @returns IdMatcher */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IdMatcher; /** - * Creates a plain object from a CreateEndpointRequest message. Also converts values to other types if specified. - * @param message CreateEndpointRequest + * Creates a plain object from an IdMatcher message. Also converts values to other types if specified. + * @param message IdMatcher * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.IdMatcher, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEndpointRequest to JSON. + * Converts this IdMatcher to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateEndpointRequest + * Gets the default type url for IdMatcher * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateEndpointOperationMetadata. */ - interface ICreateEndpointOperationMetadata { + /** Properties of a FeatureSelector. */ + interface IFeatureSelector { - /** CreateEndpointOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** FeatureSelector idMatcher */ + idMatcher?: (google.cloud.aiplatform.v1beta1.IIdMatcher|null); } - /** Represents a CreateEndpointOperationMetadata. */ - class CreateEndpointOperationMetadata implements ICreateEndpointOperationMetadata { + /** Represents a FeatureSelector. */ + class FeatureSelector implements IFeatureSelector { /** - * Constructs a new CreateEndpointOperationMetadata. + * Constructs a new FeatureSelector. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelector); - /** CreateEndpointOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** FeatureSelector idMatcher. */ + public idMatcher?: (google.cloud.aiplatform.v1beta1.IIdMatcher|null); /** - * Creates a new CreateEndpointOperationMetadata instance using the specified properties. + * Creates a new FeatureSelector instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEndpointOperationMetadata instance + * @returns FeatureSelector instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelector): google.cloud.aiplatform.v1beta1.FeatureSelector; /** - * Encodes the specified CreateEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. - * @param message CreateEndpointOperationMetadata message or plain object to encode + * Encodes the specified FeatureSelector message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.verify|verify} messages. + * @param message FeatureSelector message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. - * @param message CreateEndpointOperationMetadata message or plain object to encode + * Encodes the specified FeatureSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.verify|verify} messages. + * @param message FeatureSelector message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer. + * Decodes a FeatureSelector message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEndpointOperationMetadata + * @returns FeatureSelector * @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.CreateEndpointOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureSelector; /** - * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a FeatureSelector message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEndpointOperationMetadata + * @returns FeatureSelector * @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.CreateEndpointOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureSelector; /** - * Verifies a CreateEndpointOperationMetadata message. + * Verifies a FeatureSelector 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 CreateEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureSelector message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEndpointOperationMetadata + * @returns FeatureSelector */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureSelector; /** - * Creates a plain object from a CreateEndpointOperationMetadata message. Also converts values to other types if specified. - * @param message CreateEndpointOperationMetadata + * Creates a plain object from a FeatureSelector message. Also converts values to other types if specified. + * @param message FeatureSelector * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEndpointOperationMetadata to JSON. + * Converts this FeatureSelector to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateEndpointOperationMetadata + * Gets the default type url for FeatureSelector * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetEndpointRequest. */ - interface IGetEndpointRequest { + /** Properties of a Featurestore. */ + interface IFeaturestore { - /** GetEndpointRequest name */ + /** Featurestore name */ name?: (string|null); + + /** Featurestore createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Featurestore updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Featurestore etag */ + etag?: (string|null); + + /** Featurestore labels */ + labels?: ({ [k: string]: string }|null); + + /** Featurestore onlineServingConfig */ + onlineServingConfig?: (google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null); + + /** Featurestore state */ + state?: (google.cloud.aiplatform.v1beta1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1beta1.Featurestore.State|null); + + /** Featurestore onlineStorageTtlDays */ + onlineStorageTtlDays?: (number|null); + + /** Featurestore encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); } - /** Represents a GetEndpointRequest. */ - class GetEndpointRequest implements IGetEndpointRequest { + /** Represents a Featurestore. */ + class Featurestore implements IFeaturestore { /** - * Constructs a new GetEndpointRequest. + * Constructs a new Featurestore. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeaturestore); - /** GetEndpointRequest name. */ + /** Featurestore name. */ public name: string; + /** Featurestore createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Featurestore updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Featurestore etag. */ + public etag: string; + + /** Featurestore labels. */ + public labels: { [k: string]: string }; + + /** Featurestore onlineServingConfig. */ + public onlineServingConfig?: (google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null); + + /** Featurestore state. */ + public state: (google.cloud.aiplatform.v1beta1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1beta1.Featurestore.State); + + /** Featurestore onlineStorageTtlDays. */ + public onlineStorageTtlDays: number; + + /** Featurestore encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** - * Creates a new GetEndpointRequest instance using the specified properties. + * Creates a new Featurestore instance using the specified properties. * @param [properties] Properties to set - * @returns GetEndpointRequest instance + * @returns Featurestore instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetEndpointRequest): google.cloud.aiplatform.v1beta1.GetEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeaturestore): google.cloud.aiplatform.v1beta1.Featurestore; /** - * Encodes the specified GetEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.verify|verify} messages. - * @param message GetEndpointRequest message or plain object to encode + * Encodes the specified Featurestore message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.verify|verify} messages. + * @param message Featurestore message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.verify|verify} messages. - * @param message GetEndpointRequest message or plain object to encode + * Encodes the specified Featurestore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.verify|verify} messages. + * @param message Featurestore message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEndpointRequest message from the specified reader or buffer. + * Decodes a Featurestore message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetEndpointRequest + * @returns Featurestore * @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.GetEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Featurestore; /** - * Decodes a GetEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a Featurestore message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetEndpointRequest + * @returns Featurestore * @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.GetEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Featurestore; /** - * Verifies a GetEndpointRequest message. + * Verifies a Featurestore 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 GetEndpointRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetEndpointRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetEndpointRequest; + /** + * Creates a Featurestore message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Featurestore + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore; + + /** + * Creates a plain object from a Featurestore message. Also converts values to other types if specified. + * @param message Featurestore + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Featurestore to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Featurestore + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Featurestore { + + /** Properties of an OnlineServingConfig. */ + interface IOnlineServingConfig { + + /** OnlineServingConfig fixedNodeCount */ + fixedNodeCount?: (number|null); + + /** OnlineServingConfig scaling */ + scaling?: (google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null); + } + + /** Represents an OnlineServingConfig. */ + class OnlineServingConfig implements IOnlineServingConfig { + + /** + * Constructs a new OnlineServingConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig); + + /** OnlineServingConfig fixedNodeCount. */ + public fixedNodeCount: number; + + /** OnlineServingConfig scaling. */ + public scaling?: (google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null); + + /** + * Creates a new OnlineServingConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns OnlineServingConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig; + + /** + * Encodes the specified OnlineServingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. + * @param message OnlineServingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OnlineServingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. + * @param message OnlineServingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OnlineServingConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OnlineServingConfig + * @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.Featurestore.OnlineServingConfig; + + /** + * Decodes an OnlineServingConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OnlineServingConfig + * @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.Featurestore.OnlineServingConfig; + + /** + * Verifies an OnlineServingConfig 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 OnlineServingConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OnlineServingConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig; + + /** + * Creates a plain object from an OnlineServingConfig message. Also converts values to other types if specified. + * @param message OnlineServingConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OnlineServingConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OnlineServingConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace OnlineServingConfig { + + /** Properties of a Scaling. */ + interface IScaling { + + /** Scaling minNodeCount */ + minNodeCount?: (number|null); + + /** Scaling maxNodeCount */ + maxNodeCount?: (number|null); + } + + /** Represents a Scaling. */ + class Scaling implements IScaling { - /** - * Creates a plain object from a GetEndpointRequest message. Also converts values to other types if specified. - * @param message GetEndpointRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new Scaling. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling); - /** - * Converts this GetEndpointRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Scaling minNodeCount. */ + public minNodeCount: number; - /** - * Gets the default type url for GetEndpointRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** Scaling maxNodeCount. */ + public maxNodeCount: number; - /** Properties of a ListEndpointsRequest. */ - interface IListEndpointsRequest { + /** + * Creates a new Scaling instance using the specified properties. + * @param [properties] Properties to set + * @returns Scaling instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; - /** ListEndpointsRequest parent */ - parent?: (string|null); + /** + * Encodes the specified Scaling message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. + * @param message Scaling message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListEndpointsRequest filter */ - filter?: (string|null); + /** + * Encodes the specified Scaling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. + * @param message Scaling message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling, writer?: $protobuf.Writer): $protobuf.Writer; - /** ListEndpointsRequest pageSize */ - pageSize?: (number|null); + /** + * Decodes a Scaling message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Scaling + * @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.Featurestore.OnlineServingConfig.Scaling; - /** ListEndpointsRequest pageToken */ - pageToken?: (string|null); + /** + * Decodes a Scaling message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Scaling + * @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.Featurestore.OnlineServingConfig.Scaling; - /** ListEndpointsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); - } + /** + * Verifies a Scaling 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); - /** Represents a ListEndpointsRequest. */ - class ListEndpointsRequest implements IListEndpointsRequest { + /** + * Creates a Scaling message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Scaling + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; - /** - * Constructs a new ListEndpointsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsRequest); + /** + * Creates a plain object from a Scaling message. Also converts values to other types if specified. + * @param message Scaling + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ListEndpointsRequest parent. */ - public parent: string; + /** + * Converts this Scaling to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ListEndpointsRequest filter. */ - public filter: string; + /** + * Gets the default type url for Scaling + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** ListEndpointsRequest pageSize. */ - public pageSize: number; + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + STABLE = 1, + UPDATING = 2 + } + } - /** ListEndpointsRequest pageToken. */ - public pageToken: string; + /** Represents a FeaturestoreOnlineServingService */ + class FeaturestoreOnlineServingService extends $protobuf.rpc.Service { - /** ListEndpointsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** + * Constructs a new FeaturestoreOnlineServingService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new ListEndpointsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListEndpointsRequest instance + * Creates new FeaturestoreOnlineServingService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsRequest): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreOnlineServingService; /** - * Encodes the specified ListEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsRequest.verify|verify} messages. - * @param message ListEndpointsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ReadFeatureValues. + * @param request ReadFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public readFeatureValues(request: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValuesCallback): void; /** - * Encodes the specified ListEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsRequest.verify|verify} messages. - * @param message ListEndpointsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ReadFeatureValues. + * @param request ReadFeatureValuesRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public readFeatureValues(request: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest): Promise; /** - * Decodes a ListEndpointsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListEndpointsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls StreamingReadFeatureValues. + * @param request StreamingReadFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; + public streamingReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.StreamingReadFeatureValuesCallback): void; /** - * Decodes a ListEndpointsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListEndpointsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls StreamingReadFeatureValues. + * @param request StreamingReadFeatureValuesRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; + public streamingReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest): Promise; /** - * Verifies a ListEndpointsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls WriteFeatureValues. + * @param request WriteFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and WriteFeatureValuesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public writeFeatureValues(request: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.WriteFeatureValuesCallback): void; /** - * Creates a ListEndpointsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListEndpointsRequest + * Calls WriteFeatureValues. + * @param request WriteFeatureValuesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; + public writeFeatureValues(request: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest): Promise; + } + + namespace FeaturestoreOnlineServingService { /** - * Creates a plain object from a ListEndpointsRequest message. Also converts values to other types if specified. - * @param message ListEndpointsRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService|readFeatureValues}. + * @param error Error, if any + * @param [response] ReadFeatureValuesResponse */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) => void; /** - * Converts this ListEndpointsRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService|streamingReadFeatureValues}. + * @param error Error, if any + * @param [response] ReadFeatureValuesResponse */ - public toJSON(): { [k: string]: any }; + type StreamingReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) => void; /** - * Gets the default type url for ListEndpointsRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService|writeFeatureValues}. + * @param error Error, if any + * @param [response] WriteFeatureValuesResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type WriteFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse) => void; } - /** Properties of a ListEndpointsResponse. */ - interface IListEndpointsResponse { + /** Properties of a WriteFeatureValuesRequest. */ + interface IWriteFeatureValuesRequest { - /** ListEndpointsResponse endpoints */ - endpoints?: (google.cloud.aiplatform.v1beta1.IEndpoint[]|null); + /** WriteFeatureValuesRequest entityType */ + entityType?: (string|null); - /** ListEndpointsResponse nextPageToken */ - nextPageToken?: (string|null); + /** WriteFeatureValuesRequest payloads */ + payloads?: (google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload[]|null); } - /** Represents a ListEndpointsResponse. */ - class ListEndpointsResponse implements IListEndpointsResponse { + /** Represents a WriteFeatureValuesRequest. */ + class WriteFeatureValuesRequest implements IWriteFeatureValuesRequest { /** - * Constructs a new ListEndpointsResponse. + * Constructs a new WriteFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest); - /** ListEndpointsResponse endpoints. */ - public endpoints: google.cloud.aiplatform.v1beta1.IEndpoint[]; + /** WriteFeatureValuesRequest entityType. */ + public entityType: string; - /** ListEndpointsResponse nextPageToken. */ - public nextPageToken: string; + /** WriteFeatureValuesRequest payloads. */ + public payloads: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload[]; /** - * Creates a new ListEndpointsResponse instance using the specified properties. + * Creates a new WriteFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListEndpointsResponse instance + * @returns WriteFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsResponse): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest): google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest; /** - * Encodes the specified ListEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.verify|verify} messages. - * @param message ListEndpointsResponse message or plain object to encode + * Encodes the specified WriteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest.verify|verify} messages. + * @param message WriteFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.verify|verify} messages. - * @param message ListEndpointsResponse message or plain object to encode + * Encodes the specified WriteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest.verify|verify} messages. + * @param message WriteFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEndpointsResponse message from the specified reader or buffer. + * Decodes a WriteFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEndpointsResponse + * @returns WriteFeatureValuesRequest * @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.ListEndpointsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest; /** - * Decodes a ListEndpointsResponse message from the specified reader or buffer, length delimited. + * Decodes a WriteFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEndpointsResponse + * @returns WriteFeatureValuesRequest * @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.ListEndpointsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest; /** - * Verifies a ListEndpointsResponse message. + * Verifies a WriteFeatureValuesRequest 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 ListEndpointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a WriteFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEndpointsResponse + * @returns WriteFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest; /** - * Creates a plain object from a ListEndpointsResponse message. Also converts values to other types if specified. - * @param message ListEndpointsResponse + * Creates a plain object from a WriteFeatureValuesRequest message. Also converts values to other types if specified. + * @param message WriteFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListEndpointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEndpointsResponse to JSON. + * Converts this WriteFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListEndpointsResponse + * Gets the default type url for WriteFeatureValuesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateEndpointRequest. */ - interface IUpdateEndpointRequest { + /** Properties of a WriteFeatureValuesPayload. */ + interface IWriteFeatureValuesPayload { - /** UpdateEndpointRequest endpoint */ - endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + /** WriteFeatureValuesPayload entityId */ + entityId?: (string|null); - /** UpdateEndpointRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** WriteFeatureValuesPayload featureValues */ + featureValues?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IFeatureValue }|null); } - /** Represents an UpdateEndpointRequest. */ - class UpdateEndpointRequest implements IUpdateEndpointRequest { + /** Represents a WriteFeatureValuesPayload. */ + class WriteFeatureValuesPayload implements IWriteFeatureValuesPayload { /** - * Constructs a new UpdateEndpointRequest. + * Constructs a new WriteFeatureValuesPayload. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload); - /** UpdateEndpointRequest endpoint. */ - public endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + /** WriteFeatureValuesPayload entityId. */ + public entityId: string; - /** UpdateEndpointRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** WriteFeatureValuesPayload featureValues. */ + public featureValues: { [k: string]: google.cloud.aiplatform.v1beta1.IFeatureValue }; /** - * Creates a new UpdateEndpointRequest instance using the specified properties. + * Creates a new WriteFeatureValuesPayload instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateEndpointRequest instance + * @returns WriteFeatureValuesPayload instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload): google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload; /** - * Encodes the specified UpdateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.verify|verify} messages. - * @param message UpdateEndpointRequest message or plain object to encode + * Encodes the specified WriteFeatureValuesPayload message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.verify|verify} messages. + * @param message WriteFeatureValuesPayload message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.verify|verify} messages. - * @param message UpdateEndpointRequest message or plain object to encode + * Encodes the specified WriteFeatureValuesPayload message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.verify|verify} messages. + * @param message WriteFeatureValuesPayload message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateEndpointRequest message from the specified reader or buffer. + * Decodes a WriteFeatureValuesPayload message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateEndpointRequest + * @returns WriteFeatureValuesPayload * @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.UpdateEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload; /** - * Decodes an UpdateEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a WriteFeatureValuesPayload message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateEndpointRequest + * @returns WriteFeatureValuesPayload * @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.UpdateEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload; /** - * Verifies an UpdateEndpointRequest message. + * Verifies a WriteFeatureValuesPayload 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 UpdateEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WriteFeatureValuesPayload message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateEndpointRequest + * @returns WriteFeatureValuesPayload */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload; /** - * Creates a plain object from an UpdateEndpointRequest message. Also converts values to other types if specified. - * @param message UpdateEndpointRequest + * Creates a plain object from a WriteFeatureValuesPayload message. Also converts values to other types if specified. + * @param message WriteFeatureValuesPayload * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateEndpointRequest to JSON. + * Converts this WriteFeatureValuesPayload to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateEndpointRequest + * Gets the default type url for WriteFeatureValuesPayload * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteEndpointRequest. */ - interface IDeleteEndpointRequest { - - /** DeleteEndpointRequest name */ - name?: (string|null); + /** Properties of a WriteFeatureValuesResponse. */ + interface IWriteFeatureValuesResponse { } - /** Represents a DeleteEndpointRequest. */ - class DeleteEndpointRequest implements IDeleteEndpointRequest { + /** Represents a WriteFeatureValuesResponse. */ + class WriteFeatureValuesResponse implements IWriteFeatureValuesResponse { /** - * Constructs a new DeleteEndpointRequest. + * Constructs a new WriteFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest); - - /** DeleteEndpointRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesResponse); /** - * Creates a new DeleteEndpointRequest instance using the specified properties. + * Creates a new WriteFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteEndpointRequest instance + * @returns WriteFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesResponse): google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse; /** - * Encodes the specified DeleteEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. - * @param message DeleteEndpointRequest message or plain object to encode + * Encodes the specified WriteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse.verify|verify} messages. + * @param message WriteFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. - * @param message DeleteEndpointRequest message or plain object to encode + * Encodes the specified WriteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse.verify|verify} messages. + * @param message WriteFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteEndpointRequest message from the specified reader or buffer. + * Decodes a WriteFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteEndpointRequest + * @returns WriteFeatureValuesResponse * @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.DeleteEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse; /** - * Decodes a DeleteEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a WriteFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteEndpointRequest + * @returns WriteFeatureValuesResponse * @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.DeleteEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse; /** - * Verifies a DeleteEndpointRequest message. + * Verifies a WriteFeatureValuesResponse 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 DeleteEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a WriteFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteEndpointRequest + * @returns WriteFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse; /** - * Creates a plain object from a DeleteEndpointRequest message. Also converts values to other types if specified. - * @param message DeleteEndpointRequest + * Creates a plain object from a WriteFeatureValuesResponse message. Also converts values to other types if specified. + * @param message WriteFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteEndpointRequest to JSON. + * Converts this WriteFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteEndpointRequest + * Gets the default type url for WriteFeatureValuesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployModelRequest. */ - interface IDeployModelRequest { + /** Properties of a ReadFeatureValuesRequest. */ + interface IReadFeatureValuesRequest { - /** DeployModelRequest endpoint */ - endpoint?: (string|null); + /** ReadFeatureValuesRequest entityType */ + entityType?: (string|null); - /** DeployModelRequest deployedModel */ - deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + /** ReadFeatureValuesRequest entityId */ + entityId?: (string|null); - /** DeployModelRequest trafficSplit */ - trafficSplit?: ({ [k: string]: number }|null); + /** ReadFeatureValuesRequest featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); } - /** Represents a DeployModelRequest. */ - class DeployModelRequest implements IDeployModelRequest { + /** Represents a ReadFeatureValuesRequest. */ + class ReadFeatureValuesRequest implements IReadFeatureValuesRequest { /** - * Constructs a new DeployModelRequest. + * Constructs a new ReadFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest); - /** DeployModelRequest endpoint. */ - public endpoint: string; + /** ReadFeatureValuesRequest entityType. */ + public entityType: string; - /** DeployModelRequest deployedModel. */ - public deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + /** ReadFeatureValuesRequest entityId. */ + public entityId: string; - /** DeployModelRequest trafficSplit. */ - public trafficSplit: { [k: string]: number }; + /** ReadFeatureValuesRequest featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); /** - * Creates a new DeployModelRequest instance using the specified properties. + * Creates a new ReadFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeployModelRequest instance + * @returns ReadFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelRequest): google.cloud.aiplatform.v1beta1.DeployModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; /** - * Encodes the specified DeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.verify|verify} messages. - * @param message DeployModelRequest message or plain object to encode + * Encodes the specified ReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.verify|verify} messages. + * @param message ReadFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.verify|verify} messages. - * @param message DeployModelRequest message or plain object to encode + * Encodes the specified ReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.verify|verify} messages. + * @param message ReadFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployModelRequest message from the specified reader or buffer. + * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployModelRequest + * @returns ReadFeatureValuesRequest * @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.DeployModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; /** - * Decodes a DeployModelRequest message from the specified reader or buffer, length delimited. + * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployModelRequest + * @returns ReadFeatureValuesRequest * @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.DeployModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; /** - * Verifies a DeployModelRequest message. + * Verifies a ReadFeatureValuesRequest 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 DeployModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployModelRequest + * @returns ReadFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; /** - * Creates a plain object from a DeployModelRequest message. Also converts values to other types if specified. - * @param message DeployModelRequest + * Creates a plain object from a ReadFeatureValuesRequest message. Also converts values to other types if specified. + * @param message ReadFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployModelRequest to JSON. + * Converts this ReadFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployModelRequest + * Gets the default type url for ReadFeatureValuesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployModelResponse. */ - interface IDeployModelResponse { + /** Properties of a ReadFeatureValuesResponse. */ + interface IReadFeatureValuesResponse { - /** DeployModelResponse deployedModel */ - deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + /** ReadFeatureValuesResponse header */ + header?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null); + + /** ReadFeatureValuesResponse entityView */ + entityView?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null); } - /** Represents a DeployModelResponse. */ - class DeployModelResponse implements IDeployModelResponse { + /** Represents a ReadFeatureValuesResponse. */ + class ReadFeatureValuesResponse implements IReadFeatureValuesResponse { /** - * Constructs a new DeployModelResponse. + * Constructs a new ReadFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse); - /** DeployModelResponse deployedModel. */ - public deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + /** ReadFeatureValuesResponse header. */ + public header?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null); + + /** ReadFeatureValuesResponse entityView. */ + public entityView?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null); /** - * Creates a new DeployModelResponse instance using the specified properties. + * Creates a new ReadFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeployModelResponse instance + * @returns ReadFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelResponse): google.cloud.aiplatform.v1beta1.DeployModelResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; /** - * Encodes the specified DeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.verify|verify} messages. - * @param message DeployModelResponse message or plain object to encode + * Encodes the specified ReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.verify|verify} messages. + * @param message ReadFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.verify|verify} messages. - * @param message DeployModelResponse message or plain object to encode + * Encodes the specified ReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.verify|verify} messages. + * @param message ReadFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployModelResponse message from the specified reader or buffer. + * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployModelResponse + * @returns ReadFeatureValuesResponse * @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.DeployModelResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; /** - * Decodes a DeployModelResponse message from the specified reader or buffer, length delimited. + * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployModelResponse + * @returns ReadFeatureValuesResponse * @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.DeployModelResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; /** - * Verifies a DeployModelResponse message. + * Verifies a ReadFeatureValuesResponse 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 DeployModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployModelResponse + * @returns ReadFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; /** - * Creates a plain object from a DeployModelResponse message. Also converts values to other types if specified. - * @param message DeployModelResponse + * Creates a plain object from a ReadFeatureValuesResponse message. Also converts values to other types if specified. + * @param message ReadFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployModelResponse to JSON. + * Converts this ReadFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for DeployModelResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Gets the default type url for ReadFeatureValuesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace ReadFeatureValuesResponse { + + /** Properties of a FeatureDescriptor. */ + interface IFeatureDescriptor { + + /** FeatureDescriptor id */ + id?: (string|null); + } + + /** Represents a FeatureDescriptor. */ + class FeatureDescriptor implements IFeatureDescriptor { + + /** + * Constructs a new FeatureDescriptor. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor); + + /** FeatureDescriptor id. */ + public id: string; + + /** + * Creates a new FeatureDescriptor instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureDescriptor instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; + + /** + * Encodes the specified FeatureDescriptor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. + * @param message FeatureDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureDescriptor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. + * @param message FeatureDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureDescriptor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureDescriptor + * @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.ReadFeatureValuesResponse.FeatureDescriptor; + + /** + * Decodes a FeatureDescriptor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureDescriptor + * @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.ReadFeatureValuesResponse.FeatureDescriptor; + + /** + * Verifies a FeatureDescriptor 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 FeatureDescriptor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureDescriptor + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; + + /** + * Creates a plain object from a FeatureDescriptor message. Also converts values to other types if specified. + * @param message FeatureDescriptor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureDescriptor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureDescriptor + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a Header. */ + interface IHeader { + + /** Header entityType */ + entityType?: (string|null); + + /** Header featureDescriptors */ + featureDescriptors?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor[]|null); + } + + /** Represents a Header. */ + class Header implements IHeader { + + /** + * Constructs a new Header. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader); + + /** Header entityType. */ + public entityType: string; + + /** Header featureDescriptors. */ + public featureDescriptors: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor[]; + + /** + * Creates a new Header instance using the specified properties. + * @param [properties] Properties to set + * @returns Header instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; + + /** + * Encodes the specified Header message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. + * @param message Header message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Header message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. + * @param message Header message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Header message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Header + * @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.ReadFeatureValuesResponse.Header; + + /** + * Decodes a Header message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Header + * @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.ReadFeatureValuesResponse.Header; + + /** + * Verifies a Header 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 Header message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Header + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; + + /** + * Creates a plain object from a Header message. Also converts values to other types if specified. + * @param message Header + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Header to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Header + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of an EntityView. */ + interface IEntityView { + + /** EntityView entityId */ + entityId?: (string|null); + + /** EntityView data */ + data?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData[]|null); + } + + /** Represents an EntityView. */ + class EntityView implements IEntityView { + + /** + * Constructs a new EntityView. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView); + + /** EntityView entityId. */ + public entityId: string; + + /** EntityView data. */ + public data: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData[]; + + /** + * Creates a new EntityView instance using the specified properties. + * @param [properties] Properties to set + * @returns EntityView instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; + + /** + * Encodes the specified EntityView message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. + * @param message EntityView message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EntityView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. + * @param message EntityView message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EntityView message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EntityView + * @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.ReadFeatureValuesResponse.EntityView; + + /** + * Decodes an EntityView message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EntityView + * @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.ReadFeatureValuesResponse.EntityView; + + /** + * Verifies an EntityView 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 EntityView message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EntityView + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; + + /** + * Creates a plain object from an EntityView message. Also converts values to other types if specified. + * @param message EntityView + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EntityView to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EntityView + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace EntityView { + + /** Properties of a Data. */ + interface IData { + + /** Data value */ + value?: (google.cloud.aiplatform.v1beta1.IFeatureValue|null); + + /** Data values */ + values?: (google.cloud.aiplatform.v1beta1.IFeatureValueList|null); + } + + /** Represents a Data. */ + class Data implements IData { + + /** + * Constructs a new Data. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData); + + /** Data value. */ + public value?: (google.cloud.aiplatform.v1beta1.IFeatureValue|null); + + /** Data values. */ + public values?: (google.cloud.aiplatform.v1beta1.IFeatureValueList|null); + + /** Data data. */ + public data?: ("value"|"values"); + + /** + * Creates a new Data instance using the specified properties. + * @param [properties] Properties to set + * @returns Data instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; + + /** + * Encodes the specified Data message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. + * @param message Data message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Data message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. + * @param message Data message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Data message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Data + * @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.ReadFeatureValuesResponse.EntityView.Data; + + /** + * Decodes a Data message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Data + * @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.ReadFeatureValuesResponse.EntityView.Data; + + /** + * Verifies a Data 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 Data message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Data + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; + + /** + * Creates a plain object from a Data message. Also converts values to other types if specified. + * @param message Data + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Data to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Data + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } } - /** Properties of a DeployModelOperationMetadata. */ - interface IDeployModelOperationMetadata { + /** Properties of a StreamingReadFeatureValuesRequest. */ + interface IStreamingReadFeatureValuesRequest { - /** DeployModelOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** StreamingReadFeatureValuesRequest entityType */ + entityType?: (string|null); + + /** StreamingReadFeatureValuesRequest entityIds */ + entityIds?: (string[]|null); + + /** StreamingReadFeatureValuesRequest featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); } - /** Represents a DeployModelOperationMetadata. */ - class DeployModelOperationMetadata implements IDeployModelOperationMetadata { + /** Represents a StreamingReadFeatureValuesRequest. */ + class StreamingReadFeatureValuesRequest implements IStreamingReadFeatureValuesRequest { /** - * Constructs a new DeployModelOperationMetadata. + * Constructs a new StreamingReadFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest); - /** DeployModelOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** StreamingReadFeatureValuesRequest entityType. */ + public entityType: string; + + /** StreamingReadFeatureValuesRequest entityIds. */ + public entityIds: string[]; + + /** StreamingReadFeatureValuesRequest featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); /** - * Creates a new DeployModelOperationMetadata instance using the specified properties. + * Creates a new StreamingReadFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeployModelOperationMetadata instance + * @returns StreamingReadFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; /** - * Encodes the specified DeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.verify|verify} messages. - * @param message DeployModelOperationMetadata message or plain object to encode + * Encodes the specified StreamingReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.verify|verify} messages. + * @param message StreamingReadFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.verify|verify} messages. - * @param message DeployModelOperationMetadata message or plain object to encode + * Encodes the specified StreamingReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.verify|verify} messages. + * @param message StreamingReadFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployModelOperationMetadata message from the specified reader or buffer. + * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployModelOperationMetadata + * @returns StreamingReadFeatureValuesRequest * @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.DeployModelOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; /** - * Decodes a DeployModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployModelOperationMetadata + * @returns StreamingReadFeatureValuesRequest * @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.DeployModelOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; /** - * Verifies a DeployModelOperationMetadata message. + * Verifies a StreamingReadFeatureValuesRequest 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 DeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployModelOperationMetadata + * @returns StreamingReadFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; /** - * Creates a plain object from a DeployModelOperationMetadata message. Also converts values to other types if specified. - * @param message DeployModelOperationMetadata + * Creates a plain object from a StreamingReadFeatureValuesRequest message. Also converts values to other types if specified. + * @param message StreamingReadFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployModelOperationMetadata to JSON. + * Converts this StreamingReadFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployModelOperationMetadata + * Gets the default type url for StreamingReadFeatureValuesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UndeployModelRequest. */ - interface IUndeployModelRequest { + /** Properties of a FeatureValue. */ + interface IFeatureValue { - /** UndeployModelRequest endpoint */ - endpoint?: (string|null); + /** FeatureValue boolValue */ + boolValue?: (boolean|null); - /** UndeployModelRequest deployedModelId */ - deployedModelId?: (string|null); + /** FeatureValue doubleValue */ + doubleValue?: (number|null); - /** UndeployModelRequest trafficSplit */ - trafficSplit?: ({ [k: string]: number }|null); + /** FeatureValue int64Value */ + int64Value?: (number|Long|string|null); + + /** FeatureValue stringValue */ + stringValue?: (string|null); + + /** FeatureValue boolArrayValue */ + boolArrayValue?: (google.cloud.aiplatform.v1beta1.IBoolArray|null); + + /** FeatureValue doubleArrayValue */ + doubleArrayValue?: (google.cloud.aiplatform.v1beta1.IDoubleArray|null); + + /** FeatureValue int64ArrayValue */ + int64ArrayValue?: (google.cloud.aiplatform.v1beta1.IInt64Array|null); + + /** FeatureValue stringArrayValue */ + stringArrayValue?: (google.cloud.aiplatform.v1beta1.IStringArray|null); + + /** FeatureValue bytesValue */ + bytesValue?: (Uint8Array|string|null); + + /** FeatureValue metadata */ + metadata?: (google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null); } - /** Represents an UndeployModelRequest. */ - class UndeployModelRequest implements IUndeployModelRequest { + /** Represents a FeatureValue. */ + class FeatureValue implements IFeatureValue { /** - * Constructs a new UndeployModelRequest. + * Constructs a new FeatureValue. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValue); - /** UndeployModelRequest endpoint. */ - public endpoint: string; + /** FeatureValue boolValue. */ + public boolValue?: (boolean|null); - /** UndeployModelRequest deployedModelId. */ - public deployedModelId: string; + /** FeatureValue doubleValue. */ + public doubleValue?: (number|null); - /** UndeployModelRequest trafficSplit. */ - public trafficSplit: { [k: string]: number }; + /** FeatureValue int64Value. */ + public int64Value?: (number|Long|string|null); + + /** FeatureValue stringValue. */ + public stringValue?: (string|null); + + /** FeatureValue boolArrayValue. */ + public boolArrayValue?: (google.cloud.aiplatform.v1beta1.IBoolArray|null); + + /** FeatureValue doubleArrayValue. */ + public doubleArrayValue?: (google.cloud.aiplatform.v1beta1.IDoubleArray|null); + + /** FeatureValue int64ArrayValue. */ + public int64ArrayValue?: (google.cloud.aiplatform.v1beta1.IInt64Array|null); + + /** FeatureValue stringArrayValue. */ + public stringArrayValue?: (google.cloud.aiplatform.v1beta1.IStringArray|null); + + /** FeatureValue bytesValue. */ + public bytesValue?: (Uint8Array|string|null); + + /** FeatureValue metadata. */ + public metadata?: (google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null); + + /** FeatureValue value. */ + public value?: ("boolValue"|"doubleValue"|"int64Value"|"stringValue"|"boolArrayValue"|"doubleArrayValue"|"int64ArrayValue"|"stringArrayValue"|"bytesValue"); /** - * Creates a new UndeployModelRequest instance using the specified properties. + * Creates a new FeatureValue instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployModelRequest instance + * @returns FeatureValue instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelRequest): google.cloud.aiplatform.v1beta1.UndeployModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValue): google.cloud.aiplatform.v1beta1.FeatureValue; /** - * Encodes the specified UndeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.verify|verify} messages. - * @param message UndeployModelRequest message or plain object to encode + * Encodes the specified FeatureValue message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.verify|verify} messages. + * @param message FeatureValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.verify|verify} messages. - * @param message UndeployModelRequest message or plain object to encode + * Encodes the specified FeatureValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.verify|verify} messages. + * @param message FeatureValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployModelRequest message from the specified reader or buffer. + * Decodes a FeatureValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeployModelRequest + * @returns FeatureValue * @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.UndeployModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureValue; /** - * Decodes an UndeployModelRequest message from the specified reader or buffer, length delimited. + * Decodes a FeatureValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeployModelRequest + * @returns FeatureValue * @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.UndeployModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureValue; /** - * Verifies an UndeployModelRequest message. + * Verifies a FeatureValue 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 UndeployModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeployModelRequest + * @returns FeatureValue */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValue; /** - * Creates a plain object from an UndeployModelRequest message. Also converts values to other types if specified. - * @param message UndeployModelRequest + * Creates a plain object from a FeatureValue message. Also converts values to other types if specified. + * @param message FeatureValue * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployModelRequest to JSON. + * Converts this FeatureValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UndeployModelRequest + * Gets the default type url for FeatureValue * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UndeployModelResponse. */ - interface IUndeployModelResponse { + namespace FeatureValue { + + /** Properties of a Metadata. */ + interface IMetadata { + + /** Metadata generateTime */ + generateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a Metadata. */ + class Metadata implements IMetadata { + + /** + * Constructs a new Metadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata); + + /** Metadata generateTime. */ + public generateTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new Metadata instance using the specified properties. + * @param [properties] Properties to set + * @returns Metadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata): google.cloud.aiplatform.v1beta1.FeatureValue.Metadata; + + /** + * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify|verify} messages. + * @param message Metadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify|verify} messages. + * @param message Metadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Metadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Metadata + * @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.FeatureValue.Metadata; + + /** + * Decodes a Metadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Metadata + * @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.FeatureValue.Metadata; + + /** + * Verifies a Metadata 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 Metadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Metadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValue.Metadata; + + /** + * Creates a plain object from a Metadata message. Also converts values to other types if specified. + * @param message Metadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValue.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Metadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Metadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents an UndeployModelResponse. */ - class UndeployModelResponse implements IUndeployModelResponse { + /** Properties of a FeatureValueList. */ + interface IFeatureValueList { + + /** FeatureValueList values */ + values?: (google.cloud.aiplatform.v1beta1.IFeatureValue[]|null); + } + + /** Represents a FeatureValueList. */ + class FeatureValueList implements IFeatureValueList { /** - * Constructs a new UndeployModelResponse. + * Constructs a new FeatureValueList. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueList); + + /** FeatureValueList values. */ + public values: google.cloud.aiplatform.v1beta1.IFeatureValue[]; /** - * Creates a new UndeployModelResponse instance using the specified properties. + * Creates a new FeatureValueList instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployModelResponse instance + * @returns FeatureValueList instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelResponse): google.cloud.aiplatform.v1beta1.UndeployModelResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueList): google.cloud.aiplatform.v1beta1.FeatureValueList; /** - * Encodes the specified UndeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.verify|verify} messages. - * @param message UndeployModelResponse message or plain object to encode + * Encodes the specified FeatureValueList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.verify|verify} messages. + * @param message FeatureValueList message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.verify|verify} messages. - * @param message UndeployModelResponse message or plain object to encode + * Encodes the specified FeatureValueList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.verify|verify} messages. + * @param message FeatureValueList message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployModelResponse message from the specified reader or buffer. + * Decodes a FeatureValueList message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeployModelResponse + * @returns FeatureValueList * @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.UndeployModelResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureValueList; /** - * Decodes an UndeployModelResponse message from the specified reader or buffer, length delimited. + * Decodes a FeatureValueList message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeployModelResponse + * @returns FeatureValueList * @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.UndeployModelResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureValueList; /** - * Verifies an UndeployModelResponse message. + * Verifies a FeatureValueList 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 UndeployModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureValueList message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeployModelResponse + * @returns FeatureValueList */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValueList; /** - * Creates a plain object from an UndeployModelResponse message. Also converts values to other types if specified. - * @param message UndeployModelResponse + * Creates a plain object from a FeatureValueList message. Also converts values to other types if specified. + * @param message FeatureValueList * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValueList, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployModelResponse to JSON. + * Converts this FeatureValueList to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UndeployModelResponse + * Gets the default type url for FeatureValueList * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UndeployModelOperationMetadata. */ - interface IUndeployModelOperationMetadata { + /** Properties of a BoolArray. */ + interface IBoolArray { - /** UndeployModelOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** BoolArray values */ + values?: (boolean[]|null); } - /** Represents an UndeployModelOperationMetadata. */ - class UndeployModelOperationMetadata implements IUndeployModelOperationMetadata { + /** Represents a BoolArray. */ + class BoolArray implements IBoolArray { /** - * Constructs a new UndeployModelOperationMetadata. + * Constructs a new BoolArray. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBoolArray); - /** UndeployModelOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** BoolArray values. */ + public values: boolean[]; /** - * Creates a new UndeployModelOperationMetadata instance using the specified properties. + * Creates a new BoolArray instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployModelOperationMetadata instance + * @returns BoolArray instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBoolArray): google.cloud.aiplatform.v1beta1.BoolArray; /** - * Encodes the specified UndeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. - * @param message UndeployModelOperationMetadata message or plain object to encode + * Encodes the specified BoolArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.verify|verify} messages. + * @param message BoolArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. - * @param message UndeployModelOperationMetadata message or plain object to encode + * Encodes the specified BoolArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.verify|verify} messages. + * @param message BoolArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer. + * Decodes a BoolArray message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeployModelOperationMetadata + * @returns BoolArray * @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.UndeployModelOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BoolArray; /** - * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a BoolArray message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeployModelOperationMetadata + * @returns BoolArray * @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.UndeployModelOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BoolArray; /** - * Verifies an UndeployModelOperationMetadata message. + * Verifies a BoolArray 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 UndeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a BoolArray message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeployModelOperationMetadata + * @returns BoolArray */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BoolArray; /** - * Creates a plain object from an UndeployModelOperationMetadata message. Also converts values to other types if specified. - * @param message UndeployModelOperationMetadata + * Creates a plain object from a BoolArray message. Also converts values to other types if specified. + * @param message BoolArray * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BoolArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployModelOperationMetadata to JSON. + * Converts this BoolArray to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UndeployModelOperationMetadata + * Gets the default type url for BoolArray * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EntityType. */ - interface IEntityType { - - /** EntityType name */ - name?: (string|null); - - /** EntityType description */ - description?: (string|null); - - /** EntityType createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** EntityType updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** EntityType labels */ - labels?: ({ [k: string]: string }|null); - - /** EntityType etag */ - etag?: (string|null); - - /** EntityType monitoringConfig */ - monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); - - /** EntityType offlineStorageTtlDays */ - offlineStorageTtlDays?: (number|null); - } - - /** Represents an EntityType. */ - class EntityType implements IEntityType { - - /** - * Constructs a new EntityType. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEntityType); - - /** EntityType name. */ - public name: string; - - /** EntityType description. */ - public description: string; - - /** EntityType createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** EntityType updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of a DoubleArray. */ + interface IDoubleArray { - /** EntityType labels. */ - public labels: { [k: string]: string }; + /** DoubleArray values */ + values?: (number[]|null); + } - /** EntityType etag. */ - public etag: string; + /** Represents a DoubleArray. */ + class DoubleArray implements IDoubleArray { - /** EntityType monitoringConfig. */ - public monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + /** + * Constructs a new DoubleArray. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDoubleArray); - /** EntityType offlineStorageTtlDays. */ - public offlineStorageTtlDays: number; + /** DoubleArray values. */ + public values: number[]; /** - * Creates a new EntityType instance using the specified properties. + * Creates a new DoubleArray instance using the specified properties. * @param [properties] Properties to set - * @returns EntityType instance + * @returns DoubleArray instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEntityType): google.cloud.aiplatform.v1beta1.EntityType; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDoubleArray): google.cloud.aiplatform.v1beta1.DoubleArray; /** - * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityType.verify|verify} messages. - * @param message EntityType message or plain object to encode + * Encodes the specified DoubleArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.verify|verify} messages. + * @param message DoubleArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityType.verify|verify} messages. - * @param message EntityType message or plain object to encode + * Encodes the specified DoubleArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.verify|verify} messages. + * @param message DoubleArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EntityType message from the specified reader or buffer. + * Decodes a DoubleArray message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EntityType + * @returns DoubleArray * @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.EntityType; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DoubleArray; /** - * Decodes an EntityType message from the specified reader or buffer, length delimited. + * Decodes a DoubleArray message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EntityType + * @returns DoubleArray * @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.EntityType; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DoubleArray; /** - * Verifies an EntityType message. + * Verifies a DoubleArray 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 EntityType message from a plain object. Also converts values to their respective internal types. + * Creates a DoubleArray message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EntityType + * @returns DoubleArray */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EntityType; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DoubleArray; /** - * Creates a plain object from an EntityType message. Also converts values to other types if specified. - * @param message EntityType + * Creates a plain object from a DoubleArray message. Also converts values to other types if specified. + * @param message DoubleArray * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DoubleArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EntityType to JSON. + * Converts this DoubleArray to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EntityType + * Gets the default type url for DoubleArray * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FeaturestoreMonitoringConfig. */ - interface IFeaturestoreMonitoringConfig { - - /** FeaturestoreMonitoringConfig snapshotAnalysis */ - snapshotAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); - - /** FeaturestoreMonitoringConfig importFeaturesAnalysis */ - importFeaturesAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); - - /** FeaturestoreMonitoringConfig numericalThresholdConfig */ - numericalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + /** Properties of an Int64Array. */ + interface IInt64Array { - /** FeaturestoreMonitoringConfig categoricalThresholdConfig */ - categoricalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + /** Int64Array values */ + values?: ((number|Long|string)[]|null); } - /** Represents a FeaturestoreMonitoringConfig. */ - class FeaturestoreMonitoringConfig implements IFeaturestoreMonitoringConfig { + /** Represents an Int64Array. */ + class Int64Array implements IInt64Array { /** - * Constructs a new FeaturestoreMonitoringConfig. + * Constructs a new Int64Array. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig); - - /** FeaturestoreMonitoringConfig snapshotAnalysis. */ - public snapshotAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); - - /** FeaturestoreMonitoringConfig importFeaturesAnalysis. */ - public importFeaturesAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); - - /** FeaturestoreMonitoringConfig numericalThresholdConfig. */ - public numericalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IInt64Array); - /** FeaturestoreMonitoringConfig categoricalThresholdConfig. */ - public categoricalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + /** Int64Array values. */ + public values: (number|Long|string)[]; /** - * Creates a new FeaturestoreMonitoringConfig instance using the specified properties. + * Creates a new Int64Array instance using the specified properties. * @param [properties] Properties to set - * @returns FeaturestoreMonitoringConfig instance + * @returns Int64Array instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IInt64Array): google.cloud.aiplatform.v1beta1.Int64Array; /** - * Encodes the specified FeaturestoreMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify|verify} messages. - * @param message FeaturestoreMonitoringConfig message or plain object to encode + * Encodes the specified Int64Array message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.verify|verify} messages. + * @param message Int64Array message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeaturestoreMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify|verify} messages. - * @param message FeaturestoreMonitoringConfig message or plain object to encode + * Encodes the specified Int64Array message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.verify|verify} messages. + * @param message Int64Array message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer. + * Decodes an Int64Array message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeaturestoreMonitoringConfig + * @returns Int64Array * @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.FeaturestoreMonitoringConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Int64Array; /** - * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer, length delimited. + * Decodes an Int64Array message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeaturestoreMonitoringConfig + * @returns Int64Array * @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.FeaturestoreMonitoringConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Int64Array; /** - * Verifies a FeaturestoreMonitoringConfig message. + * Verifies an Int64Array 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 FeaturestoreMonitoringConfig message from a plain object. Also converts values to their respective internal types. + * Creates an Int64Array message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeaturestoreMonitoringConfig + * @returns Int64Array */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Int64Array; /** - * Creates a plain object from a FeaturestoreMonitoringConfig message. Also converts values to other types if specified. - * @param message FeaturestoreMonitoringConfig + * Creates a plain object from an Int64Array message. Also converts values to other types if specified. + * @param message Int64Array * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Int64Array, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeaturestoreMonitoringConfig to JSON. + * Converts this Int64Array to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeaturestoreMonitoringConfig + * Gets the default type url for Int64Array * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace FeaturestoreMonitoringConfig { - - /** Properties of a SnapshotAnalysis. */ - interface ISnapshotAnalysis { - - /** SnapshotAnalysis disabled */ - disabled?: (boolean|null); - - /** SnapshotAnalysis monitoringInterval */ - monitoringInterval?: (google.protobuf.IDuration|null); - - /** SnapshotAnalysis monitoringIntervalDays */ - monitoringIntervalDays?: (number|null); - - /** SnapshotAnalysis stalenessDays */ - stalenessDays?: (number|null); - } - - /** Represents a SnapshotAnalysis. */ - class SnapshotAnalysis implements ISnapshotAnalysis { - - /** - * Constructs a new SnapshotAnalysis. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis); - - /** SnapshotAnalysis disabled. */ - public disabled: boolean; - - /** SnapshotAnalysis monitoringInterval. */ - public monitoringInterval?: (google.protobuf.IDuration|null); - - /** SnapshotAnalysis monitoringIntervalDays. */ - public monitoringIntervalDays: number; - - /** SnapshotAnalysis stalenessDays. */ - public stalenessDays: number; - - /** - * Creates a new SnapshotAnalysis instance using the specified properties. - * @param [properties] Properties to set - * @returns SnapshotAnalysis instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - - /** - * Encodes the specified SnapshotAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. - * @param message SnapshotAnalysis message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SnapshotAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. - * @param message SnapshotAnalysis message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SnapshotAnalysis message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SnapshotAnalysis - * @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.FeaturestoreMonitoringConfig.SnapshotAnalysis; - - /** - * Decodes a SnapshotAnalysis message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SnapshotAnalysis - * @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.FeaturestoreMonitoringConfig.SnapshotAnalysis; - - /** - * Verifies a SnapshotAnalysis 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 SnapshotAnalysis message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SnapshotAnalysis - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - - /** - * Creates a plain object from a SnapshotAnalysis message. Also converts values to other types if specified. - * @param message SnapshotAnalysis - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SnapshotAnalysis to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SnapshotAnalysis - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an ImportFeaturesAnalysis. */ - interface IImportFeaturesAnalysis { - - /** ImportFeaturesAnalysis state */ - state?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|null); - - /** ImportFeaturesAnalysis anomalyDetectionBaseline */ - anomalyDetectionBaseline?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|null); - } - - /** Represents an ImportFeaturesAnalysis. */ - class ImportFeaturesAnalysis implements IImportFeaturesAnalysis { - - /** - * Constructs a new ImportFeaturesAnalysis. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis); - - /** ImportFeaturesAnalysis state. */ - public state: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State); - - /** ImportFeaturesAnalysis anomalyDetectionBaseline. */ - public anomalyDetectionBaseline: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline); - - /** - * Creates a new ImportFeaturesAnalysis instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportFeaturesAnalysis instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - - /** - * Encodes the specified ImportFeaturesAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. - * @param message ImportFeaturesAnalysis message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ImportFeaturesAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. - * @param message ImportFeaturesAnalysis message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportFeaturesAnalysis - * @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.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - - /** - * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportFeaturesAnalysis - * @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.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - - /** - * Verifies an ImportFeaturesAnalysis 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 ImportFeaturesAnalysis message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportFeaturesAnalysis - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - - /** - * Creates a plain object from an ImportFeaturesAnalysis message. Also converts values to other types if specified. - * @param message ImportFeaturesAnalysis - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ImportFeaturesAnalysis to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ImportFeaturesAnalysis - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace ImportFeaturesAnalysis { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - DEFAULT = 1, - ENABLED = 2, - DISABLED = 3 - } - - /** Baseline enum. */ - enum Baseline { - BASELINE_UNSPECIFIED = 0, - LATEST_STATS = 1, - MOST_RECENT_SNAPSHOT_STATS = 2, - PREVIOUS_IMPORT_FEATURES_STATS = 3 - } - } - - /** Properties of a ThresholdConfig. */ - interface IThresholdConfig { - - /** ThresholdConfig value */ - value?: (number|null); - } - - /** Represents a ThresholdConfig. */ - class ThresholdConfig implements IThresholdConfig { - - /** - * Constructs a new ThresholdConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig); - - /** ThresholdConfig value. */ - public value?: (number|null); - - /** ThresholdConfig threshold. */ - public threshold?: "value"; - - /** - * Creates a new ThresholdConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ThresholdConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; - - /** - * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ThresholdConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ThresholdConfig - * @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.FeaturestoreMonitoringConfig.ThresholdConfig; - - /** - * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ThresholdConfig - * @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.FeaturestoreMonitoringConfig.ThresholdConfig; - - /** - * Verifies a ThresholdConfig 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 ThresholdConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ThresholdConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; - - /** - * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. - * @param message ThresholdConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ThresholdConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for ThresholdConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of an Event. */ - interface IEvent { - - /** Event artifact */ - artifact?: (string|null); - - /** Event execution */ - execution?: (string|null); - - /** Event eventTime */ - eventTime?: (google.protobuf.ITimestamp|null); + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Event type */ - type?: (google.cloud.aiplatform.v1beta1.Event.Type|keyof typeof google.cloud.aiplatform.v1beta1.Event.Type|null); + /** Properties of a StringArray. */ + interface IStringArray { - /** Event labels */ - labels?: ({ [k: string]: string }|null); + /** StringArray values */ + values?: (string[]|null); } - /** Represents an Event. */ - class Event implements IEvent { + /** Represents a StringArray. */ + class StringArray implements IStringArray { /** - * Constructs a new Event. + * Constructs a new StringArray. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEvent); - - /** Event artifact. */ - public artifact: string; - - /** Event execution. */ - public execution: string; - - /** Event eventTime. */ - public eventTime?: (google.protobuf.ITimestamp|null); - - /** Event type. */ - public type: (google.cloud.aiplatform.v1beta1.Event.Type|keyof typeof google.cloud.aiplatform.v1beta1.Event.Type); + constructor(properties?: google.cloud.aiplatform.v1beta1.IStringArray); - /** Event labels. */ - public labels: { [k: string]: string }; + /** StringArray values. */ + public values: string[]; /** - * Creates a new Event instance using the specified properties. + * Creates a new StringArray instance using the specified properties. * @param [properties] Properties to set - * @returns Event instance + * @returns StringArray instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEvent): google.cloud.aiplatform.v1beta1.Event; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStringArray): google.cloud.aiplatform.v1beta1.StringArray; /** - * Encodes the specified Event message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.verify|verify} messages. - * @param message Event message or plain object to encode + * Encodes the specified StringArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.verify|verify} messages. + * @param message StringArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Event message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.verify|verify} messages. - * @param message Event message or plain object to encode + * Encodes the specified StringArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.verify|verify} messages. + * @param message StringArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Event message from the specified reader or buffer. + * Decodes a StringArray message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Event + * @returns StringArray * @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.Event; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StringArray; /** - * Decodes an Event message from the specified reader or buffer, length delimited. + * Decodes a StringArray message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Event + * @returns StringArray * @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.Event; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StringArray; /** - * Verifies an Event message. + * Verifies a StringArray 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 Event message from a plain object. Also converts values to their respective internal types. + * Creates a StringArray message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Event + * @returns StringArray */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Event; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StringArray; /** - * Creates a plain object from an Event message. Also converts values to other types if specified. - * @param message Event + * Creates a plain object from a StringArray message. Also converts values to other types if specified. + * @param message StringArray * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Event, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StringArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Event to JSON. + * Converts this StringArray to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Event + * Gets the default type url for StringArray * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Event { - - /** Type enum. */ - enum Type { - TYPE_UNSPECIFIED = 0, - INPUT = 1, - OUTPUT = 2 - } - } - - /** Properties of an Execution. */ - interface IExecution { - - /** Execution name */ - name?: (string|null); - - /** Execution displayName */ - displayName?: (string|null); - - /** Execution state */ - state?: (google.cloud.aiplatform.v1beta1.Execution.State|keyof typeof google.cloud.aiplatform.v1beta1.Execution.State|null); - - /** Execution etag */ - etag?: (string|null); - - /** Execution labels */ - labels?: ({ [k: string]: string }|null); - - /** Execution createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Execution updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Execution schemaTitle */ - schemaTitle?: (string|null); - - /** Execution schemaVersion */ - schemaVersion?: (string|null); - - /** Execution metadata */ - metadata?: (google.protobuf.IStruct|null); - - /** Execution description */ - description?: (string|null); - } - - /** Represents an Execution. */ - class Execution implements IExecution { + /** Represents a FeaturestoreService */ + class FeaturestoreService extends $protobuf.rpc.Service { /** - * Constructs a new Execution. - * @param [properties] Properties to set + * Constructs a new FeaturestoreService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExecution); - - /** Execution name. */ - public name: string; - - /** Execution displayName. */ - public displayName: string; - - /** Execution state. */ - public state: (google.cloud.aiplatform.v1beta1.Execution.State|keyof typeof google.cloud.aiplatform.v1beta1.Execution.State); - - /** Execution etag. */ - public etag: string; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** Execution labels. */ - public labels: { [k: string]: string }; + /** + * Creates new FeaturestoreService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreService; - /** Execution createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Calls CreateFeaturestore. + * @param request CreateFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createFeaturestore(request: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeaturestoreCallback): void; - /** Execution updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * Calls CreateFeaturestore. + * @param request CreateFeaturestoreRequest message or plain object + * @returns Promise + */ + public createFeaturestore(request: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest): Promise; - /** Execution schemaTitle. */ - public schemaTitle: string; + /** + * Calls GetFeaturestore. + * @param request GetFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Featurestore + */ + public getFeaturestore(request: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeaturestoreCallback): void; - /** Execution schemaVersion. */ - public schemaVersion: string; + /** + * Calls GetFeaturestore. + * @param request GetFeaturestoreRequest message or plain object + * @returns Promise + */ + public getFeaturestore(request: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest): Promise; - /** Execution metadata. */ - public metadata?: (google.protobuf.IStruct|null); + /** + * Calls ListFeaturestores. + * @param request ListFeaturestoresRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFeaturestoresResponse + */ + public listFeaturestores(request: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestoresCallback): void; - /** Execution description. */ - public description: string; + /** + * Calls ListFeaturestores. + * @param request ListFeaturestoresRequest message or plain object + * @returns Promise + */ + public listFeaturestores(request: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest): Promise; /** - * Creates a new Execution instance using the specified properties. - * @param [properties] Properties to set - * @returns Execution instance + * Calls UpdateFeaturestore. + * @param request UpdateFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExecution): google.cloud.aiplatform.v1beta1.Execution; + public updateFeaturestore(request: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeaturestoreCallback): void; /** - * Encodes the specified Execution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.verify|verify} messages. - * @param message Execution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpdateFeaturestore. + * @param request UpdateFeaturestoreRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; + public updateFeaturestore(request: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest): Promise; /** - * Encodes the specified Execution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.verify|verify} messages. - * @param message Execution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteFeaturestore. + * @param request DeleteFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteFeaturestore(request: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeaturestoreCallback): void; /** - * Decodes an Execution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Execution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteFeaturestore. + * @param request DeleteFeaturestoreRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Execution; + public deleteFeaturestore(request: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest): Promise; /** - * Decodes an Execution message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Execution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Execution; + public createEntityType(request: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateEntityTypeCallback): void; /** - * Verifies an Execution message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public createEntityType(request: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest): Promise; /** - * Creates an Execution message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Execution + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Execution; + public getEntityType(request: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetEntityTypeCallback): void; /** - * Creates a plain object from an Execution message. Also converts values to other types if specified. - * @param message Execution - * @param [options] Conversion options - * @returns Plain object + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Execution, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public getEntityType(request: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest): Promise; /** - * Converts this Execution to JSON. - * @returns JSON object + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse */ - public toJSON(): { [k: string]: any }; + public listEntityTypes(request: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypesCallback): void; /** - * Gets the default type url for Execution - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + public listEntityTypes(request: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest): Promise; - namespace Execution { + /** + * Calls UpdateEntityType. + * @param request UpdateEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType + */ + public updateEntityType(request: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateEntityTypeCallback): void; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - NEW = 1, - RUNNING = 2, - COMPLETE = 3, - FAILED = 4, - CACHED = 5, - CANCELLED = 6 - } - } + /** + * Calls UpdateEntityType. + * @param request UpdateEntityTypeRequest message or plain object + * @returns Promise + */ + public updateEntityType(request: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest): Promise; - /** Properties of a Feature. */ - interface IFeature { + /** + * Calls DeleteEntityType. + * @param request DeleteEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteEntityType(request: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteEntityTypeCallback): void; - /** Feature name */ - name?: (string|null); + /** + * Calls DeleteEntityType. + * @param request DeleteEntityTypeRequest message or plain object + * @returns Promise + */ + public deleteEntityType(request: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest): Promise; - /** Feature description */ - description?: (string|null); + /** + * Calls CreateFeature. + * @param request CreateFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createFeature(request: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeatureCallback): void; - /** Feature valueType */ - valueType?: (google.cloud.aiplatform.v1beta1.Feature.ValueType|keyof typeof google.cloud.aiplatform.v1beta1.Feature.ValueType|null); + /** + * Calls CreateFeature. + * @param request CreateFeatureRequest message or plain object + * @returns Promise + */ + public createFeature(request: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest): Promise; - /** Feature createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Calls BatchCreateFeatures. + * @param request BatchCreateFeaturesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public batchCreateFeatures(request: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeaturesCallback): void; - /** Feature updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Calls BatchCreateFeatures. + * @param request BatchCreateFeaturesRequest message or plain object + * @returns Promise + */ + public batchCreateFeatures(request: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest): Promise; - /** Feature labels */ - labels?: ({ [k: string]: string }|null); + /** + * Calls GetFeature. + * @param request GetFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Feature + */ + public getFeature(request: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeatureCallback): void; - /** Feature etag */ - etag?: (string|null); + /** + * Calls GetFeature. + * @param request GetFeatureRequest message or plain object + * @returns Promise + */ + public getFeature(request: google.cloud.aiplatform.v1beta1.IGetFeatureRequest): Promise; - /** Feature monitoringConfig */ - monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + /** + * Calls ListFeatures. + * @param request ListFeaturesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFeaturesResponse + */ + public listFeatures(request: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturesCallback): void; - /** Feature disableMonitoring */ - disableMonitoring?: (boolean|null); + /** + * Calls ListFeatures. + * @param request ListFeaturesRequest message or plain object + * @returns Promise + */ + public listFeatures(request: google.cloud.aiplatform.v1beta1.IListFeaturesRequest): Promise; - /** Feature monitoringStats */ - monitoringStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]|null); + /** + * Calls UpdateFeature. + * @param request UpdateFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Feature + */ + public updateFeature(request: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeatureCallback): void; - /** Feature monitoringStatsAnomalies */ - monitoringStatsAnomalies?: (google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]|null); - } + /** + * Calls UpdateFeature. + * @param request UpdateFeatureRequest message or plain object + * @returns Promise + */ + public updateFeature(request: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest): Promise; - /** Represents a Feature. */ - class Feature implements IFeature { + /** + * Calls DeleteFeature. + * @param request DeleteFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteFeature(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureCallback): void; /** - * Constructs a new Feature. - * @param [properties] Properties to set + * Calls DeleteFeature. + * @param request DeleteFeatureRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeature); + public deleteFeature(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest): Promise; - /** Feature name. */ - public name: string; + /** + * Calls ImportFeatureValues. + * @param request ImportFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public importFeatureValues(request: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValuesCallback): void; - /** Feature description. */ - public description: string; + /** + * Calls ImportFeatureValues. + * @param request ImportFeatureValuesRequest message or plain object + * @returns Promise + */ + public importFeatureValues(request: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest): Promise; - /** Feature valueType. */ - public valueType: (google.cloud.aiplatform.v1beta1.Feature.ValueType|keyof typeof google.cloud.aiplatform.v1beta1.Feature.ValueType); + /** + * Calls BatchReadFeatureValues. + * @param request BatchReadFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public batchReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValuesCallback): void; - /** Feature createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Calls BatchReadFeatureValues. + * @param request BatchReadFeatureValuesRequest message or plain object + * @returns Promise + */ + public batchReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest): Promise; - /** Feature updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * Calls ExportFeatureValues. + * @param request ExportFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public exportFeatureValues(request: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValuesCallback): void; - /** Feature labels. */ - public labels: { [k: string]: string }; + /** + * Calls ExportFeatureValues. + * @param request ExportFeatureValuesRequest message or plain object + * @returns Promise + */ + public exportFeatureValues(request: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest): Promise; - /** Feature etag. */ - public etag: string; + /** + * 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.v1beta1.IDeleteFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValuesCallback): void; - /** Feature monitoringConfig. */ - public monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + /** + * Calls DeleteFeatureValues. + * @param request DeleteFeatureValuesRequest message or plain object + * @returns Promise + */ + public deleteFeatureValues(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest): Promise; - /** Feature disableMonitoring. */ - public disableMonitoring: boolean; + /** + * Calls SearchFeatures. + * @param request SearchFeaturesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchFeaturesResponse + */ + public searchFeatures(request: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeaturesCallback): void; - /** Feature monitoringStats. */ - public monitoringStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; + /** + * Calls SearchFeatures. + * @param request SearchFeaturesRequest message or plain object + * @returns Promise + */ + public searchFeatures(request: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest): Promise; + } - /** Feature monitoringStatsAnomalies. */ - public monitoringStatsAnomalies: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]; + namespace FeaturestoreService { /** - * Creates a new Feature instance using the specified properties. - * @param [properties] Properties to set - * @returns Feature instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|createFeaturestore}. + * @param error Error, if any + * @param [response] Operation */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeature): google.cloud.aiplatform.v1beta1.Feature; + type CreateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Encodes the specified Feature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.verify|verify} messages. - * @param message Feature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|getFeaturestore}. + * @param error Error, if any + * @param [response] Featurestore */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeature, writer?: $protobuf.Writer): $protobuf.Writer; + type GetFeaturestoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Featurestore) => void; /** - * Encodes the specified Feature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.verify|verify} messages. - * @param message Feature message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|listFeaturestores}. + * @param error Error, if any + * @param [response] ListFeaturestoresResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeature, writer?: $protobuf.Writer): $protobuf.Writer; + type ListFeaturestoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) => void; /** - * Decodes a Feature message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Feature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|updateFeaturestore}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Feature; + type UpdateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a Feature message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Feature - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|deleteFeaturestore}. + * @param error Error, if any + * @param [response] Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Feature; + type DeleteFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Verifies a Feature message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|createEntityType}. + * @param error Error, if any + * @param [response] Operation */ - public static verify(message: { [k: string]: any }): (string|null); + type CreateEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a Feature message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Feature + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|getEntityType}. + * @param error Error, if any + * @param [response] EntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Feature; + type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.EntityType) => void; /** - * Creates a plain object from a Feature message. Also converts values to other types if specified. - * @param message Feature - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|listEntityTypes}. + * @param error Error, if any + * @param [response] ListEntityTypesResponse */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Feature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) => void; /** - * Converts this Feature to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|updateEntityType}. + * @param error Error, if any + * @param [response] EntityType */ - public toJSON(): { [k: string]: any }; + type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.EntityType) => void; /** - * Gets the default type url for Feature - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|deleteEntityType}. + * @param error Error, if any + * @param [response] Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace Feature { - - /** Properties of a MonitoringStatsAnomaly. */ - interface IMonitoringStatsAnomaly { - - /** MonitoringStatsAnomaly objective */ - objective?: (google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|keyof typeof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|null); - - /** MonitoringStatsAnomaly featureStatsAnomaly */ - featureStatsAnomaly?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - } - - /** Represents a MonitoringStatsAnomaly. */ - class MonitoringStatsAnomaly implements IMonitoringStatsAnomaly { - - /** - * Constructs a new MonitoringStatsAnomaly. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly); - - /** MonitoringStatsAnomaly objective. */ - public objective: (google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|keyof typeof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective); - - /** MonitoringStatsAnomaly featureStatsAnomaly. */ - public featureStatsAnomaly?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - - /** - * Creates a new MonitoringStatsAnomaly instance using the specified properties. - * @param [properties] Properties to set - * @returns MonitoringStatsAnomaly instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; - - /** - * Encodes the specified MonitoringStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify|verify} messages. - * @param message MonitoringStatsAnomaly message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MonitoringStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify|verify} messages. - * @param message MonitoringStatsAnomaly message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MonitoringStatsAnomaly message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MonitoringStatsAnomaly - * @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.Feature.MonitoringStatsAnomaly; - - /** - * Decodes a MonitoringStatsAnomaly message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MonitoringStatsAnomaly - * @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.Feature.MonitoringStatsAnomaly; - - /** - * Verifies a MonitoringStatsAnomaly 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 MonitoringStatsAnomaly message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MonitoringStatsAnomaly - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; - - /** - * Creates a plain object from a MonitoringStatsAnomaly message. Also converts values to other types if specified. - * @param message MonitoringStatsAnomaly - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MonitoringStatsAnomaly to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for MonitoringStatsAnomaly - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace MonitoringStatsAnomaly { - - /** Objective enum. */ - enum Objective { - OBJECTIVE_UNSPECIFIED = 0, - IMPORT_FEATURE_ANALYSIS = 1, - SNAPSHOT_ANALYSIS = 2 - } - } - - /** ValueType enum. */ - enum ValueType { - VALUE_TYPE_UNSPECIFIED = 0, - BOOL = 1, - BOOL_ARRAY = 2, - DOUBLE = 3, - DOUBLE_ARRAY = 4, - INT64 = 9, - INT64_ARRAY = 10, - STRING = 11, - STRING_ARRAY = 12, - BYTES = 13 - } - } - - /** Properties of an IdMatcher. */ - interface IIdMatcher { - - /** IdMatcher ids */ - ids?: (string[]|null); - } - - /** Represents an IdMatcher. */ - class IdMatcher implements IIdMatcher { + type DeleteEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Constructs a new IdMatcher. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|createFeature}. + * @param error Error, if any + * @param [response] Operation */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIdMatcher); - - /** IdMatcher ids. */ - public ids: string[]; + type CreateFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a new IdMatcher instance using the specified properties. - * @param [properties] Properties to set - * @returns IdMatcher instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|batchCreateFeatures}. + * @param error Error, if any + * @param [response] Operation */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIdMatcher): google.cloud.aiplatform.v1beta1.IdMatcher; + type BatchCreateFeaturesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Encodes the specified IdMatcher message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.verify|verify} messages. - * @param message IdMatcher message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|getFeature}. + * @param error Error, if any + * @param [response] Feature */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; + type GetFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Feature) => void; /** - * Encodes the specified IdMatcher message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.verify|verify} messages. - * @param message IdMatcher message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|listFeatures}. + * @param error Error, if any + * @param [response] ListFeaturesResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; + type ListFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListFeaturesResponse) => void; /** - * Decodes an IdMatcher message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IdMatcher - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|updateFeature}. + * @param error Error, if any + * @param [response] Feature */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IdMatcher; + type UpdateFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Feature) => void; /** - * Decodes an IdMatcher message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IdMatcher - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|deleteFeature}. + * @param error Error, if any + * @param [response] Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IdMatcher; + type DeleteFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Verifies an IdMatcher message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|importFeatureValues}. + * @param error Error, if any + * @param [response] Operation */ - public static verify(message: { [k: string]: any }): (string|null); + type ImportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates an IdMatcher message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IdMatcher + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|batchReadFeatureValues}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IdMatcher; + type BatchReadFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from an IdMatcher message. Also converts values to other types if specified. - * @param message IdMatcher - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|exportFeatureValues}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IdMatcher, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type ExportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this IdMatcher to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|deleteFeatureValues}. + * @param error Error, if any + * @param [response] Operation */ - public toJSON(): { [k: string]: any }; + type DeleteFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Gets the default type url for IdMatcher - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|searchFeatures}. + * @param error Error, if any + * @param [response] SearchFeaturesResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type SearchFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) => void; } - /** Properties of a FeatureSelector. */ - interface IFeatureSelector { + /** Properties of a CreateFeaturestoreRequest. */ + interface ICreateFeaturestoreRequest { - /** FeatureSelector idMatcher */ - idMatcher?: (google.cloud.aiplatform.v1beta1.IIdMatcher|null); + /** CreateFeaturestoreRequest parent */ + parent?: (string|null); + + /** CreateFeaturestoreRequest featurestore */ + featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + + /** CreateFeaturestoreRequest featurestoreId */ + featurestoreId?: (string|null); } - /** Represents a FeatureSelector. */ - class FeatureSelector implements IFeatureSelector { + /** Represents a CreateFeaturestoreRequest. */ + class CreateFeaturestoreRequest implements ICreateFeaturestoreRequest { /** - * Constructs a new FeatureSelector. + * Constructs a new CreateFeaturestoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelector); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest); - /** FeatureSelector idMatcher. */ - public idMatcher?: (google.cloud.aiplatform.v1beta1.IIdMatcher|null); + /** CreateFeaturestoreRequest parent. */ + public parent: string; + + /** CreateFeaturestoreRequest featurestore. */ + public featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + + /** CreateFeaturestoreRequest featurestoreId. */ + public featurestoreId: string; /** - * Creates a new FeatureSelector instance using the specified properties. + * Creates a new CreateFeaturestoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureSelector instance + * @returns CreateFeaturestoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelector): google.cloud.aiplatform.v1beta1.FeatureSelector; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; /** - * Encodes the specified FeatureSelector message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.verify|verify} messages. - * @param message FeatureSelector message or plain object to encode + * Encodes the specified CreateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.verify|verify} messages. + * @param message CreateFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.verify|verify} messages. - * @param message FeatureSelector message or plain object to encode + * Encodes the specified CreateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.verify|verify} messages. + * @param message CreateFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureSelector message from the specified reader or buffer. + * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureSelector + * @returns CreateFeaturestoreRequest * @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.FeatureSelector; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; /** - * Decodes a FeatureSelector message from the specified reader or buffer, length delimited. + * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureSelector + * @returns CreateFeaturestoreRequest * @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.FeatureSelector; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; /** - * Verifies a FeatureSelector message. + * Verifies a CreateFeaturestoreRequest 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 FeatureSelector message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureSelector + * @returns CreateFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureSelector; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; /** - * Creates a plain object from a FeatureSelector message. Also converts values to other types if specified. - * @param message FeatureSelector + * Creates a plain object from a CreateFeaturestoreRequest message. Also converts values to other types if specified. + * @param message CreateFeaturestoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureSelector to JSON. + * Converts this CreateFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeatureSelector + * Gets the default type url for CreateFeaturestoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a Featurestore. */ - interface IFeaturestore { + /** Properties of a GetFeaturestoreRequest. */ + interface IGetFeaturestoreRequest { - /** Featurestore name */ + /** GetFeaturestoreRequest name */ name?: (string|null); - - /** Featurestore createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Featurestore updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Featurestore etag */ - etag?: (string|null); - - /** Featurestore labels */ - labels?: ({ [k: string]: string }|null); - - /** Featurestore onlineServingConfig */ - onlineServingConfig?: (google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null); - - /** Featurestore state */ - state?: (google.cloud.aiplatform.v1beta1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1beta1.Featurestore.State|null); - - /** Featurestore onlineStorageTtlDays */ - onlineStorageTtlDays?: (number|null); - - /** Featurestore encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); } - /** Represents a Featurestore. */ - class Featurestore implements IFeaturestore { + /** Represents a GetFeaturestoreRequest. */ + class GetFeaturestoreRequest implements IGetFeaturestoreRequest { /** - * Constructs a new Featurestore. + * Constructs a new GetFeaturestoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeaturestore); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest); - /** Featurestore name. */ + /** GetFeaturestoreRequest name. */ public name: string; - /** Featurestore createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Featurestore updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Featurestore etag. */ - public etag: string; - - /** Featurestore labels. */ - public labels: { [k: string]: string }; - - /** Featurestore onlineServingConfig. */ - public onlineServingConfig?: (google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null); - - /** Featurestore state. */ - public state: (google.cloud.aiplatform.v1beta1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1beta1.Featurestore.State); - - /** Featurestore onlineStorageTtlDays. */ - public onlineStorageTtlDays: number; - - /** Featurestore encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** - * Creates a new Featurestore instance using the specified properties. + * Creates a new GetFeaturestoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Featurestore instance + * @returns GetFeaturestoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeaturestore): google.cloud.aiplatform.v1beta1.Featurestore; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; /** - * Encodes the specified Featurestore message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.verify|verify} messages. - * @param message Featurestore message or plain object to encode + * Encodes the specified GetFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.verify|verify} messages. + * @param message GetFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Featurestore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.verify|verify} messages. - * @param message Featurestore message or plain object to encode + * Encodes the specified GetFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.verify|verify} messages. + * @param message GetFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Featurestore message from the specified reader or buffer. + * Decodes a GetFeaturestoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Featurestore + * @returns GetFeaturestoreRequest * @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.Featurestore; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; /** - * Decodes a Featurestore message from the specified reader or buffer, length delimited. + * Decodes a GetFeaturestoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Featurestore + * @returns GetFeaturestoreRequest * @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.Featurestore; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; /** - * Verifies a Featurestore message. + * Verifies a GetFeaturestoreRequest 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 Featurestore message from a plain object. Also converts values to their respective internal types. + * Creates a GetFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Featurestore + * @returns GetFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; /** - * Creates a plain object from a Featurestore message. Also converts values to other types if specified. - * @param message Featurestore + * Creates a plain object from a GetFeaturestoreRequest message. Also converts values to other types if specified. + * @param message GetFeaturestoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Featurestore to JSON. + * Converts this GetFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Featurestore + * Gets the default type url for GetFeaturestoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Featurestore { - - /** Properties of an OnlineServingConfig. */ - interface IOnlineServingConfig { - - /** OnlineServingConfig fixedNodeCount */ - fixedNodeCount?: (number|null); - - /** OnlineServingConfig scaling */ - scaling?: (google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null); - } - - /** Represents an OnlineServingConfig. */ - class OnlineServingConfig implements IOnlineServingConfig { - - /** - * Constructs a new OnlineServingConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig); - - /** OnlineServingConfig fixedNodeCount. */ - public fixedNodeCount: number; - - /** OnlineServingConfig scaling. */ - public scaling?: (google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null); - - /** - * Creates a new OnlineServingConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns OnlineServingConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig; - - /** - * Encodes the specified OnlineServingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. - * @param message OnlineServingConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified OnlineServingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. - * @param message OnlineServingConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OnlineServingConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OnlineServingConfig - * @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.Featurestore.OnlineServingConfig; - - /** - * Decodes an OnlineServingConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OnlineServingConfig - * @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.Featurestore.OnlineServingConfig; - - /** - * Verifies an OnlineServingConfig 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 OnlineServingConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OnlineServingConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig; - - /** - * Creates a plain object from an OnlineServingConfig message. Also converts values to other types if specified. - * @param message OnlineServingConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this OnlineServingConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for OnlineServingConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace OnlineServingConfig { - - /** Properties of a Scaling. */ - interface IScaling { - - /** Scaling minNodeCount */ - minNodeCount?: (number|null); - - /** Scaling maxNodeCount */ - maxNodeCount?: (number|null); - } - - /** Represents a Scaling. */ - class Scaling implements IScaling { - - /** - * Constructs a new Scaling. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling); - - /** Scaling minNodeCount. */ - public minNodeCount: number; + /** Properties of a ListFeaturestoresRequest. */ + interface IListFeaturestoresRequest { - /** Scaling maxNodeCount. */ - public maxNodeCount: number; + /** ListFeaturestoresRequest parent */ + parent?: (string|null); - /** - * Creates a new Scaling instance using the specified properties. - * @param [properties] Properties to set - * @returns Scaling instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; + /** ListFeaturestoresRequest filter */ + filter?: (string|null); - /** - * Encodes the specified Scaling message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. - * @param message Scaling message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListFeaturestoresRequest pageSize */ + pageSize?: (number|null); - /** - * Encodes the specified Scaling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. - * @param message Scaling message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListFeaturestoresRequest pageToken */ + pageToken?: (string|null); - /** - * Decodes a Scaling message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Scaling - * @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.Featurestore.OnlineServingConfig.Scaling; + /** ListFeaturestoresRequest orderBy */ + orderBy?: (string|null); - /** - * Decodes a Scaling message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Scaling - * @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.Featurestore.OnlineServingConfig.Scaling; + /** ListFeaturestoresRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } - /** - * Verifies a Scaling 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); + /** Represents a ListFeaturestoresRequest. */ + class ListFeaturestoresRequest implements IListFeaturestoresRequest { - /** - * Creates a Scaling message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Scaling - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; + /** + * Constructs a new ListFeaturestoresRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest); - /** - * Creates a plain object from a Scaling message. Also converts values to other types if specified. - * @param message Scaling - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ListFeaturestoresRequest parent. */ + public parent: string; - /** - * Converts this Scaling to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListFeaturestoresRequest filter. */ + public filter: string; - /** - * Gets the default type url for Scaling - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** ListFeaturestoresRequest pageSize. */ + public pageSize: number; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - STABLE = 1, - UPDATING = 2 - } - } + /** ListFeaturestoresRequest pageToken. */ + public pageToken: string; - /** Represents a FeaturestoreOnlineServingService */ - class FeaturestoreOnlineServingService extends $protobuf.rpc.Service { + /** ListFeaturestoresRequest orderBy. */ + public orderBy: string; - /** - * Constructs a new FeaturestoreOnlineServingService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** ListFeaturestoresRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates new FeaturestoreOnlineServingService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Creates a new ListFeaturestoresRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListFeaturestoresRequest instance */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreOnlineServingService; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; /** - * Calls ReadFeatureValues. - * @param request ReadFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse + * Encodes the specified ListFeaturestoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.verify|verify} messages. + * @param message ListFeaturestoresRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public readFeatureValues(request: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValuesCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ReadFeatureValues. - * @param request ReadFeatureValuesRequest message or plain object - * @returns Promise + * Encodes the specified ListFeaturestoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.verify|verify} messages. + * @param message ListFeaturestoresRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public readFeatureValues(request: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls StreamingReadFeatureValues. - * @param request StreamingReadFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse + * Decodes a ListFeaturestoresRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListFeaturestoresRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public streamingReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.StreamingReadFeatureValuesCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; /** - * Calls StreamingReadFeatureValues. - * @param request StreamingReadFeatureValuesRequest message or plain object - * @returns Promise + * Decodes a ListFeaturestoresRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListFeaturestoresRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public streamingReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; /** - * Calls WriteFeatureValues. - * @param request WriteFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WriteFeatureValuesResponse + * Verifies a ListFeaturestoresRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public writeFeatureValues(request: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.WriteFeatureValuesCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls WriteFeatureValues. - * @param request WriteFeatureValuesRequest message or plain object - * @returns Promise + * Creates a ListFeaturestoresRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListFeaturestoresRequest */ - public writeFeatureValues(request: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest): Promise; - } - - namespace FeaturestoreOnlineServingService { + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService|readFeatureValues}. - * @param error Error, if any - * @param [response] ReadFeatureValuesResponse + * Creates a plain object from a ListFeaturestoresRequest message. Also converts values to other types if specified. + * @param message ListFeaturestoresRequest + * @param [options] Conversion options + * @returns Plain object */ - type ReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService|streamingReadFeatureValues}. - * @param error Error, if any - * @param [response] ReadFeatureValuesResponse + * Converts this ListFeaturestoresRequest to JSON. + * @returns JSON object */ - type StreamingReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService|writeFeatureValues}. - * @param error Error, if any - * @param [response] WriteFeatureValuesResponse + * Gets the default type url for ListFeaturestoresRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type WriteFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WriteFeatureValuesRequest. */ - interface IWriteFeatureValuesRequest { + /** Properties of a ListFeaturestoresResponse. */ + interface IListFeaturestoresResponse { - /** WriteFeatureValuesRequest entityType */ - entityType?: (string|null); + /** ListFeaturestoresResponse featurestores */ + featurestores?: (google.cloud.aiplatform.v1beta1.IFeaturestore[]|null); - /** WriteFeatureValuesRequest payloads */ - payloads?: (google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload[]|null); + /** ListFeaturestoresResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a WriteFeatureValuesRequest. */ - class WriteFeatureValuesRequest implements IWriteFeatureValuesRequest { + /** Represents a ListFeaturestoresResponse. */ + class ListFeaturestoresResponse implements IListFeaturestoresResponse { /** - * Constructs a new WriteFeatureValuesRequest. + * Constructs a new ListFeaturestoresResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse); - /** WriteFeatureValuesRequest entityType. */ - public entityType: string; + /** ListFeaturestoresResponse featurestores. */ + public featurestores: google.cloud.aiplatform.v1beta1.IFeaturestore[]; - /** WriteFeatureValuesRequest payloads. */ - public payloads: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload[]; + /** ListFeaturestoresResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new WriteFeatureValuesRequest instance using the specified properties. + * Creates a new ListFeaturestoresResponse instance using the specified properties. * @param [properties] Properties to set - * @returns WriteFeatureValuesRequest instance + * @returns ListFeaturestoresResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest): google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; /** - * Encodes the specified WriteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest.verify|verify} messages. - * @param message WriteFeatureValuesRequest message or plain object to encode + * Encodes the specified ListFeaturestoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.verify|verify} messages. + * @param message ListFeaturestoresResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest.verify|verify} messages. - * @param message WriteFeatureValuesRequest message or plain object to encode + * Encodes the specified ListFeaturestoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.verify|verify} messages. + * @param message ListFeaturestoresResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteFeatureValuesRequest message from the specified reader or buffer. + * Decodes a ListFeaturestoresResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteFeatureValuesRequest + * @returns ListFeaturestoresResponse * @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.WriteFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; /** - * Decodes a WriteFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFeaturestoresResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteFeatureValuesRequest + * @returns ListFeaturestoresResponse * @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.WriteFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; /** - * Verifies a WriteFeatureValuesRequest message. + * Verifies a ListFeaturestoresResponse 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 WriteFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeaturestoresResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteFeatureValuesRequest + * @returns ListFeaturestoresResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; /** - * Creates a plain object from a WriteFeatureValuesRequest message. Also converts values to other types if specified. - * @param message WriteFeatureValuesRequest + * Creates a plain object from a ListFeaturestoresResponse message. Also converts values to other types if specified. + * @param message ListFeaturestoresResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.WriteFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteFeatureValuesRequest to JSON. + * Converts this ListFeaturestoresResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteFeatureValuesRequest + * Gets the default type url for ListFeaturestoresResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WriteFeatureValuesPayload. */ - interface IWriteFeatureValuesPayload { + /** Properties of an UpdateFeaturestoreRequest. */ + interface IUpdateFeaturestoreRequest { - /** WriteFeatureValuesPayload entityId */ - entityId?: (string|null); + /** UpdateFeaturestoreRequest featurestore */ + featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); - /** WriteFeatureValuesPayload featureValues */ - featureValues?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IFeatureValue }|null); + /** UpdateFeaturestoreRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a WriteFeatureValuesPayload. */ - class WriteFeatureValuesPayload implements IWriteFeatureValuesPayload { + /** Represents an UpdateFeaturestoreRequest. */ + class UpdateFeaturestoreRequest implements IUpdateFeaturestoreRequest { /** - * Constructs a new WriteFeatureValuesPayload. + * Constructs a new UpdateFeaturestoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest); - /** WriteFeatureValuesPayload entityId. */ - public entityId: string; + /** UpdateFeaturestoreRequest featurestore. */ + public featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); - /** WriteFeatureValuesPayload featureValues. */ - public featureValues: { [k: string]: google.cloud.aiplatform.v1beta1.IFeatureValue }; + /** UpdateFeaturestoreRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new WriteFeatureValuesPayload instance using the specified properties. + * Creates a new UpdateFeaturestoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WriteFeatureValuesPayload instance + * @returns UpdateFeaturestoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload): google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; /** - * Encodes the specified WriteFeatureValuesPayload message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.verify|verify} messages. - * @param message WriteFeatureValuesPayload message or plain object to encode + * Encodes the specified UpdateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.verify|verify} messages. + * @param message UpdateFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteFeatureValuesPayload message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload.verify|verify} messages. - * @param message WriteFeatureValuesPayload message or plain object to encode + * Encodes the specified UpdateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.verify|verify} messages. + * @param message UpdateFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesPayload, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteFeatureValuesPayload message from the specified reader or buffer. + * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteFeatureValuesPayload + * @returns UpdateFeaturestoreRequest * @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.WriteFeatureValuesPayload; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; /** - * Decodes a WriteFeatureValuesPayload message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteFeatureValuesPayload + * @returns UpdateFeaturestoreRequest * @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.WriteFeatureValuesPayload; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; /** - * Verifies a WriteFeatureValuesPayload message. + * Verifies an UpdateFeaturestoreRequest 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 WriteFeatureValuesPayload message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteFeatureValuesPayload + * @returns UpdateFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; /** - * Creates a plain object from a WriteFeatureValuesPayload message. Also converts values to other types if specified. - * @param message WriteFeatureValuesPayload + * Creates a plain object from an UpdateFeaturestoreRequest message. Also converts values to other types if specified. + * @param message UpdateFeaturestoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.WriteFeatureValuesPayload, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteFeatureValuesPayload to JSON. + * Converts this UpdateFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteFeatureValuesPayload + * Gets the default type url for UpdateFeaturestoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a WriteFeatureValuesResponse. */ - interface IWriteFeatureValuesResponse { + /** Properties of a DeleteFeaturestoreRequest. */ + interface IDeleteFeaturestoreRequest { + + /** DeleteFeaturestoreRequest name */ + name?: (string|null); + + /** DeleteFeaturestoreRequest force */ + force?: (boolean|null); } - /** Represents a WriteFeatureValuesResponse. */ - class WriteFeatureValuesResponse implements IWriteFeatureValuesResponse { + /** Represents a DeleteFeaturestoreRequest. */ + class DeleteFeaturestoreRequest implements IDeleteFeaturestoreRequest { /** - * Constructs a new WriteFeatureValuesResponse. + * Constructs a new DeleteFeaturestoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest); + + /** DeleteFeaturestoreRequest name. */ + public name: string; + + /** DeleteFeaturestoreRequest force. */ + public force: boolean; /** - * Creates a new WriteFeatureValuesResponse instance using the specified properties. + * Creates a new DeleteFeaturestoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns WriteFeatureValuesResponse instance + * @returns DeleteFeaturestoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesResponse): google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; /** - * Encodes the specified WriteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse.verify|verify} messages. - * @param message WriteFeatureValuesResponse message or plain object to encode + * Encodes the specified DeleteFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.verify|verify} messages. + * @param message DeleteFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WriteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse.verify|verify} messages. - * @param message WriteFeatureValuesResponse message or plain object to encode + * Encodes the specified DeleteFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.verify|verify} messages. + * @param message DeleteFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWriteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WriteFeatureValuesResponse message from the specified reader or buffer. + * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WriteFeatureValuesResponse + * @returns DeleteFeaturestoreRequest * @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.WriteFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; /** - * Decodes a WriteFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WriteFeatureValuesResponse + * @returns DeleteFeaturestoreRequest * @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.WriteFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; /** - * Verifies a WriteFeatureValuesResponse message. + * Verifies a DeleteFeaturestoreRequest 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 WriteFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WriteFeatureValuesResponse + * @returns DeleteFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; /** - * Creates a plain object from a WriteFeatureValuesResponse message. Also converts values to other types if specified. - * @param message WriteFeatureValuesResponse + * Creates a plain object from a DeleteFeaturestoreRequest message. Also converts values to other types if specified. + * @param message DeleteFeaturestoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.WriteFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WriteFeatureValuesResponse to JSON. + * Converts this DeleteFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for WriteFeatureValuesResponse + * Gets the default type url for DeleteFeaturestoreRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadFeatureValuesRequest. */ - interface IReadFeatureValuesRequest { + /** Properties of an ImportFeatureValuesRequest. */ + interface IImportFeatureValuesRequest { - /** ReadFeatureValuesRequest entityType */ + /** ImportFeatureValuesRequest avroSource */ + avroSource?: (google.cloud.aiplatform.v1beta1.IAvroSource|null); + + /** ImportFeatureValuesRequest bigquerySource */ + bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + + /** ImportFeatureValuesRequest csvSource */ + csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); + + /** ImportFeatureValuesRequest featureTimeField */ + featureTimeField?: (string|null); + + /** ImportFeatureValuesRequest featureTime */ + featureTime?: (google.protobuf.ITimestamp|null); + + /** ImportFeatureValuesRequest entityType */ entityType?: (string|null); - /** ReadFeatureValuesRequest entityId */ - entityId?: (string|null); + /** ImportFeatureValuesRequest entityIdField */ + entityIdField?: (string|null); - /** ReadFeatureValuesRequest featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** ImportFeatureValuesRequest featureSpecs */ + featureSpecs?: (google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec[]|null); + + /** ImportFeatureValuesRequest disableOnlineServing */ + disableOnlineServing?: (boolean|null); + + /** ImportFeatureValuesRequest workerCount */ + workerCount?: (number|null); + + /** ImportFeatureValuesRequest disableIngestionAnalysis */ + disableIngestionAnalysis?: (boolean|null); } - /** Represents a ReadFeatureValuesRequest. */ - class ReadFeatureValuesRequest implements IReadFeatureValuesRequest { + /** Represents an ImportFeatureValuesRequest. */ + class ImportFeatureValuesRequest implements IImportFeatureValuesRequest { /** - * Constructs a new ReadFeatureValuesRequest. + * Constructs a new ImportFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest); - /** ReadFeatureValuesRequest entityType. */ + /** ImportFeatureValuesRequest avroSource. */ + public avroSource?: (google.cloud.aiplatform.v1beta1.IAvroSource|null); + + /** ImportFeatureValuesRequest bigquerySource. */ + public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + + /** ImportFeatureValuesRequest csvSource. */ + public csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); + + /** ImportFeatureValuesRequest featureTimeField. */ + public featureTimeField?: (string|null); + + /** ImportFeatureValuesRequest featureTime. */ + public featureTime?: (google.protobuf.ITimestamp|null); + + /** ImportFeatureValuesRequest entityType. */ public entityType: string; - /** ReadFeatureValuesRequest entityId. */ - public entityId: string; + /** ImportFeatureValuesRequest entityIdField. */ + public entityIdField: string; - /** ReadFeatureValuesRequest featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** ImportFeatureValuesRequest featureSpecs. */ + public featureSpecs: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec[]; + + /** ImportFeatureValuesRequest disableOnlineServing. */ + public disableOnlineServing: boolean; + + /** ImportFeatureValuesRequest workerCount. */ + public workerCount: number; + + /** ImportFeatureValuesRequest disableIngestionAnalysis. */ + public disableIngestionAnalysis: boolean; + + /** ImportFeatureValuesRequest source. */ + public source?: ("avroSource"|"bigquerySource"|"csvSource"); + + /** ImportFeatureValuesRequest featureTimeSource. */ + public featureTimeSource?: ("featureTimeField"|"featureTime"); /** - * Creates a new ReadFeatureValuesRequest instance using the specified properties. + * Creates a new ImportFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ReadFeatureValuesRequest instance + * @returns ImportFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; /** - * Encodes the specified ReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.verify|verify} messages. - * @param message ReadFeatureValuesRequest message or plain object to encode + * Encodes the specified ImportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.verify|verify} messages. + * @param message ImportFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.verify|verify} messages. - * @param message ReadFeatureValuesRequest message or plain object to encode + * Encodes the specified ImportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.verify|verify} messages. + * @param message ImportFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadFeatureValuesRequest + * @returns ImportFeatureValuesRequest * @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.ReadFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; /** - * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadFeatureValuesRequest + * @returns ImportFeatureValuesRequest * @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.ReadFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; /** - * Verifies a ReadFeatureValuesRequest message. + * Verifies an ImportFeatureValuesRequest 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 ReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadFeatureValuesRequest + * @returns ImportFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; /** - * Creates a plain object from a ReadFeatureValuesRequest message. Also converts values to other types if specified. - * @param message ReadFeatureValuesRequest + * Creates a plain object from an ImportFeatureValuesRequest message. Also converts values to other types if specified. + * @param message ImportFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadFeatureValuesRequest to JSON. + * Converts this ImportFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadFeatureValuesRequest + * Gets the default type url for ImportFeatureValuesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ReadFeatureValuesResponse. */ - interface IReadFeatureValuesResponse { + namespace ImportFeatureValuesRequest { - /** ReadFeatureValuesResponse header */ - header?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null); + /** Properties of a FeatureSpec. */ + interface IFeatureSpec { - /** ReadFeatureValuesResponse entityView */ - entityView?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null); + /** FeatureSpec id */ + id?: (string|null); + + /** FeatureSpec sourceField */ + sourceField?: (string|null); + } + + /** Represents a FeatureSpec. */ + class FeatureSpec implements IFeatureSpec { + + /** + * Constructs a new FeatureSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec); + + /** FeatureSpec id. */ + public id: string; + + /** FeatureSpec sourceField. */ + public sourceField: string; + + /** + * Creates a new FeatureSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; + + /** + * Encodes the specified FeatureSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. + * @param message FeatureSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FeatureSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. + * @param message FeatureSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FeatureSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureSpec + * @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.ImportFeatureValuesRequest.FeatureSpec; + + /** + * Decodes a FeatureSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureSpec + * @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.ImportFeatureValuesRequest.FeatureSpec; + + /** + * Verifies a FeatureSpec 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 FeatureSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; + + /** + * Creates a plain object from a FeatureSpec message. Also converts values to other types if specified. + * @param message FeatureSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FeatureSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a ReadFeatureValuesResponse. */ - class ReadFeatureValuesResponse implements IReadFeatureValuesResponse { + /** Properties of an ImportFeatureValuesResponse. */ + interface IImportFeatureValuesResponse { + + /** ImportFeatureValuesResponse importedEntityCount */ + importedEntityCount?: (number|Long|string|null); + + /** ImportFeatureValuesResponse importedFeatureValueCount */ + importedFeatureValueCount?: (number|Long|string|null); + + /** ImportFeatureValuesResponse invalidRowCount */ + invalidRowCount?: (number|Long|string|null); + + /** ImportFeatureValuesResponse timestampOutsideRetentionRowsCount */ + timestampOutsideRetentionRowsCount?: (number|Long|string|null); + } + + /** Represents an ImportFeatureValuesResponse. */ + class ImportFeatureValuesResponse implements IImportFeatureValuesResponse { /** - * Constructs a new ReadFeatureValuesResponse. + * Constructs a new ImportFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse); - /** ReadFeatureValuesResponse header. */ - public header?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null); + /** ImportFeatureValuesResponse importedEntityCount. */ + public importedEntityCount: (number|Long|string); - /** ReadFeatureValuesResponse entityView. */ - public entityView?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null); + /** ImportFeatureValuesResponse importedFeatureValueCount. */ + public importedFeatureValueCount: (number|Long|string); + + /** ImportFeatureValuesResponse invalidRowCount. */ + public invalidRowCount: (number|Long|string); + + /** ImportFeatureValuesResponse timestampOutsideRetentionRowsCount. */ + public timestampOutsideRetentionRowsCount: (number|Long|string); /** - * Creates a new ReadFeatureValuesResponse instance using the specified properties. + * Creates a new ImportFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ReadFeatureValuesResponse instance + * @returns ImportFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; /** - * Encodes the specified ReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.verify|verify} messages. - * @param message ReadFeatureValuesResponse message or plain object to encode + * Encodes the specified ImportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.verify|verify} messages. + * @param message ImportFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.verify|verify} messages. - * @param message ReadFeatureValuesResponse message or plain object to encode + * Encodes the specified ImportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.verify|verify} messages. + * @param message ImportFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer. + * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadFeatureValuesResponse + * @returns ImportFeatureValuesResponse * @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.ReadFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; /** - * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadFeatureValuesResponse + * @returns ImportFeatureValuesResponse * @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.ReadFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; /** - * Verifies a ReadFeatureValuesResponse message. + * Verifies an ImportFeatureValuesResponse 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 ReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadFeatureValuesResponse + * @returns ImportFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; /** - * Creates a plain object from a ReadFeatureValuesResponse message. Also converts values to other types if specified. - * @param message ReadFeatureValuesResponse + * Creates a plain object from an ImportFeatureValuesResponse message. Also converts values to other types if specified. + * @param message ImportFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadFeatureValuesResponse to JSON. + * Converts this ImportFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ReadFeatureValuesResponse + * Gets the default type url for ImportFeatureValuesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ReadFeatureValuesResponse { + /** Properties of a BatchReadFeatureValuesRequest. */ + interface IBatchReadFeatureValuesRequest { - /** Properties of a FeatureDescriptor. */ - interface IFeatureDescriptor { + /** BatchReadFeatureValuesRequest csvReadInstances */ + csvReadInstances?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - /** FeatureDescriptor id */ - id?: (string|null); - } + /** BatchReadFeatureValuesRequest bigqueryReadInstances */ + bigqueryReadInstances?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - /** Represents a FeatureDescriptor. */ - class FeatureDescriptor implements IFeatureDescriptor { + /** BatchReadFeatureValuesRequest featurestore */ + featurestore?: (string|null); - /** - * Constructs a new FeatureDescriptor. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor); + /** BatchReadFeatureValuesRequest destination */ + destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); - /** FeatureDescriptor id. */ - public id: string; + /** BatchReadFeatureValuesRequest passThroughFields */ + passThroughFields?: (google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField[]|null); - /** - * Creates a new FeatureDescriptor instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureDescriptor instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; + /** BatchReadFeatureValuesRequest entityTypeSpecs */ + entityTypeSpecs?: (google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]|null); - /** - * Encodes the specified FeatureDescriptor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. - * @param message FeatureDescriptor message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + /** BatchReadFeatureValuesRequest startTime */ + startTime?: (google.protobuf.ITimestamp|null); + } - /** - * Encodes the specified FeatureDescriptor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. - * @param message FeatureDescriptor message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a BatchReadFeatureValuesRequest. */ + class BatchReadFeatureValuesRequest implements IBatchReadFeatureValuesRequest { - /** - * Decodes a FeatureDescriptor message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureDescriptor - * @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.ReadFeatureValuesResponse.FeatureDescriptor; + /** + * Constructs a new BatchReadFeatureValuesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest); + + /** BatchReadFeatureValuesRequest csvReadInstances. */ + public csvReadInstances?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); + + /** BatchReadFeatureValuesRequest bigqueryReadInstances. */ + public bigqueryReadInstances?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + + /** BatchReadFeatureValuesRequest featurestore. */ + public featurestore: string; + + /** BatchReadFeatureValuesRequest destination. */ + public destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); + + /** BatchReadFeatureValuesRequest passThroughFields. */ + public passThroughFields: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField[]; + + /** BatchReadFeatureValuesRequest entityTypeSpecs. */ + public entityTypeSpecs: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]; + + /** BatchReadFeatureValuesRequest startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** BatchReadFeatureValuesRequest readOption. */ + public readOption?: ("csvReadInstances"|"bigqueryReadInstances"); + + /** + * Creates a new BatchReadFeatureValuesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchReadFeatureValuesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; + + /** + * Encodes the specified BatchReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.verify|verify} messages. + * @param message BatchReadFeatureValuesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.verify|verify} messages. + * @param message BatchReadFeatureValuesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchReadFeatureValuesRequest + * @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.BatchReadFeatureValuesRequest; - /** - * Decodes a FeatureDescriptor message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureDescriptor - * @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.ReadFeatureValuesResponse.FeatureDescriptor; + /** + * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchReadFeatureValuesRequest + * @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.BatchReadFeatureValuesRequest; - /** - * Verifies a FeatureDescriptor 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); + /** + * Verifies a BatchReadFeatureValuesRequest 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 FeatureDescriptor message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureDescriptor - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; + /** + * Creates a BatchReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchReadFeatureValuesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; - /** - * Creates a plain object from a FeatureDescriptor message. Also converts values to other types if specified. - * @param message FeatureDescriptor - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a BatchReadFeatureValuesRequest message. Also converts values to other types if specified. + * @param message BatchReadFeatureValuesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this FeatureDescriptor to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this BatchReadFeatureValuesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for FeatureDescriptor - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for BatchReadFeatureValuesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a Header. */ - interface IHeader { + namespace BatchReadFeatureValuesRequest { - /** Header entityType */ - entityType?: (string|null); + /** Properties of a PassThroughField. */ + interface IPassThroughField { - /** Header featureDescriptors */ - featureDescriptors?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor[]|null); + /** PassThroughField fieldName */ + fieldName?: (string|null); } - /** Represents a Header. */ - class Header implements IHeader { + /** Represents a PassThroughField. */ + class PassThroughField implements IPassThroughField { /** - * Constructs a new Header. + * Constructs a new PassThroughField. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader); - - /** Header entityType. */ - public entityType: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField); - /** Header featureDescriptors. */ - public featureDescriptors: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor[]; + /** PassThroughField fieldName. */ + public fieldName: string; /** - * Creates a new Header instance using the specified properties. + * Creates a new PassThroughField instance using the specified properties. * @param [properties] Properties to set - * @returns Header instance + * @returns PassThroughField instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; + public static create(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; /** - * Encodes the specified Header message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. - * @param message Header message or plain object to encode + * Encodes the specified PassThroughField message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. + * @param message PassThroughField message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Header message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. - * @param message Header message or plain object to encode + * Encodes the specified PassThroughField message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. + * @param message PassThroughField message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Header message from the specified reader or buffer. + * Decodes a PassThroughField message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Header + * @returns PassThroughField * @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.ReadFeatureValuesResponse.Header; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; /** - * Decodes a Header message from the specified reader or buffer, length delimited. + * Decodes a PassThroughField message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Header + * @returns PassThroughField * @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.ReadFeatureValuesResponse.Header; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; /** - * Verifies a Header message. + * Verifies a PassThroughField 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 Header message from a plain object. Also converts values to their respective internal types. + * Creates a PassThroughField message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Header + * @returns PassThroughField */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; /** - * Creates a plain object from a Header message. Also converts values to other types if specified. - * @param message Header + * Creates a plain object from a PassThroughField message. Also converts values to other types if specified. + * @param message PassThroughField * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Header to JSON. + * Converts this PassThroughField to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Header + * Gets the default type url for PassThroughField * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an EntityView. */ - interface IEntityView { + /** Properties of an EntityTypeSpec. */ + interface IEntityTypeSpec { - /** EntityView entityId */ - entityId?: (string|null); + /** EntityTypeSpec entityTypeId */ + entityTypeId?: (string|null); - /** EntityView data */ - data?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData[]|null); + /** EntityTypeSpec featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + + /** EntityTypeSpec settings */ + settings?: (google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]|null); } - /** Represents an EntityView. */ - class EntityView implements IEntityView { + /** Represents an EntityTypeSpec. */ + class EntityTypeSpec implements IEntityTypeSpec { /** - * Constructs a new EntityView. + * Constructs a new EntityTypeSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView); + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec); - /** EntityView entityId. */ - public entityId: string; + /** EntityTypeSpec entityTypeId. */ + public entityTypeId: string; - /** EntityView data. */ - public data: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData[]; + /** EntityTypeSpec featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + + /** EntityTypeSpec settings. */ + public settings: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]; /** - * Creates a new EntityView instance using the specified properties. + * Creates a new EntityTypeSpec instance using the specified properties. * @param [properties] Properties to set - * @returns EntityView instance + * @returns EntityTypeSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; + public static create(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; /** - * Encodes the specified EntityView message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. - * @param message EntityView message or plain object to encode + * Encodes the specified EntityTypeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. + * @param message EntityTypeSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EntityView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. - * @param message EntityView message or plain object to encode + * Encodes the specified EntityTypeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. + * @param message EntityTypeSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EntityView message from the specified reader or buffer. + * Decodes an EntityTypeSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EntityView + * @returns EntityTypeSpec * @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.ReadFeatureValuesResponse.EntityView; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; /** - * Decodes an EntityView message from the specified reader or buffer, length delimited. + * Decodes an EntityTypeSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EntityView + * @returns EntityTypeSpec * @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.ReadFeatureValuesResponse.EntityView; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; /** - * Verifies an EntityView message. + * Verifies an EntityTypeSpec 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 EntityView message from a plain object. Also converts values to their respective internal types. + * Creates an EntityTypeSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EntityView + * @returns EntityTypeSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; /** - * Creates a plain object from an EntityView message. Also converts values to other types if specified. - * @param message EntityView + * Creates a plain object from an EntityTypeSpec message. Also converts values to other types if specified. + * @param message EntityTypeSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EntityView to JSON. + * Converts this EntityTypeSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for EntityView + * Gets the default type url for EntityTypeSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - namespace EntityView { - - /** Properties of a Data. */ - interface IData { - - /** Data value */ - value?: (google.cloud.aiplatform.v1beta1.IFeatureValue|null); - - /** Data values */ - values?: (google.cloud.aiplatform.v1beta1.IFeatureValueList|null); - } - - /** Represents a Data. */ - class Data implements IData { - - /** - * Constructs a new Data. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData); - - /** Data value. */ - public value?: (google.cloud.aiplatform.v1beta1.IFeatureValue|null); - - /** Data values. */ - public values?: (google.cloud.aiplatform.v1beta1.IFeatureValueList|null); - - /** Data data. */ - public data?: ("value"|"values"); - - /** - * Creates a new Data instance using the specified properties. - * @param [properties] Properties to set - * @returns Data instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; - - /** - * Encodes the specified Data message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. - * @param message Data message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Data message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. - * @param message Data message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Data message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Data - * @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.ReadFeatureValuesResponse.EntityView.Data; - - /** - * Decodes a Data message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Data - * @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.ReadFeatureValuesResponse.EntityView.Data; - - /** - * Verifies a Data 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 Data message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Data - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; - - /** - * Creates a plain object from a Data message. Also converts values to other types if specified. - * @param message Data - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Data to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of an ExportFeatureValuesRequest. */ + interface IExportFeatureValuesRequest { - /** - * Gets the default type url for Data - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - } + /** ExportFeatureValuesRequest snapshotExport */ + snapshotExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null); - /** Properties of a StreamingReadFeatureValuesRequest. */ - interface IStreamingReadFeatureValuesRequest { + /** ExportFeatureValuesRequest fullExport */ + fullExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null); - /** StreamingReadFeatureValuesRequest entityType */ + /** ExportFeatureValuesRequest entityType */ entityType?: (string|null); - /** StreamingReadFeatureValuesRequest entityIds */ - entityIds?: (string[]|null); + /** ExportFeatureValuesRequest destination */ + destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); - /** StreamingReadFeatureValuesRequest featureSelector */ + /** ExportFeatureValuesRequest featureSelector */ featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); - } - - /** Represents a StreamingReadFeatureValuesRequest. */ - class StreamingReadFeatureValuesRequest implements IStreamingReadFeatureValuesRequest { - - /** - * Constructs a new StreamingReadFeatureValuesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest); - - /** StreamingReadFeatureValuesRequest entityType. */ - public entityType: string; - - /** StreamingReadFeatureValuesRequest entityIds. */ - public entityIds: string[]; - - /** StreamingReadFeatureValuesRequest featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); - /** - * Creates a new StreamingReadFeatureValuesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns StreamingReadFeatureValuesRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; - - /** - * Encodes the specified StreamingReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.verify|verify} messages. - * @param message StreamingReadFeatureValuesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StreamingReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.verify|verify} messages. - * @param message StreamingReadFeatureValuesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StreamingReadFeatureValuesRequest - * @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.StreamingReadFeatureValuesRequest; - - /** - * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StreamingReadFeatureValuesRequest - * @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.StreamingReadFeatureValuesRequest; - - /** - * Verifies a StreamingReadFeatureValuesRequest 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 StreamingReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StreamingReadFeatureValuesRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; - - /** - * Creates a plain object from a StreamingReadFeatureValuesRequest message. Also converts values to other types if specified. - * @param message StreamingReadFeatureValuesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StreamingReadFeatureValuesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StreamingReadFeatureValuesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a FeatureValue. */ - interface IFeatureValue { - - /** FeatureValue boolValue */ - boolValue?: (boolean|null); - - /** FeatureValue doubleValue */ - doubleValue?: (number|null); - - /** FeatureValue int64Value */ - int64Value?: (number|Long|string|null); - - /** FeatureValue stringValue */ - stringValue?: (string|null); - - /** FeatureValue boolArrayValue */ - boolArrayValue?: (google.cloud.aiplatform.v1beta1.IBoolArray|null); - - /** FeatureValue doubleArrayValue */ - doubleArrayValue?: (google.cloud.aiplatform.v1beta1.IDoubleArray|null); - - /** FeatureValue int64ArrayValue */ - int64ArrayValue?: (google.cloud.aiplatform.v1beta1.IInt64Array|null); - - /** FeatureValue stringArrayValue */ - stringArrayValue?: (google.cloud.aiplatform.v1beta1.IStringArray|null); - - /** FeatureValue bytesValue */ - bytesValue?: (Uint8Array|string|null); - - /** FeatureValue metadata */ - metadata?: (google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null); - } - - /** Represents a FeatureValue. */ - class FeatureValue implements IFeatureValue { - - /** - * Constructs a new FeatureValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValue); - - /** FeatureValue boolValue. */ - public boolValue?: (boolean|null); - - /** FeatureValue doubleValue. */ - public doubleValue?: (number|null); + /** ExportFeatureValuesRequest settings */ + settings?: (google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]|null); + } - /** FeatureValue int64Value. */ - public int64Value?: (number|Long|string|null); + /** Represents an ExportFeatureValuesRequest. */ + class ExportFeatureValuesRequest implements IExportFeatureValuesRequest { - /** FeatureValue stringValue. */ - public stringValue?: (string|null); + /** + * Constructs a new ExportFeatureValuesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest); - /** FeatureValue boolArrayValue. */ - public boolArrayValue?: (google.cloud.aiplatform.v1beta1.IBoolArray|null); + /** ExportFeatureValuesRequest snapshotExport. */ + public snapshotExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null); - /** FeatureValue doubleArrayValue. */ - public doubleArrayValue?: (google.cloud.aiplatform.v1beta1.IDoubleArray|null); + /** ExportFeatureValuesRequest fullExport. */ + public fullExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null); - /** FeatureValue int64ArrayValue. */ - public int64ArrayValue?: (google.cloud.aiplatform.v1beta1.IInt64Array|null); + /** ExportFeatureValuesRequest entityType. */ + public entityType: string; - /** FeatureValue stringArrayValue. */ - public stringArrayValue?: (google.cloud.aiplatform.v1beta1.IStringArray|null); + /** ExportFeatureValuesRequest destination. */ + public destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); - /** FeatureValue bytesValue. */ - public bytesValue?: (Uint8Array|string|null); + /** ExportFeatureValuesRequest featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); - /** FeatureValue metadata. */ - public metadata?: (google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null); + /** ExportFeatureValuesRequest settings. */ + public settings: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]; - /** FeatureValue value. */ - public value?: ("boolValue"|"doubleValue"|"int64Value"|"stringValue"|"boolArrayValue"|"doubleArrayValue"|"int64ArrayValue"|"stringArrayValue"|"bytesValue"); + /** ExportFeatureValuesRequest mode. */ + public mode?: ("snapshotExport"|"fullExport"); /** - * Creates a new FeatureValue instance using the specified properties. + * Creates a new ExportFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureValue instance + * @returns ExportFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValue): google.cloud.aiplatform.v1beta1.FeatureValue; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; /** - * Encodes the specified FeatureValue message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.verify|verify} messages. - * @param message FeatureValue message or plain object to encode + * Encodes the specified ExportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.verify|verify} messages. + * @param message ExportFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.verify|verify} messages. - * @param message FeatureValue message or plain object to encode + * Encodes the specified ExportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.verify|verify} messages. + * @param message ExportFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureValue message from the specified reader or buffer. + * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureValue + * @returns ExportFeatureValuesRequest * @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.FeatureValue; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; /** - * Decodes a FeatureValue message from the specified reader or buffer, length delimited. + * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureValue + * @returns ExportFeatureValuesRequest * @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.FeatureValue; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; /** - * Verifies a FeatureValue message. + * Verifies an ExportFeatureValuesRequest 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 FeatureValue message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureValue + * @returns ExportFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValue; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; /** - * Creates a plain object from a FeatureValue message. Also converts values to other types if specified. - * @param message FeatureValue + * Creates a plain object from an ExportFeatureValuesRequest message. Also converts values to other types if specified. + * @param message ExportFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureValue to JSON. + * Converts this ExportFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeatureValue + * Gets the default type url for ExportFeatureValuesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace FeatureValue { + namespace ExportFeatureValuesRequest { - /** Properties of a Metadata. */ - interface IMetadata { + /** Properties of a SnapshotExport. */ + interface ISnapshotExport { - /** Metadata generateTime */ - generateTime?: (google.protobuf.ITimestamp|null); + /** SnapshotExport snapshotTime */ + snapshotTime?: (google.protobuf.ITimestamp|null); + + /** SnapshotExport startTime */ + startTime?: (google.protobuf.ITimestamp|null); } - /** Represents a Metadata. */ - class Metadata implements IMetadata { + /** Represents a SnapshotExport. */ + class SnapshotExport implements ISnapshotExport { /** - * Constructs a new Metadata. + * Constructs a new SnapshotExport. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport); - /** Metadata generateTime. */ - public generateTime?: (google.protobuf.ITimestamp|null); + /** SnapshotExport snapshotTime. */ + public snapshotTime?: (google.protobuf.ITimestamp|null); + + /** SnapshotExport startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new Metadata instance using the specified properties. + * Creates a new SnapshotExport instance using the specified properties. * @param [properties] Properties to set - * @returns Metadata instance + * @returns SnapshotExport instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata): google.cloud.aiplatform.v1beta1.FeatureValue.Metadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; /** - * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify|verify} messages. - * @param message Metadata message or plain object to encode + * Encodes the specified SnapshotExport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. + * @param message SnapshotExport message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify|verify} messages. - * @param message Metadata message or plain object to encode + * Encodes the specified SnapshotExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. + * @param message SnapshotExport message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Metadata message from the specified reader or buffer. + * Decodes a SnapshotExport message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Metadata + * @returns SnapshotExport * @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.FeatureValue.Metadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; /** - * Decodes a Metadata message from the specified reader or buffer, length delimited. + * Decodes a SnapshotExport message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Metadata + * @returns SnapshotExport * @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.FeatureValue.Metadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; /** - * Verifies a Metadata message. + * Verifies a SnapshotExport 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 Metadata message from a plain object. Also converts values to their respective internal types. + * Creates a SnapshotExport message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Metadata + * @returns SnapshotExport */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValue.Metadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; /** - * Creates a plain object from a Metadata message. Also converts values to other types if specified. - * @param message Metadata + * Creates a plain object from a SnapshotExport message. Also converts values to other types if specified. + * @param message SnapshotExport * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValue.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Metadata to JSON. + * Converts this SnapshotExport to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Metadata + * Gets the default type url for SnapshotExport * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - } - /** Properties of a FeatureValueList. */ - interface IFeatureValueList { + /** Properties of a FullExport. */ + interface IFullExport { - /** FeatureValueList values */ - values?: (google.cloud.aiplatform.v1beta1.IFeatureValue[]|null); - } + /** FullExport startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** Represents a FeatureValueList. */ - class FeatureValueList implements IFeatureValueList { + /** FullExport endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } - /** - * Constructs a new FeatureValueList. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueList); + /** Represents a FullExport. */ + class FullExport implements IFullExport { - /** FeatureValueList values. */ - public values: google.cloud.aiplatform.v1beta1.IFeatureValue[]; + /** + * Constructs a new FullExport. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport); - /** - * Creates a new FeatureValueList instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureValueList instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueList): google.cloud.aiplatform.v1beta1.FeatureValueList; + /** FullExport startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified FeatureValueList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.verify|verify} messages. - * @param message FeatureValueList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; + /** FullExport endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified FeatureValueList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.verify|verify} messages. - * @param message FeatureValueList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new FullExport instance using the specified properties. + * @param [properties] Properties to set + * @returns FullExport instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; - /** - * Decodes a FeatureValueList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureValueList - * @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.FeatureValueList; + /** + * Encodes the specified FullExport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. + * @param message FullExport message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FeatureValueList message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureValueList - * @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.FeatureValueList; + /** + * Encodes the specified FullExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. + * @param message FullExport message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a FeatureValueList 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); + /** + * Decodes a FullExport message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FullExport + * @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.ExportFeatureValuesRequest.FullExport; - /** - * Creates a FeatureValueList message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureValueList - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValueList; + /** + * Decodes a FullExport message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FullExport + * @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.ExportFeatureValuesRequest.FullExport; - /** - * Creates a plain object from a FeatureValueList message. Also converts values to other types if specified. - * @param message FeatureValueList - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValueList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a FullExport 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); - /** - * Converts this FeatureValueList to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a FullExport message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FullExport + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; - /** - * Gets the default type url for FeatureValueList - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Creates a plain object from a FullExport message. Also converts values to other types if specified. + * @param message FullExport + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FullExport to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FullExport + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of a BoolArray. */ - interface IBoolArray { + /** Properties of a DestinationFeatureSetting. */ + interface IDestinationFeatureSetting { - /** BoolArray values */ - values?: (boolean[]|null); + /** DestinationFeatureSetting featureId */ + featureId?: (string|null); + + /** DestinationFeatureSetting destinationField */ + destinationField?: (string|null); } - /** Represents a BoolArray. */ - class BoolArray implements IBoolArray { + /** Represents a DestinationFeatureSetting. */ + class DestinationFeatureSetting implements IDestinationFeatureSetting { /** - * Constructs a new BoolArray. + * Constructs a new DestinationFeatureSetting. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBoolArray); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting); - /** BoolArray values. */ - public values: boolean[]; + /** DestinationFeatureSetting featureId. */ + public featureId: string; + + /** DestinationFeatureSetting destinationField. */ + public destinationField: string; /** - * Creates a new BoolArray instance using the specified properties. + * Creates a new DestinationFeatureSetting instance using the specified properties. * @param [properties] Properties to set - * @returns BoolArray instance + * @returns DestinationFeatureSetting instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBoolArray): google.cloud.aiplatform.v1beta1.BoolArray; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; /** - * Encodes the specified BoolArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.verify|verify} messages. - * @param message BoolArray message or plain object to encode + * Encodes the specified DestinationFeatureSetting message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify|verify} messages. + * @param message DestinationFeatureSetting message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BoolArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.verify|verify} messages. - * @param message BoolArray message or plain object to encode + * Encodes the specified DestinationFeatureSetting message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify|verify} messages. + * @param message DestinationFeatureSetting message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BoolArray message from the specified reader or buffer. + * Decodes a DestinationFeatureSetting message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BoolArray + * @returns DestinationFeatureSetting * @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.BoolArray; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; /** - * Decodes a BoolArray message from the specified reader or buffer, length delimited. + * Decodes a DestinationFeatureSetting message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BoolArray + * @returns DestinationFeatureSetting * @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.BoolArray; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; /** - * Verifies a BoolArray message. + * Verifies a DestinationFeatureSetting 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 BoolArray message from a plain object. Also converts values to their respective internal types. + * Creates a DestinationFeatureSetting message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BoolArray + * @returns DestinationFeatureSetting */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BoolArray; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; /** - * Creates a plain object from a BoolArray message. Also converts values to other types if specified. - * @param message BoolArray + * Creates a plain object from a DestinationFeatureSetting message. Also converts values to other types if specified. + * @param message DestinationFeatureSetting * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BoolArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DestinationFeatureSetting, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BoolArray to JSON. + * Converts this DestinationFeatureSetting to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BoolArray + * Gets the default type url for DestinationFeatureSetting * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DoubleArray. */ - interface IDoubleArray { + /** Properties of a FeatureValueDestination. */ + interface IFeatureValueDestination { - /** DoubleArray values */ - values?: (number[]|null); + /** FeatureValueDestination bigqueryDestination */ + bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + + /** FeatureValueDestination tfrecordDestination */ + tfrecordDestination?: (google.cloud.aiplatform.v1beta1.ITFRecordDestination|null); + + /** FeatureValueDestination csvDestination */ + csvDestination?: (google.cloud.aiplatform.v1beta1.ICsvDestination|null); } - /** Represents a DoubleArray. */ - class DoubleArray implements IDoubleArray { + /** Represents a FeatureValueDestination. */ + class FeatureValueDestination implements IFeatureValueDestination { /** - * Constructs a new DoubleArray. + * Constructs a new FeatureValueDestination. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDoubleArray); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueDestination); - /** DoubleArray values. */ - public values: number[]; + /** FeatureValueDestination bigqueryDestination. */ + public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + + /** FeatureValueDestination tfrecordDestination. */ + public tfrecordDestination?: (google.cloud.aiplatform.v1beta1.ITFRecordDestination|null); + + /** FeatureValueDestination csvDestination. */ + public csvDestination?: (google.cloud.aiplatform.v1beta1.ICsvDestination|null); + + /** FeatureValueDestination destination. */ + public destination?: ("bigqueryDestination"|"tfrecordDestination"|"csvDestination"); /** - * Creates a new DoubleArray instance using the specified properties. + * Creates a new FeatureValueDestination instance using the specified properties. * @param [properties] Properties to set - * @returns DoubleArray instance + * @returns FeatureValueDestination instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDoubleArray): google.cloud.aiplatform.v1beta1.DoubleArray; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueDestination): google.cloud.aiplatform.v1beta1.FeatureValueDestination; /** - * Encodes the specified DoubleArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.verify|verify} messages. - * @param message DoubleArray message or plain object to encode + * Encodes the specified FeatureValueDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify|verify} messages. + * @param message FeatureValueDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DoubleArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.verify|verify} messages. - * @param message DoubleArray message or plain object to encode + * Encodes the specified FeatureValueDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify|verify} messages. + * @param message FeatureValueDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DoubleArray message from the specified reader or buffer. + * Decodes a FeatureValueDestination message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DoubleArray + * @returns FeatureValueDestination * @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.DoubleArray; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureValueDestination; /** - * Decodes a DoubleArray message from the specified reader or buffer, length delimited. + * Decodes a FeatureValueDestination message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DoubleArray + * @returns FeatureValueDestination * @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.DoubleArray; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureValueDestination; /** - * Verifies a DoubleArray message. + * Verifies a FeatureValueDestination 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 DoubleArray message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureValueDestination message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DoubleArray + * @returns FeatureValueDestination */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DoubleArray; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValueDestination; /** - * Creates a plain object from a DoubleArray message. Also converts values to other types if specified. - * @param message DoubleArray + * Creates a plain object from a FeatureValueDestination message. Also converts values to other types if specified. + * @param message FeatureValueDestination * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DoubleArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValueDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DoubleArray to JSON. + * Converts this FeatureValueDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DoubleArray + * Gets the default type url for FeatureValueDestination * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Int64Array. */ - interface IInt64Array { - - /** Int64Array values */ - values?: ((number|Long|string)[]|null); + /** Properties of an ExportFeatureValuesResponse. */ + interface IExportFeatureValuesResponse { } - /** Represents an Int64Array. */ - class Int64Array implements IInt64Array { + /** Represents an ExportFeatureValuesResponse. */ + class ExportFeatureValuesResponse implements IExportFeatureValuesResponse { /** - * Constructs a new Int64Array. + * Constructs a new ExportFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IInt64Array); - - /** Int64Array values. */ - public values: (number|Long|string)[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse); /** - * Creates a new Int64Array instance using the specified properties. + * Creates a new ExportFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Int64Array instance + * @returns ExportFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IInt64Array): google.cloud.aiplatform.v1beta1.Int64Array; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; /** - * Encodes the specified Int64Array message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.verify|verify} messages. - * @param message Int64Array message or plain object to encode + * Encodes the specified ExportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. + * @param message ExportFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Int64Array message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.verify|verify} messages. - * @param message Int64Array message or plain object to encode + * Encodes the specified ExportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. + * @param message ExportFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Int64Array message from the specified reader or buffer. + * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Int64Array + * @returns ExportFeatureValuesResponse * @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.Int64Array; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; /** - * Decodes an Int64Array message from the specified reader or buffer, length delimited. + * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Int64Array + * @returns ExportFeatureValuesResponse * @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.Int64Array; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; /** - * Verifies an Int64Array message. + * Verifies an ExportFeatureValuesResponse 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 Int64Array message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Int64Array + * @returns ExportFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Int64Array; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; /** - * Creates a plain object from an Int64Array message. Also converts values to other types if specified. - * @param message Int64Array + * Creates a plain object from an ExportFeatureValuesResponse message. Also converts values to other types if specified. + * @param message ExportFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Int64Array, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Int64Array to JSON. + * Converts this ExportFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Int64Array + * Gets the default type url for ExportFeatureValuesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a StringArray. */ - interface IStringArray { - - /** StringArray values */ - values?: (string[]|null); + /** Properties of a BatchReadFeatureValuesResponse. */ + interface IBatchReadFeatureValuesResponse { } - /** Represents a StringArray. */ - class StringArray implements IStringArray { + /** Represents a BatchReadFeatureValuesResponse. */ + class BatchReadFeatureValuesResponse implements IBatchReadFeatureValuesResponse { /** - * Constructs a new StringArray. + * Constructs a new BatchReadFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStringArray); - - /** StringArray values. */ - public values: string[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse); /** - * Creates a new StringArray instance using the specified properties. + * Creates a new BatchReadFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns StringArray instance + * @returns BatchReadFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStringArray): google.cloud.aiplatform.v1beta1.StringArray; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; /** - * Encodes the specified StringArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.verify|verify} messages. - * @param message StringArray message or plain object to encode + * Encodes the specified BatchReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. + * @param message BatchReadFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StringArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.verify|verify} messages. - * @param message StringArray message or plain object to encode + * Encodes the specified BatchReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. + * @param message BatchReadFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StringArray message from the specified reader or buffer. + * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StringArray + * @returns BatchReadFeatureValuesResponse * @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.StringArray; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; /** - * Decodes a StringArray message from the specified reader or buffer, length delimited. + * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StringArray + * @returns BatchReadFeatureValuesResponse * @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.StringArray; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; /** - * Verifies a StringArray message. + * Verifies a BatchReadFeatureValuesResponse 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 StringArray message from a plain object. Also converts values to their respective internal types. + * Creates a BatchReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StringArray + * @returns BatchReadFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StringArray; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; /** - * Creates a plain object from a StringArray message. Also converts values to other types if specified. - * @param message StringArray + * Creates a plain object from a BatchReadFeatureValuesResponse message. Also converts values to other types if specified. + * @param message BatchReadFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StringArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StringArray to JSON. + * Converts this BatchReadFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StringArray + * Gets the default type url for BatchReadFeatureValuesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents a FeaturestoreService */ - class FeaturestoreService extends $protobuf.rpc.Service { - - /** - * Constructs a new FeaturestoreService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new FeaturestoreService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreService; - - /** - * Calls CreateFeaturestore. - * @param request CreateFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createFeaturestore(request: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeaturestoreCallback): void; - - /** - * Calls CreateFeaturestore. - * @param request CreateFeaturestoreRequest message or plain object - * @returns Promise - */ - public createFeaturestore(request: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest): Promise; + /** Properties of a CreateEntityTypeRequest. */ + interface ICreateEntityTypeRequest { - /** - * Calls GetFeaturestore. - * @param request GetFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Featurestore - */ - public getFeaturestore(request: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeaturestoreCallback): void; + /** CreateEntityTypeRequest parent */ + parent?: (string|null); - /** - * Calls GetFeaturestore. - * @param request GetFeaturestoreRequest message or plain object - * @returns Promise - */ - public getFeaturestore(request: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest): Promise; + /** CreateEntityTypeRequest entityType */ + entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); - /** - * Calls ListFeaturestores. - * @param request ListFeaturestoresRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListFeaturestoresResponse - */ - public listFeaturestores(request: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestoresCallback): void; + /** CreateEntityTypeRequest entityTypeId */ + entityTypeId?: (string|null); + } - /** - * Calls ListFeaturestores. - * @param request ListFeaturestoresRequest message or plain object - * @returns Promise - */ - public listFeaturestores(request: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest): Promise; + /** Represents a CreateEntityTypeRequest. */ + class CreateEntityTypeRequest implements ICreateEntityTypeRequest { /** - * Calls UpdateFeaturestore. - * @param request UpdateFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Constructs a new CreateEntityTypeRequest. + * @param [properties] Properties to set */ - public updateFeaturestore(request: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeaturestoreCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest); - /** - * Calls UpdateFeaturestore. - * @param request UpdateFeaturestoreRequest message or plain object - * @returns Promise - */ - public updateFeaturestore(request: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest): Promise; + /** CreateEntityTypeRequest parent. */ + public parent: string; - /** - * Calls DeleteFeaturestore. - * @param request DeleteFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteFeaturestore(request: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeaturestoreCallback): void; + /** CreateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); - /** - * Calls DeleteFeaturestore. - * @param request DeleteFeaturestoreRequest message or plain object - * @returns Promise - */ - public deleteFeaturestore(request: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest): Promise; + /** CreateEntityTypeRequest entityTypeId. */ + public entityTypeId: string; /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new CreateEntityTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateEntityTypeRequest instance */ - public createEntityType(request: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateEntityTypeCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object - * @returns Promise + * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. + * @param message CreateEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createEntityType(request: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. + * @param message CreateEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getEntityType(request: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetEntityTypeCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object - * @returns Promise + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getEntityType(request: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listEntityTypes(request: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypesCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object - * @returns Promise + * Verifies a CreateEntityTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listEntityTypes(request: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdateEntityType. - * @param request UpdateEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateEntityTypeRequest */ - public updateEntityType(request: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateEntityTypeCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; /** - * Calls UpdateEntityType. - * @param request UpdateEntityTypeRequest message or plain object - * @returns Promise + * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. + * @param message CreateEntityTypeRequest + * @param [options] Conversion options + * @returns Plain object */ - public updateEntityType(request: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeleteEntityType. - * @param request DeleteEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Converts this CreateEntityTypeRequest to JSON. + * @returns JSON object */ - public deleteEntityType(request: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteEntityTypeCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls DeleteEntityType. - * @param request DeleteEntityTypeRequest message or plain object - * @returns Promise + * Gets the default type url for CreateEntityTypeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public deleteEntityType(request: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls CreateFeature. - * @param request CreateFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createFeature(request: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeatureCallback): void; + /** Properties of a GetEntityTypeRequest. */ + interface IGetEntityTypeRequest { - /** - * Calls CreateFeature. - * @param request CreateFeatureRequest message or plain object - * @returns Promise - */ - public createFeature(request: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest): Promise; + /** GetEntityTypeRequest name */ + name?: (string|null); + } - /** - * Calls BatchCreateFeatures. - * @param request BatchCreateFeaturesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public batchCreateFeatures(request: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeaturesCallback): void; + /** Represents a GetEntityTypeRequest. */ + class GetEntityTypeRequest implements IGetEntityTypeRequest { /** - * Calls BatchCreateFeatures. - * @param request BatchCreateFeaturesRequest message or plain object - * @returns Promise + * Constructs a new GetEntityTypeRequest. + * @param [properties] Properties to set */ - public batchCreateFeatures(request: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest); - /** - * Calls GetFeature. - * @param request GetFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Feature - */ - public getFeature(request: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeatureCallback): void; + /** GetEntityTypeRequest name. */ + public name: string; /** - * Calls GetFeature. - * @param request GetFeatureRequest message or plain object - * @returns Promise + * Creates a new GetEntityTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetEntityTypeRequest instance */ - public getFeature(request: google.cloud.aiplatform.v1beta1.IGetFeatureRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; /** - * Calls ListFeatures. - * @param request ListFeaturesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListFeaturesResponse + * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. + * @param message GetEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listFeatures(request: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturesCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListFeatures. - * @param request ListFeaturesRequest message or plain object - * @returns Promise + * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. + * @param message GetEntityTypeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listFeatures(request: google.cloud.aiplatform.v1beta1.IListFeaturesRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateFeature. - * @param request UpdateFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Feature + * Decodes a GetEntityTypeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateFeature(request: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeatureCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; /** - * Calls UpdateFeature. - * @param request UpdateFeatureRequest message or plain object - * @returns Promise + * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetEntityTypeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateFeature(request: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; /** - * Calls DeleteFeature. - * @param request DeleteFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Verifies a GetEntityTypeRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteFeature(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteFeature. - * @param request DeleteFeatureRequest message or plain object - * @returns Promise + * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetEntityTypeRequest */ - public deleteFeature(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; /** - * Calls ImportFeatureValues. - * @param request ImportFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. + * @param message GetEntityTypeRequest + * @param [options] Conversion options + * @returns Plain object */ - public importFeatureValues(request: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValuesCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ImportFeatureValues. - * @param request ImportFeatureValuesRequest message or plain object - * @returns Promise + * Converts this GetEntityTypeRequest to JSON. + * @returns JSON object */ - public importFeatureValues(request: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls BatchReadFeatureValues. - * @param request BatchReadFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Gets the default type url for GetEntityTypeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public batchReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValuesCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls BatchReadFeatureValues. - * @param request BatchReadFeatureValuesRequest message or plain object - * @returns Promise - */ - public batchReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest): Promise; + /** Properties of a ListEntityTypesRequest. */ + interface IListEntityTypesRequest { - /** - * Calls ExportFeatureValues. - * @param request ExportFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public exportFeatureValues(request: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValuesCallback): void; + /** ListEntityTypesRequest parent */ + parent?: (string|null); - /** - * Calls ExportFeatureValues. - * @param request ExportFeatureValuesRequest message or plain object - * @returns Promise - */ - public exportFeatureValues(request: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest): Promise; + /** ListEntityTypesRequest filter */ + filter?: (string|null); - /** - * 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.v1beta1.IDeleteFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureValuesCallback): void; + /** ListEntityTypesRequest pageSize */ + pageSize?: (number|null); - /** - * Calls DeleteFeatureValues. - * @param request DeleteFeatureValuesRequest message or plain object - * @returns Promise - */ - public deleteFeatureValues(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest): Promise; + /** ListEntityTypesRequest pageToken */ + pageToken?: (string|null); - /** - * Calls SearchFeatures. - * @param request SearchFeaturesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SearchFeaturesResponse - */ - public searchFeatures(request: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeaturesCallback): void; + /** ListEntityTypesRequest orderBy */ + orderBy?: (string|null); - /** - * Calls SearchFeatures. - * @param request SearchFeaturesRequest message or plain object - * @returns Promise - */ - public searchFeatures(request: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest): Promise; + /** ListEntityTypesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - namespace FeaturestoreService { - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|createFeaturestore}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|getFeaturestore}. - * @param error Error, if any - * @param [response] Featurestore - */ - type GetFeaturestoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Featurestore) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|listFeaturestores}. - * @param error Error, if any - * @param [response] ListFeaturestoresResponse - */ - type ListFeaturestoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|updateFeaturestore}. - * @param error Error, if any - * @param [response] Operation - */ - type UpdateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Represents a ListEntityTypesRequest. */ + class ListEntityTypesRequest implements IListEntityTypesRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|deleteFeaturestore}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new ListEntityTypesRequest. + * @param [properties] Properties to set */ - type DeleteFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|createEntityType}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** ListEntityTypesRequest parent. */ + public parent: string; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|getEntityType}. - * @param error Error, if any - * @param [response] EntityType - */ - type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.EntityType) => void; + /** ListEntityTypesRequest filter. */ + public filter: string; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|listEntityTypes}. - * @param error Error, if any - * @param [response] ListEntityTypesResponse - */ - type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) => void; + /** ListEntityTypesRequest pageSize. */ + public pageSize: number; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|updateEntityType}. - * @param error Error, if any - * @param [response] EntityType - */ - type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.EntityType) => void; + /** ListEntityTypesRequest pageToken. */ + public pageToken: string; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|deleteEntityType}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** ListEntityTypesRequest orderBy. */ + public orderBy: string; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|createFeature}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** ListEntityTypesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|batchCreateFeatures}. - * @param error Error, if any - * @param [response] Operation + * Creates a new ListEntityTypesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListEntityTypesRequest instance */ - type BatchCreateFeaturesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|getFeature}. - * @param error Error, if any - * @param [response] Feature + * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. + * @param message ListEntityTypesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Feature) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|listFeatures}. - * @param error Error, if any - * @param [response] ListFeaturesResponse + * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. + * @param message ListEntityTypesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type ListFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListFeaturesResponse) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|updateFeature}. - * @param error Error, if any - * @param [response] Feature + * Decodes a ListEntityTypesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListEntityTypesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type UpdateFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Feature) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|deleteFeature}. - * @param error Error, if any - * @param [response] Operation + * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListEntityTypesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|importFeatureValues}. - * @param error Error, if any - * @param [response] Operation + * Verifies a ListEntityTypesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ImportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|batchReadFeatureValues}. - * @param error Error, if any - * @param [response] Operation + * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListEntityTypesRequest */ - type BatchReadFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|exportFeatureValues}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. + * @param message ListEntityTypesRequest + * @param [options] Conversion options + * @returns Plain object */ - type ExportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|deleteFeatureValues}. - * @param error Error, if any - * @param [response] Operation + * Converts this ListEntityTypesRequest to JSON. + * @returns JSON object */ - type DeleteFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService|searchFeatures}. - * @param error Error, if any - * @param [response] SearchFeaturesResponse + * Gets the default type url for ListEntityTypesRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type SearchFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateFeaturestoreRequest. */ - interface ICreateFeaturestoreRequest { - - /** CreateFeaturestoreRequest parent */ - parent?: (string|null); + /** Properties of a ListEntityTypesResponse. */ + interface IListEntityTypesResponse { - /** CreateFeaturestoreRequest featurestore */ - featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + /** ListEntityTypesResponse entityTypes */ + entityTypes?: (google.cloud.aiplatform.v1beta1.IEntityType[]|null); - /** CreateFeaturestoreRequest featurestoreId */ - featurestoreId?: (string|null); + /** ListEntityTypesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CreateFeaturestoreRequest. */ - class CreateFeaturestoreRequest implements ICreateFeaturestoreRequest { + /** Represents a ListEntityTypesResponse. */ + class ListEntityTypesResponse implements IListEntityTypesResponse { /** - * Constructs a new CreateFeaturestoreRequest. + * Constructs a new ListEntityTypesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest); - - /** CreateFeaturestoreRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse); - /** CreateFeaturestoreRequest featurestore. */ - public featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + /** ListEntityTypesResponse entityTypes. */ + public entityTypes: google.cloud.aiplatform.v1beta1.IEntityType[]; - /** CreateFeaturestoreRequest featurestoreId. */ - public featurestoreId: string; + /** ListEntityTypesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CreateFeaturestoreRequest instance using the specified properties. + * Creates a new ListEntityTypesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateFeaturestoreRequest instance + * @returns ListEntityTypesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; /** - * Encodes the specified CreateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.verify|verify} messages. - * @param message CreateFeaturestoreRequest message or plain object to encode + * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. + * @param message ListEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.verify|verify} messages. - * @param message CreateFeaturestoreRequest message or plain object to encode + * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. + * @param message ListEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer. + * Decodes a ListEntityTypesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateFeaturestoreRequest + * @returns ListEntityTypesResponse * @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.CreateFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; /** - * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateFeaturestoreRequest + * @returns ListEntityTypesResponse * @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.CreateFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; /** - * Verifies a CreateFeaturestoreRequest message. + * Verifies a ListEntityTypesResponse 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 CreateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateFeaturestoreRequest + * @returns ListEntityTypesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; /** - * Creates a plain object from a CreateFeaturestoreRequest message. Also converts values to other types if specified. - * @param message CreateFeaturestoreRequest + * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. + * @param message ListEntityTypesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFeaturestoreRequest to JSON. + * Converts this ListEntityTypesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateFeaturestoreRequest + * Gets the default type url for ListEntityTypesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetFeaturestoreRequest. */ - interface IGetFeaturestoreRequest { + /** Properties of an UpdateEntityTypeRequest. */ + interface IUpdateEntityTypeRequest { - /** GetFeaturestoreRequest name */ - name?: (string|null); + /** UpdateEntityTypeRequest entityType */ + entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + + /** UpdateEntityTypeRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a GetFeaturestoreRequest. */ - class GetFeaturestoreRequest implements IGetFeaturestoreRequest { + /** Represents an UpdateEntityTypeRequest. */ + class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { /** - * Constructs a new GetFeaturestoreRequest. + * Constructs a new UpdateEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest); - /** GetFeaturestoreRequest name. */ - public name: string; + /** UpdateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + + /** UpdateEntityTypeRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new GetFeaturestoreRequest instance using the specified properties. + * Creates a new UpdateEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetFeaturestoreRequest instance + * @returns UpdateEntityTypeRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; /** - * Encodes the specified GetFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.verify|verify} messages. - * @param message GetFeaturestoreRequest message or plain object to encode + * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. + * @param message UpdateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.verify|verify} messages. - * @param message GetFeaturestoreRequest message or plain object to encode + * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. + * @param message UpdateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetFeaturestoreRequest message from the specified reader or buffer. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetFeaturestoreRequest + * @returns UpdateEntityTypeRequest * @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.GetFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; /** - * Decodes a GetFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetFeaturestoreRequest + * @returns UpdateEntityTypeRequest * @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.GetFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; /** - * Verifies a GetFeaturestoreRequest message. + * Verifies an UpdateEntityTypeRequest 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 GetFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetFeaturestoreRequest + * @returns UpdateEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; /** - * Creates a plain object from a GetFeaturestoreRequest message. Also converts values to other types if specified. - * @param message GetFeaturestoreRequest + * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. + * @param message UpdateEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetFeaturestoreRequest to JSON. + * Converts this UpdateEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetFeaturestoreRequest + * Gets the default type url for UpdateEntityTypeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListFeaturestoresRequest. */ - interface IListFeaturestoresRequest { - - /** ListFeaturestoresRequest parent */ - parent?: (string|null); - - /** ListFeaturestoresRequest filter */ - filter?: (string|null); - - /** ListFeaturestoresRequest pageSize */ - pageSize?: (number|null); - - /** ListFeaturestoresRequest pageToken */ - pageToken?: (string|null); + /** Properties of a DeleteEntityTypeRequest. */ + interface IDeleteEntityTypeRequest { - /** ListFeaturestoresRequest orderBy */ - orderBy?: (string|null); + /** DeleteEntityTypeRequest name */ + name?: (string|null); - /** ListFeaturestoresRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** DeleteEntityTypeRequest force */ + force?: (boolean|null); } - /** Represents a ListFeaturestoresRequest. */ - class ListFeaturestoresRequest implements IListFeaturestoresRequest { + /** Represents a DeleteEntityTypeRequest. */ + class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { /** - * Constructs a new ListFeaturestoresRequest. + * Constructs a new DeleteEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest); - - /** ListFeaturestoresRequest parent. */ - public parent: string; - - /** ListFeaturestoresRequest filter. */ - public filter: string; - - /** ListFeaturestoresRequest pageSize. */ - public pageSize: number; - - /** ListFeaturestoresRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest); - /** ListFeaturestoresRequest orderBy. */ - public orderBy: string; + /** DeleteEntityTypeRequest name. */ + public name: string; - /** ListFeaturestoresRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** DeleteEntityTypeRequest force. */ + public force: boolean; /** - * Creates a new ListFeaturestoresRequest instance using the specified properties. + * Creates a new DeleteEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListFeaturestoresRequest instance + * @returns DeleteEntityTypeRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; /** - * Encodes the specified ListFeaturestoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.verify|verify} messages. - * @param message ListFeaturestoresRequest message or plain object to encode + * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. + * @param message DeleteEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFeaturestoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.verify|verify} messages. - * @param message ListFeaturestoresRequest message or plain object to encode + * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. + * @param message DeleteEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFeaturestoresRequest message from the specified reader or buffer. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFeaturestoresRequest + * @returns DeleteEntityTypeRequest * @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.ListFeaturestoresRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; /** - * Decodes a ListFeaturestoresRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFeaturestoresRequest + * @returns DeleteEntityTypeRequest * @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.ListFeaturestoresRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; /** - * Verifies a ListFeaturestoresRequest message. + * Verifies a DeleteEntityTypeRequest 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 ListFeaturestoresRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFeaturestoresRequest + * @returns DeleteEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; /** - * Creates a plain object from a ListFeaturestoresRequest message. Also converts values to other types if specified. - * @param message ListFeaturestoresRequest + * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. + * @param message DeleteEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFeaturestoresRequest to JSON. + * Converts this DeleteEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListFeaturestoresRequest + * Gets the default type url for DeleteEntityTypeRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListFeaturestoresResponse. */ - interface IListFeaturestoresResponse { + /** Properties of a CreateFeatureRequest. */ + interface ICreateFeatureRequest { - /** ListFeaturestoresResponse featurestores */ - featurestores?: (google.cloud.aiplatform.v1beta1.IFeaturestore[]|null); + /** CreateFeatureRequest parent */ + parent?: (string|null); - /** ListFeaturestoresResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateFeatureRequest feature */ + feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + + /** CreateFeatureRequest featureId */ + featureId?: (string|null); } - /** Represents a ListFeaturestoresResponse. */ - class ListFeaturestoresResponse implements IListFeaturestoresResponse { + /** Represents a CreateFeatureRequest. */ + class CreateFeatureRequest implements ICreateFeatureRequest { /** - * Constructs a new ListFeaturestoresResponse. + * Constructs a new CreateFeatureRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest); - /** ListFeaturestoresResponse featurestores. */ - public featurestores: google.cloud.aiplatform.v1beta1.IFeaturestore[]; + /** CreateFeatureRequest parent. */ + public parent: string; - /** ListFeaturestoresResponse nextPageToken. */ - public nextPageToken: string; + /** CreateFeatureRequest feature. */ + public feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + + /** CreateFeatureRequest featureId. */ + public featureId: string; /** - * Creates a new ListFeaturestoresResponse instance using the specified properties. + * Creates a new CreateFeatureRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListFeaturestoresResponse instance + * @returns CreateFeatureRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; /** - * Encodes the specified ListFeaturestoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.verify|verify} messages. - * @param message ListFeaturestoresResponse message or plain object to encode + * Encodes the specified CreateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify|verify} messages. + * @param message CreateFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFeaturestoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.verify|verify} messages. - * @param message ListFeaturestoresResponse message or plain object to encode + * Encodes the specified CreateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify|verify} messages. + * @param message CreateFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFeaturestoresResponse message from the specified reader or buffer. + * Decodes a CreateFeatureRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFeaturestoresResponse + * @returns CreateFeatureRequest * @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.ListFeaturestoresResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; /** - * Decodes a ListFeaturestoresResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateFeatureRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFeaturestoresResponse + * @returns CreateFeatureRequest * @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.ListFeaturestoresResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; /** - * Verifies a ListFeaturestoresResponse message. + * Verifies a CreateFeatureRequest 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 ListFeaturestoresResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeatureRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFeaturestoresResponse + * @returns CreateFeatureRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; /** - * Creates a plain object from a ListFeaturestoresResponse message. Also converts values to other types if specified. - * @param message ListFeaturestoresResponse + * Creates a plain object from a CreateFeatureRequest message. Also converts values to other types if specified. + * @param message CreateFeatureRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFeaturestoresResponse to JSON. + * Converts this CreateFeatureRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListFeaturestoresResponse + * Gets the default type url for CreateFeatureRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateFeaturestoreRequest. */ - interface IUpdateFeaturestoreRequest { + /** Properties of a BatchCreateFeaturesRequest. */ + interface IBatchCreateFeaturesRequest { - /** UpdateFeaturestoreRequest featurestore */ - featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + /** BatchCreateFeaturesRequest parent */ + parent?: (string|null); - /** UpdateFeaturestoreRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** BatchCreateFeaturesRequest requests */ + requests?: (google.cloud.aiplatform.v1beta1.ICreateFeatureRequest[]|null); } - /** Represents an UpdateFeaturestoreRequest. */ - class UpdateFeaturestoreRequest implements IUpdateFeaturestoreRequest { + /** Represents a BatchCreateFeaturesRequest. */ + class BatchCreateFeaturesRequest implements IBatchCreateFeaturesRequest { /** - * Constructs a new UpdateFeaturestoreRequest. + * Constructs a new BatchCreateFeaturesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest); - /** UpdateFeaturestoreRequest featurestore. */ - public featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + /** BatchCreateFeaturesRequest parent. */ + public parent: string; - /** UpdateFeaturestoreRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** BatchCreateFeaturesRequest requests. */ + public requests: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest[]; /** - * Creates a new UpdateFeaturestoreRequest instance using the specified properties. + * Creates a new BatchCreateFeaturesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateFeaturestoreRequest instance + * @returns BatchCreateFeaturesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; /** - * Encodes the specified UpdateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.verify|verify} messages. - * @param message UpdateFeaturestoreRequest message or plain object to encode + * Encodes the specified BatchCreateFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. + * @param message BatchCreateFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.verify|verify} messages. - * @param message UpdateFeaturestoreRequest message or plain object to encode + * Encodes the specified BatchCreateFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. + * @param message BatchCreateFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer. + * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateFeaturestoreRequest + * @returns BatchCreateFeaturesRequest * @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.UpdateFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; /** - * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateFeaturestoreRequest + * @returns BatchCreateFeaturesRequest * @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.UpdateFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; /** - * Verifies an UpdateFeaturestoreRequest message. + * Verifies a BatchCreateFeaturesRequest 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 UpdateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateFeaturesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateFeaturestoreRequest + * @returns BatchCreateFeaturesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; /** - * Creates a plain object from an UpdateFeaturestoreRequest message. Also converts values to other types if specified. - * @param message UpdateFeaturestoreRequest + * Creates a plain object from a BatchCreateFeaturesRequest message. Also converts values to other types if specified. + * @param message BatchCreateFeaturesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateFeaturestoreRequest to JSON. + * Converts this BatchCreateFeaturesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateFeaturestoreRequest + * Gets the default type url for BatchCreateFeaturesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteFeaturestoreRequest. */ - interface IDeleteFeaturestoreRequest { - - /** DeleteFeaturestoreRequest name */ - name?: (string|null); + /** Properties of a BatchCreateFeaturesResponse. */ + interface IBatchCreateFeaturesResponse { - /** DeleteFeaturestoreRequest force */ - force?: (boolean|null); + /** BatchCreateFeaturesResponse features */ + features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); } - /** Represents a DeleteFeaturestoreRequest. */ - class DeleteFeaturestoreRequest implements IDeleteFeaturestoreRequest { + /** Represents a BatchCreateFeaturesResponse. */ + class BatchCreateFeaturesResponse implements IBatchCreateFeaturesResponse { /** - * Constructs a new DeleteFeaturestoreRequest. + * Constructs a new BatchCreateFeaturesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest); - - /** DeleteFeaturestoreRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse); - /** DeleteFeaturestoreRequest force. */ - public force: boolean; + /** BatchCreateFeaturesResponse features. */ + public features: google.cloud.aiplatform.v1beta1.IFeature[]; /** - * Creates a new DeleteFeaturestoreRequest instance using the specified properties. + * Creates a new BatchCreateFeaturesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteFeaturestoreRequest instance + * @returns BatchCreateFeaturesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; /** - * Encodes the specified DeleteFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.verify|verify} messages. - * @param message DeleteFeaturestoreRequest message or plain object to encode + * Encodes the specified BatchCreateFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.verify|verify} messages. + * @param message BatchCreateFeaturesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.verify|verify} messages. - * @param message DeleteFeaturestoreRequest message or plain object to encode + * Encodes the specified BatchCreateFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.verify|verify} messages. + * @param message BatchCreateFeaturesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer. + * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteFeaturestoreRequest + * @returns BatchCreateFeaturesResponse * @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.DeleteFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; /** - * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteFeaturestoreRequest + * @returns BatchCreateFeaturesResponse * @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.DeleteFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; /** - * Verifies a DeleteFeaturestoreRequest message. + * Verifies a BatchCreateFeaturesResponse 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 DeleteFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateFeaturesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteFeaturestoreRequest + * @returns BatchCreateFeaturesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; /** - * Creates a plain object from a DeleteFeaturestoreRequest message. Also converts values to other types if specified. - * @param message DeleteFeaturestoreRequest + * Creates a plain object from a BatchCreateFeaturesResponse message. Also converts values to other types if specified. + * @param message BatchCreateFeaturesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteFeaturestoreRequest to JSON. + * Converts this BatchCreateFeaturesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteFeaturestoreRequest + * Gets the default type url for BatchCreateFeaturesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ImportFeatureValuesRequest. */ - interface IImportFeatureValuesRequest { - - /** ImportFeatureValuesRequest avroSource */ - avroSource?: (google.cloud.aiplatform.v1beta1.IAvroSource|null); - - /** ImportFeatureValuesRequest bigquerySource */ - bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - - /** ImportFeatureValuesRequest csvSource */ - csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - - /** ImportFeatureValuesRequest featureTimeField */ - featureTimeField?: (string|null); - - /** ImportFeatureValuesRequest featureTime */ - featureTime?: (google.protobuf.ITimestamp|null); - - /** ImportFeatureValuesRequest entityType */ - entityType?: (string|null); - - /** ImportFeatureValuesRequest entityIdField */ - entityIdField?: (string|null); - - /** ImportFeatureValuesRequest featureSpecs */ - featureSpecs?: (google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec[]|null); - - /** ImportFeatureValuesRequest disableOnlineServing */ - disableOnlineServing?: (boolean|null); - - /** ImportFeatureValuesRequest workerCount */ - workerCount?: (number|null); + /** Properties of a GetFeatureRequest. */ + interface IGetFeatureRequest { - /** ImportFeatureValuesRequest disableIngestionAnalysis */ - disableIngestionAnalysis?: (boolean|null); + /** GetFeatureRequest name */ + name?: (string|null); } - /** Represents an ImportFeatureValuesRequest. */ - class ImportFeatureValuesRequest implements IImportFeatureValuesRequest { + /** Represents a GetFeatureRequest. */ + class GetFeatureRequest implements IGetFeatureRequest { /** - * Constructs a new ImportFeatureValuesRequest. + * Constructs a new GetFeatureRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest); - - /** ImportFeatureValuesRequest avroSource. */ - public avroSource?: (google.cloud.aiplatform.v1beta1.IAvroSource|null); - - /** ImportFeatureValuesRequest bigquerySource. */ - public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - - /** ImportFeatureValuesRequest csvSource. */ - public csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - - /** ImportFeatureValuesRequest featureTimeField. */ - public featureTimeField?: (string|null); - - /** ImportFeatureValuesRequest featureTime. */ - public featureTime?: (google.protobuf.ITimestamp|null); - - /** ImportFeatureValuesRequest entityType. */ - public entityType: string; - - /** ImportFeatureValuesRequest entityIdField. */ - public entityIdField: string; - - /** ImportFeatureValuesRequest featureSpecs. */ - public featureSpecs: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec[]; - - /** ImportFeatureValuesRequest disableOnlineServing. */ - public disableOnlineServing: boolean; - - /** ImportFeatureValuesRequest workerCount. */ - public workerCount: number; - - /** ImportFeatureValuesRequest disableIngestionAnalysis. */ - public disableIngestionAnalysis: boolean; - - /** ImportFeatureValuesRequest source. */ - public source?: ("avroSource"|"bigquerySource"|"csvSource"); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureRequest); - /** ImportFeatureValuesRequest featureTimeSource. */ - public featureTimeSource?: ("featureTimeField"|"featureTime"); + /** GetFeatureRequest name. */ + public name: string; /** - * Creates a new ImportFeatureValuesRequest instance using the specified properties. + * Creates a new GetFeatureRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFeatureValuesRequest instance + * @returns GetFeatureRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureRequest): google.cloud.aiplatform.v1beta1.GetFeatureRequest; /** - * Encodes the specified ImportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.verify|verify} messages. - * @param message ImportFeatureValuesRequest message or plain object to encode + * Encodes the specified GetFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureRequest.verify|verify} messages. + * @param message GetFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.verify|verify} messages. - * @param message ImportFeatureValuesRequest message or plain object to encode + * Encodes the specified GetFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureRequest.verify|verify} messages. + * @param message GetFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer. + * Decodes a GetFeatureRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportFeatureValuesRequest + * @returns GetFeatureRequest * @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.ImportFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetFeatureRequest; /** - * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetFeatureRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportFeatureValuesRequest + * @returns GetFeatureRequest * @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.ImportFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetFeatureRequest; /** - * Verifies an ImportFeatureValuesRequest message. + * Verifies a GetFeatureRequest 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 ImportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetFeatureRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportFeatureValuesRequest + * @returns GetFeatureRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetFeatureRequest; /** - * Creates a plain object from an ImportFeatureValuesRequest message. Also converts values to other types if specified. - * @param message ImportFeatureValuesRequest + * Creates a plain object from a GetFeatureRequest message. Also converts values to other types if specified. + * @param message GetFeatureRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFeatureValuesRequest to JSON. + * Converts this GetFeatureRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportFeatureValuesRequest + * Gets the default type url for GetFeatureRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ImportFeatureValuesRequest { - - /** Properties of a FeatureSpec. */ - interface IFeatureSpec { - - /** FeatureSpec id */ - id?: (string|null); - - /** FeatureSpec sourceField */ - sourceField?: (string|null); - } - - /** Represents a FeatureSpec. */ - class FeatureSpec implements IFeatureSpec { - - /** - * Constructs a new FeatureSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec); - - /** FeatureSpec id. */ - public id: string; - - /** FeatureSpec sourceField. */ - public sourceField: string; - - /** - * Creates a new FeatureSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; - - /** - * Encodes the specified FeatureSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. - * @param message FeatureSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FeatureSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. - * @param message FeatureSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeatureSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureSpec - * @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.ImportFeatureValuesRequest.FeatureSpec; - - /** - * Decodes a FeatureSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureSpec - * @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.ImportFeatureValuesRequest.FeatureSpec; - - /** - * Verifies a FeatureSpec 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 FeatureSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; - - /** - * Creates a plain object from a FeatureSpec message. Also converts values to other types if specified. - * @param message FeatureSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a ListFeaturesRequest. */ + interface IListFeaturesRequest { - /** - * Converts this FeatureSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListFeaturesRequest parent */ + parent?: (string|null); - /** - * Gets the default type url for FeatureSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** ListFeaturesRequest filter */ + filter?: (string|null); - /** Properties of an ImportFeatureValuesResponse. */ - interface IImportFeatureValuesResponse { + /** ListFeaturesRequest pageSize */ + pageSize?: (number|null); - /** ImportFeatureValuesResponse importedEntityCount */ - importedEntityCount?: (number|Long|string|null); + /** ListFeaturesRequest pageToken */ + pageToken?: (string|null); - /** ImportFeatureValuesResponse importedFeatureValueCount */ - importedFeatureValueCount?: (number|Long|string|null); + /** ListFeaturesRequest orderBy */ + orderBy?: (string|null); - /** ImportFeatureValuesResponse invalidRowCount */ - invalidRowCount?: (number|Long|string|null); + /** ListFeaturesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); - /** ImportFeatureValuesResponse timestampOutsideRetentionRowsCount */ - timestampOutsideRetentionRowsCount?: (number|Long|string|null); + /** ListFeaturesRequest latestStatsCount */ + latestStatsCount?: (number|null); } - /** Represents an ImportFeatureValuesResponse. */ - class ImportFeatureValuesResponse implements IImportFeatureValuesResponse { + /** Represents a ListFeaturesRequest. */ + class ListFeaturesRequest implements IListFeaturesRequest { /** - * Constructs a new ImportFeatureValuesResponse. + * Constructs a new ListFeaturesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesRequest); - /** ImportFeatureValuesResponse importedEntityCount. */ - public importedEntityCount: (number|Long|string); + /** ListFeaturesRequest parent. */ + public parent: string; - /** ImportFeatureValuesResponse importedFeatureValueCount. */ - public importedFeatureValueCount: (number|Long|string); + /** ListFeaturesRequest filter. */ + public filter: string; - /** ImportFeatureValuesResponse invalidRowCount. */ - public invalidRowCount: (number|Long|string); + /** ListFeaturesRequest pageSize. */ + public pageSize: number; - /** ImportFeatureValuesResponse timestampOutsideRetentionRowsCount. */ - public timestampOutsideRetentionRowsCount: (number|Long|string); + /** ListFeaturesRequest pageToken. */ + public pageToken: string; + + /** ListFeaturesRequest orderBy. */ + public orderBy: string; + + /** ListFeaturesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** ListFeaturesRequest latestStatsCount. */ + public latestStatsCount: number; /** - * Creates a new ImportFeatureValuesResponse instance using the specified properties. + * Creates a new ListFeaturesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFeatureValuesResponse instance + * @returns ListFeaturesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesRequest): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; /** - * Encodes the specified ImportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.verify|verify} messages. - * @param message ImportFeatureValuesResponse message or plain object to encode + * Encodes the specified ListFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesRequest.verify|verify} messages. + * @param message ListFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.verify|verify} messages. - * @param message ImportFeatureValuesResponse message or plain object to encode + * Encodes the specified ListFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesRequest.verify|verify} messages. + * @param message ListFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer. + * Decodes a ListFeaturesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportFeatureValuesResponse + * @returns ListFeaturesRequest * @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.ImportFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; /** - * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListFeaturesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportFeatureValuesResponse + * @returns ListFeaturesRequest * @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.ImportFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; /** - * Verifies an ImportFeatureValuesResponse message. + * Verifies a ListFeaturesRequest 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 ImportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeaturesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportFeatureValuesResponse + * @returns ListFeaturesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; /** - * Creates a plain object from an ImportFeatureValuesResponse message. Also converts values to other types if specified. - * @param message ImportFeatureValuesResponse + * Creates a plain object from a ListFeaturesRequest message. Also converts values to other types if specified. + * @param message ListFeaturesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFeatureValuesResponse to JSON. + * Converts this ListFeaturesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ImportFeatureValuesResponse + * Gets the default type url for ListFeaturesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchReadFeatureValuesRequest. */ - interface IBatchReadFeatureValuesRequest { - - /** BatchReadFeatureValuesRequest csvReadInstances */ - csvReadInstances?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - - /** BatchReadFeatureValuesRequest bigqueryReadInstances */ - bigqueryReadInstances?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - - /** BatchReadFeatureValuesRequest featurestore */ - featurestore?: (string|null); - - /** BatchReadFeatureValuesRequest destination */ - destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); - - /** BatchReadFeatureValuesRequest passThroughFields */ - passThroughFields?: (google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField[]|null); - - /** BatchReadFeatureValuesRequest entityTypeSpecs */ - entityTypeSpecs?: (google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]|null); - - /** BatchReadFeatureValuesRequest startTime */ - startTime?: (google.protobuf.ITimestamp|null); - } - - /** Represents a BatchReadFeatureValuesRequest. */ - class BatchReadFeatureValuesRequest implements IBatchReadFeatureValuesRequest { - - /** - * Constructs a new BatchReadFeatureValuesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest); - - /** BatchReadFeatureValuesRequest csvReadInstances. */ - public csvReadInstances?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - - /** BatchReadFeatureValuesRequest bigqueryReadInstances. */ - public bigqueryReadInstances?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + /** Properties of a ListFeaturesResponse. */ + interface IListFeaturesResponse { - /** BatchReadFeatureValuesRequest featurestore. */ - public featurestore: string; + /** ListFeaturesResponse features */ + features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); - /** BatchReadFeatureValuesRequest destination. */ - public destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); + /** ListFeaturesResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** BatchReadFeatureValuesRequest passThroughFields. */ - public passThroughFields: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField[]; + /** Represents a ListFeaturesResponse. */ + class ListFeaturesResponse implements IListFeaturesResponse { - /** BatchReadFeatureValuesRequest entityTypeSpecs. */ - public entityTypeSpecs: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]; + /** + * Constructs a new ListFeaturesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesResponse); - /** BatchReadFeatureValuesRequest startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** ListFeaturesResponse features. */ + public features: google.cloud.aiplatform.v1beta1.IFeature[]; - /** BatchReadFeatureValuesRequest readOption. */ - public readOption?: ("csvReadInstances"|"bigqueryReadInstances"); + /** ListFeaturesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new BatchReadFeatureValuesRequest instance using the specified properties. + * Creates a new ListFeaturesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchReadFeatureValuesRequest instance + * @returns ListFeaturesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesResponse): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; /** - * Encodes the specified BatchReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.verify|verify} messages. - * @param message BatchReadFeatureValuesRequest message or plain object to encode + * Encodes the specified ListFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesResponse.verify|verify} messages. + * @param message ListFeaturesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.verify|verify} messages. - * @param message BatchReadFeatureValuesRequest message or plain object to encode + * Encodes the specified ListFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesResponse.verify|verify} messages. + * @param message ListFeaturesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes a ListFeaturesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchReadFeatureValuesRequest + * @returns ListFeaturesResponse * @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.BatchReadFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; /** - * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFeaturesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchReadFeatureValuesRequest + * @returns ListFeaturesResponse * @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.BatchReadFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; /** - * Verifies a BatchReadFeatureValuesRequest message. + * Verifies a ListFeaturesResponse 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 BatchReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeaturesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchReadFeatureValuesRequest + * @returns ListFeaturesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; /** - * Creates a plain object from a BatchReadFeatureValuesRequest message. Also converts values to other types if specified. - * @param message BatchReadFeatureValuesRequest + * Creates a plain object from a ListFeaturesResponse message. Also converts values to other types if specified. + * @param message ListFeaturesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchReadFeatureValuesRequest to JSON. + * Converts this ListFeaturesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchReadFeatureValuesRequest + * Gets the default type url for ListFeaturesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace BatchReadFeatureValuesRequest { - - /** Properties of a PassThroughField. */ - interface IPassThroughField { - - /** PassThroughField fieldName */ - fieldName?: (string|null); - } - - /** Represents a PassThroughField. */ - class PassThroughField implements IPassThroughField { - - /** - * Constructs a new PassThroughField. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField); - - /** PassThroughField fieldName. */ - public fieldName: string; - - /** - * Creates a new PassThroughField instance using the specified properties. - * @param [properties] Properties to set - * @returns PassThroughField instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; - - /** - * Encodes the specified PassThroughField message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. - * @param message PassThroughField message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PassThroughField message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. - * @param message PassThroughField message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PassThroughField message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PassThroughField - * @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.BatchReadFeatureValuesRequest.PassThroughField; - - /** - * Decodes a PassThroughField message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PassThroughField - * @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.BatchReadFeatureValuesRequest.PassThroughField; - - /** - * Verifies a PassThroughField 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 PassThroughField message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PassThroughField - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; - - /** - * Creates a plain object from a PassThroughField message. Also converts values to other types if specified. - * @param message PassThroughField - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PassThroughField to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for PassThroughField - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an EntityTypeSpec. */ - interface IEntityTypeSpec { - - /** EntityTypeSpec entityTypeId */ - entityTypeId?: (string|null); - - /** EntityTypeSpec featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); - - /** EntityTypeSpec settings */ - settings?: (google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]|null); - } - - /** Represents an EntityTypeSpec. */ - class EntityTypeSpec implements IEntityTypeSpec { - - /** - * Constructs a new EntityTypeSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec); - - /** EntityTypeSpec entityTypeId. */ - public entityTypeId: string; - - /** EntityTypeSpec featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); - - /** EntityTypeSpec settings. */ - public settings: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]; - - /** - * Creates a new EntityTypeSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns EntityTypeSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; - - /** - * Encodes the specified EntityTypeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. - * @param message EntityTypeSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified EntityTypeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. - * @param message EntityTypeSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EntityTypeSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EntityTypeSpec - * @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.BatchReadFeatureValuesRequest.EntityTypeSpec; - - /** - * Decodes an EntityTypeSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EntityTypeSpec - * @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.BatchReadFeatureValuesRequest.EntityTypeSpec; - - /** - * Verifies an EntityTypeSpec 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 EntityTypeSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EntityTypeSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; - - /** - * Creates a plain object from an EntityTypeSpec message. Also converts values to other types if specified. - * @param message EntityTypeSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this EntityTypeSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for EntityTypeSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of an ExportFeatureValuesRequest. */ - interface IExportFeatureValuesRequest { - - /** ExportFeatureValuesRequest snapshotExport */ - snapshotExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null); - - /** ExportFeatureValuesRequest fullExport */ - fullExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null); + /** Properties of a SearchFeaturesRequest. */ + interface ISearchFeaturesRequest { - /** ExportFeatureValuesRequest entityType */ - entityType?: (string|null); + /** SearchFeaturesRequest location */ + location?: (string|null); - /** ExportFeatureValuesRequest destination */ - destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); + /** SearchFeaturesRequest query */ + query?: (string|null); - /** ExportFeatureValuesRequest featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** SearchFeaturesRequest pageSize */ + pageSize?: (number|null); - /** ExportFeatureValuesRequest settings */ - settings?: (google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]|null); + /** SearchFeaturesRequest pageToken */ + pageToken?: (string|null); } - /** Represents an ExportFeatureValuesRequest. */ - class ExportFeatureValuesRequest implements IExportFeatureValuesRequest { + /** Represents a SearchFeaturesRequest. */ + class SearchFeaturesRequest implements ISearchFeaturesRequest { /** - * Constructs a new ExportFeatureValuesRequest. + * Constructs a new SearchFeaturesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest); - - /** ExportFeatureValuesRequest snapshotExport. */ - public snapshotExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null); - - /** ExportFeatureValuesRequest fullExport. */ - public fullExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null); - - /** ExportFeatureValuesRequest entityType. */ - public entityType: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest); - /** ExportFeatureValuesRequest destination. */ - public destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); + /** SearchFeaturesRequest location. */ + public location: string; - /** ExportFeatureValuesRequest featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** SearchFeaturesRequest query. */ + public query: string; - /** ExportFeatureValuesRequest settings. */ - public settings: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]; + /** SearchFeaturesRequest pageSize. */ + public pageSize: number; - /** ExportFeatureValuesRequest mode. */ - public mode?: ("snapshotExport"|"fullExport"); + /** SearchFeaturesRequest pageToken. */ + public pageToken: string; /** - * Creates a new ExportFeatureValuesRequest instance using the specified properties. + * Creates a new SearchFeaturesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportFeatureValuesRequest instance + * @returns SearchFeaturesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; /** - * Encodes the specified ExportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.verify|verify} messages. - * @param message ExportFeatureValuesRequest message or plain object to encode + * Encodes the specified SearchFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. + * @param message SearchFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.verify|verify} messages. - * @param message ExportFeatureValuesRequest message or plain object to encode + * Encodes the specified SearchFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. + * @param message SearchFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer. + * Decodes a SearchFeaturesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportFeatureValuesRequest + * @returns SearchFeaturesRequest * @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.ExportFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; /** - * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchFeaturesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportFeatureValuesRequest + * @returns SearchFeaturesRequest * @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.ExportFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; /** - * Verifies an ExportFeatureValuesRequest message. + * Verifies a SearchFeaturesRequest 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 ExportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchFeaturesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportFeatureValuesRequest + * @returns SearchFeaturesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; /** - * Creates a plain object from an ExportFeatureValuesRequest message. Also converts values to other types if specified. - * @param message ExportFeatureValuesRequest + * Creates a plain object from a SearchFeaturesRequest message. Also converts values to other types if specified. + * @param message SearchFeaturesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportFeatureValuesRequest to JSON. + * Converts this SearchFeaturesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportFeatureValuesRequest + * Gets the default type url for SearchFeaturesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ExportFeatureValuesRequest { - - /** Properties of a SnapshotExport. */ - interface ISnapshotExport { - - /** SnapshotExport snapshotTime */ - snapshotTime?: (google.protobuf.ITimestamp|null); - - /** SnapshotExport startTime */ - startTime?: (google.protobuf.ITimestamp|null); - } - - /** Represents a SnapshotExport. */ - class SnapshotExport implements ISnapshotExport { - - /** - * Constructs a new SnapshotExport. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport); - - /** SnapshotExport snapshotTime. */ - public snapshotTime?: (google.protobuf.ITimestamp|null); - - /** SnapshotExport startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new SnapshotExport instance using the specified properties. - * @param [properties] Properties to set - * @returns SnapshotExport instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; - - /** - * Encodes the specified SnapshotExport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. - * @param message SnapshotExport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SnapshotExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. - * @param message SnapshotExport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SnapshotExport message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SnapshotExport - * @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.ExportFeatureValuesRequest.SnapshotExport; - - /** - * Decodes a SnapshotExport message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SnapshotExport - * @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.ExportFeatureValuesRequest.SnapshotExport; - - /** - * Verifies a SnapshotExport 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 SnapshotExport message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SnapshotExport - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; - - /** - * Creates a plain object from a SnapshotExport message. Also converts values to other types if specified. - * @param message SnapshotExport - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SnapshotExport to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for SnapshotExport - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a FullExport. */ - interface IFullExport { + /** Properties of a SearchFeaturesResponse. */ + interface ISearchFeaturesResponse { - /** FullExport startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** SearchFeaturesResponse features */ + features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); - /** FullExport endTime */ - endTime?: (google.protobuf.ITimestamp|null); - } + /** SearchFeaturesResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Represents a FullExport. */ - class FullExport implements IFullExport { + /** Represents a SearchFeaturesResponse. */ + class SearchFeaturesResponse implements ISearchFeaturesResponse { - /** - * Constructs a new FullExport. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport); + /** + * Constructs a new SearchFeaturesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse); - /** FullExport startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** SearchFeaturesResponse features. */ + public features: google.cloud.aiplatform.v1beta1.IFeature[]; - /** FullExport endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** SearchFeaturesResponse nextPageToken. */ + public nextPageToken: string; - /** - * Creates a new FullExport instance using the specified properties. - * @param [properties] Properties to set - * @returns FullExport instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; + /** + * Creates a new SearchFeaturesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchFeaturesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; - /** - * Encodes the specified FullExport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. - * @param message FullExport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified SearchFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.verify|verify} messages. + * @param message SearchFeaturesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified FullExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. - * @param message FullExport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified SearchFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.verify|verify} messages. + * @param message SearchFeaturesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a FullExport message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FullExport - * @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.ExportFeatureValuesRequest.FullExport; + /** + * Decodes a SearchFeaturesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SearchFeaturesResponse + * @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.SearchFeaturesResponse; - /** - * Decodes a FullExport message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FullExport - * @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.ExportFeatureValuesRequest.FullExport; + /** + * Decodes a SearchFeaturesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SearchFeaturesResponse + * @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.SearchFeaturesResponse; - /** - * Verifies a FullExport 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); + /** + * Verifies a SearchFeaturesResponse 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 FullExport message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FullExport - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; + /** + * Creates a SearchFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SearchFeaturesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; - /** - * Creates a plain object from a FullExport message. Also converts values to other types if specified. - * @param message FullExport - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a SearchFeaturesResponse message. Also converts values to other types if specified. + * @param message SearchFeaturesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this FullExport to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this SearchFeaturesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for FullExport - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for SearchFeaturesResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DestinationFeatureSetting. */ - interface IDestinationFeatureSetting { + /** Properties of an UpdateFeatureRequest. */ + interface IUpdateFeatureRequest { - /** DestinationFeatureSetting featureId */ - featureId?: (string|null); + /** UpdateFeatureRequest feature */ + feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); - /** DestinationFeatureSetting destinationField */ - destinationField?: (string|null); + /** UpdateFeatureRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a DestinationFeatureSetting. */ - class DestinationFeatureSetting implements IDestinationFeatureSetting { + /** Represents an UpdateFeatureRequest. */ + class UpdateFeatureRequest implements IUpdateFeatureRequest { /** - * Constructs a new DestinationFeatureSetting. + * Constructs a new UpdateFeatureRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest); - /** DestinationFeatureSetting featureId. */ - public featureId: string; + /** UpdateFeatureRequest feature. */ + public feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); - /** DestinationFeatureSetting destinationField. */ - public destinationField: string; + /** UpdateFeatureRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new DestinationFeatureSetting instance using the specified properties. + * Creates a new UpdateFeatureRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DestinationFeatureSetting instance + * @returns UpdateFeatureRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; /** - * Encodes the specified DestinationFeatureSetting message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify|verify} messages. - * @param message DestinationFeatureSetting message or plain object to encode + * Encodes the specified UpdateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. + * @param message UpdateFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DestinationFeatureSetting message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify|verify} messages. - * @param message DestinationFeatureSetting message or plain object to encode + * Encodes the specified UpdateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. + * @param message UpdateFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DestinationFeatureSetting message from the specified reader or buffer. + * Decodes an UpdateFeatureRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DestinationFeatureSetting + * @returns UpdateFeatureRequest * @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.DestinationFeatureSetting; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; /** - * Decodes a DestinationFeatureSetting message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeatureRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DestinationFeatureSetting + * @returns UpdateFeatureRequest * @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.DestinationFeatureSetting; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; /** - * Verifies a DestinationFeatureSetting message. + * Verifies an UpdateFeatureRequest 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 DestinationFeatureSetting message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeatureRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DestinationFeatureSetting + * @returns UpdateFeatureRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; /** - * Creates a plain object from a DestinationFeatureSetting message. Also converts values to other types if specified. - * @param message DestinationFeatureSetting + * Creates a plain object from an UpdateFeatureRequest message. Also converts values to other types if specified. + * @param message UpdateFeatureRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DestinationFeatureSetting, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DestinationFeatureSetting to JSON. + * Converts this UpdateFeatureRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DestinationFeatureSetting + * Gets the default type url for UpdateFeatureRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a FeatureValueDestination. */ - interface IFeatureValueDestination { - - /** FeatureValueDestination bigqueryDestination */ - bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - - /** FeatureValueDestination tfrecordDestination */ - tfrecordDestination?: (google.cloud.aiplatform.v1beta1.ITFRecordDestination|null); + /** Properties of a DeleteFeatureRequest. */ + interface IDeleteFeatureRequest { - /** FeatureValueDestination csvDestination */ - csvDestination?: (google.cloud.aiplatform.v1beta1.ICsvDestination|null); + /** DeleteFeatureRequest name */ + name?: (string|null); } - /** Represents a FeatureValueDestination. */ - class FeatureValueDestination implements IFeatureValueDestination { + /** Represents a DeleteFeatureRequest. */ + class DeleteFeatureRequest implements IDeleteFeatureRequest { /** - * Constructs a new FeatureValueDestination. + * Constructs a new DeleteFeatureRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueDestination); - - /** FeatureValueDestination bigqueryDestination. */ - public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - - /** FeatureValueDestination tfrecordDestination. */ - public tfrecordDestination?: (google.cloud.aiplatform.v1beta1.ITFRecordDestination|null); - - /** FeatureValueDestination csvDestination. */ - public csvDestination?: (google.cloud.aiplatform.v1beta1.ICsvDestination|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest); - /** FeatureValueDestination destination. */ - public destination?: ("bigqueryDestination"|"tfrecordDestination"|"csvDestination"); + /** DeleteFeatureRequest name. */ + public name: string; /** - * Creates a new FeatureValueDestination instance using the specified properties. + * Creates a new DeleteFeatureRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureValueDestination instance + * @returns DeleteFeatureRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueDestination): google.cloud.aiplatform.v1beta1.FeatureValueDestination; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; /** - * Encodes the specified FeatureValueDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify|verify} messages. - * @param message FeatureValueDestination message or plain object to encode + * Encodes the specified DeleteFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. + * @param message DeleteFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureValueDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify|verify} messages. - * @param message FeatureValueDestination message or plain object to encode + * Encodes the specified DeleteFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. + * @param message DeleteFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureValueDestination message from the specified reader or buffer. + * Decodes a DeleteFeatureRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureValueDestination + * @returns DeleteFeatureRequest * @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.FeatureValueDestination; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; /** - * Decodes a FeatureValueDestination message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeatureRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureValueDestination + * @returns DeleteFeatureRequest * @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.FeatureValueDestination; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; /** - * Verifies a FeatureValueDestination message. + * Verifies a DeleteFeatureRequest 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 FeatureValueDestination message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeatureRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureValueDestination + * @returns DeleteFeatureRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValueDestination; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; /** - * Creates a plain object from a FeatureValueDestination message. Also converts values to other types if specified. - * @param message FeatureValueDestination + * Creates a plain object from a DeleteFeatureRequest message. Also converts values to other types if specified. + * @param message DeleteFeatureRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValueDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureValueDestination to JSON. + * Converts this DeleteFeatureRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for FeatureValueDestination + * Gets the default type url for DeleteFeatureRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an ExportFeatureValuesResponse. */ - interface IExportFeatureValuesResponse { + /** Properties of a CreateFeaturestoreOperationMetadata. */ + interface ICreateFeaturestoreOperationMetadata { + + /** CreateFeaturestoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents an ExportFeatureValuesResponse. */ - class ExportFeatureValuesResponse implements IExportFeatureValuesResponse { + /** Represents a CreateFeaturestoreOperationMetadata. */ + class CreateFeaturestoreOperationMetadata implements ICreateFeaturestoreOperationMetadata { /** - * Constructs a new ExportFeatureValuesResponse. + * Constructs a new CreateFeaturestoreOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata); + + /** CreateFeaturestoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ExportFeatureValuesResponse instance using the specified properties. + * Creates a new CreateFeaturestoreOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ExportFeatureValuesResponse instance + * @returns CreateFeaturestoreOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; /** - * Encodes the specified ExportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. - * @param message ExportFeatureValuesResponse message or plain object to encode + * Encodes the specified CreateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.verify|verify} messages. + * @param message CreateFeaturestoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. - * @param message ExportFeatureValuesResponse message or plain object to encode + * Encodes the specified CreateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.verify|verify} messages. + * @param message CreateFeaturestoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer. + * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportFeatureValuesResponse + * @returns CreateFeaturestoreOperationMetadata * @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.ExportFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; /** - * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportFeatureValuesResponse + * @returns CreateFeaturestoreOperationMetadata * @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.ExportFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; /** - * Verifies an ExportFeatureValuesResponse message. + * Verifies a CreateFeaturestoreOperationMetadata 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 ExportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportFeatureValuesResponse + * @returns CreateFeaturestoreOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; /** - * Creates a plain object from an ExportFeatureValuesResponse message. Also converts values to other types if specified. - * @param message ExportFeatureValuesResponse + * Creates a plain object from a CreateFeaturestoreOperationMetadata message. Also converts values to other types if specified. + * @param message CreateFeaturestoreOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportFeatureValuesResponse to JSON. + * Converts this CreateFeaturestoreOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ExportFeatureValuesResponse + * Gets the default type url for CreateFeaturestoreOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchReadFeatureValuesResponse. */ - interface IBatchReadFeatureValuesResponse { + /** Properties of an UpdateFeaturestoreOperationMetadata. */ + interface IUpdateFeaturestoreOperationMetadata { + + /** UpdateFeaturestoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a BatchReadFeatureValuesResponse. */ - class BatchReadFeatureValuesResponse implements IBatchReadFeatureValuesResponse { + /** Represents an UpdateFeaturestoreOperationMetadata. */ + class UpdateFeaturestoreOperationMetadata implements IUpdateFeaturestoreOperationMetadata { /** - * Constructs a new BatchReadFeatureValuesResponse. + * Constructs a new UpdateFeaturestoreOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata); + + /** UpdateFeaturestoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new BatchReadFeatureValuesResponse instance using the specified properties. + * Creates a new UpdateFeaturestoreOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns BatchReadFeatureValuesResponse instance + * @returns UpdateFeaturestoreOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; /** - * Encodes the specified BatchReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. - * @param message BatchReadFeatureValuesResponse message or plain object to encode + * Encodes the specified UpdateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. + * @param message UpdateFeaturestoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. - * @param message BatchReadFeatureValuesResponse message or plain object to encode + * Encodes the specified UpdateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. + * @param message UpdateFeaturestoreOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer. + * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchReadFeatureValuesResponse + * @returns UpdateFeaturestoreOperationMetadata * @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.BatchReadFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; /** - * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchReadFeatureValuesResponse + * @returns UpdateFeaturestoreOperationMetadata * @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.BatchReadFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; /** - * Verifies a BatchReadFeatureValuesResponse message. + * Verifies an UpdateFeaturestoreOperationMetadata 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 BatchReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchReadFeatureValuesResponse + * @returns UpdateFeaturestoreOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; /** - * Creates a plain object from a BatchReadFeatureValuesResponse message. Also converts values to other types if specified. - * @param message BatchReadFeatureValuesResponse + * Creates a plain object from an UpdateFeaturestoreOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateFeaturestoreOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchReadFeatureValuesResponse to JSON. + * Converts this UpdateFeaturestoreOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchReadFeatureValuesResponse + * Gets the default type url for UpdateFeaturestoreOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateEntityTypeRequest. */ - interface ICreateEntityTypeRequest { + /** Properties of an ImportFeatureValuesOperationMetadata. */ + interface IImportFeatureValuesOperationMetadata { - /** CreateEntityTypeRequest parent */ - parent?: (string|null); + /** ImportFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** CreateEntityTypeRequest entityType */ - entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + /** ImportFeatureValuesOperationMetadata importedEntityCount */ + importedEntityCount?: (number|Long|string|null); - /** CreateEntityTypeRequest entityTypeId */ - entityTypeId?: (string|null); + /** ImportFeatureValuesOperationMetadata importedFeatureValueCount */ + importedFeatureValueCount?: (number|Long|string|null); + + /** ImportFeatureValuesOperationMetadata sourceUris */ + sourceUris?: (string[]|null); + + /** ImportFeatureValuesOperationMetadata invalidRowCount */ + invalidRowCount?: (number|Long|string|null); + + /** ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount */ + timestampOutsideRetentionRowsCount?: (number|Long|string|null); } - /** Represents a CreateEntityTypeRequest. */ - class CreateEntityTypeRequest implements ICreateEntityTypeRequest { + /** Represents an ImportFeatureValuesOperationMetadata. */ + class ImportFeatureValuesOperationMetadata implements IImportFeatureValuesOperationMetadata { /** - * Constructs a new CreateEntityTypeRequest. + * Constructs a new ImportFeatureValuesOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata); - /** CreateEntityTypeRequest parent. */ - public parent: string; + /** ImportFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** CreateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + /** ImportFeatureValuesOperationMetadata importedEntityCount. */ + public importedEntityCount: (number|Long|string); - /** CreateEntityTypeRequest entityTypeId. */ - public entityTypeId: string; + /** ImportFeatureValuesOperationMetadata importedFeatureValueCount. */ + public importedFeatureValueCount: (number|Long|string); + + /** ImportFeatureValuesOperationMetadata sourceUris. */ + public sourceUris: string[]; + + /** ImportFeatureValuesOperationMetadata invalidRowCount. */ + public invalidRowCount: (number|Long|string); + + /** ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount. */ + public timestampOutsideRetentionRowsCount: (number|Long|string); /** - * Creates a new CreateEntityTypeRequest instance using the specified properties. + * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEntityTypeRequest instance + * @returns ImportFeatureValuesOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; /** - * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. - * @param message CreateEntityTypeRequest message or plain object to encode + * Encodes the specified ImportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.verify|verify} messages. + * @param message ImportFeatureValuesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. - * @param message CreateEntityTypeRequest message or plain object to encode + * Encodes the specified ImportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.verify|verify} messages. + * @param message ImportFeatureValuesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEntityTypeRequest + * @returns ImportFeatureValuesOperationMetadata * @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.CreateEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEntityTypeRequest + * @returns ImportFeatureValuesOperationMetadata * @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.CreateEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; /** - * Verifies a CreateEntityTypeRequest message. + * Verifies an ImportFeatureValuesOperationMetadata 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 CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEntityTypeRequest + * @returns ImportFeatureValuesOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; /** - * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. - * @param message CreateEntityTypeRequest + * Creates a plain object from an ImportFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @param message ImportFeatureValuesOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEntityTypeRequest to JSON. + * Converts this ImportFeatureValuesOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateEntityTypeRequest + * Gets the default type url for ImportFeatureValuesOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetEntityTypeRequest. */ - interface IGetEntityTypeRequest { + /** Properties of an ExportFeatureValuesOperationMetadata. */ + interface IExportFeatureValuesOperationMetadata { - /** GetEntityTypeRequest name */ - name?: (string|null); + /** ExportFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a GetEntityTypeRequest. */ - class GetEntityTypeRequest implements IGetEntityTypeRequest { + /** Represents an ExportFeatureValuesOperationMetadata. */ + class ExportFeatureValuesOperationMetadata implements IExportFeatureValuesOperationMetadata { /** - * Constructs a new GetEntityTypeRequest. + * Constructs a new ExportFeatureValuesOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata); - /** GetEntityTypeRequest name. */ - public name: string; + /** ExportFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new GetEntityTypeRequest instance using the specified properties. + * Creates a new ExportFeatureValuesOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GetEntityTypeRequest instance + * @returns ExportFeatureValuesOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; /** - * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. - * @param message GetEntityTypeRequest message or plain object to encode + * Encodes the specified ExportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.verify|verify} messages. + * @param message ExportFeatureValuesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. - * @param message GetEntityTypeRequest message or plain object to encode + * Encodes the specified ExportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.verify|verify} messages. + * @param message ExportFeatureValuesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer. + * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetEntityTypeRequest + * @returns ExportFeatureValuesOperationMetadata * @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.GetEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetEntityTypeRequest + * @returns ExportFeatureValuesOperationMetadata * @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.GetEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; /** - * Verifies a GetEntityTypeRequest message. + * Verifies an ExportFeatureValuesOperationMetadata 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 GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetEntityTypeRequest + * @returns ExportFeatureValuesOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; /** - * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. - * @param message GetEntityTypeRequest + * Creates a plain object from an ExportFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @param message ExportFeatureValuesOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEntityTypeRequest to JSON. + * Converts this ExportFeatureValuesOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetEntityTypeRequest + * Gets the default type url for ExportFeatureValuesOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListEntityTypesRequest. */ - interface IListEntityTypesRequest { - - /** ListEntityTypesRequest parent */ - parent?: (string|null); - - /** ListEntityTypesRequest filter */ - filter?: (string|null); - - /** ListEntityTypesRequest pageSize */ - pageSize?: (number|null); - - /** ListEntityTypesRequest pageToken */ - pageToken?: (string|null); - - /** ListEntityTypesRequest orderBy */ - orderBy?: (string|null); + /** Properties of a BatchReadFeatureValuesOperationMetadata. */ + interface IBatchReadFeatureValuesOperationMetadata { - /** ListEntityTypesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** BatchReadFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a ListEntityTypesRequest. */ - class ListEntityTypesRequest implements IListEntityTypesRequest { + /** Represents a BatchReadFeatureValuesOperationMetadata. */ + class BatchReadFeatureValuesOperationMetadata implements IBatchReadFeatureValuesOperationMetadata { /** - * Constructs a new ListEntityTypesRequest. + * Constructs a new BatchReadFeatureValuesOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest); - - /** ListEntityTypesRequest parent. */ - public parent: string; - - /** ListEntityTypesRequest filter. */ - public filter: string; - - /** ListEntityTypesRequest pageSize. */ - public pageSize: number; - - /** ListEntityTypesRequest pageToken. */ - public pageToken: string; - - /** ListEntityTypesRequest orderBy. */ - public orderBy: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata); - /** ListEntityTypesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** BatchReadFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ListEntityTypesRequest instance using the specified properties. + * Creates a new BatchReadFeatureValuesOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListEntityTypesRequest instance + * @returns BatchReadFeatureValuesOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; /** - * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. - * @param message ListEntityTypesRequest message or plain object to encode + * Encodes the specified BatchReadFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. + * @param message BatchReadFeatureValuesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. - * @param message ListEntityTypesRequest message or plain object to encode + * Encodes the specified BatchReadFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. + * @param message BatchReadFeatureValuesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer. + * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEntityTypesRequest + * @returns BatchReadFeatureValuesOperationMetadata * @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.ListEntityTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEntityTypesRequest + * @returns BatchReadFeatureValuesOperationMetadata * @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.ListEntityTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; /** - * Verifies a ListEntityTypesRequest message. + * Verifies a BatchReadFeatureValuesOperationMetadata 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 ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchReadFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEntityTypesRequest + * @returns BatchReadFeatureValuesOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; /** - * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. - * @param message ListEntityTypesRequest + * Creates a plain object from a BatchReadFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @param message BatchReadFeatureValuesOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEntityTypesRequest to JSON. + * Converts this BatchReadFeatureValuesOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListEntityTypesRequest + * Gets the default type url for BatchReadFeatureValuesOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListEntityTypesResponse. */ - interface IListEntityTypesResponse { - - /** ListEntityTypesResponse entityTypes */ - entityTypes?: (google.cloud.aiplatform.v1beta1.IEntityType[]|null); + /** Properties of a DeleteFeatureValuesOperationMetadata. */ + interface IDeleteFeatureValuesOperationMetadata { - /** ListEntityTypesResponse nextPageToken */ - nextPageToken?: (string|null); + /** DeleteFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a ListEntityTypesResponse. */ - class ListEntityTypesResponse implements IListEntityTypesResponse { + /** Represents a DeleteFeatureValuesOperationMetadata. */ + class DeleteFeatureValuesOperationMetadata implements IDeleteFeatureValuesOperationMetadata { /** - * Constructs a new ListEntityTypesResponse. + * Constructs a new DeleteFeatureValuesOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse); - - /** ListEntityTypesResponse entityTypes. */ - public entityTypes: google.cloud.aiplatform.v1beta1.IEntityType[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesOperationMetadata); - /** ListEntityTypesResponse nextPageToken. */ - public nextPageToken: string; + /** DeleteFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ListEntityTypesResponse instance using the specified properties. + * Creates a new DeleteFeatureValuesOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListEntityTypesResponse instance + * @returns DeleteFeatureValuesOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata; /** - * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. - * @param message ListEntityTypesResponse message or plain object to encode + * Encodes the specified DeleteFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. - * @param message ListEntityTypesResponse message or plain object to encode + * Encodes the specified DeleteFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer. + * 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 ListEntityTypesResponse + * @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.v1beta1.ListEntityTypesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEntityTypesResponse + * @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.v1beta1.ListEntityTypesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata; /** - * Verifies a ListEntityTypesResponse message. + * 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 ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEntityTypesResponse + * @returns DeleteFeatureValuesOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata; /** - * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. - * @param message ListEntityTypesResponse + * 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.v1beta1.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEntityTypesResponse to JSON. + * Converts this DeleteFeatureValuesOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListEntityTypesResponse + * 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 an UpdateEntityTypeRequest. */ - interface IUpdateEntityTypeRequest { - - /** UpdateEntityTypeRequest entityType */ - entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + /** Properties of a CreateEntityTypeOperationMetadata. */ + interface ICreateEntityTypeOperationMetadata { - /** UpdateEntityTypeRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** CreateEntityTypeOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents an UpdateEntityTypeRequest. */ - class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { + /** Represents a CreateEntityTypeOperationMetadata. */ + class CreateEntityTypeOperationMetadata implements ICreateEntityTypeOperationMetadata { /** - * Constructs a new UpdateEntityTypeRequest. + * Constructs a new CreateEntityTypeOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest); - - /** UpdateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata); - /** UpdateEntityTypeRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** CreateEntityTypeOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * Creates a new CreateEntityTypeOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateEntityTypeRequest instance + * @returns CreateEntityTypeOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; /** - * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. - * @param message UpdateEntityTypeRequest message or plain object to encode + * Encodes the specified CreateEntityTypeOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.verify|verify} messages. + * @param message CreateEntityTypeOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. - * @param message UpdateEntityTypeRequest message or plain object to encode + * Encodes the specified CreateEntityTypeOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.verify|verify} messages. + * @param message CreateEntityTypeOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. + * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateEntityTypeRequest + * @returns CreateEntityTypeOperationMetadata * @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.UpdateEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateEntityTypeRequest + * @returns CreateEntityTypeOperationMetadata * @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.UpdateEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; /** - * Verifies an UpdateEntityTypeRequest message. + * Verifies a CreateEntityTypeOperationMetadata 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 UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEntityTypeOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateEntityTypeRequest + * @returns CreateEntityTypeOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; /** - * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. - * @param message UpdateEntityTypeRequest + * Creates a plain object from a CreateEntityTypeOperationMetadata message. Also converts values to other types if specified. + * @param message CreateEntityTypeOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateEntityTypeRequest to JSON. + * Converts this CreateEntityTypeOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateEntityTypeRequest + * Gets the default type url for CreateEntityTypeOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteEntityTypeRequest. */ - interface IDeleteEntityTypeRequest { - - /** DeleteEntityTypeRequest name */ - name?: (string|null); + /** Properties of a CreateFeatureOperationMetadata. */ + interface ICreateFeatureOperationMetadata { - /** DeleteEntityTypeRequest force */ - force?: (boolean|null); + /** CreateFeatureOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a DeleteEntityTypeRequest. */ - class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { + /** Represents a CreateFeatureOperationMetadata. */ + class CreateFeatureOperationMetadata implements ICreateFeatureOperationMetadata { /** - * Constructs a new DeleteEntityTypeRequest. + * Constructs a new CreateFeatureOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest); - - /** DeleteEntityTypeRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata); - /** DeleteEntityTypeRequest force. */ - public force: boolean; + /** CreateFeatureOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new DeleteEntityTypeRequest instance using the specified properties. + * Creates a new CreateFeatureOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteEntityTypeRequest instance + * @returns CreateFeatureOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; /** - * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. - * @param message DeleteEntityTypeRequest message or plain object to encode + * Encodes the specified CreateFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.verify|verify} messages. + * @param message CreateFeatureOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. - * @param message DeleteEntityTypeRequest message or plain object to encode + * Encodes the specified CreateFeatureOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.verify|verify} messages. + * @param message CreateFeatureOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. + * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteEntityTypeRequest + * @returns CreateFeatureOperationMetadata * @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.DeleteEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteEntityTypeRequest + * @returns CreateFeatureOperationMetadata * @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.DeleteEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; /** - * Verifies a DeleteEntityTypeRequest message. + * Verifies a CreateFeatureOperationMetadata 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 DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteEntityTypeRequest + * @returns CreateFeatureOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; /** - * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. - * @param message DeleteEntityTypeRequest + * Creates a plain object from a CreateFeatureOperationMetadata message. Also converts values to other types if specified. + * @param message CreateFeatureOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteEntityTypeRequest to JSON. + * Converts this CreateFeatureOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteEntityTypeRequest + * Gets the default type url for CreateFeatureOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateFeatureRequest. */ - interface ICreateFeatureRequest { - - /** CreateFeatureRequest parent */ - parent?: (string|null); - - /** CreateFeatureRequest feature */ - feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + /** Properties of a BatchCreateFeaturesOperationMetadata. */ + interface IBatchCreateFeaturesOperationMetadata { - /** CreateFeatureRequest featureId */ - featureId?: (string|null); + /** BatchCreateFeaturesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a CreateFeatureRequest. */ - class CreateFeatureRequest implements ICreateFeatureRequest { + /** Represents a BatchCreateFeaturesOperationMetadata. */ + class BatchCreateFeaturesOperationMetadata implements IBatchCreateFeaturesOperationMetadata { /** - * Constructs a new CreateFeatureRequest. + * Constructs a new BatchCreateFeaturesOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest); - - /** CreateFeatureRequest parent. */ - public parent: string; - - /** CreateFeatureRequest feature. */ - public feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata); - /** CreateFeatureRequest featureId. */ - public featureId: string; + /** BatchCreateFeaturesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new CreateFeatureRequest instance using the specified properties. + * Creates a new BatchCreateFeaturesOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns CreateFeatureRequest instance + * @returns BatchCreateFeaturesOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; /** - * Encodes the specified CreateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify|verify} messages. - * @param message CreateFeatureRequest message or plain object to encode + * Encodes the specified BatchCreateFeaturesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. + * @param message BatchCreateFeaturesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify|verify} messages. - * @param message CreateFeatureRequest message or plain object to encode + * Encodes the specified BatchCreateFeaturesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. + * @param message BatchCreateFeaturesOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFeatureRequest message from the specified reader or buffer. + * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateFeatureRequest + * @returns BatchCreateFeaturesOperationMetadata * @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.CreateFeatureRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; /** - * Decodes a CreateFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateFeatureRequest + * @returns BatchCreateFeaturesOperationMetadata * @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.CreateFeatureRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; /** - * Verifies a CreateFeatureRequest message. + * Verifies a BatchCreateFeaturesOperationMetadata 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 CreateFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateFeaturesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateFeatureRequest + * @returns BatchCreateFeaturesOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; /** - * Creates a plain object from a CreateFeatureRequest message. Also converts values to other types if specified. - * @param message CreateFeatureRequest + * Creates a plain object from a BatchCreateFeaturesOperationMetadata message. Also converts values to other types if specified. + * @param message BatchCreateFeaturesOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFeatureRequest to JSON. + * Converts this BatchCreateFeaturesOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateFeatureRequest + * Gets the default type url for BatchCreateFeaturesOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a BatchCreateFeaturesRequest. */ - interface IBatchCreateFeaturesRequest { + /** Properties of a DeleteFeatureValuesRequest. */ + interface IDeleteFeatureValuesRequest { - /** BatchCreateFeaturesRequest parent */ - parent?: (string|null); + /** DeleteFeatureValuesRequest selectEntity */ + selectEntity?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity|null); - /** BatchCreateFeaturesRequest requests */ - requests?: (google.cloud.aiplatform.v1beta1.ICreateFeatureRequest[]|null); + /** DeleteFeatureValuesRequest selectTimeRangeAndFeature */ + selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null); + + /** DeleteFeatureValuesRequest entityType */ + entityType?: (string|null); } - /** Represents a BatchCreateFeaturesRequest. */ - class BatchCreateFeaturesRequest implements IBatchCreateFeaturesRequest { + /** Represents a DeleteFeatureValuesRequest. */ + class DeleteFeatureValuesRequest implements IDeleteFeatureValuesRequest { /** - * Constructs a new BatchCreateFeaturesRequest. + * Constructs a new DeleteFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest); - /** BatchCreateFeaturesRequest parent. */ - public parent: string; + /** DeleteFeatureValuesRequest selectEntity. */ + public selectEntity?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity|null); - /** BatchCreateFeaturesRequest requests. */ - public requests: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest[]; + /** DeleteFeatureValuesRequest selectTimeRangeAndFeature. */ + public selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null); + + /** DeleteFeatureValuesRequest entityType. */ + public entityType: string; + + /** DeleteFeatureValuesRequest DeleteOption. */ + public DeleteOption?: ("selectEntity"|"selectTimeRangeAndFeature"); /** - * Creates a new BatchCreateFeaturesRequest instance using the specified properties. + * Creates a new DeleteFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateFeaturesRequest instance + * @returns DeleteFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest; /** - * Encodes the specified BatchCreateFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. - * @param message BatchCreateFeaturesRequest message or plain object to encode + * Encodes the specified DeleteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. - * @param message BatchCreateFeaturesRequest message or plain object to encode + * Encodes the specified DeleteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer. + * 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 BatchCreateFeaturesRequest + * @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.v1beta1.BatchCreateFeaturesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest; /** - * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateFeaturesRequest + * @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.v1beta1.BatchCreateFeaturesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest; /** - * Verifies a BatchCreateFeaturesRequest message. + * 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 BatchCreateFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateFeaturesRequest + * @returns DeleteFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest; /** - * Creates a plain object from a BatchCreateFeaturesRequest message. Also converts values to other types if specified. - * @param message BatchCreateFeaturesRequest + * 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.v1beta1.BatchCreateFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateFeaturesRequest to JSON. + * Converts this DeleteFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchCreateFeaturesRequest + * 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; } - /** Properties of a BatchCreateFeaturesResponse. */ - interface IBatchCreateFeaturesResponse { + namespace DeleteFeatureValuesRequest { - /** BatchCreateFeaturesResponse features */ - features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); + /** Properties of a SelectEntity. */ + interface ISelectEntity { + + /** SelectEntity entityIdSelector */ + entityIdSelector?: (google.cloud.aiplatform.v1beta1.IEntityIdSelector|null); + } + + /** Represents a SelectEntity. */ + class SelectEntity implements ISelectEntity { + + /** + * Constructs a new SelectEntity. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity); + + /** SelectEntity entityIdSelector. */ + public entityIdSelector?: (google.cloud.aiplatform.v1beta1.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.v1beta1.DeleteFeatureValuesRequest.ISelectEntity): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity; + + /** + * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.DeleteFeatureValuesRequest.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature); + + /** SelectTimeRangeAndFeature timeRange. */ + public timeRange?: (google.type.IInterval|null); + + /** SelectTimeRangeAndFeature featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.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.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + + /** + * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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; + } } - /** Represents a BatchCreateFeaturesResponse. */ - class BatchCreateFeaturesResponse implements IBatchCreateFeaturesResponse { + /** Properties of a DeleteFeatureValuesResponse. */ + interface IDeleteFeatureValuesResponse { + } + + /** Represents a DeleteFeatureValuesResponse. */ + class DeleteFeatureValuesResponse implements IDeleteFeatureValuesResponse { /** - * Constructs a new BatchCreateFeaturesResponse. + * Constructs a new DeleteFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse); - - /** BatchCreateFeaturesResponse features. */ - public features: google.cloud.aiplatform.v1beta1.IFeature[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesResponse); /** - * Creates a new BatchCreateFeaturesResponse instance using the specified properties. + * Creates a new DeleteFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateFeaturesResponse instance + * @returns DeleteFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesResponse): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse; /** - * Encodes the specified BatchCreateFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.verify|verify} messages. - * @param message BatchCreateFeaturesResponse message or plain object to encode + * Encodes the specified DeleteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IBatchCreateFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.verify|verify} messages. - * @param message BatchCreateFeaturesResponse message or plain object to encode + * Encodes the specified DeleteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IBatchCreateFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer. + * 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 BatchCreateFeaturesResponse + * @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.v1beta1.BatchCreateFeaturesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse; /** - * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateFeaturesResponse + * @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.v1beta1.BatchCreateFeaturesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse; /** - * Verifies a BatchCreateFeaturesResponse message. + * 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 BatchCreateFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateFeaturesResponse + * @returns DeleteFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse; /** - * Creates a plain object from a BatchCreateFeaturesResponse message. Also converts values to other types if specified. - * @param message BatchCreateFeaturesResponse + * 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.v1beta1.BatchCreateFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateFeaturesResponse to JSON. + * Converts this DeleteFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for BatchCreateFeaturesResponse + * 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; } - /** Properties of a GetFeatureRequest. */ - interface IGetFeatureRequest { + /** Properties of an EntityIdSelector. */ + interface IEntityIdSelector { - /** GetFeatureRequest name */ - name?: (string|null); + /** EntityIdSelector csvSource */ + csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); + + /** EntityIdSelector entityIdField */ + entityIdField?: (string|null); } - /** Represents a GetFeatureRequest. */ - class GetFeatureRequest implements IGetFeatureRequest { + /** Represents an EntityIdSelector. */ + class EntityIdSelector implements IEntityIdSelector { /** - * Constructs a new GetFeatureRequest. + * Constructs a new EntityIdSelector. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IEntityIdSelector); - /** GetFeatureRequest name. */ - public name: string; + /** EntityIdSelector csvSource. */ + public csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); + + /** EntityIdSelector entityIdField. */ + public entityIdField: string; + + /** EntityIdSelector EntityIdsSource. */ + public EntityIdsSource?: "csvSource"; /** - * Creates a new GetFeatureRequest instance using the specified properties. + * Creates a new EntityIdSelector instance using the specified properties. * @param [properties] Properties to set - * @returns GetFeatureRequest instance + * @returns EntityIdSelector instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureRequest): google.cloud.aiplatform.v1beta1.GetFeatureRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEntityIdSelector): google.cloud.aiplatform.v1beta1.EntityIdSelector; /** - * Encodes the specified GetFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureRequest.verify|verify} messages. - * @param message GetFeatureRequest message or plain object to encode + * Encodes the specified EntityIdSelector message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEntityIdSelector, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureRequest.verify|verify} messages. - * @param message GetFeatureRequest message or plain object to encode + * Encodes the specified EntityIdSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEntityIdSelector, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetFeatureRequest message from the specified reader or buffer. + * 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 GetFeatureRequest + * @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.v1beta1.GetFeatureRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.EntityIdSelector; /** - * Decodes a GetFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes an EntityIdSelector message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetFeatureRequest + * @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.v1beta1.GetFeatureRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.EntityIdSelector; /** - * Verifies a GetFeatureRequest message. + * 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 a GetFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EntityIdSelector message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetFeatureRequest + * @returns EntityIdSelector */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetFeatureRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EntityIdSelector; /** - * Creates a plain object from a GetFeatureRequest message. Also converts values to other types if specified. - * @param message GetFeatureRequest + * 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.v1beta1.GetFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.EntityIdSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetFeatureRequest to JSON. + * Converts this EntityIdSelector to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetFeatureRequest + * 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 ListFeaturesRequest. */ - interface IListFeaturesRequest { + /** Properties of a HyperparameterTuningJob. */ + interface IHyperparameterTuningJob { - /** ListFeaturesRequest parent */ - parent?: (string|null); + /** HyperparameterTuningJob name */ + name?: (string|null); - /** ListFeaturesRequest filter */ - filter?: (string|null); + /** HyperparameterTuningJob displayName */ + displayName?: (string|null); - /** ListFeaturesRequest pageSize */ - pageSize?: (number|null); + /** HyperparameterTuningJob studySpec */ + studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); - /** ListFeaturesRequest pageToken */ - pageToken?: (string|null); + /** HyperparameterTuningJob maxTrialCount */ + maxTrialCount?: (number|null); - /** ListFeaturesRequest orderBy */ - orderBy?: (string|null); + /** HyperparameterTuningJob parallelTrialCount */ + parallelTrialCount?: (number|null); - /** ListFeaturesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** HyperparameterTuningJob maxFailedTrialCount */ + maxFailedTrialCount?: (number|null); - /** ListFeaturesRequest latestStatsCount */ - latestStatsCount?: (number|null); + /** HyperparameterTuningJob trialJobSpec */ + trialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); + + /** HyperparameterTuningJob trials */ + trials?: (google.cloud.aiplatform.v1beta1.ITrial[]|null); + + /** HyperparameterTuningJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); + + /** HyperparameterTuningJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** HyperparameterTuningJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** HyperparameterTuningJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** HyperparameterTuningJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** HyperparameterTuningJob error */ + error?: (google.rpc.IStatus|null); + + /** HyperparameterTuningJob labels */ + labels?: ({ [k: string]: string }|null); + + /** HyperparameterTuningJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); } - /** Represents a ListFeaturesRequest. */ - class ListFeaturesRequest implements IListFeaturesRequest { + /** Represents a HyperparameterTuningJob. */ + class HyperparameterTuningJob implements IHyperparameterTuningJob { /** - * Constructs a new ListFeaturesRequest. + * Constructs a new HyperparameterTuningJob. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob); + + /** HyperparameterTuningJob name. */ + public name: string; + + /** HyperparameterTuningJob displayName. */ + public displayName: string; + + /** HyperparameterTuningJob studySpec. */ + public studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); + + /** HyperparameterTuningJob maxTrialCount. */ + public maxTrialCount: number; + + /** HyperparameterTuningJob parallelTrialCount. */ + public parallelTrialCount: number; + + /** HyperparameterTuningJob maxFailedTrialCount. */ + public maxFailedTrialCount: number; + + /** HyperparameterTuningJob trialJobSpec. */ + public trialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); + + /** HyperparameterTuningJob trials. */ + public trials: google.cloud.aiplatform.v1beta1.ITrial[]; + + /** HyperparameterTuningJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - /** ListFeaturesRequest parent. */ - public parent: string; + /** HyperparameterTuningJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ListFeaturesRequest filter. */ - public filter: string; + /** HyperparameterTuningJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** ListFeaturesRequest pageSize. */ - public pageSize: number; + /** HyperparameterTuningJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** ListFeaturesRequest pageToken. */ - public pageToken: string; + /** HyperparameterTuningJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** ListFeaturesRequest orderBy. */ - public orderBy: string; + /** HyperparameterTuningJob error. */ + public error?: (google.rpc.IStatus|null); - /** ListFeaturesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** HyperparameterTuningJob labels. */ + public labels: { [k: string]: string }; - /** ListFeaturesRequest latestStatsCount. */ - public latestStatsCount: number; + /** HyperparameterTuningJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); /** - * Creates a new ListFeaturesRequest instance using the specified properties. + * Creates a new HyperparameterTuningJob instance using the specified properties. * @param [properties] Properties to set - * @returns ListFeaturesRequest instance + * @returns HyperparameterTuningJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesRequest): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; /** - * Encodes the specified ListFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesRequest.verify|verify} messages. - * @param message ListFeaturesRequest message or plain object to encode + * Encodes the specified HyperparameterTuningJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify|verify} messages. + * @param message HyperparameterTuningJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesRequest.verify|verify} messages. - * @param message ListFeaturesRequest message or plain object to encode + * Encodes the specified HyperparameterTuningJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify|verify} messages. + * @param message HyperparameterTuningJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFeaturesRequest message from the specified reader or buffer. + * Decodes a HyperparameterTuningJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFeaturesRequest + * @returns HyperparameterTuningJob * @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.ListFeaturesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; /** - * Decodes a ListFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes a HyperparameterTuningJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFeaturesRequest + * @returns HyperparameterTuningJob * @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.ListFeaturesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; /** - * Verifies a ListFeaturesRequest message. + * Verifies a HyperparameterTuningJob 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 ListFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a HyperparameterTuningJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFeaturesRequest + * @returns HyperparameterTuningJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; /** - * Creates a plain object from a ListFeaturesRequest message. Also converts values to other types if specified. - * @param message ListFeaturesRequest + * Creates a plain object from a HyperparameterTuningJob message. Also converts values to other types if specified. + * @param message HyperparameterTuningJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFeaturesRequest to JSON. + * Converts this HyperparameterTuningJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListFeaturesRequest + * Gets the default type url for HyperparameterTuningJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListFeaturesResponse. */ - interface IListFeaturesResponse { + /** Properties of a Study. */ + interface IStudy { - /** ListFeaturesResponse features */ - features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); + /** Study name */ + name?: (string|null); - /** ListFeaturesResponse nextPageToken */ - nextPageToken?: (string|null); + /** Study displayName */ + displayName?: (string|null); + + /** Study studySpec */ + studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); + + /** Study state */ + state?: (google.cloud.aiplatform.v1beta1.Study.State|keyof typeof google.cloud.aiplatform.v1beta1.Study.State|null); + + /** Study createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Study inactiveReason */ + inactiveReason?: (string|null); } - /** Represents a ListFeaturesResponse. */ - class ListFeaturesResponse implements IListFeaturesResponse { + /** Represents a Study. */ + class Study implements IStudy { /** - * Constructs a new ListFeaturesResponse. + * Constructs a new Study. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IStudy); - /** ListFeaturesResponse features. */ - public features: google.cloud.aiplatform.v1beta1.IFeature[]; + /** Study name. */ + public name: string; - /** ListFeaturesResponse nextPageToken. */ - public nextPageToken: string; + /** Study displayName. */ + public displayName: string; + + /** Study studySpec. */ + public studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); + + /** Study state. */ + public state: (google.cloud.aiplatform.v1beta1.Study.State|keyof typeof google.cloud.aiplatform.v1beta1.Study.State); + + /** Study createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Study inactiveReason. */ + public inactiveReason: string; /** - * Creates a new ListFeaturesResponse instance using the specified properties. + * Creates a new Study instance using the specified properties. * @param [properties] Properties to set - * @returns ListFeaturesResponse instance + * @returns Study instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesResponse): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStudy): google.cloud.aiplatform.v1beta1.Study; /** - * Encodes the specified ListFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesResponse.verify|verify} messages. - * @param message ListFeaturesResponse message or plain object to encode + * Encodes the specified Study message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.verify|verify} messages. + * @param message Study message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesResponse.verify|verify} messages. - * @param message ListFeaturesResponse message or plain object to encode + * Encodes the specified Study message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.verify|verify} messages. + * @param message Study message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFeaturesResponse message from the specified reader or buffer. + * Decodes a Study message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFeaturesResponse + * @returns Study * @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.ListFeaturesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Study; /** - * Decodes a ListFeaturesResponse message from the specified reader or buffer, length delimited. + * Decodes a Study message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFeaturesResponse + * @returns Study * @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.ListFeaturesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Study; /** - * Verifies a ListFeaturesResponse message. + * Verifies a Study 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 ListFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a Study message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFeaturesResponse + * @returns Study */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Study; /** - * Creates a plain object from a ListFeaturesResponse message. Also converts values to other types if specified. - * @param message ListFeaturesResponse + * Creates a plain object from a Study message. Also converts values to other types if specified. + * @param message Study * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Study, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFeaturesResponse to JSON. + * Converts this Study to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListFeaturesResponse + * Gets the default type url for Study * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchFeaturesRequest. */ - interface ISearchFeaturesRequest { + namespace Study { - /** SearchFeaturesRequest location */ - location?: (string|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + INACTIVE = 2, + COMPLETED = 3 + } + } - /** SearchFeaturesRequest query */ - query?: (string|null); + /** Properties of a Trial. */ + interface ITrial { - /** SearchFeaturesRequest pageSize */ - pageSize?: (number|null); + /** Trial name */ + name?: (string|null); - /** SearchFeaturesRequest pageToken */ - pageToken?: (string|null); + /** Trial id */ + id?: (string|null); + + /** Trial state */ + state?: (google.cloud.aiplatform.v1beta1.Trial.State|keyof typeof google.cloud.aiplatform.v1beta1.Trial.State|null); + + /** Trial parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.Trial.IParameter[]|null); + + /** Trial finalMeasurement */ + finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); + + /** Trial measurements */ + measurements?: (google.cloud.aiplatform.v1beta1.IMeasurement[]|null); + + /** Trial startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** Trial endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** Trial clientId */ + clientId?: (string|null); + + /** Trial infeasibleReason */ + infeasibleReason?: (string|null); + + /** Trial customJob */ + customJob?: (string|null); + + /** Trial webAccessUris */ + webAccessUris?: ({ [k: string]: string }|null); } - /** Represents a SearchFeaturesRequest. */ - class SearchFeaturesRequest implements ISearchFeaturesRequest { + /** Represents a Trial. */ + class Trial implements ITrial { /** - * Constructs a new SearchFeaturesRequest. + * Constructs a new Trial. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ITrial); - /** SearchFeaturesRequest location. */ - public location: string; + /** Trial name. */ + public name: string; - /** SearchFeaturesRequest query. */ - public query: string; + /** Trial id. */ + public id: string; - /** SearchFeaturesRequest pageSize. */ - public pageSize: number; + /** Trial state. */ + public state: (google.cloud.aiplatform.v1beta1.Trial.State|keyof typeof google.cloud.aiplatform.v1beta1.Trial.State); - /** SearchFeaturesRequest pageToken. */ - public pageToken: string; + /** Trial parameters. */ + public parameters: google.cloud.aiplatform.v1beta1.Trial.IParameter[]; + + /** Trial finalMeasurement. */ + public finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); + + /** Trial measurements. */ + public measurements: google.cloud.aiplatform.v1beta1.IMeasurement[]; + + /** Trial startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** Trial endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** Trial clientId. */ + public clientId: string; + + /** Trial infeasibleReason. */ + public infeasibleReason: string; + + /** Trial customJob. */ + public customJob: string; + + /** Trial webAccessUris. */ + public webAccessUris: { [k: string]: string }; /** - * Creates a new SearchFeaturesRequest instance using the specified properties. + * Creates a new Trial instance using the specified properties. * @param [properties] Properties to set - * @returns SearchFeaturesRequest instance + * @returns Trial instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ITrial): google.cloud.aiplatform.v1beta1.Trial; /** - * Encodes the specified SearchFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. - * @param message SearchFeaturesRequest message or plain object to encode + * Encodes the specified Trial message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.verify|verify} messages. + * @param message Trial message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. - * @param message SearchFeaturesRequest message or plain object to encode + * Encodes the specified Trial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.verify|verify} messages. + * @param message Trial message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchFeaturesRequest message from the specified reader or buffer. + * Decodes a Trial message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchFeaturesRequest + * @returns Trial * @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.SearchFeaturesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Trial; /** - * Decodes a SearchFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes a Trial message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchFeaturesRequest + * @returns Trial * @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.SearchFeaturesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Trial; /** - * Verifies a SearchFeaturesRequest message. + * Verifies a Trial 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 SearchFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Trial message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchFeaturesRequest + * @returns Trial */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Trial; /** - * Creates a plain object from a SearchFeaturesRequest message. Also converts values to other types if specified. - * @param message SearchFeaturesRequest + * Creates a plain object from a Trial message. Also converts values to other types if specified. + * @param message Trial * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Trial, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchFeaturesRequest to JSON. + * Converts this Trial to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchFeaturesRequest + * Gets the default type url for Trial * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchFeaturesResponse. */ - interface ISearchFeaturesResponse { + namespace Trial { - /** SearchFeaturesResponse features */ - features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); + /** Properties of a Parameter. */ + interface IParameter { - /** SearchFeaturesResponse nextPageToken */ - nextPageToken?: (string|null); + /** Parameter parameterId */ + parameterId?: (string|null); + + /** Parameter value */ + value?: (google.protobuf.IValue|null); + } + + /** Represents a Parameter. */ + class Parameter implements IParameter { + + /** + * Constructs a new Parameter. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Trial.IParameter); + + /** Parameter parameterId. */ + public parameterId: string; + + /** Parameter value. */ + public value?: (google.protobuf.IValue|null); + + /** + * Creates a new Parameter instance using the specified properties. + * @param [properties] Properties to set + * @returns Parameter instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Trial.IParameter): google.cloud.aiplatform.v1beta1.Trial.Parameter; + + /** + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Trial.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Trial.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Parameter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Parameter + * @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.Trial.Parameter; + + /** + * Decodes a Parameter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Parameter + * @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.Trial.Parameter; + + /** + * Verifies a Parameter 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 Parameter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Parameter + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Trial.Parameter; + + /** + * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * @param message Parameter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Trial.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Parameter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Parameter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + REQUESTED = 1, + ACTIVE = 2, + STOPPING = 3, + SUCCEEDED = 4, + INFEASIBLE = 5 + } } - /** Represents a SearchFeaturesResponse. */ - class SearchFeaturesResponse implements ISearchFeaturesResponse { + /** Properties of a StudySpec. */ + interface IStudySpec { + + /** StudySpec decayCurveStoppingSpec */ + decayCurveStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); + + /** StudySpec medianAutomatedStoppingSpec */ + medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null); + + /** StudySpec convexStopConfig */ + convexStopConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null); + + /** StudySpec convexAutomatedStoppingSpec */ + convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null); + + /** StudySpec metrics */ + metrics?: (google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec[]|null); + + /** StudySpec parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec[]|null); + + /** StudySpec algorithm */ + algorithm?: (google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|null); + + /** StudySpec observationNoise */ + observationNoise?: (google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|null); + + /** StudySpec measurementSelectionType */ + measurementSelectionType?: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|null); + + /** StudySpec transferLearningConfig */ + transferLearningConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig|null); + } + + /** Represents a StudySpec. */ + class StudySpec implements IStudySpec { + + /** + * Constructs a new StudySpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IStudySpec); + + /** StudySpec decayCurveStoppingSpec. */ + public decayCurveStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); + + /** StudySpec medianAutomatedStoppingSpec. */ + public medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null); + + /** StudySpec convexStopConfig. */ + public convexStopConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null); + + /** StudySpec convexAutomatedStoppingSpec. */ + public convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null); + + /** StudySpec metrics. */ + public metrics: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec[]; + + /** StudySpec parameters. */ + public parameters: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec[]; + + /** StudySpec algorithm. */ + public algorithm: (google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.Algorithm); - /** - * Constructs a new SearchFeaturesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse); + /** StudySpec observationNoise. */ + public observationNoise: (google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise); - /** SearchFeaturesResponse features. */ - public features: google.cloud.aiplatform.v1beta1.IFeature[]; + /** StudySpec measurementSelectionType. */ + public measurementSelectionType: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType); - /** SearchFeaturesResponse nextPageToken. */ - public nextPageToken: string; + /** StudySpec transferLearningConfig. */ + public transferLearningConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig|null); + + /** StudySpec automatedStoppingSpec. */ + public automatedStoppingSpec?: ("decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexStopConfig"|"convexAutomatedStoppingSpec"); /** - * Creates a new SearchFeaturesResponse instance using the specified properties. + * Creates a new StudySpec instance using the specified properties. * @param [properties] Properties to set - * @returns SearchFeaturesResponse instance + * @returns StudySpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStudySpec): google.cloud.aiplatform.v1beta1.StudySpec; /** - * Encodes the specified SearchFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.verify|verify} messages. - * @param message SearchFeaturesResponse message or plain object to encode + * Encodes the specified StudySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.verify|verify} messages. + * @param message StudySpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.verify|verify} messages. - * @param message SearchFeaturesResponse message or plain object to encode + * Encodes the specified StudySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.verify|verify} messages. + * @param message StudySpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchFeaturesResponse message from the specified reader or buffer. + * Decodes a StudySpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchFeaturesResponse + * @returns StudySpec * @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.SearchFeaturesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec; /** - * Decodes a SearchFeaturesResponse message from the specified reader or buffer, length delimited. + * Decodes a StudySpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchFeaturesResponse + * @returns StudySpec * @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.SearchFeaturesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec; /** - * Verifies a SearchFeaturesResponse message. + * Verifies a StudySpec 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 SearchFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a StudySpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchFeaturesResponse + * @returns StudySpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec; /** - * Creates a plain object from a SearchFeaturesResponse message. Also converts values to other types if specified. - * @param message SearchFeaturesResponse + * Creates a plain object from a StudySpec message. Also converts values to other types if specified. + * @param message StudySpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchFeaturesResponse to JSON. + * Converts this StudySpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchFeaturesResponse + * Gets the default type url for StudySpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateFeatureRequest. */ - interface IUpdateFeatureRequest { + namespace StudySpec { - /** UpdateFeatureRequest feature */ - feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + /** Properties of a MetricSpec. */ + interface IMetricSpec { - /** UpdateFeatureRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); - } + /** MetricSpec metricId */ + metricId?: (string|null); - /** Represents an UpdateFeatureRequest. */ - class UpdateFeatureRequest implements IUpdateFeatureRequest { + /** MetricSpec goal */ + goal?: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|null); - /** - * Constructs a new UpdateFeatureRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest); + /** MetricSpec safetyConfig */ + safetyConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig|null); + } - /** UpdateFeatureRequest feature. */ - public feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + /** Represents a MetricSpec. */ + class MetricSpec implements IMetricSpec { - /** UpdateFeatureRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** + * Constructs a new MetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec); - /** - * Creates a new UpdateFeatureRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateFeatureRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; + /** MetricSpec metricId. */ + public metricId: string; - /** - * Encodes the specified UpdateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. - * @param message UpdateFeatureRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** MetricSpec goal. */ + public goal: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType); - /** - * Encodes the specified UpdateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. - * @param message UpdateFeatureRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** MetricSpec safetyConfig. */ + public safetyConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig|null); - /** - * Decodes an UpdateFeatureRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateFeatureRequest - * @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.UpdateFeatureRequest; + /** MetricSpec _safetyConfig. */ + public _safetyConfig?: "safetyConfig"; - /** - * Decodes an UpdateFeatureRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateFeatureRequest - * @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.UpdateFeatureRequest; + /** + * Creates a new MetricSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns MetricSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec; - /** - * Verifies an UpdateFeatureRequest 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); + /** + * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an UpdateFeatureRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateFeatureRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; + /** + * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from an UpdateFeatureRequest message. Also converts values to other types if specified. - * @param message UpdateFeatureRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a MetricSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetricSpec + * @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.StudySpec.MetricSpec; - /** - * Converts this UpdateFeatureRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a MetricSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetricSpec + * @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.StudySpec.MetricSpec; - /** - * Gets the default type url for UpdateFeatureRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a MetricSpec 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); - /** Properties of a DeleteFeatureRequest. */ - interface IDeleteFeatureRequest { + /** + * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetricSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec; - /** DeleteFeatureRequest name */ - name?: (string|null); - } + /** + * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. + * @param message MetricSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a DeleteFeatureRequest. */ - class DeleteFeatureRequest implements IDeleteFeatureRequest { + /** + * Converts this MetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new DeleteFeatureRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest); + /** + * Gets the default type url for MetricSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** DeleteFeatureRequest name. */ - public name: string; + namespace MetricSpec { - /** - * Creates a new DeleteFeatureRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteFeatureRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; + /** Properties of a SafetyMetricConfig. */ + interface ISafetyMetricConfig { - /** - * Encodes the specified DeleteFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. - * @param message DeleteFeatureRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** SafetyMetricConfig safetyThreshold */ + safetyThreshold?: (number|null); - /** - * Encodes the specified DeleteFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. - * @param message DeleteFeatureRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** SafetyMetricConfig desiredMinSafeTrialsFraction */ + desiredMinSafeTrialsFraction?: (number|null); + } - /** - * Decodes a DeleteFeatureRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteFeatureRequest - * @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.DeleteFeatureRequest; + /** Represents a SafetyMetricConfig. */ + class SafetyMetricConfig implements ISafetyMetricConfig { - /** - * Decodes a DeleteFeatureRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteFeatureRequest - * @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.DeleteFeatureRequest; + /** + * Constructs a new SafetyMetricConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig); - /** - * Verifies a DeleteFeatureRequest 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); + /** SafetyMetricConfig safetyThreshold. */ + public safetyThreshold: number; - /** - * Creates a DeleteFeatureRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteFeatureRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; + /** SafetyMetricConfig desiredMinSafeTrialsFraction. */ + public desiredMinSafeTrialsFraction?: (number|null); - /** - * Creates a plain object from a DeleteFeatureRequest message. Also converts values to other types if specified. - * @param message DeleteFeatureRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** SafetyMetricConfig _desiredMinSafeTrialsFraction. */ + public _desiredMinSafeTrialsFraction?: "desiredMinSafeTrialsFraction"; - /** - * Converts this DeleteFeatureRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a new SafetyMetricConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns SafetyMetricConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig; - /** - * Gets the default type url for DeleteFeatureRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified SafetyMetricConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @param message SafetyMetricConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of a CreateFeaturestoreOperationMetadata. */ - interface ICreateFeaturestoreOperationMetadata { + /** + * Encodes the specified SafetyMetricConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @param message SafetyMetricConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** CreateFeaturestoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SafetyMetricConfig + * @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.StudySpec.MetricSpec.SafetyMetricConfig; - /** Represents a CreateFeaturestoreOperationMetadata. */ - class CreateFeaturestoreOperationMetadata implements ICreateFeaturestoreOperationMetadata { + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SafetyMetricConfig + * @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.StudySpec.MetricSpec.SafetyMetricConfig; - /** - * Constructs a new CreateFeaturestoreOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata); + /** + * Verifies a SafetyMetricConfig 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); - /** CreateFeaturestoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Creates a SafetyMetricConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SafetyMetricConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig; - /** - * Creates a new CreateFeaturestoreOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateFeaturestoreOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; + /** + * Creates a plain object from a SafetyMetricConfig message. Also converts values to other types if specified. + * @param message SafetyMetricConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified CreateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.verify|verify} messages. - * @param message CreateFeaturestoreOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this SafetyMetricConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified CreateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.verify|verify} messages. - * @param message CreateFeaturestoreOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for SafetyMetricConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateFeaturestoreOperationMetadata - * @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.CreateFeaturestoreOperationMetadata; + /** GoalType enum. */ + enum GoalType { + GOAL_TYPE_UNSPECIFIED = 0, + MAXIMIZE = 1, + MINIMIZE = 2 + } + } - /** - * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateFeaturestoreOperationMetadata - * @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.CreateFeaturestoreOperationMetadata; + /** Properties of a ParameterSpec. */ + interface IParameterSpec { - /** - * Verifies a CreateFeaturestoreOperationMetadata 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); + /** ParameterSpec doubleValueSpec */ + doubleValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null); - /** - * Creates a CreateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateFeaturestoreOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; + /** ParameterSpec integerValueSpec */ + integerValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null); - /** - * Creates a plain object from a CreateFeaturestoreOperationMetadata message. Also converts values to other types if specified. - * @param message CreateFeaturestoreOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ParameterSpec categoricalValueSpec */ + categoricalValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null); + + /** ParameterSpec discreteValueSpec */ + discreteValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null); + + /** ParameterSpec parameterId */ + parameterId?: (string|null); + + /** ParameterSpec scaleType */ + scaleType?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|null); + + /** ParameterSpec conditionalParameterSpecs */ + conditionalParameterSpecs?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec[]|null); + } + + /** Represents a ParameterSpec. */ + class ParameterSpec implements IParameterSpec { + + /** + * Constructs a new ParameterSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec); + + /** ParameterSpec doubleValueSpec. */ + public doubleValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null); + + /** ParameterSpec integerValueSpec. */ + public integerValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null); + + /** ParameterSpec categoricalValueSpec. */ + public categoricalValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null); + + /** ParameterSpec discreteValueSpec. */ + public discreteValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null); + + /** ParameterSpec parameterId. */ + public parameterId: string; + + /** ParameterSpec scaleType. */ + public scaleType: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType); + + /** ParameterSpec conditionalParameterSpecs. */ + public conditionalParameterSpecs: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec[]; + + /** ParameterSpec parameterValueSpec. */ + public parameterValueSpec?: ("doubleValueSpec"|"integerValueSpec"|"categoricalValueSpec"|"discreteValueSpec"); + + /** + * Creates a new ParameterSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ParameterSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec; + + /** + * Encodes the specified ParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify|verify} messages. + * @param message ParameterSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this CreateFeaturestoreOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified ParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify|verify} messages. + * @param message ParameterSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for CreateFeaturestoreOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a ParameterSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParameterSpec + * @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.StudySpec.ParameterSpec; - /** Properties of an UpdateFeaturestoreOperationMetadata. */ - interface IUpdateFeaturestoreOperationMetadata { + /** + * Decodes a ParameterSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ParameterSpec + * @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.StudySpec.ParameterSpec; - /** UpdateFeaturestoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** + * Verifies a ParameterSpec 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); - /** Represents an UpdateFeaturestoreOperationMetadata. */ - class UpdateFeaturestoreOperationMetadata implements IUpdateFeaturestoreOperationMetadata { + /** + * Creates a ParameterSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ParameterSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec; - /** - * Constructs a new UpdateFeaturestoreOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata); + /** + * Creates a plain object from a ParameterSpec message. Also converts values to other types if specified. + * @param message ParameterSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** UpdateFeaturestoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Converts this ParameterSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new UpdateFeaturestoreOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns UpdateFeaturestoreOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; + /** + * Gets the default type url for ParameterSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified UpdateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. - * @param message UpdateFeaturestoreOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + namespace ParameterSpec { - /** - * Encodes the specified UpdateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. - * @param message UpdateFeaturestoreOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a DoubleValueSpec. */ + interface IDoubleValueSpec { - /** - * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UpdateFeaturestoreOperationMetadata - * @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.UpdateFeaturestoreOperationMetadata; + /** DoubleValueSpec minValue */ + minValue?: (number|null); - /** - * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UpdateFeaturestoreOperationMetadata - * @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.UpdateFeaturestoreOperationMetadata; + /** DoubleValueSpec maxValue */ + maxValue?: (number|null); - /** - * Verifies an UpdateFeaturestoreOperationMetadata 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); + /** DoubleValueSpec defaultValue */ + defaultValue?: (number|null); + } - /** - * Creates an UpdateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UpdateFeaturestoreOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; + /** Represents a DoubleValueSpec. */ + class DoubleValueSpec implements IDoubleValueSpec { - /** - * Creates a plain object from an UpdateFeaturestoreOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateFeaturestoreOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new DoubleValueSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec); - /** - * Converts this UpdateFeaturestoreOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** DoubleValueSpec minValue. */ + public minValue: number; - /** - * Gets the default type url for UpdateFeaturestoreOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** DoubleValueSpec maxValue. */ + public maxValue: number; - /** Properties of an ImportFeatureValuesOperationMetadata. */ - interface IImportFeatureValuesOperationMetadata { + /** DoubleValueSpec defaultValue. */ + public defaultValue?: (number|null); - /** ImportFeatureValuesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** DoubleValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; - /** ImportFeatureValuesOperationMetadata importedEntityCount */ - importedEntityCount?: (number|Long|string|null); + /** + * Creates a new DoubleValueSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns DoubleValueSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; - /** ImportFeatureValuesOperationMetadata importedFeatureValueCount */ - importedFeatureValueCount?: (number|Long|string|null); + /** + * Encodes the specified DoubleValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. + * @param message DoubleValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** ImportFeatureValuesOperationMetadata sourceUris */ - sourceUris?: (string[]|null); + /** + * Encodes the specified DoubleValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. + * @param message DoubleValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** ImportFeatureValuesOperationMetadata invalidRowCount */ - invalidRowCount?: (number|Long|string|null); + /** + * Decodes a DoubleValueSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DoubleValueSpec + * @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.StudySpec.ParameterSpec.DoubleValueSpec; - /** ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount */ - timestampOutsideRetentionRowsCount?: (number|Long|string|null); - } + /** + * Decodes a DoubleValueSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DoubleValueSpec + * @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.StudySpec.ParameterSpec.DoubleValueSpec; - /** Represents an ImportFeatureValuesOperationMetadata. */ - class ImportFeatureValuesOperationMetadata implements IImportFeatureValuesOperationMetadata { + /** + * Verifies a DoubleValueSpec 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); - /** - * Constructs a new ImportFeatureValuesOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata); + /** + * Creates a DoubleValueSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DoubleValueSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; - /** ImportFeatureValuesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Creates a plain object from a DoubleValueSpec message. Also converts values to other types if specified. + * @param message DoubleValueSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ImportFeatureValuesOperationMetadata importedEntityCount. */ - public importedEntityCount: (number|Long|string); + /** + * Converts this DoubleValueSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ImportFeatureValuesOperationMetadata importedFeatureValueCount. */ - public importedFeatureValueCount: (number|Long|string); + /** + * Gets the default type url for DoubleValueSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ImportFeatureValuesOperationMetadata sourceUris. */ - public sourceUris: string[]; + /** Properties of an IntegerValueSpec. */ + interface IIntegerValueSpec { - /** ImportFeatureValuesOperationMetadata invalidRowCount. */ - public invalidRowCount: (number|Long|string); + /** IntegerValueSpec minValue */ + minValue?: (number|Long|string|null); - /** ImportFeatureValuesOperationMetadata timestampOutsideRetentionRowsCount. */ - public timestampOutsideRetentionRowsCount: (number|Long|string); + /** IntegerValueSpec maxValue */ + maxValue?: (number|Long|string|null); - /** - * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportFeatureValuesOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; + /** IntegerValueSpec defaultValue */ + defaultValue?: (number|Long|string|null); + } - /** - * Encodes the specified ImportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.verify|verify} messages. - * @param message ImportFeatureValuesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents an IntegerValueSpec. */ + class IntegerValueSpec implements IIntegerValueSpec { - /** - * Encodes the specified ImportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.verify|verify} messages. - * @param message ImportFeatureValuesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new IntegerValueSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec); - /** - * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportFeatureValuesOperationMetadata - * @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.ImportFeatureValuesOperationMetadata; + /** IntegerValueSpec minValue. */ + public minValue: (number|Long|string); - /** - * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportFeatureValuesOperationMetadata - * @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.ImportFeatureValuesOperationMetadata; + /** IntegerValueSpec maxValue. */ + public maxValue: (number|Long|string); - /** - * Verifies an ImportFeatureValuesOperationMetadata 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); + /** IntegerValueSpec defaultValue. */ + public defaultValue?: (number|Long|string|null); - /** - * Creates an ImportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportFeatureValuesOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; + /** IntegerValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; - /** - * Creates a plain object from an ImportFeatureValuesOperationMetadata message. Also converts values to other types if specified. - * @param message ImportFeatureValuesOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a new IntegerValueSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns IntegerValueSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; - /** - * Converts this ImportFeatureValuesOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified IntegerValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. + * @param message IntegerValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for ImportFeatureValuesOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Encodes the specified IntegerValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. + * @param message IntegerValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** Properties of an ExportFeatureValuesOperationMetadata. */ - interface IExportFeatureValuesOperationMetadata { + /** + * Decodes an IntegerValueSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IntegerValueSpec + * @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.StudySpec.ParameterSpec.IntegerValueSpec; - /** ExportFeatureValuesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** + * Decodes an IntegerValueSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IntegerValueSpec + * @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.StudySpec.ParameterSpec.IntegerValueSpec; - /** Represents an ExportFeatureValuesOperationMetadata. */ - class ExportFeatureValuesOperationMetadata implements IExportFeatureValuesOperationMetadata { + /** + * Verifies an IntegerValueSpec 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); - /** - * Constructs a new ExportFeatureValuesOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata); + /** + * Creates an IntegerValueSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IntegerValueSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; - /** ExportFeatureValuesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Creates a plain object from an IntegerValueSpec message. Also converts values to other types if specified. + * @param message IntegerValueSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a new ExportFeatureValuesOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ExportFeatureValuesOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; + /** + * Converts this IntegerValueSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Encodes the specified ExportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.verify|verify} messages. - * @param message ExportFeatureValuesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Gets the default type url for IntegerValueSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified ExportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.verify|verify} messages. - * @param message ExportFeatureValuesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a CategoricalValueSpec. */ + interface ICategoricalValueSpec { - /** - * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExportFeatureValuesOperationMetadata - * @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.ExportFeatureValuesOperationMetadata; + /** CategoricalValueSpec values */ + values?: (string[]|null); - /** - * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExportFeatureValuesOperationMetadata - * @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.ExportFeatureValuesOperationMetadata; + /** CategoricalValueSpec defaultValue */ + defaultValue?: (string|null); + } - /** - * Verifies an ExportFeatureValuesOperationMetadata 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); + /** Represents a CategoricalValueSpec. */ + class CategoricalValueSpec implements ICategoricalValueSpec { - /** - * Creates an ExportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExportFeatureValuesOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; + /** + * Constructs a new CategoricalValueSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec); - /** - * Creates a plain object from an ExportFeatureValuesOperationMetadata message. Also converts values to other types if specified. - * @param message ExportFeatureValuesOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** CategoricalValueSpec values. */ + public values: string[]; - /** - * Converts this ExportFeatureValuesOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** CategoricalValueSpec defaultValue. */ + public defaultValue?: (string|null); - /** - * Gets the default type url for ExportFeatureValuesOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** CategoricalValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; - /** Properties of a BatchReadFeatureValuesOperationMetadata. */ - interface IBatchReadFeatureValuesOperationMetadata { + /** + * Creates a new CategoricalValueSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns CategoricalValueSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; - /** BatchReadFeatureValuesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** + * Encodes the specified CategoricalValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. + * @param message CategoricalValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a BatchReadFeatureValuesOperationMetadata. */ - class BatchReadFeatureValuesOperationMetadata implements IBatchReadFeatureValuesOperationMetadata { + /** + * Encodes the specified CategoricalValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. + * @param message CategoricalValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new BatchReadFeatureValuesOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata); + /** + * Decodes a CategoricalValueSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CategoricalValueSpec + * @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.StudySpec.ParameterSpec.CategoricalValueSpec; - /** BatchReadFeatureValuesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Decodes a CategoricalValueSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CategoricalValueSpec + * @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.StudySpec.ParameterSpec.CategoricalValueSpec; - /** - * Creates a new BatchReadFeatureValuesOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns BatchReadFeatureValuesOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; + /** + * Verifies a CategoricalValueSpec 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); - /** - * Encodes the specified BatchReadFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. - * @param message BatchReadFeatureValuesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a CategoricalValueSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CategoricalValueSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; - /** - * Encodes the specified BatchReadFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. - * @param message BatchReadFeatureValuesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a CategoricalValueSpec message. Also converts values to other types if specified. + * @param message CategoricalValueSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BatchReadFeatureValuesOperationMetadata - * @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.BatchReadFeatureValuesOperationMetadata; + /** + * Converts this CategoricalValueSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BatchReadFeatureValuesOperationMetadata - * @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.BatchReadFeatureValuesOperationMetadata; + /** + * Gets the default type url for CategoricalValueSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Verifies a BatchReadFeatureValuesOperationMetadata 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); + /** Properties of a DiscreteValueSpec. */ + interface IDiscreteValueSpec { - /** - * Creates a BatchReadFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BatchReadFeatureValuesOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; + /** DiscreteValueSpec values */ + values?: (number[]|null); - /** - * Creates a plain object from a BatchReadFeatureValuesOperationMetadata message. Also converts values to other types if specified. - * @param message BatchReadFeatureValuesOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** DiscreteValueSpec defaultValue */ + defaultValue?: (number|null); + } - /** - * Converts this BatchReadFeatureValuesOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Represents a DiscreteValueSpec. */ + class DiscreteValueSpec implements IDiscreteValueSpec { - /** - * Gets the default type url for BatchReadFeatureValuesOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Constructs a new DiscreteValueSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec); - /** Properties of a DeleteFeatureValuesOperationMetadata. */ - interface IDeleteFeatureValuesOperationMetadata { + /** DiscreteValueSpec values. */ + public values: number[]; - /** DeleteFeatureValuesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** DiscreteValueSpec defaultValue. */ + public defaultValue?: (number|null); - /** Represents a DeleteFeatureValuesOperationMetadata. */ - class DeleteFeatureValuesOperationMetadata implements IDeleteFeatureValuesOperationMetadata { + /** DiscreteValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; - /** - * Constructs a new DeleteFeatureValuesOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesOperationMetadata); + /** + * Creates a new DiscreteValueSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns DiscreteValueSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; - /** DeleteFeatureValuesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Encodes the specified DiscreteValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. + * @param message DiscreteValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new DeleteFeatureValuesOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteFeatureValuesOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesOperationMetadata; + /** + * Encodes the specified DiscreteValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. + * @param message DiscreteValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DeleteFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IDeleteFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a DiscreteValueSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DiscreteValueSpec + * @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.StudySpec.ParameterSpec.DiscreteValueSpec; - /** - * Encodes the specified DeleteFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IDeleteFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a DiscreteValueSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DiscreteValueSpec + * @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.StudySpec.ParameterSpec.DiscreteValueSpec; - /** - * 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.v1beta1.DeleteFeatureValuesOperationMetadata; + /** + * Verifies a DiscreteValueSpec 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); - /** - * 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.v1beta1.DeleteFeatureValuesOperationMetadata; + /** + * Creates a DiscreteValueSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DiscreteValueSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; - /** - * 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 plain object from a DiscreteValueSpec message. Also converts values to other types if specified. + * @param message DiscreteValueSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * 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.v1beta1.DeleteFeatureValuesOperationMetadata; + /** + * Converts this DiscreteValueSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * 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.v1beta1.DeleteFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for DiscreteValueSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this DeleteFeatureValuesOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a ConditionalParameterSpec. */ + interface IConditionalParameterSpec { - /** - * 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; - } + /** ConditionalParameterSpec parentDiscreteValues */ + parentDiscreteValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null); - /** Properties of a CreateEntityTypeOperationMetadata. */ - interface ICreateEntityTypeOperationMetadata { + /** ConditionalParameterSpec parentIntValues */ + parentIntValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null); - /** CreateEntityTypeOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** ConditionalParameterSpec parentCategoricalValues */ + parentCategoricalValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null); - /** Represents a CreateEntityTypeOperationMetadata. */ - class CreateEntityTypeOperationMetadata implements ICreateEntityTypeOperationMetadata { + /** ConditionalParameterSpec parameterSpec */ + parameterSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null); + } - /** - * Constructs a new CreateEntityTypeOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata); + /** Represents a ConditionalParameterSpec. */ + class ConditionalParameterSpec implements IConditionalParameterSpec { - /** CreateEntityTypeOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Constructs a new ConditionalParameterSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec); - /** - * Creates a new CreateEntityTypeOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateEntityTypeOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; + /** ConditionalParameterSpec parentDiscreteValues. */ + public parentDiscreteValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null); - /** - * Encodes the specified CreateEntityTypeOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.verify|verify} messages. - * @param message CreateEntityTypeOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConditionalParameterSpec parentIntValues. */ + public parentIntValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null); - /** - * Encodes the specified CreateEntityTypeOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.verify|verify} messages. - * @param message CreateEntityTypeOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConditionalParameterSpec parentCategoricalValues. */ + public parentCategoricalValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null); - /** - * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateEntityTypeOperationMetadata - * @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.CreateEntityTypeOperationMetadata; + /** ConditionalParameterSpec parameterSpec. */ + public parameterSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null); - /** - * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateEntityTypeOperationMetadata - * @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.CreateEntityTypeOperationMetadata; + /** ConditionalParameterSpec parentValueCondition. */ + public parentValueCondition?: ("parentDiscreteValues"|"parentIntValues"|"parentCategoricalValues"); - /** - * Verifies a CreateEntityTypeOperationMetadata 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 new ConditionalParameterSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ConditionalParameterSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; - /** - * Creates a CreateEntityTypeOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateEntityTypeOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; + /** + * Encodes the specified ConditionalParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. + * @param message ConditionalParameterSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a CreateEntityTypeOperationMetadata message. Also converts values to other types if specified. - * @param message CreateEntityTypeOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified ConditionalParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. + * @param message ConditionalParameterSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this CreateEntityTypeOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a ConditionalParameterSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConditionalParameterSpec + * @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.StudySpec.ParameterSpec.ConditionalParameterSpec; - /** - * Gets the default type url for CreateEntityTypeOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a ConditionalParameterSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConditionalParameterSpec + * @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.StudySpec.ParameterSpec.ConditionalParameterSpec; - /** Properties of a CreateFeatureOperationMetadata. */ - interface ICreateFeatureOperationMetadata { + /** + * Verifies a ConditionalParameterSpec 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); - /** CreateFeatureOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** + * Creates a ConditionalParameterSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConditionalParameterSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; - /** Represents a CreateFeatureOperationMetadata. */ - class CreateFeatureOperationMetadata implements ICreateFeatureOperationMetadata { + /** + * Creates a plain object from a ConditionalParameterSpec message. Also converts values to other types if specified. + * @param message ConditionalParameterSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Constructs a new CreateFeatureOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata); + /** + * Converts this ConditionalParameterSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** CreateFeatureOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Gets the default type url for ConditionalParameterSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Creates a new CreateFeatureOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateFeatureOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; + namespace ConditionalParameterSpec { - /** - * Encodes the specified CreateFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.verify|verify} messages. - * @param message CreateFeatureOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of a DiscreteValueCondition. */ + interface IDiscreteValueCondition { - /** - * Encodes the specified CreateFeatureOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.verify|verify} messages. - * @param message CreateFeatureOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** DiscreteValueCondition values */ + values?: (number[]|null); + } - /** - * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateFeatureOperationMetadata - * @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.CreateFeatureOperationMetadata; + /** Represents a DiscreteValueCondition. */ + class DiscreteValueCondition implements IDiscreteValueCondition { - /** - * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateFeatureOperationMetadata - * @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.CreateFeatureOperationMetadata; + /** + * Constructs a new DiscreteValueCondition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition); - /** - * Verifies a CreateFeatureOperationMetadata 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); + /** DiscreteValueCondition values. */ + public values: number[]; - /** - * Creates a CreateFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateFeatureOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; + /** + * Creates a new DiscreteValueCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns DiscreteValueCondition instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; - /** - * Creates a plain object from a CreateFeatureOperationMetadata message. Also converts values to other types if specified. - * @param message CreateFeatureOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified DiscreteValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. + * @param message DiscreteValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this CreateFeatureOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified DiscreteValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. + * @param message DiscreteValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for CreateFeatureOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a DiscreteValueCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DiscreteValueCondition + * @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.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; - /** Properties of a BatchCreateFeaturesOperationMetadata. */ - interface IBatchCreateFeaturesOperationMetadata { + /** + * Decodes a DiscreteValueCondition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DiscreteValueCondition + * @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.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; - /** BatchCreateFeaturesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** + * Verifies a DiscreteValueCondition 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); - /** Represents a BatchCreateFeaturesOperationMetadata. */ - class BatchCreateFeaturesOperationMetadata implements IBatchCreateFeaturesOperationMetadata { + /** + * Creates a DiscreteValueCondition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DiscreteValueCondition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; - /** - * Constructs a new BatchCreateFeaturesOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata); + /** + * Creates a plain object from a DiscreteValueCondition message. Also converts values to other types if specified. + * @param message DiscreteValueCondition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** BatchCreateFeaturesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Converts this DiscreteValueCondition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a new BatchCreateFeaturesOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns BatchCreateFeaturesOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; + /** + * Gets the default type url for DiscreteValueCondition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Encodes the specified BatchCreateFeaturesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. - * @param message BatchCreateFeaturesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** Properties of an IntValueCondition. */ + interface IIntValueCondition { - /** - * Encodes the specified BatchCreateFeaturesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. - * @param message BatchCreateFeaturesOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** IntValueCondition values */ + values?: ((number|Long|string)[]|null); + } - /** - * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BatchCreateFeaturesOperationMetadata - * @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.BatchCreateFeaturesOperationMetadata; + /** Represents an IntValueCondition. */ + class IntValueCondition implements IIntValueCondition { - /** - * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BatchCreateFeaturesOperationMetadata - * @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.BatchCreateFeaturesOperationMetadata; + /** + * Constructs a new IntValueCondition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition); - /** - * Verifies a BatchCreateFeaturesOperationMetadata 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); + /** IntValueCondition values. */ + public values: (number|Long|string)[]; - /** - * Creates a BatchCreateFeaturesOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BatchCreateFeaturesOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; + /** + * Creates a new IntValueCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns IntValueCondition instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; - /** - * Creates a plain object from a BatchCreateFeaturesOperationMetadata message. Also converts values to other types if specified. - * @param message BatchCreateFeaturesOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified IntValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. + * @param message IntValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this BatchCreateFeaturesOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified IntValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. + * @param message IntValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for BatchCreateFeaturesOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes an IntValueCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IntValueCondition + * @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.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; - /** Properties of a DeleteFeatureValuesRequest. */ - interface IDeleteFeatureValuesRequest { + /** + * Decodes an IntValueCondition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IntValueCondition + * @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.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; - /** DeleteFeatureValuesRequest selectEntity */ - selectEntity?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity|null); + /** + * Verifies an IntValueCondition 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); - /** DeleteFeatureValuesRequest selectTimeRangeAndFeature */ - selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null); + /** + * Creates an IntValueCondition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IntValueCondition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; - /** DeleteFeatureValuesRequest entityType */ - entityType?: (string|null); - } + /** + * Creates a plain object from an IntValueCondition message. Also converts values to other types if specified. + * @param message IntValueCondition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a DeleteFeatureValuesRequest. */ - class DeleteFeatureValuesRequest implements IDeleteFeatureValuesRequest { + /** + * Converts this IntValueCondition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new DeleteFeatureValuesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest); + /** + * Gets the default type url for IntValueCondition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** DeleteFeatureValuesRequest selectEntity. */ - public selectEntity?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity|null); + /** Properties of a CategoricalValueCondition. */ + interface ICategoricalValueCondition { - /** DeleteFeatureValuesRequest selectTimeRangeAndFeature. */ - public selectTimeRangeAndFeature?: (google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature|null); + /** CategoricalValueCondition values */ + values?: (string[]|null); + } - /** DeleteFeatureValuesRequest entityType. */ - public entityType: string; + /** Represents a CategoricalValueCondition. */ + class CategoricalValueCondition implements ICategoricalValueCondition { - /** DeleteFeatureValuesRequest DeleteOption. */ - public DeleteOption?: ("selectEntity"|"selectTimeRangeAndFeature"); + /** + * Constructs a new CategoricalValueCondition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition); - /** - * Creates a new DeleteFeatureValuesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteFeatureValuesRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesRequest): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest; + /** CategoricalValueCondition values. */ + public values: string[]; - /** - * Encodes the specified DeleteFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IDeleteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new CategoricalValueCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns CategoricalValueCondition instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; - /** - * Encodes the specified DeleteFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IDeleteFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CategoricalValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. + * @param message CategoricalValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition, 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.v1beta1.DeleteFeatureValuesRequest; + /** + * Encodes the specified CategoricalValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. + * @param message CategoricalValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * 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.v1beta1.DeleteFeatureValuesRequest; + /** + * Decodes a CategoricalValueCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CategoricalValueCondition + * @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.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; - /** - * 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); + /** + * Decodes a CategoricalValueCondition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CategoricalValueCondition + * @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.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; - /** - * 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.v1beta1.DeleteFeatureValuesRequest; + /** + * Verifies a CategoricalValueCondition 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 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.v1beta1.DeleteFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a CategoricalValueCondition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CategoricalValueCondition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; - /** - * Converts this DeleteFeatureValuesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a CategoricalValueCondition message. Also converts values to other types if specified. + * @param message CategoricalValueCondition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition, options?: $protobuf.IConversionOptions): { [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; - } + /** + * Converts this CategoricalValueCondition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - namespace DeleteFeatureValuesRequest { + /** + * Gets the default type url for CategoricalValueCondition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** Properties of a SelectEntity. */ - interface ISelectEntity { + /** ScaleType enum. */ + enum ScaleType { + SCALE_TYPE_UNSPECIFIED = 0, + UNIT_LINEAR_SCALE = 1, + UNIT_LOG_SCALE = 2, + UNIT_REVERSE_LOG_SCALE = 3 + } + } - /** SelectEntity entityIdSelector */ - entityIdSelector?: (google.cloud.aiplatform.v1beta1.IEntityIdSelector|null); + /** Properties of a DecayCurveAutomatedStoppingSpec. */ + interface IDecayCurveAutomatedStoppingSpec { + + /** DecayCurveAutomatedStoppingSpec useElapsedDuration */ + useElapsedDuration?: (boolean|null); } - /** Represents a SelectEntity. */ - class SelectEntity implements ISelectEntity { + /** Represents a DecayCurveAutomatedStoppingSpec. */ + class DecayCurveAutomatedStoppingSpec implements IDecayCurveAutomatedStoppingSpec { /** - * Constructs a new SelectEntity. + * Constructs a new DecayCurveAutomatedStoppingSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity); + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec); - /** SelectEntity entityIdSelector. */ - public entityIdSelector?: (google.cloud.aiplatform.v1beta1.IEntityIdSelector|null); + /** DecayCurveAutomatedStoppingSpec useElapsedDuration. */ + public useElapsedDuration: boolean; /** - * Creates a new SelectEntity instance using the specified properties. + * Creates a new DecayCurveAutomatedStoppingSpec instance using the specified properties. * @param [properties] Properties to set - * @returns SelectEntity instance + * @returns DecayCurveAutomatedStoppingSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity; + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; /** - * Encodes the specified SelectEntity message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. - * @param message SelectEntity message or plain object to encode + * Encodes the specified DecayCurveAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. + * @param message DecayCurveAutomatedStoppingSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SelectEntity message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity.verify|verify} messages. - * @param message SelectEntity message or plain object to encode + * Encodes the specified DecayCurveAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. + * @param message DecayCurveAutomatedStoppingSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectEntity, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SelectEntity message from the specified reader or buffer. + * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SelectEntity + * @returns DecayCurveAutomatedStoppingSpec * @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.DeleteFeatureValuesRequest.SelectEntity; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; /** - * Decodes a SelectEntity message from the specified reader or buffer, length delimited. + * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SelectEntity + * @returns DecayCurveAutomatedStoppingSpec * @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.DeleteFeatureValuesRequest.SelectEntity; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; /** - * Verifies a SelectEntity message. + * Verifies a DecayCurveAutomatedStoppingSpec 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. + * Creates a DecayCurveAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SelectEntity + * @returns DecayCurveAutomatedStoppingSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; /** - * Creates a plain object from a SelectEntity message. Also converts values to other types if specified. - * @param message SelectEntity + * Creates a plain object from a DecayCurveAutomatedStoppingSpec message. Also converts values to other types if specified. + * @param message DecayCurveAutomatedStoppingSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectEntity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SelectEntity to JSON. + * Converts this DecayCurveAutomatedStoppingSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SelectEntity + * Gets the default type url for DecayCurveAutomatedStoppingSpec * @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.v1beta1.IFeatureSelector|null); + /** Properties of a MedianAutomatedStoppingSpec. */ + interface IMedianAutomatedStoppingSpec { - /** SelectTimeRangeAndFeature skipOnlineStorageDelete */ - skipOnlineStorageDelete?: (boolean|null); + /** MedianAutomatedStoppingSpec useElapsedDuration */ + useElapsedDuration?: (boolean|null); } - /** Represents a SelectTimeRangeAndFeature. */ - class SelectTimeRangeAndFeature implements ISelectTimeRangeAndFeature { + /** Represents a MedianAutomatedStoppingSpec. */ + class MedianAutomatedStoppingSpec implements IMedianAutomatedStoppingSpec { /** - * Constructs a new SelectTimeRangeAndFeature. + * Constructs a new MedianAutomatedStoppingSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature); - - /** SelectTimeRangeAndFeature timeRange. */ - public timeRange?: (google.type.IInterval|null); - - /** SelectTimeRangeAndFeature featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec); - /** SelectTimeRangeAndFeature skipOnlineStorageDelete. */ - public skipOnlineStorageDelete: boolean; + /** MedianAutomatedStoppingSpec useElapsedDuration. */ + public useElapsedDuration: boolean; /** - * Creates a new SelectTimeRangeAndFeature instance using the specified properties. + * Creates a new MedianAutomatedStoppingSpec instance using the specified properties. * @param [properties] Properties to set - * @returns SelectTimeRangeAndFeature instance + * @returns MedianAutomatedStoppingSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; /** - * Encodes the specified SelectTimeRangeAndFeature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. - * @param message SelectTimeRangeAndFeature message or plain object to encode + * Encodes the specified MedianAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. + * @param message MedianAutomatedStoppingSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SelectTimeRangeAndFeature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature.verify|verify} messages. - * @param message SelectTimeRangeAndFeature message or plain object to encode + * Encodes the specified MedianAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. + * @param message MedianAutomatedStoppingSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.ISelectTimeRangeAndFeature, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer. + * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SelectTimeRangeAndFeature + * @returns MedianAutomatedStoppingSpec * @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.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; /** - * Decodes a SelectTimeRangeAndFeature message from the specified reader or buffer, length delimited. + * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SelectTimeRangeAndFeature + * @returns MedianAutomatedStoppingSpec * @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.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; /** - * Verifies a SelectTimeRangeAndFeature message. + * Verifies a MedianAutomatedStoppingSpec 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. + * Creates a MedianAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SelectTimeRangeAndFeature + * @returns MedianAutomatedStoppingSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; /** - * Creates a plain object from a SelectTimeRangeAndFeature message. Also converts values to other types if specified. - * @param message SelectTimeRangeAndFeature + * Creates a plain object from a MedianAutomatedStoppingSpec message. Also converts values to other types if specified. + * @param message MedianAutomatedStoppingSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureValuesRequest.SelectTimeRangeAndFeature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SelectTimeRangeAndFeature to JSON. + * Converts this MedianAutomatedStoppingSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SelectTimeRangeAndFeature + * Gets the default type url for MedianAutomatedStoppingSpec * @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 { - } - - /** Represents a DeleteFeatureValuesResponse. */ - class DeleteFeatureValuesResponse implements IDeleteFeatureValuesResponse { - - /** - * Constructs a new DeleteFeatureValuesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesResponse); - - /** - * Creates a new DeleteFeatureValuesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteFeatureValuesResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureValuesResponse): google.cloud.aiplatform.v1beta1.DeleteFeatureValuesResponse; - - /** - * Encodes the specified DeleteFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IDeleteFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DeleteFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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; - } - - /** Properties of an EntityIdSelector. */ - interface IEntityIdSelector { - - /** EntityIdSelector csvSource */ - csvSource?: (google.cloud.aiplatform.v1beta1.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.v1beta1.IEntityIdSelector); - - /** EntityIdSelector csvSource. */ - public csvSource?: (google.cloud.aiplatform.v1beta1.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.v1beta1.IEntityIdSelector): google.cloud.aiplatform.v1beta1.EntityIdSelector; - - /** - * Encodes the specified EntityIdSelector message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.IEntityIdSelector, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified EntityIdSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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.v1beta1.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 { - - /** HyperparameterTuningJob name */ - name?: (string|null); - - /** HyperparameterTuningJob displayName */ - displayName?: (string|null); - - /** HyperparameterTuningJob studySpec */ - studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); - - /** HyperparameterTuningJob maxTrialCount */ - maxTrialCount?: (number|null); - - /** HyperparameterTuningJob parallelTrialCount */ - parallelTrialCount?: (number|null); - - /** HyperparameterTuningJob maxFailedTrialCount */ - maxFailedTrialCount?: (number|null); - - /** HyperparameterTuningJob trialJobSpec */ - trialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - - /** HyperparameterTuningJob trials */ - trials?: (google.cloud.aiplatform.v1beta1.ITrial[]|null); - - /** HyperparameterTuningJob state */ - state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - - /** HyperparameterTuningJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob error */ - error?: (google.rpc.IStatus|null); - - /** HyperparameterTuningJob labels */ - labels?: ({ [k: string]: string }|null); - - /** HyperparameterTuningJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - } - /** Represents a HyperparameterTuningJob. */ - class HyperparameterTuningJob implements IHyperparameterTuningJob { - - /** - * Constructs a new HyperparameterTuningJob. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob); - - /** HyperparameterTuningJob name. */ - public name: string; - - /** HyperparameterTuningJob displayName. */ - public displayName: string; - - /** HyperparameterTuningJob studySpec. */ - public studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); - - /** HyperparameterTuningJob maxTrialCount. */ - public maxTrialCount: number; - - /** HyperparameterTuningJob parallelTrialCount. */ - public parallelTrialCount: number; - - /** HyperparameterTuningJob maxFailedTrialCount. */ - public maxFailedTrialCount: number; - - /** HyperparameterTuningJob trialJobSpec. */ - public trialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); + /** Properties of a ConvexAutomatedStoppingSpec. */ + interface IConvexAutomatedStoppingSpec { - /** HyperparameterTuningJob trials. */ - public trials: google.cloud.aiplatform.v1beta1.ITrial[]; + /** ConvexAutomatedStoppingSpec maxStepCount */ + maxStepCount?: (number|Long|string|null); - /** HyperparameterTuningJob state. */ - public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); + /** ConvexAutomatedStoppingSpec minStepCount */ + minStepCount?: (number|Long|string|null); - /** HyperparameterTuningJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ConvexAutomatedStoppingSpec minMeasurementCount */ + minMeasurementCount?: (number|Long|string|null); - /** HyperparameterTuningJob startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** ConvexAutomatedStoppingSpec learningRateParameterName */ + learningRateParameterName?: (string|null); - /** HyperparameterTuningJob endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** ConvexAutomatedStoppingSpec useElapsedDuration */ + useElapsedDuration?: (boolean|null); - /** HyperparameterTuningJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ConvexAutomatedStoppingSpec updateAllStoppedTrials */ + updateAllStoppedTrials?: (boolean|null); + } - /** HyperparameterTuningJob error. */ - public error?: (google.rpc.IStatus|null); + /** Represents a ConvexAutomatedStoppingSpec. */ + class ConvexAutomatedStoppingSpec implements IConvexAutomatedStoppingSpec { - /** HyperparameterTuningJob labels. */ - public labels: { [k: string]: string }; + /** + * Constructs a new ConvexAutomatedStoppingSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec); - /** HyperparameterTuningJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ConvexAutomatedStoppingSpec maxStepCount. */ + public maxStepCount: (number|Long|string); - /** - * Creates a new HyperparameterTuningJob instance using the specified properties. - * @param [properties] Properties to set - * @returns HyperparameterTuningJob instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; + /** ConvexAutomatedStoppingSpec minStepCount. */ + public minStepCount: (number|Long|string); - /** - * Encodes the specified HyperparameterTuningJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify|verify} messages. - * @param message HyperparameterTuningJob message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConvexAutomatedStoppingSpec minMeasurementCount. */ + public minMeasurementCount: (number|Long|string); - /** - * Encodes the specified HyperparameterTuningJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify|verify} messages. - * @param message HyperparameterTuningJob message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConvexAutomatedStoppingSpec learningRateParameterName. */ + public learningRateParameterName: string; - /** - * Decodes a HyperparameterTuningJob message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns HyperparameterTuningJob - * @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.HyperparameterTuningJob; + /** ConvexAutomatedStoppingSpec useElapsedDuration. */ + public useElapsedDuration: boolean; - /** - * Decodes a HyperparameterTuningJob message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns HyperparameterTuningJob - * @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.HyperparameterTuningJob; + /** ConvexAutomatedStoppingSpec updateAllStoppedTrials. */ + public updateAllStoppedTrials?: (boolean|null); - /** - * Verifies a HyperparameterTuningJob 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); + /** ConvexAutomatedStoppingSpec _updateAllStoppedTrials. */ + public _updateAllStoppedTrials?: "updateAllStoppedTrials"; - /** - * Creates a HyperparameterTuningJob message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns HyperparameterTuningJob - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; + /** + * Creates a new ConvexAutomatedStoppingSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ConvexAutomatedStoppingSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; - /** - * Creates a plain object from a HyperparameterTuningJob message. Also converts values to other types if specified. - * @param message HyperparameterTuningJob - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified ConvexAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * @param message ConvexAutomatedStoppingSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this HyperparameterTuningJob to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Encodes the specified ConvexAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * @param message ConvexAutomatedStoppingSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Gets the default type url for HyperparameterTuningJob - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConvexAutomatedStoppingSpec + * @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.StudySpec.ConvexAutomatedStoppingSpec; - /** Properties of a Study. */ - interface IStudy { + /** + * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConvexAutomatedStoppingSpec + * @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.StudySpec.ConvexAutomatedStoppingSpec; - /** Study name */ - name?: (string|null); + /** + * Verifies a ConvexAutomatedStoppingSpec 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); - /** Study displayName */ - displayName?: (string|null); + /** + * Creates a ConvexAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConvexAutomatedStoppingSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; - /** Study studySpec */ - studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); + /** + * Creates a plain object from a ConvexAutomatedStoppingSpec message. Also converts values to other types if specified. + * @param message ConvexAutomatedStoppingSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Study state */ - state?: (google.cloud.aiplatform.v1beta1.Study.State|keyof typeof google.cloud.aiplatform.v1beta1.Study.State|null); + /** + * Converts this ConvexAutomatedStoppingSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Study createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Gets the default type url for ConvexAutomatedStoppingSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Study inactiveReason */ - inactiveReason?: (string|null); - } + /** Properties of a ConvexStopConfig. */ + interface IConvexStopConfig { - /** Represents a Study. */ - class Study implements IStudy { + /** ConvexStopConfig maxNumSteps */ + maxNumSteps?: (number|Long|string|null); - /** - * Constructs a new Study. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStudy); + /** ConvexStopConfig minNumSteps */ + minNumSteps?: (number|Long|string|null); - /** Study name. */ - public name: string; + /** ConvexStopConfig autoregressiveOrder */ + autoregressiveOrder?: (number|Long|string|null); - /** Study displayName. */ - public displayName: string; + /** ConvexStopConfig learningRateParameterName */ + learningRateParameterName?: (string|null); - /** Study studySpec. */ - public studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); + /** ConvexStopConfig useSeconds */ + useSeconds?: (boolean|null); + } - /** Study state. */ - public state: (google.cloud.aiplatform.v1beta1.Study.State|keyof typeof google.cloud.aiplatform.v1beta1.Study.State); + /** Represents a ConvexStopConfig. */ + class ConvexStopConfig implements IConvexStopConfig { - /** Study createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new ConvexStopConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig); - /** Study inactiveReason. */ - public inactiveReason: string; + /** ConvexStopConfig maxNumSteps. */ + public maxNumSteps: (number|Long|string); - /** - * Creates a new Study instance using the specified properties. - * @param [properties] Properties to set - * @returns Study instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStudy): google.cloud.aiplatform.v1beta1.Study; + /** ConvexStopConfig minNumSteps. */ + public minNumSteps: (number|Long|string); - /** - * Encodes the specified Study message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.verify|verify} messages. - * @param message Study message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConvexStopConfig autoregressiveOrder. */ + public autoregressiveOrder: (number|Long|string); - /** - * Encodes the specified Study message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.verify|verify} messages. - * @param message Study message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConvexStopConfig learningRateParameterName. */ + public learningRateParameterName: string; - /** - * Decodes a Study message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Study - * @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.Study; + /** ConvexStopConfig useSeconds. */ + public useSeconds: boolean; - /** - * Decodes a Study message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Study - * @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.Study; + /** + * Creates a new ConvexStopConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ConvexStopConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig): google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig; - /** - * Verifies a Study 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); + /** + * Encodes the specified ConvexStopConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. + * @param message ConvexStopConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a Study message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Study - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Study; + /** + * Encodes the specified ConvexStopConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. + * @param message ConvexStopConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a Study message. Also converts values to other types if specified. - * @param message Study - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Study, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a ConvexStopConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConvexStopConfig + * @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.StudySpec.ConvexStopConfig; - /** - * Converts this Study to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a ConvexStopConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConvexStopConfig + * @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.StudySpec.ConvexStopConfig; - /** - * Gets the default type url for Study - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a ConvexStopConfig 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); - namespace Study { + /** + * Creates a ConvexStopConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConvexStopConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - INACTIVE = 2, - COMPLETED = 3 + /** + * Creates a plain object from a ConvexStopConfig message. Also converts values to other types if specified. + * @param message ConvexStopConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConvexStopConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConvexStopConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - } - /** Properties of a Trial. */ - interface ITrial { + /** Properties of a TransferLearningConfig. */ + interface ITransferLearningConfig { - /** Trial name */ - name?: (string|null); + /** TransferLearningConfig disableTransferLearning */ + disableTransferLearning?: (boolean|null); - /** Trial id */ - id?: (string|null); + /** TransferLearningConfig priorStudyNames */ + priorStudyNames?: (string[]|null); + } - /** Trial state */ - state?: (google.cloud.aiplatform.v1beta1.Trial.State|keyof typeof google.cloud.aiplatform.v1beta1.Trial.State|null); + /** Represents a TransferLearningConfig. */ + class TransferLearningConfig implements ITransferLearningConfig { - /** Trial parameters */ - parameters?: (google.cloud.aiplatform.v1beta1.Trial.IParameter[]|null); + /** + * Constructs a new TransferLearningConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig); - /** Trial finalMeasurement */ - finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); + /** TransferLearningConfig disableTransferLearning. */ + public disableTransferLearning: boolean; - /** Trial measurements */ - measurements?: (google.cloud.aiplatform.v1beta1.IMeasurement[]|null); + /** TransferLearningConfig priorStudyNames. */ + public priorStudyNames: string[]; - /** Trial startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a new TransferLearningConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns TransferLearningConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig): google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig; - /** Trial endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** + * Encodes the specified TransferLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. + * @param message TransferLearningConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Trial clientId */ - clientId?: (string|null); + /** + * Encodes the specified TransferLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. + * @param message TransferLearningConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Trial infeasibleReason */ - infeasibleReason?: (string|null); + /** + * Decodes a TransferLearningConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TransferLearningConfig + * @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.StudySpec.TransferLearningConfig; - /** Trial customJob */ - customJob?: (string|null); + /** + * Decodes a TransferLearningConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TransferLearningConfig + * @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.StudySpec.TransferLearningConfig; - /** Trial webAccessUris */ - webAccessUris?: ({ [k: string]: string }|null); - } + /** + * Verifies a TransferLearningConfig 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); - /** Represents a Trial. */ - class Trial implements ITrial { + /** + * Creates a TransferLearningConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TransferLearningConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig; - /** - * Constructs a new Trial. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ITrial); + /** + * Creates a plain object from a TransferLearningConfig message. Also converts values to other types if specified. + * @param message TransferLearningConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Trial name. */ - public name: string; + /** + * Converts this TransferLearningConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Trial id. */ - public id: string; + /** + * Gets the default type url for TransferLearningConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Trial state. */ - public state: (google.cloud.aiplatform.v1beta1.Trial.State|keyof typeof google.cloud.aiplatform.v1beta1.Trial.State); + /** Algorithm enum. */ + enum Algorithm { + ALGORITHM_UNSPECIFIED = 0, + GRID_SEARCH = 2, + RANDOM_SEARCH = 3 + } - /** Trial parameters. */ - public parameters: google.cloud.aiplatform.v1beta1.Trial.IParameter[]; + /** ObservationNoise enum. */ + enum ObservationNoise { + OBSERVATION_NOISE_UNSPECIFIED = 0, + LOW = 1, + HIGH = 2 + } - /** Trial finalMeasurement. */ - public finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); + /** MeasurementSelectionType enum. */ + enum MeasurementSelectionType { + MEASUREMENT_SELECTION_TYPE_UNSPECIFIED = 0, + LAST_MEASUREMENT = 1, + BEST_MEASUREMENT = 2 + } + } - /** Trial measurements. */ - public measurements: google.cloud.aiplatform.v1beta1.IMeasurement[]; + /** Properties of a Measurement. */ + interface IMeasurement { - /** Trial startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** Measurement elapsedDuration */ + elapsedDuration?: (google.protobuf.IDuration|null); - /** Trial endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** Measurement stepCount */ + stepCount?: (number|Long|string|null); - /** Trial clientId. */ - public clientId: string; + /** Measurement metrics */ + metrics?: (google.cloud.aiplatform.v1beta1.Measurement.IMetric[]|null); + } - /** Trial infeasibleReason. */ - public infeasibleReason: string; + /** Represents a Measurement. */ + class Measurement implements IMeasurement { - /** Trial customJob. */ - public customJob: string; + /** + * Constructs a new Measurement. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IMeasurement); + + /** Measurement elapsedDuration. */ + public elapsedDuration?: (google.protobuf.IDuration|null); - /** Trial webAccessUris. */ - public webAccessUris: { [k: string]: string }; + /** Measurement stepCount. */ + public stepCount: (number|Long|string); + + /** Measurement metrics. */ + public metrics: google.cloud.aiplatform.v1beta1.Measurement.IMetric[]; /** - * Creates a new Trial instance using the specified properties. + * Creates a new Measurement instance using the specified properties. * @param [properties] Properties to set - * @returns Trial instance + * @returns Measurement instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ITrial): google.cloud.aiplatform.v1beta1.Trial; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMeasurement): google.cloud.aiplatform.v1beta1.Measurement; /** - * Encodes the specified Trial message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.verify|verify} messages. - * @param message Trial message or plain object to encode + * Encodes the specified Measurement message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. + * @param message Measurement message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMeasurement, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Trial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.verify|verify} messages. - * @param message Trial message or plain object to encode + * Encodes the specified Measurement message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. + * @param message Measurement message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMeasurement, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Trial message from the specified reader or buffer. + * Decodes a Measurement message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Trial + * @returns Measurement * @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.Trial; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Measurement; /** - * Decodes a Trial message from the specified reader or buffer, length delimited. + * Decodes a Measurement message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Trial + * @returns Measurement * @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.Trial; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Measurement; /** - * Verifies a Trial message. + * Verifies a Measurement 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 Trial message from a plain object. Also converts values to their respective internal types. + * Creates a Measurement message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Trial + * @returns Measurement */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Trial; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Measurement; /** - * Creates a plain object from a Trial message. Also converts values to other types if specified. - * @param message Trial + * Creates a plain object from a Measurement message. Also converts values to other types if specified. + * @param message Measurement * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Trial, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Measurement, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Trial to JSON. + * Converts this Measurement to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Trial + * Gets the default type url for Measurement * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Trial { + namespace Measurement { - /** Properties of a Parameter. */ - interface IParameter { + /** Properties of a Metric. */ + interface IMetric { - /** Parameter parameterId */ - parameterId?: (string|null); + /** Metric metricId */ + metricId?: (string|null); - /** Parameter value */ - value?: (google.protobuf.IValue|null); + /** Metric value */ + value?: (number|null); } - /** Represents a Parameter. */ - class Parameter implements IParameter { + /** Represents a Metric. */ + class Metric implements IMetric { /** - * Constructs a new Parameter. + * Constructs a new Metric. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Trial.IParameter); + constructor(properties?: google.cloud.aiplatform.v1beta1.Measurement.IMetric); - /** Parameter parameterId. */ - public parameterId: string; + /** Metric metricId. */ + public metricId: string; - /** Parameter value. */ - public value?: (google.protobuf.IValue|null); + /** Metric value. */ + public value: number; /** - * Creates a new Parameter instance using the specified properties. + * Creates a new Metric instance using the specified properties. * @param [properties] Properties to set - * @returns Parameter instance + * @returns Metric instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Trial.IParameter): google.cloud.aiplatform.v1beta1.Trial.Parameter; + public static create(properties?: google.cloud.aiplatform.v1beta1.Measurement.IMetric): google.cloud.aiplatform.v1beta1.Measurement.Metric; /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode + * Encodes the specified Metric message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.Trial.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.Measurement.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode + * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Trial.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Measurement.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Parameter message from the specified reader or buffer. + * Decodes a Metric message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Parameter + * @returns Metric * @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.Trial.Parameter; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Measurement.Metric; /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. + * Decodes a Metric message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Parameter + * @returns Metric * @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.Trial.Parameter; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Measurement.Metric; /** - * Verifies a Parameter message. + * Verifies a Metric 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 Parameter message from a plain object. Also converts values to their respective internal types. + * Creates a Metric message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Parameter + * @returns Metric */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Trial.Parameter; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Measurement.Metric; /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @param message Parameter + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @param message Metric * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Trial.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Measurement.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Parameter to JSON. + * Converts this Metric to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Parameter + * Gets the default type url for Metric * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - REQUESTED = 1, - ACTIVE = 2, - STOPPING = 3, - SUCCEEDED = 4, - INFEASIBLE = 5 - } } - /** Properties of a StudySpec. */ - interface IStudySpec { + /** Properties of an Index. */ + interface IIndex { - /** StudySpec decayCurveStoppingSpec */ - decayCurveStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); + /** Index name */ + name?: (string|null); - /** StudySpec medianAutomatedStoppingSpec */ - medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null); + /** Index displayName */ + displayName?: (string|null); - /** StudySpec convexStopConfig */ - convexStopConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null); + /** Index description */ + description?: (string|null); - /** StudySpec convexAutomatedStoppingSpec */ - convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null); + /** Index metadataSchemaUri */ + metadataSchemaUri?: (string|null); - /** StudySpec metrics */ - metrics?: (google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec[]|null); + /** Index metadata */ + metadata?: (google.protobuf.IValue|null); - /** StudySpec parameters */ - parameters?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec[]|null); + /** Index deployedIndexes */ + deployedIndexes?: (google.cloud.aiplatform.v1beta1.IDeployedIndexRef[]|null); - /** StudySpec algorithm */ - algorithm?: (google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|null); + /** Index etag */ + etag?: (string|null); - /** StudySpec observationNoise */ - observationNoise?: (google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|null); + /** Index labels */ + labels?: ({ [k: string]: string }|null); - /** StudySpec measurementSelectionType */ - measurementSelectionType?: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|null); + /** Index createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** StudySpec transferLearningConfig */ - transferLearningConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig|null); + /** Index updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Index indexStats */ + indexStats?: (google.cloud.aiplatform.v1beta1.IIndexStats|null); + + /** Index indexUpdateMethod */ + indexUpdateMethod?: (google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|keyof typeof google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|null); } - /** Represents a StudySpec. */ - class StudySpec implements IStudySpec { + /** Represents an Index. */ + class Index implements IIndex { /** - * Constructs a new StudySpec. + * Constructs a new Index. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStudySpec); + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndex); - /** StudySpec decayCurveStoppingSpec. */ - public decayCurveStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); + /** Index name. */ + public name: string; - /** StudySpec medianAutomatedStoppingSpec. */ - public medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null); + /** Index displayName. */ + public displayName: string; - /** StudySpec convexStopConfig. */ - public convexStopConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null); + /** Index description. */ + public description: string; - /** StudySpec convexAutomatedStoppingSpec. */ - public convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null); + /** Index metadataSchemaUri. */ + public metadataSchemaUri: string; - /** StudySpec metrics. */ - public metrics: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec[]; + /** Index metadata. */ + public metadata?: (google.protobuf.IValue|null); - /** StudySpec parameters. */ - public parameters: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec[]; + /** Index deployedIndexes. */ + public deployedIndexes: google.cloud.aiplatform.v1beta1.IDeployedIndexRef[]; - /** StudySpec algorithm. */ - public algorithm: (google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.Algorithm); + /** Index etag. */ + public etag: string; - /** StudySpec observationNoise. */ - public observationNoise: (google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise); + /** Index labels. */ + public labels: { [k: string]: string }; - /** StudySpec measurementSelectionType. */ - public measurementSelectionType: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType); + /** Index createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** StudySpec transferLearningConfig. */ - public transferLearningConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig|null); + /** Index updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** StudySpec automatedStoppingSpec. */ - public automatedStoppingSpec?: ("decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexStopConfig"|"convexAutomatedStoppingSpec"); + /** Index indexStats. */ + public indexStats?: (google.cloud.aiplatform.v1beta1.IIndexStats|null); + + /** Index indexUpdateMethod. */ + public indexUpdateMethod: (google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|keyof typeof google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod); /** - * Creates a new StudySpec instance using the specified properties. + * Creates a new Index instance using the specified properties. * @param [properties] Properties to set - * @returns StudySpec instance + * @returns Index instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStudySpec): google.cloud.aiplatform.v1beta1.StudySpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IIndex): google.cloud.aiplatform.v1beta1.Index; /** - * Encodes the specified StudySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.verify|verify} messages. - * @param message StudySpec message or plain object to encode + * Encodes the specified Index message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. + * @param message Index message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IIndex, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StudySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.verify|verify} messages. - * @param message StudySpec message or plain object to encode + * Encodes the specified Index message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. + * @param message Index message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndex, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StudySpec message from the specified reader or buffer. + * Decodes an Index message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StudySpec + * @returns Index * @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.StudySpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Index; /** - * Decodes a StudySpec message from the specified reader or buffer, length delimited. + * Decodes an Index message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StudySpec + * @returns Index * @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.StudySpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Index; /** - * Verifies a StudySpec message. + * Verifies an Index 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 StudySpec message from a plain object. Also converts values to their respective internal types. + * Creates an Index message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StudySpec + * @returns Index */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Index; /** - * Creates a plain object from a StudySpec message. Also converts values to other types if specified. - * @param message StudySpec + * Creates a plain object from an Index message. Also converts values to other types if specified. + * @param message Index * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Index, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StudySpec to JSON. + * Converts this Index to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for StudySpec + * Gets the default type url for Index * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace StudySpec { + namespace Index { - /** Properties of a MetricSpec. */ - interface IMetricSpec { + /** IndexUpdateMethod enum. */ + enum IndexUpdateMethod { + INDEX_UPDATE_METHOD_UNSPECIFIED = 0, + BATCH_UPDATE = 1, + STREAM_UPDATE = 2 + } + } - /** MetricSpec metricId */ - metricId?: (string|null); + /** Properties of an IndexDatapoint. */ + interface IIndexDatapoint { - /** MetricSpec goal */ - goal?: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|null); - } + /** IndexDatapoint datapointId */ + datapointId?: (string|null); - /** Represents a MetricSpec. */ - class MetricSpec implements IMetricSpec { + /** IndexDatapoint featureVector */ + featureVector?: (number[]|null); - /** - * Constructs a new MetricSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec); + /** IndexDatapoint restricts */ + restricts?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction[]|null); - /** MetricSpec metricId. */ - public metricId: string; + /** IndexDatapoint crowdingTag */ + crowdingTag?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null); + } - /** MetricSpec goal. */ - public goal: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType); + /** Represents an IndexDatapoint. */ + class IndexDatapoint implements IIndexDatapoint { - /** - * Creates a new MetricSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns MetricSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec; + /** + * Constructs a new IndexDatapoint. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexDatapoint); - /** - * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify|verify} messages. - * @param message MetricSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** IndexDatapoint datapointId. */ + public datapointId: string; - /** - * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify|verify} messages. - * @param message MetricSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** IndexDatapoint featureVector. */ + public featureVector: number[]; - /** - * Decodes a MetricSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MetricSpec - * @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.StudySpec.MetricSpec; + /** IndexDatapoint restricts. */ + public restricts: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction[]; - /** - * Decodes a MetricSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MetricSpec - * @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.StudySpec.MetricSpec; + /** IndexDatapoint crowdingTag. */ + public crowdingTag?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null); - /** - * Verifies a MetricSpec 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 new IndexDatapoint instance using the specified properties. + * @param [properties] Properties to set + * @returns IndexDatapoint instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexDatapoint): google.cloud.aiplatform.v1beta1.IndexDatapoint; - /** - * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MetricSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec; + /** + * Encodes the specified IndexDatapoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. + * @param message IndexDatapoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IIndexDatapoint, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. - * @param message MetricSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified IndexDatapoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. + * @param message IndexDatapoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexDatapoint, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this MetricSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes an IndexDatapoint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IndexDatapoint + * @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.IndexDatapoint; - /** - * Gets the default type url for MetricSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Decodes an IndexDatapoint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IndexDatapoint + * @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.IndexDatapoint; - namespace MetricSpec { + /** + * Verifies an IndexDatapoint 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); - /** GoalType enum. */ - enum GoalType { - GOAL_TYPE_UNSPECIFIED = 0, - MAXIMIZE = 1, - MINIMIZE = 2 - } - } + /** + * Creates an IndexDatapoint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IndexDatapoint + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexDatapoint; - /** Properties of a ParameterSpec. */ - interface IParameterSpec { + /** + * Creates a plain object from an IndexDatapoint message. Also converts values to other types if specified. + * @param message IndexDatapoint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexDatapoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ParameterSpec doubleValueSpec */ - doubleValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null); + /** + * Converts this IndexDatapoint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ParameterSpec integerValueSpec */ - integerValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null); + /** + * Gets the default type url for IndexDatapoint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ParameterSpec categoricalValueSpec */ - categoricalValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null); + namespace IndexDatapoint { - /** ParameterSpec discreteValueSpec */ - discreteValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null); + /** Properties of a Restriction. */ + interface IRestriction { - /** ParameterSpec parameterId */ - parameterId?: (string|null); + /** Restriction namespace */ + namespace?: (string|null); - /** ParameterSpec scaleType */ - scaleType?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|null); + /** Restriction allowList */ + allowList?: (string[]|null); - /** ParameterSpec conditionalParameterSpecs */ - conditionalParameterSpecs?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec[]|null); + /** Restriction denyList */ + denyList?: (string[]|null); } - /** Represents a ParameterSpec. */ - class ParameterSpec implements IParameterSpec { + /** Represents a Restriction. */ + class Restriction implements IRestriction { /** - * Constructs a new ParameterSpec. + * Constructs a new Restriction. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec); - - /** ParameterSpec doubleValueSpec. */ - public doubleValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null); - - /** ParameterSpec integerValueSpec. */ - public integerValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null); - - /** ParameterSpec categoricalValueSpec. */ - public categoricalValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null); - - /** ParameterSpec discreteValueSpec. */ - public discreteValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null); - - /** ParameterSpec parameterId. */ - public parameterId: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction); - /** ParameterSpec scaleType. */ - public scaleType: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType); + /** Restriction namespace. */ + public namespace: string; - /** ParameterSpec conditionalParameterSpecs. */ - public conditionalParameterSpecs: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec[]; + /** Restriction allowList. */ + public allowList: string[]; - /** ParameterSpec parameterValueSpec. */ - public parameterValueSpec?: ("doubleValueSpec"|"integerValueSpec"|"categoricalValueSpec"|"discreteValueSpec"); + /** Restriction denyList. */ + public denyList: string[]; /** - * Creates a new ParameterSpec instance using the specified properties. + * Creates a new Restriction instance using the specified properties. * @param [properties] Properties to set - * @returns ParameterSpec instance + * @returns Restriction instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction): google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction; /** - * Encodes the specified ParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify|verify} messages. - * @param message ParameterSpec message or plain object to encode + * Encodes the specified Restriction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. + * @param message Restriction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify|verify} messages. - * @param message ParameterSpec message or plain object to encode + * Encodes the specified Restriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. + * @param message Restriction message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ParameterSpec message from the specified reader or buffer. + * Decodes a Restriction message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ParameterSpec + * @returns Restriction * @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.StudySpec.ParameterSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction; /** - * Decodes a ParameterSpec message from the specified reader or buffer, length delimited. + * Decodes a Restriction message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ParameterSpec + * @returns Restriction * @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.StudySpec.ParameterSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction; /** - * Verifies a ParameterSpec message. + * Verifies a Restriction 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 ParameterSpec message from a plain object. Also converts values to their respective internal types. + * Creates a Restriction message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ParameterSpec + * @returns Restriction */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction; /** - * Creates a plain object from a ParameterSpec message. Also converts values to other types if specified. - * @param message ParameterSpec + * Creates a plain object from a Restriction message. Also converts values to other types if specified. + * @param message Restriction * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ParameterSpec to JSON. + * Converts this Restriction to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ParameterSpec + * Gets the default type url for Restriction * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace ParameterSpec { - - /** Properties of a DoubleValueSpec. */ - interface IDoubleValueSpec { - - /** DoubleValueSpec minValue */ - minValue?: (number|null); - - /** DoubleValueSpec maxValue */ - maxValue?: (number|null); - - /** DoubleValueSpec defaultValue */ - defaultValue?: (number|null); - } - - /** Represents a DoubleValueSpec. */ - class DoubleValueSpec implements IDoubleValueSpec { - - /** - * Constructs a new DoubleValueSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec); - - /** DoubleValueSpec minValue. */ - public minValue: number; - - /** DoubleValueSpec maxValue. */ - public maxValue: number; - - /** DoubleValueSpec defaultValue. */ - public defaultValue?: (number|null); - - /** DoubleValueSpec _defaultValue. */ - public _defaultValue?: "defaultValue"; - - /** - * Creates a new DoubleValueSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns DoubleValueSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; - - /** - * Encodes the specified DoubleValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. - * @param message DoubleValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DoubleValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. - * @param message DoubleValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DoubleValueSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DoubleValueSpec - * @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.StudySpec.ParameterSpec.DoubleValueSpec; - - /** - * Decodes a DoubleValueSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DoubleValueSpec - * @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.StudySpec.ParameterSpec.DoubleValueSpec; - - /** - * Verifies a DoubleValueSpec 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 DoubleValueSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DoubleValueSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; - - /** - * Creates a plain object from a DoubleValueSpec message. Also converts values to other types if specified. - * @param message DoubleValueSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DoubleValueSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for DoubleValueSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of an IntegerValueSpec. */ - interface IIntegerValueSpec { - - /** IntegerValueSpec minValue */ - minValue?: (number|Long|string|null); - - /** IntegerValueSpec maxValue */ - maxValue?: (number|Long|string|null); - - /** IntegerValueSpec defaultValue */ - defaultValue?: (number|Long|string|null); - } - - /** Represents an IntegerValueSpec. */ - class IntegerValueSpec implements IIntegerValueSpec { - - /** - * Constructs a new IntegerValueSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec); - - /** IntegerValueSpec minValue. */ - public minValue: (number|Long|string); - - /** IntegerValueSpec maxValue. */ - public maxValue: (number|Long|string); - - /** IntegerValueSpec defaultValue. */ - public defaultValue?: (number|Long|string|null); - - /** IntegerValueSpec _defaultValue. */ - public _defaultValue?: "defaultValue"; - - /** - * Creates a new IntegerValueSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns IntegerValueSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; - - /** - * Encodes the specified IntegerValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. - * @param message IntegerValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified IntegerValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. - * @param message IntegerValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IntegerValueSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IntegerValueSpec - * @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.StudySpec.ParameterSpec.IntegerValueSpec; - - /** - * Decodes an IntegerValueSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IntegerValueSpec - * @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.StudySpec.ParameterSpec.IntegerValueSpec; - - /** - * Verifies an IntegerValueSpec 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 IntegerValueSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IntegerValueSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; - - /** - * Creates a plain object from an IntegerValueSpec message. Also converts values to other types if specified. - * @param message IntegerValueSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this IntegerValueSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for IntegerValueSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CategoricalValueSpec. */ - interface ICategoricalValueSpec { - - /** CategoricalValueSpec values */ - values?: (string[]|null); - - /** CategoricalValueSpec defaultValue */ - defaultValue?: (string|null); - } - - /** Represents a CategoricalValueSpec. */ - class CategoricalValueSpec implements ICategoricalValueSpec { - - /** - * Constructs a new CategoricalValueSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec); - - /** CategoricalValueSpec values. */ - public values: string[]; - - /** CategoricalValueSpec defaultValue. */ - public defaultValue?: (string|null); - - /** CategoricalValueSpec _defaultValue. */ - public _defaultValue?: "defaultValue"; - - /** - * Creates a new CategoricalValueSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns CategoricalValueSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; - - /** - * Encodes the specified CategoricalValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. - * @param message CategoricalValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified CategoricalValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. - * @param message CategoricalValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CategoricalValueSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CategoricalValueSpec - * @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.StudySpec.ParameterSpec.CategoricalValueSpec; - - /** - * Decodes a CategoricalValueSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CategoricalValueSpec - * @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.StudySpec.ParameterSpec.CategoricalValueSpec; - - /** - * Verifies a CategoricalValueSpec 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 CategoricalValueSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CategoricalValueSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; - - /** - * Creates a plain object from a CategoricalValueSpec message. Also converts values to other types if specified. - * @param message CategoricalValueSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this CategoricalValueSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for CategoricalValueSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a DiscreteValueSpec. */ - interface IDiscreteValueSpec { - - /** DiscreteValueSpec values */ - values?: (number[]|null); - - /** DiscreteValueSpec defaultValue */ - defaultValue?: (number|null); - } - - /** Represents a DiscreteValueSpec. */ - class DiscreteValueSpec implements IDiscreteValueSpec { + /** Properties of a CrowdingTag. */ + interface ICrowdingTag { - /** - * Constructs a new DiscreteValueSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec); + /** CrowdingTag crowdingAttribute */ + crowdingAttribute?: (string|null); + } - /** DiscreteValueSpec values. */ - public values: number[]; + /** Represents a CrowdingTag. */ + class CrowdingTag implements ICrowdingTag { - /** DiscreteValueSpec defaultValue. */ - public defaultValue?: (number|null); + /** + * Constructs a new CrowdingTag. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag); - /** DiscreteValueSpec _defaultValue. */ - public _defaultValue?: "defaultValue"; + /** CrowdingTag crowdingAttribute. */ + public crowdingAttribute: string; - /** - * Creates a new DiscreteValueSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns DiscreteValueSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; + /** + * Creates a new CrowdingTag instance using the specified properties. + * @param [properties] Properties to set + * @returns CrowdingTag instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag): google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag; - /** - * Encodes the specified DiscreteValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. - * @param message DiscreteValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CrowdingTag message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @param message CrowdingTag message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified DiscreteValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. - * @param message DiscreteValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CrowdingTag message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @param message CrowdingTag message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a DiscreteValueSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DiscreteValueSpec - * @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.StudySpec.ParameterSpec.DiscreteValueSpec; + /** + * Decodes a CrowdingTag message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CrowdingTag + * @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.IndexDatapoint.CrowdingTag; - /** - * Decodes a DiscreteValueSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DiscreteValueSpec - * @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.StudySpec.ParameterSpec.DiscreteValueSpec; + /** + * Decodes a CrowdingTag message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CrowdingTag + * @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.IndexDatapoint.CrowdingTag; - /** - * Verifies a DiscreteValueSpec 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); + /** + * Verifies a CrowdingTag 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 DiscreteValueSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DiscreteValueSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; + /** + * Creates a CrowdingTag message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CrowdingTag + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag; - /** - * Creates a plain object from a DiscreteValueSpec message. Also converts values to other types if specified. - * @param message DiscreteValueSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a CrowdingTag message. Also converts values to other types if specified. + * @param message CrowdingTag + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this DiscreteValueSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this CrowdingTag to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for DiscreteValueSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for CrowdingTag + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } - /** Properties of a ConditionalParameterSpec. */ - interface IConditionalParameterSpec { + /** Properties of an IndexStats. */ + interface IIndexStats { - /** ConditionalParameterSpec parentDiscreteValues */ - parentDiscreteValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null); + /** IndexStats vectorsCount */ + vectorsCount?: (number|Long|string|null); - /** ConditionalParameterSpec parentIntValues */ - parentIntValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null); + /** IndexStats shardsCount */ + shardsCount?: (number|null); + } - /** ConditionalParameterSpec parentCategoricalValues */ - parentCategoricalValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null); + /** Represents an IndexStats. */ + class IndexStats implements IIndexStats { - /** ConditionalParameterSpec parameterSpec */ - parameterSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null); - } + /** + * Constructs a new IndexStats. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexStats); - /** Represents a ConditionalParameterSpec. */ - class ConditionalParameterSpec implements IConditionalParameterSpec { + /** IndexStats vectorsCount. */ + public vectorsCount: (number|Long|string); - /** - * Constructs a new ConditionalParameterSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec); + /** IndexStats shardsCount. */ + public shardsCount: number; - /** ConditionalParameterSpec parentDiscreteValues. */ - public parentDiscreteValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null); + /** + * Creates a new IndexStats instance using the specified properties. + * @param [properties] Properties to set + * @returns IndexStats instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexStats): google.cloud.aiplatform.v1beta1.IndexStats; - /** ConditionalParameterSpec parentIntValues. */ - public parentIntValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null); + /** + * Encodes the specified IndexStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. + * @param message IndexStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IIndexStats, writer?: $protobuf.Writer): $protobuf.Writer; - /** ConditionalParameterSpec parentCategoricalValues. */ - public parentCategoricalValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null); + /** + * Encodes the specified IndexStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. + * @param message IndexStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexStats, writer?: $protobuf.Writer): $protobuf.Writer; - /** ConditionalParameterSpec parameterSpec. */ - public parameterSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null); + /** + * Decodes an IndexStats message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IndexStats + * @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.IndexStats; - /** ConditionalParameterSpec parentValueCondition. */ - public parentValueCondition?: ("parentDiscreteValues"|"parentIntValues"|"parentCategoricalValues"); + /** + * Decodes an IndexStats message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IndexStats + * @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.IndexStats; - /** - * Creates a new ConditionalParameterSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns ConditionalParameterSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; + /** + * Verifies an IndexStats 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); - /** - * Encodes the specified ConditionalParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. - * @param message ConditionalParameterSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates an IndexStats message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IndexStats + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexStats; - /** - * Encodes the specified ConditionalParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. - * @param message ConditionalParameterSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an IndexStats message. Also converts values to other types if specified. + * @param message IndexStats + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a ConditionalParameterSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConditionalParameterSpec - * @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.StudySpec.ParameterSpec.ConditionalParameterSpec; + /** + * Converts this IndexStats to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a ConditionalParameterSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConditionalParameterSpec - * @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.StudySpec.ParameterSpec.ConditionalParameterSpec; + /** + * Gets the default type url for IndexStats + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Verifies a ConditionalParameterSpec 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); + /** Properties of an IndexEndpoint. */ + interface IIndexEndpoint { - /** - * Creates a ConditionalParameterSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConditionalParameterSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; + /** IndexEndpoint name */ + name?: (string|null); - /** - * Creates a plain object from a ConditionalParameterSpec message. Also converts values to other types if specified. - * @param message ConditionalParameterSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** IndexEndpoint displayName */ + displayName?: (string|null); - /** - * Converts this ConditionalParameterSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** IndexEndpoint description */ + description?: (string|null); - /** - * Gets the default type url for ConditionalParameterSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** IndexEndpoint deployedIndexes */ + deployedIndexes?: (google.cloud.aiplatform.v1beta1.IDeployedIndex[]|null); - namespace ConditionalParameterSpec { + /** IndexEndpoint etag */ + etag?: (string|null); - /** Properties of a DiscreteValueCondition. */ - interface IDiscreteValueCondition { + /** IndexEndpoint labels */ + labels?: ({ [k: string]: string }|null); - /** DiscreteValueCondition values */ - values?: (number[]|null); - } + /** IndexEndpoint createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** Represents a DiscreteValueCondition. */ - class DiscreteValueCondition implements IDiscreteValueCondition { + /** IndexEndpoint updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new DiscreteValueCondition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition); + /** IndexEndpoint network */ + network?: (string|null); - /** DiscreteValueCondition values. */ - public values: number[]; + /** IndexEndpoint enablePrivateServiceConnect */ + enablePrivateServiceConnect?: (boolean|null); - /** - * Creates a new DiscreteValueCondition instance using the specified properties. - * @param [properties] Properties to set - * @returns DiscreteValueCondition instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; + /** IndexEndpoint privateServiceConnectConfig */ + privateServiceConnectConfig?: (google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig|null); + } - /** - * Encodes the specified DiscreteValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. - * @param message DiscreteValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents an IndexEndpoint. */ + class IndexEndpoint implements IIndexEndpoint { - /** - * Encodes the specified DiscreteValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. - * @param message DiscreteValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new IndexEndpoint. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexEndpoint); - /** - * Decodes a DiscreteValueCondition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DiscreteValueCondition - * @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.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; + /** IndexEndpoint name. */ + public name: string; - /** - * Decodes a DiscreteValueCondition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DiscreteValueCondition - * @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.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; + /** IndexEndpoint displayName. */ + public displayName: string; - /** - * Verifies a DiscreteValueCondition 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); + /** IndexEndpoint description. */ + public description: string; - /** - * Creates a DiscreteValueCondition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DiscreteValueCondition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; + /** IndexEndpoint deployedIndexes. */ + public deployedIndexes: google.cloud.aiplatform.v1beta1.IDeployedIndex[]; - /** - * Creates a plain object from a DiscreteValueCondition message. Also converts values to other types if specified. - * @param message DiscreteValueCondition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** IndexEndpoint etag. */ + public etag: string; - /** - * Converts this DiscreteValueCondition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** IndexEndpoint labels. */ + public labels: { [k: string]: string }; - /** - * Gets the default type url for DiscreteValueCondition - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** IndexEndpoint createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** Properties of an IntValueCondition. */ - interface IIntValueCondition { + /** IndexEndpoint updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** IntValueCondition values */ - values?: ((number|Long|string)[]|null); - } + /** IndexEndpoint network. */ + public network: string; - /** Represents an IntValueCondition. */ - class IntValueCondition implements IIntValueCondition { + /** IndexEndpoint enablePrivateServiceConnect. */ + public enablePrivateServiceConnect: boolean; - /** - * Constructs a new IntValueCondition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition); + /** IndexEndpoint privateServiceConnectConfig. */ + public privateServiceConnectConfig?: (google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig|null); - /** IntValueCondition values. */ - public values: (number|Long|string)[]; + /** + * Creates a new IndexEndpoint instance using the specified properties. + * @param [properties] Properties to set + * @returns IndexEndpoint instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexEndpoint): google.cloud.aiplatform.v1beta1.IndexEndpoint; - /** - * Creates a new IntValueCondition instance using the specified properties. - * @param [properties] Properties to set - * @returns IntValueCondition instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; + /** + * Encodes the specified IndexEndpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. + * @param message IndexEndpoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IIndexEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified IntValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. - * @param message IntValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified IndexEndpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. + * @param message IndexEndpoint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified IntValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. - * @param message IntValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an IndexEndpoint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IndexEndpoint + * @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.IndexEndpoint; - /** - * Decodes an IntValueCondition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IntValueCondition - * @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.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; + /** + * Decodes an IndexEndpoint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IndexEndpoint + * @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.IndexEndpoint; - /** - * Decodes an IntValueCondition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IntValueCondition - * @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.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; + /** + * Verifies an IndexEndpoint 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); - /** - * Verifies an IntValueCondition 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 IndexEndpoint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IndexEndpoint + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexEndpoint; + + /** + * Creates a plain object from an IndexEndpoint message. Also converts values to other types if specified. + * @param message IndexEndpoint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexEndpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates an IntValueCondition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IntValueCondition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; + /** + * Converts this IndexEndpoint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Creates a plain object from an IntValueCondition message. Also converts values to other types if specified. - * @param message IntValueCondition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Gets the default type url for IndexEndpoint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Converts this IntValueCondition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** Properties of a DeployedIndex. */ + interface IDeployedIndex { - /** - * Gets the default type url for IntValueCondition - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** DeployedIndex id */ + id?: (string|null); - /** Properties of a CategoricalValueCondition. */ - interface ICategoricalValueCondition { + /** DeployedIndex index */ + index?: (string|null); - /** CategoricalValueCondition values */ - values?: (string[]|null); - } + /** DeployedIndex displayName */ + displayName?: (string|null); - /** Represents a CategoricalValueCondition. */ - class CategoricalValueCondition implements ICategoricalValueCondition { + /** DeployedIndex createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new CategoricalValueCondition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition); + /** DeployedIndex privateEndpoints */ + privateEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null); - /** CategoricalValueCondition values. */ - public values: string[]; + /** DeployedIndex indexSyncTime */ + indexSyncTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new CategoricalValueCondition instance using the specified properties. - * @param [properties] Properties to set - * @returns CategoricalValueCondition instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; + /** DeployedIndex automaticResources */ + automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - /** - * Encodes the specified CategoricalValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. - * @param message CategoricalValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** DeployedIndex dedicatedResources */ + dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - /** - * Encodes the specified CategoricalValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. - * @param message CategoricalValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** DeployedIndex enableAccessLogging */ + enableAccessLogging?: (boolean|null); - /** - * Decodes a CategoricalValueCondition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CategoricalValueCondition - * @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.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; + /** DeployedIndex deployedIndexAuthConfig */ + deployedIndexAuthConfig?: (google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null); - /** - * Decodes a CategoricalValueCondition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CategoricalValueCondition - * @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.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; + /** DeployedIndex reservedIpRanges */ + reservedIpRanges?: (string[]|null); - /** - * Verifies a CategoricalValueCondition 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); + /** DeployedIndex deploymentGroup */ + deploymentGroup?: (string|null); + } - /** - * Creates a CategoricalValueCondition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CategoricalValueCondition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; + /** Represents a DeployedIndex. */ + class DeployedIndex implements IDeployedIndex { - /** - * Creates a plain object from a CategoricalValueCondition message. Also converts values to other types if specified. - * @param message CategoricalValueCondition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Constructs a new DeployedIndex. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndex); - /** - * Converts this CategoricalValueCondition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** DeployedIndex id. */ + public id: string; - /** - * Gets the default type url for CategoricalValueCondition - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** DeployedIndex index. */ + public index: string; - /** ScaleType enum. */ - enum ScaleType { - SCALE_TYPE_UNSPECIFIED = 0, - UNIT_LINEAR_SCALE = 1, - UNIT_LOG_SCALE = 2, - UNIT_REVERSE_LOG_SCALE = 3 - } - } + /** DeployedIndex displayName. */ + public displayName: string; - /** Properties of a DecayCurveAutomatedStoppingSpec. */ - interface IDecayCurveAutomatedStoppingSpec { + /** DeployedIndex createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** DecayCurveAutomatedStoppingSpec useElapsedDuration */ - useElapsedDuration?: (boolean|null); - } + /** DeployedIndex privateEndpoints. */ + public privateEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null); - /** Represents a DecayCurveAutomatedStoppingSpec. */ - class DecayCurveAutomatedStoppingSpec implements IDecayCurveAutomatedStoppingSpec { + /** DeployedIndex indexSyncTime. */ + public indexSyncTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new DecayCurveAutomatedStoppingSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec); + /** DeployedIndex automaticResources. */ + public automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - /** DecayCurveAutomatedStoppingSpec useElapsedDuration. */ - public useElapsedDuration: boolean; + /** DeployedIndex dedicatedResources. */ + public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - /** - * Creates a new DecayCurveAutomatedStoppingSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns DecayCurveAutomatedStoppingSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; + /** DeployedIndex enableAccessLogging. */ + public enableAccessLogging: boolean; - /** - * Encodes the specified DecayCurveAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. - * @param message DecayCurveAutomatedStoppingSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** DeployedIndex deployedIndexAuthConfig. */ + public deployedIndexAuthConfig?: (google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null); - /** - * Encodes the specified DecayCurveAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. - * @param message DecayCurveAutomatedStoppingSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** DeployedIndex reservedIpRanges. */ + public reservedIpRanges: string[]; - /** - * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DecayCurveAutomatedStoppingSpec - * @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.StudySpec.DecayCurveAutomatedStoppingSpec; + /** DeployedIndex deploymentGroup. */ + public deploymentGroup: string; - /** - * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DecayCurveAutomatedStoppingSpec - * @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.StudySpec.DecayCurveAutomatedStoppingSpec; + /** + * Creates a new DeployedIndex instance using the specified properties. + * @param [properties] Properties to set + * @returns DeployedIndex instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndex): google.cloud.aiplatform.v1beta1.DeployedIndex; - /** - * Verifies a DecayCurveAutomatedStoppingSpec 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); + /** + * Encodes the specified DeployedIndex message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. + * @param message DeployedIndex message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndex, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a DecayCurveAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DecayCurveAutomatedStoppingSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; + /** + * Encodes the specified DeployedIndex message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. + * @param message DeployedIndex message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndex, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a DecayCurveAutomatedStoppingSpec message. Also converts values to other types if specified. - * @param message DecayCurveAutomatedStoppingSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a DeployedIndex message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeployedIndex + * @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.DeployedIndex; - /** - * Converts this DecayCurveAutomatedStoppingSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a DeployedIndex message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeployedIndex + * @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.DeployedIndex; - /** - * Gets the default type url for DecayCurveAutomatedStoppingSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a DeployedIndex 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); - /** Properties of a MedianAutomatedStoppingSpec. */ - interface IMedianAutomatedStoppingSpec { + /** + * Creates a DeployedIndex message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeployedIndex + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndex; - /** MedianAutomatedStoppingSpec useElapsedDuration */ - useElapsedDuration?: (boolean|null); - } + /** + * Creates a plain object from a DeployedIndex message. Also converts values to other types if specified. + * @param message DeployedIndex + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndex, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents a MedianAutomatedStoppingSpec. */ - class MedianAutomatedStoppingSpec implements IMedianAutomatedStoppingSpec { + /** + * Converts this DeployedIndex to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Constructs a new MedianAutomatedStoppingSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec); + /** + * Gets the default type url for DeployedIndex + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** MedianAutomatedStoppingSpec useElapsedDuration. */ - public useElapsedDuration: boolean; + /** Properties of a DeployedIndexAuthConfig. */ + interface IDeployedIndexAuthConfig { - /** - * Creates a new MedianAutomatedStoppingSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns MedianAutomatedStoppingSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; + /** DeployedIndexAuthConfig authProvider */ + authProvider?: (google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null); + } - /** - * Encodes the specified MedianAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. - * @param message MedianAutomatedStoppingSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a DeployedIndexAuthConfig. */ + class DeployedIndexAuthConfig implements IDeployedIndexAuthConfig { - /** - * Encodes the specified MedianAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. - * @param message MedianAutomatedStoppingSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new DeployedIndexAuthConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig); - /** - * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MedianAutomatedStoppingSpec - * @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.StudySpec.MedianAutomatedStoppingSpec; + /** DeployedIndexAuthConfig authProvider. */ + public authProvider?: (google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null); - /** - * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MedianAutomatedStoppingSpec - * @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.StudySpec.MedianAutomatedStoppingSpec; + /** + * Creates a new DeployedIndexAuthConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns DeployedIndexAuthConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; - /** - * Verifies a MedianAutomatedStoppingSpec 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); + /** + * Encodes the specified DeployedIndexAuthConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. + * @param message DeployedIndexAuthConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a MedianAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MedianAutomatedStoppingSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; + /** + * Encodes the specified DeployedIndexAuthConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. + * @param message DeployedIndexAuthConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a MedianAutomatedStoppingSpec message. Also converts values to other types if specified. - * @param message MedianAutomatedStoppingSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeployedIndexAuthConfig + * @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.DeployedIndexAuthConfig; - /** - * Converts this MedianAutomatedStoppingSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeployedIndexAuthConfig + * @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.DeployedIndexAuthConfig; - /** - * Gets the default type url for MedianAutomatedStoppingSpec - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Verifies a DeployedIndexAuthConfig 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); - /** Properties of a ConvexAutomatedStoppingSpec. */ - interface IConvexAutomatedStoppingSpec { + /** + * Creates a DeployedIndexAuthConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeployedIndexAuthConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; - /** ConvexAutomatedStoppingSpec maxStepCount */ - maxStepCount?: (number|Long|string|null); + /** + * Creates a plain object from a DeployedIndexAuthConfig message. Also converts values to other types if specified. + * @param message DeployedIndexAuthConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ConvexAutomatedStoppingSpec minStepCount */ - minStepCount?: (number|Long|string|null); + /** + * Converts this DeployedIndexAuthConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** ConvexAutomatedStoppingSpec minMeasurementCount */ - minMeasurementCount?: (number|Long|string|null); + /** + * Gets the default type url for DeployedIndexAuthConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** ConvexAutomatedStoppingSpec learningRateParameterName */ - learningRateParameterName?: (string|null); + namespace DeployedIndexAuthConfig { + + /** Properties of an AuthProvider. */ + interface IAuthProvider { - /** ConvexAutomatedStoppingSpec useElapsedDuration */ - useElapsedDuration?: (boolean|null); + /** AuthProvider audiences */ + audiences?: (string[]|null); - /** ConvexAutomatedStoppingSpec updateAllStoppedTrials */ - updateAllStoppedTrials?: (boolean|null); + /** AuthProvider allowedIssuers */ + allowedIssuers?: (string[]|null); } - /** Represents a ConvexAutomatedStoppingSpec. */ - class ConvexAutomatedStoppingSpec implements IConvexAutomatedStoppingSpec { + /** Represents an AuthProvider. */ + class AuthProvider implements IAuthProvider { /** - * Constructs a new ConvexAutomatedStoppingSpec. + * Constructs a new AuthProvider. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec); - - /** ConvexAutomatedStoppingSpec maxStepCount. */ - public maxStepCount: (number|Long|string); - - /** ConvexAutomatedStoppingSpec minStepCount. */ - public minStepCount: (number|Long|string); - - /** ConvexAutomatedStoppingSpec minMeasurementCount. */ - public minMeasurementCount: (number|Long|string); - - /** ConvexAutomatedStoppingSpec learningRateParameterName. */ - public learningRateParameterName: string; - - /** ConvexAutomatedStoppingSpec useElapsedDuration. */ - public useElapsedDuration: boolean; + constructor(properties?: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider); - /** ConvexAutomatedStoppingSpec updateAllStoppedTrials. */ - public updateAllStoppedTrials?: (boolean|null); + /** AuthProvider audiences. */ + public audiences: string[]; - /** ConvexAutomatedStoppingSpec _updateAllStoppedTrials. */ - public _updateAllStoppedTrials?: "updateAllStoppedTrials"; + /** AuthProvider allowedIssuers. */ + public allowedIssuers: string[]; /** - * Creates a new ConvexAutomatedStoppingSpec instance using the specified properties. + * Creates a new AuthProvider instance using the specified properties. * @param [properties] Properties to set - * @returns ConvexAutomatedStoppingSpec instance + * @returns AuthProvider instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; /** - * Encodes the specified ConvexAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. - * @param message ConvexAutomatedStoppingSpec message or plain object to encode + * Encodes the specified AuthProvider message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. + * @param message AuthProvider message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ConvexAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. - * @param message ConvexAutomatedStoppingSpec message or plain object to encode + * Encodes the specified AuthProvider message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. + * @param message AuthProvider message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer. + * Decodes an AuthProvider message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ConvexAutomatedStoppingSpec + * @returns AuthProvider * @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.StudySpec.ConvexAutomatedStoppingSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; /** - * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * Decodes an AuthProvider message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ConvexAutomatedStoppingSpec + * @returns AuthProvider * @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.StudySpec.ConvexAutomatedStoppingSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; /** - * Verifies a ConvexAutomatedStoppingSpec message. + * Verifies an AuthProvider 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 ConvexAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * Creates an AuthProvider message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ConvexAutomatedStoppingSpec + * @returns AuthProvider */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; /** - * Creates a plain object from a ConvexAutomatedStoppingSpec message. Also converts values to other types if specified. - * @param message ConvexAutomatedStoppingSpec + * Creates a plain object from an AuthProvider message. Also converts values to other types if specified. + * @param message AuthProvider * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ConvexAutomatedStoppingSpec to JSON. + * Converts this AuthProvider to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ConvexAutomatedStoppingSpec + * Gets the default type url for AuthProvider * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + } - /** Properties of a ConvexStopConfig. */ - interface IConvexStopConfig { + /** Properties of an IndexPrivateEndpoints. */ + interface IIndexPrivateEndpoints { - /** ConvexStopConfig maxNumSteps */ - maxNumSteps?: (number|Long|string|null); + /** IndexPrivateEndpoints matchGrpcAddress */ + matchGrpcAddress?: (string|null); - /** ConvexStopConfig minNumSteps */ - minNumSteps?: (number|Long|string|null); + /** IndexPrivateEndpoints serviceAttachment */ + serviceAttachment?: (string|null); + } - /** ConvexStopConfig autoregressiveOrder */ - autoregressiveOrder?: (number|Long|string|null); + /** Represents an IndexPrivateEndpoints. */ + class IndexPrivateEndpoints implements IIndexPrivateEndpoints { - /** ConvexStopConfig learningRateParameterName */ - learningRateParameterName?: (string|null); + /** + * Constructs a new IndexPrivateEndpoints. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints); - /** ConvexStopConfig useSeconds */ - useSeconds?: (boolean|null); - } + /** IndexPrivateEndpoints matchGrpcAddress. */ + public matchGrpcAddress: string; - /** Represents a ConvexStopConfig. */ - class ConvexStopConfig implements IConvexStopConfig { + /** IndexPrivateEndpoints serviceAttachment. */ + public serviceAttachment: string; - /** - * Constructs a new ConvexStopConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig); + /** + * Creates a new IndexPrivateEndpoints instance using the specified properties. + * @param [properties] Properties to set + * @returns IndexPrivateEndpoints instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; - /** ConvexStopConfig maxNumSteps. */ - public maxNumSteps: (number|Long|string); + /** + * Encodes the specified IndexPrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. + * @param message IndexPrivateEndpoints message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; - /** ConvexStopConfig minNumSteps. */ - public minNumSteps: (number|Long|string); + /** + * Encodes the specified IndexPrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. + * @param message IndexPrivateEndpoints message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; - /** ConvexStopConfig autoregressiveOrder. */ - public autoregressiveOrder: (number|Long|string); + /** + * Decodes an IndexPrivateEndpoints message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IndexPrivateEndpoints + * @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.IndexPrivateEndpoints; - /** ConvexStopConfig learningRateParameterName. */ - public learningRateParameterName: string; + /** + * Decodes an IndexPrivateEndpoints message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IndexPrivateEndpoints + * @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.IndexPrivateEndpoints; - /** ConvexStopConfig useSeconds. */ - public useSeconds: boolean; + /** + * Verifies an IndexPrivateEndpoints 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 new ConvexStopConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ConvexStopConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig): google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig; + /** + * Creates an IndexPrivateEndpoints message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IndexPrivateEndpoints + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; - /** - * Encodes the specified ConvexStopConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. - * @param message ConvexStopConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an IndexPrivateEndpoints message. Also converts values to other types if specified. + * @param message IndexPrivateEndpoints + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified ConvexStopConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. - * @param message ConvexStopConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this IndexPrivateEndpoints to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a ConvexStopConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConvexStopConfig - * @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.StudySpec.ConvexStopConfig; + /** + * Gets the default type url for IndexPrivateEndpoints + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a ConvexStopConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConvexStopConfig - * @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.StudySpec.ConvexStopConfig; + /** Properties of a PrivateServiceConnectConfig. */ + interface IPrivateServiceConnectConfig { - /** - * Verifies a ConvexStopConfig 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); + /** PrivateServiceConnectConfig enablePrivateServiceConnect */ + enablePrivateServiceConnect?: (boolean|null); - /** - * Creates a ConvexStopConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConvexStopConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig; + /** PrivateServiceConnectConfig projectAllowlist */ + projectAllowlist?: (string[]|null); + } - /** - * Creates a plain object from a ConvexStopConfig message. Also converts values to other types if specified. - * @param message ConvexStopConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a PrivateServiceConnectConfig. */ + class PrivateServiceConnectConfig implements IPrivateServiceConnectConfig { - /** - * Converts this ConvexStopConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Constructs a new PrivateServiceConnectConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig); - /** - * Gets the default type url for ConvexStopConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** PrivateServiceConnectConfig enablePrivateServiceConnect. */ + public enablePrivateServiceConnect: boolean; - /** Properties of a TransferLearningConfig. */ - interface ITransferLearningConfig { + /** PrivateServiceConnectConfig projectAllowlist. */ + public projectAllowlist: string[]; - /** TransferLearningConfig disableTransferLearning */ - disableTransferLearning?: (boolean|null); + /** + * Creates a new PrivateServiceConnectConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PrivateServiceConnectConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig): google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig; - /** TransferLearningConfig priorStudyNames */ - priorStudyNames?: (string[]|null); - } + /** + * Encodes the specified PrivateServiceConnectConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.verify|verify} messages. + * @param message PrivateServiceConnectConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a TransferLearningConfig. */ - class TransferLearningConfig implements ITransferLearningConfig { + /** + * Encodes the specified PrivateServiceConnectConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.verify|verify} messages. + * @param message PrivateServiceConnectConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new TransferLearningConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig); + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PrivateServiceConnectConfig + * @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.PrivateServiceConnectConfig; - /** TransferLearningConfig disableTransferLearning. */ - public disableTransferLearning: boolean; + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PrivateServiceConnectConfig + * @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.PrivateServiceConnectConfig; - /** TransferLearningConfig priorStudyNames. */ - public priorStudyNames: string[]; + /** + * Verifies a PrivateServiceConnectConfig 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 new TransferLearningConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns TransferLearningConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig): google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig; + /** + * Creates a PrivateServiceConnectConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PrivateServiceConnectConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig; - /** - * Encodes the specified TransferLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. - * @param message TransferLearningConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a PrivateServiceConnectConfig message. Also converts values to other types if specified. + * @param message PrivateServiceConnectConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified TransferLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. - * @param message TransferLearningConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this PrivateServiceConnectConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Decodes a TransferLearningConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TransferLearningConfig - * @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.StudySpec.TransferLearningConfig; + /** + * Gets the default type url for PrivateServiceConnectConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Decodes a TransferLearningConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TransferLearningConfig - * @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.StudySpec.TransferLearningConfig; + /** Represents an IndexEndpointService */ + class IndexEndpointService extends $protobuf.rpc.Service { + + /** + * Constructs a new IndexEndpointService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new IndexEndpointService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IndexEndpointService; + + /** + * Calls CreateIndexEndpoint. + * @param request CreateIndexEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createIndexEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpointCallback): void; + + /** + * Calls CreateIndexEndpoint. + * @param request CreateIndexEndpointRequest message or plain object + * @returns Promise + */ + public createIndexEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest): Promise; + + /** + * Calls GetIndexEndpoint. + * @param request GetIndexEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and IndexEndpoint + */ + public getIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpointCallback): void; + + /** + * Calls GetIndexEndpoint. + * @param request GetIndexEndpointRequest message or plain object + * @returns Promise + */ + public getIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest): Promise; + + /** + * Calls ListIndexEndpoints. + * @param request ListIndexEndpointsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListIndexEndpointsResponse + */ + public listIndexEndpoints(request: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpointsCallback): void; + + /** + * Calls ListIndexEndpoints. + * @param request ListIndexEndpointsRequest message or plain object + * @returns Promise + */ + public listIndexEndpoints(request: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest): Promise; + + /** + * Calls UpdateIndexEndpoint. + * @param request UpdateIndexEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and IndexEndpoint + */ + public updateIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpointCallback): void; + + /** + * Calls UpdateIndexEndpoint. + * @param request UpdateIndexEndpointRequest message or plain object + * @returns Promise + */ + public updateIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest): Promise; + + /** + * Calls DeleteIndexEndpoint. + * @param request DeleteIndexEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpointCallback): void; + + /** + * Calls DeleteIndexEndpoint. + * @param request DeleteIndexEndpointRequest message or plain object + * @returns Promise + */ + public deleteIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest): Promise; + + /** + * Calls DeployIndex. + * @param request DeployIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deployIndex(request: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndexCallback): void; + + /** + * Calls DeployIndex. + * @param request DeployIndexRequest message or plain object + * @returns Promise + */ + public deployIndex(request: google.cloud.aiplatform.v1beta1.IDeployIndexRequest): Promise; + + /** + * Calls UndeployIndex. + * @param request UndeployIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public undeployIndex(request: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndexCallback): void; + + /** + * Calls UndeployIndex. + * @param request UndeployIndexRequest message or plain object + * @returns Promise + */ + public undeployIndex(request: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest): Promise; + + /** + * Calls MutateDeployedIndex. + * @param request MutateDeployedIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public mutateDeployedIndex(request: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndexCallback): void; + + /** + * Calls MutateDeployedIndex. + * @param request MutateDeployedIndexRequest message or plain object + * @returns Promise + */ + public mutateDeployedIndex(request: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest): Promise; + } + + namespace IndexEndpointService { - /** - * Verifies a TransferLearningConfig 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); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|createIndexEndpoint}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateIndexEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** - * Creates a TransferLearningConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TransferLearningConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|getIndexEndpoint}. + * @param error Error, if any + * @param [response] IndexEndpoint + */ + type GetIndexEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.IndexEndpoint) => void; - /** - * Creates a plain object from a TransferLearningConfig message. Also converts values to other types if specified. - * @param message TransferLearningConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|listIndexEndpoints}. + * @param error Error, if any + * @param [response] ListIndexEndpointsResponse + */ + type ListIndexEndpointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) => void; - /** - * Converts this TransferLearningConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|updateIndexEndpoint}. + * @param error Error, if any + * @param [response] IndexEndpoint + */ + type UpdateIndexEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.IndexEndpoint) => void; - /** - * Gets the default type url for TransferLearningConfig - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|deleteIndexEndpoint}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteIndexEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** Algorithm enum. */ - enum Algorithm { - ALGORITHM_UNSPECIFIED = 0, - GRID_SEARCH = 2, - RANDOM_SEARCH = 3 - } + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|deployIndex}. + * @param error Error, if any + * @param [response] Operation + */ + type DeployIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** ObservationNoise enum. */ - enum ObservationNoise { - OBSERVATION_NOISE_UNSPECIFIED = 0, - LOW = 1, - HIGH = 2 - } + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|undeployIndex}. + * @param error Error, if any + * @param [response] Operation + */ + type UndeployIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** MeasurementSelectionType enum. */ - enum MeasurementSelectionType { - MEASUREMENT_SELECTION_TYPE_UNSPECIFIED = 0, - LAST_MEASUREMENT = 1, - BEST_MEASUREMENT = 2 - } + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|mutateDeployedIndex}. + * @param error Error, if any + * @param [response] Operation + */ + type MutateDeployedIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of a Measurement. */ - interface IMeasurement { - - /** Measurement elapsedDuration */ - elapsedDuration?: (google.protobuf.IDuration|null); + /** Properties of a CreateIndexEndpointRequest. */ + interface ICreateIndexEndpointRequest { - /** Measurement stepCount */ - stepCount?: (number|Long|string|null); + /** CreateIndexEndpointRequest parent */ + parent?: (string|null); - /** Measurement metrics */ - metrics?: (google.cloud.aiplatform.v1beta1.Measurement.IMetric[]|null); + /** CreateIndexEndpointRequest indexEndpoint */ + indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); } - /** Represents a Measurement. */ - class Measurement implements IMeasurement { + /** Represents a CreateIndexEndpointRequest. */ + class CreateIndexEndpointRequest implements ICreateIndexEndpointRequest { /** - * Constructs a new Measurement. + * Constructs a new CreateIndexEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMeasurement); - - /** Measurement elapsedDuration. */ - public elapsedDuration?: (google.protobuf.IDuration|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest); - /** Measurement stepCount. */ - public stepCount: (number|Long|string); + /** CreateIndexEndpointRequest parent. */ + public parent: string; - /** Measurement metrics. */ - public metrics: google.cloud.aiplatform.v1beta1.Measurement.IMetric[]; + /** CreateIndexEndpointRequest indexEndpoint. */ + public indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); /** - * Creates a new Measurement instance using the specified properties. + * Creates a new CreateIndexEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Measurement instance + * @returns CreateIndexEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMeasurement): google.cloud.aiplatform.v1beta1.Measurement; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; /** - * Encodes the specified Measurement message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. - * @param message Measurement message or plain object to encode + * Encodes the specified CreateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. + * @param message CreateIndexEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMeasurement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Measurement message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. - * @param message Measurement message or plain object to encode + * Encodes the specified CreateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. + * @param message CreateIndexEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMeasurement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Measurement message from the specified reader or buffer. + * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Measurement + * @returns CreateIndexEndpointRequest * @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.Measurement; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; /** - * Decodes a Measurement message from the specified reader or buffer, length delimited. + * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Measurement + * @returns CreateIndexEndpointRequest * @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.Measurement; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; /** - * Verifies a Measurement message. + * Verifies a CreateIndexEndpointRequest 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 Measurement message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Measurement + * @returns CreateIndexEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Measurement; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; /** - * Creates a plain object from a Measurement message. Also converts values to other types if specified. - * @param message Measurement + * Creates a plain object from a CreateIndexEndpointRequest message. Also converts values to other types if specified. + * @param message CreateIndexEndpointRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Measurement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Measurement to JSON. + * Converts this CreateIndexEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Measurement + * Gets the default type url for CreateIndexEndpointRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Measurement { - - /** Properties of a Metric. */ - interface IMetric { - - /** Metric metricId */ - metricId?: (string|null); - - /** Metric value */ - value?: (number|null); - } + /** Properties of a CreateIndexEndpointOperationMetadata. */ + interface ICreateIndexEndpointOperationMetadata { - /** Represents a Metric. */ - class Metric implements IMetric { + /** CreateIndexEndpointOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - /** - * Constructs a new Metric. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Measurement.IMetric); + /** Represents a CreateIndexEndpointOperationMetadata. */ + class CreateIndexEndpointOperationMetadata implements ICreateIndexEndpointOperationMetadata { - /** Metric metricId. */ - public metricId: string; + /** + * Constructs a new CreateIndexEndpointOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata); - /** Metric value. */ - public value: number; + /** CreateIndexEndpointOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** - * Creates a new Metric instance using the specified properties. - * @param [properties] Properties to set - * @returns Metric instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Measurement.IMetric): google.cloud.aiplatform.v1beta1.Measurement.Metric; + /** + * Creates a new CreateIndexEndpointOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateIndexEndpointOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; - /** - * Encodes the specified Metric message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.Measurement.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CreateIndexEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * @param message CreateIndexEndpointOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Measurement.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CreateIndexEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * @param message CreateIndexEndpointOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Metric message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Metric - * @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.Measurement.Metric; + /** + * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateIndexEndpointOperationMetadata + * @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.CreateIndexEndpointOperationMetadata; - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Metric - * @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.Measurement.Metric; + /** + * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateIndexEndpointOperationMetadata + * @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.CreateIndexEndpointOperationMetadata; - /** - * Verifies a Metric 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); + /** + * Verifies a CreateIndexEndpointOperationMetadata 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 Metric message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Metric - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Measurement.Metric; + /** + * Creates a CreateIndexEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateIndexEndpointOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @param message Metric - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Measurement.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a CreateIndexEndpointOperationMetadata message. Also converts values to other types if specified. + * @param message CreateIndexEndpointOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this Metric to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this CreateIndexEndpointOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for Metric - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for CreateIndexEndpointOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an Index. */ - interface IIndex { + /** Properties of a GetIndexEndpointRequest. */ + interface IGetIndexEndpointRequest { - /** Index name */ + /** GetIndexEndpointRequest name */ name?: (string|null); + } - /** Index displayName */ - displayName?: (string|null); + /** Represents a GetIndexEndpointRequest. */ + class GetIndexEndpointRequest implements IGetIndexEndpointRequest { - /** Index description */ - description?: (string|null); + /** + * Constructs a new GetIndexEndpointRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest); - /** Index metadataSchemaUri */ - metadataSchemaUri?: (string|null); + /** GetIndexEndpointRequest name. */ + public name: string; - /** Index metadata */ - metadata?: (google.protobuf.IValue|null); + /** + * Creates a new GetIndexEndpointRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIndexEndpointRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; - /** Index deployedIndexes */ - deployedIndexes?: (google.cloud.aiplatform.v1beta1.IDeployedIndexRef[]|null); + /** + * Encodes the specified GetIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. + * @param message GetIndexEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Index etag */ - etag?: (string|null); + /** + * Encodes the specified GetIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. + * @param message GetIndexEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Index labels */ - labels?: ({ [k: string]: string }|null); + /** + * Decodes a GetIndexEndpointRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIndexEndpointRequest + * @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.GetIndexEndpointRequest; - /** Index createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Decodes a GetIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIndexEndpointRequest + * @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.GetIndexEndpointRequest; - /** Index updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Verifies a GetIndexEndpointRequest 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); - /** Index indexStats */ - indexStats?: (google.cloud.aiplatform.v1beta1.IIndexStats|null); + /** + * Creates a GetIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIndexEndpointRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; - /** Index indexUpdateMethod */ - indexUpdateMethod?: (google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|keyof typeof google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|null); - } + /** + * Creates a plain object from a GetIndexEndpointRequest message. Also converts values to other types if specified. + * @param message GetIndexEndpointRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Represents an Index. */ - class Index implements IIndex { + /** + * Converts this GetIndexEndpointRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; /** - * Constructs a new Index. - * @param [properties] Properties to set + * Gets the default type url for GetIndexEndpointRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIndex); + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Index name. */ - public name: string; + /** Properties of a ListIndexEndpointsRequest. */ + interface IListIndexEndpointsRequest { - /** Index displayName. */ - public displayName: string; + /** ListIndexEndpointsRequest parent */ + parent?: (string|null); - /** Index description. */ - public description: string; + /** ListIndexEndpointsRequest filter */ + filter?: (string|null); - /** Index metadataSchemaUri. */ - public metadataSchemaUri: string; + /** ListIndexEndpointsRequest pageSize */ + pageSize?: (number|null); - /** Index metadata. */ - public metadata?: (google.protobuf.IValue|null); + /** ListIndexEndpointsRequest pageToken */ + pageToken?: (string|null); - /** Index deployedIndexes. */ - public deployedIndexes: google.cloud.aiplatform.v1beta1.IDeployedIndexRef[]; + /** ListIndexEndpointsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } - /** Index etag. */ - public etag: string; + /** Represents a ListIndexEndpointsRequest. */ + class ListIndexEndpointsRequest implements IListIndexEndpointsRequest { - /** Index labels. */ - public labels: { [k: string]: string }; + /** + * Constructs a new ListIndexEndpointsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest); - /** Index createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** ListIndexEndpointsRequest parent. */ + public parent: string; - /** Index updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListIndexEndpointsRequest filter. */ + public filter: string; - /** Index indexStats. */ - public indexStats?: (google.cloud.aiplatform.v1beta1.IIndexStats|null); + /** ListIndexEndpointsRequest pageSize. */ + public pageSize: number; + + /** ListIndexEndpointsRequest pageToken. */ + public pageToken: string; - /** Index indexUpdateMethod. */ - public indexUpdateMethod: (google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|keyof typeof google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod); + /** ListIndexEndpointsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new Index instance using the specified properties. + * Creates a new ListIndexEndpointsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Index instance + * @returns ListIndexEndpointsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIndex): google.cloud.aiplatform.v1beta1.Index; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; /** - * Encodes the specified Index message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. - * @param message Index message or plain object to encode + * Encodes the specified ListIndexEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. + * @param message ListIndexEndpointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIndex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Index message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. - * @param message Index message or plain object to encode + * Encodes the specified ListIndexEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. + * @param message ListIndexEndpointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Index message from the specified reader or buffer. + * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Index + * @returns ListIndexEndpointsRequest * @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.Index; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; /** - * Decodes an Index message from the specified reader or buffer, length delimited. + * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Index + * @returns ListIndexEndpointsRequest * @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.Index; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; /** - * Verifies an Index message. + * Verifies a ListIndexEndpointsRequest 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 Index message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexEndpointsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Index + * @returns ListIndexEndpointsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Index; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; /** - * Creates a plain object from an Index message. Also converts values to other types if specified. - * @param message Index + * Creates a plain object from a ListIndexEndpointsRequest message. Also converts values to other types if specified. + * @param message ListIndexEndpointsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Index, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Index to JSON. + * Converts this ListIndexEndpointsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for Index + * Gets the default type url for ListIndexEndpointsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace Index { - - /** IndexUpdateMethod enum. */ - enum IndexUpdateMethod { - INDEX_UPDATE_METHOD_UNSPECIFIED = 0, - BATCH_UPDATE = 1, - STREAM_UPDATE = 2 - } - } - - /** Properties of an IndexDatapoint. */ - interface IIndexDatapoint { - - /** IndexDatapoint datapointId */ - datapointId?: (string|null); - - /** IndexDatapoint featureVector */ - featureVector?: (number[]|null); + /** Properties of a ListIndexEndpointsResponse. */ + interface IListIndexEndpointsResponse { - /** IndexDatapoint restricts */ - restricts?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction[]|null); + /** ListIndexEndpointsResponse indexEndpoints */ + indexEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint[]|null); - /** IndexDatapoint crowdingTag */ - crowdingTag?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null); + /** ListIndexEndpointsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an IndexDatapoint. */ - class IndexDatapoint implements IIndexDatapoint { + /** Represents a ListIndexEndpointsResponse. */ + class ListIndexEndpointsResponse implements IListIndexEndpointsResponse { /** - * Constructs a new IndexDatapoint. + * Constructs a new ListIndexEndpointsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexDatapoint); - - /** IndexDatapoint datapointId. */ - public datapointId: string; - - /** IndexDatapoint featureVector. */ - public featureVector: number[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse); - /** IndexDatapoint restricts. */ - public restricts: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction[]; + /** ListIndexEndpointsResponse indexEndpoints. */ + public indexEndpoints: google.cloud.aiplatform.v1beta1.IIndexEndpoint[]; - /** IndexDatapoint crowdingTag. */ - public crowdingTag?: (google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null); + /** ListIndexEndpointsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new IndexDatapoint instance using the specified properties. + * Creates a new ListIndexEndpointsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns IndexDatapoint instance + * @returns ListIndexEndpointsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexDatapoint): google.cloud.aiplatform.v1beta1.IndexDatapoint; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; /** - * Encodes the specified IndexDatapoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. - * @param message IndexDatapoint message or plain object to encode + * Encodes the specified ListIndexEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. + * @param message ListIndexEndpointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIndexDatapoint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IndexDatapoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. - * @param message IndexDatapoint message or plain object to encode + * Encodes the specified ListIndexEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. + * @param message ListIndexEndpointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexDatapoint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IndexDatapoint message from the specified reader or buffer. + * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IndexDatapoint + * @returns ListIndexEndpointsResponse * @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.IndexDatapoint; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; /** - * Decodes an IndexDatapoint message from the specified reader or buffer, length delimited. + * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IndexDatapoint + * @returns ListIndexEndpointsResponse * @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.IndexDatapoint; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; /** - * Verifies an IndexDatapoint message. + * Verifies a ListIndexEndpointsResponse 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 IndexDatapoint message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexEndpointsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IndexDatapoint + * @returns ListIndexEndpointsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexDatapoint; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; /** - * Creates a plain object from an IndexDatapoint message. Also converts values to other types if specified. - * @param message IndexDatapoint + * Creates a plain object from a ListIndexEndpointsResponse message. Also converts values to other types if specified. + * @param message ListIndexEndpointsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IndexDatapoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IndexDatapoint to JSON. + * Converts this ListIndexEndpointsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IndexDatapoint + * Gets the default type url for ListIndexEndpointsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace IndexDatapoint { - - /** Properties of a Restriction. */ - interface IRestriction { - - /** Restriction namespace */ - namespace?: (string|null); - - /** Restriction allowList */ - allowList?: (string[]|null); + /** Properties of an UpdateIndexEndpointRequest. */ + interface IUpdateIndexEndpointRequest { - /** Restriction denyList */ - denyList?: (string[]|null); - } + /** UpdateIndexEndpointRequest indexEndpoint */ + indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); - /** Represents a Restriction. */ - class Restriction implements IRestriction { + /** UpdateIndexEndpointRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** - * Constructs a new Restriction. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction); + /** Represents an UpdateIndexEndpointRequest. */ + class UpdateIndexEndpointRequest implements IUpdateIndexEndpointRequest { - /** Restriction namespace. */ - public namespace: string; + /** + * Constructs a new UpdateIndexEndpointRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest); - /** Restriction allowList. */ - public allowList: string[]; + /** UpdateIndexEndpointRequest indexEndpoint. */ + public indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); - /** Restriction denyList. */ - public denyList: string[]; + /** UpdateIndexEndpointRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** - * Creates a new Restriction instance using the specified properties. - * @param [properties] Properties to set - * @returns Restriction instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction): google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction; + /** + * Creates a new UpdateIndexEndpointRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateIndexEndpointRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; - /** - * Encodes the specified Restriction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. - * @param message Restriction message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. + * @param message UpdateIndexEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Restriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. - * @param message Restriction message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UpdateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. + * @param message UpdateIndexEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Restriction message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Restriction - * @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.IndexDatapoint.Restriction; + /** + * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateIndexEndpointRequest + * @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.UpdateIndexEndpointRequest; - /** - * Decodes a Restriction message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Restriction - * @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.IndexDatapoint.Restriction; + /** + * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateIndexEndpointRequest + * @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.UpdateIndexEndpointRequest; - /** - * Verifies a Restriction 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); + /** + * Verifies an UpdateIndexEndpointRequest 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 Restriction message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Restriction - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction; + /** + * Creates an UpdateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateIndexEndpointRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; - /** - * Creates a plain object from a Restriction message. Also converts values to other types if specified. - * @param message Restriction - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an UpdateIndexEndpointRequest message. Also converts values to other types if specified. + * @param message UpdateIndexEndpointRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this Restriction to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this UpdateIndexEndpointRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for Restriction - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for UpdateIndexEndpointRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** Properties of a CrowdingTag. */ - interface ICrowdingTag { + /** Properties of a DeleteIndexEndpointRequest. */ + interface IDeleteIndexEndpointRequest { - /** CrowdingTag crowdingAttribute */ - crowdingAttribute?: (string|null); - } + /** DeleteIndexEndpointRequest name */ + name?: (string|null); + } - /** Represents a CrowdingTag. */ - class CrowdingTag implements ICrowdingTag { + /** Represents a DeleteIndexEndpointRequest. */ + class DeleteIndexEndpointRequest implements IDeleteIndexEndpointRequest { - /** - * Constructs a new CrowdingTag. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag); + /** + * Constructs a new DeleteIndexEndpointRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest); - /** CrowdingTag crowdingAttribute. */ - public crowdingAttribute: string; + /** DeleteIndexEndpointRequest name. */ + public name: string; - /** - * Creates a new CrowdingTag instance using the specified properties. - * @param [properties] Properties to set - * @returns CrowdingTag instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag): google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag; + /** + * Creates a new DeleteIndexEndpointRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteIndexEndpointRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; - /** - * Encodes the specified CrowdingTag message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. - * @param message CrowdingTag message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified DeleteIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * @param message DeleteIndexEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CrowdingTag message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. - * @param message CrowdingTag message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified DeleteIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * @param message DeleteIndexEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CrowdingTag message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CrowdingTag - * @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.IndexDatapoint.CrowdingTag; + /** + * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteIndexEndpointRequest + * @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.DeleteIndexEndpointRequest; - /** - * Decodes a CrowdingTag message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CrowdingTag - * @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.IndexDatapoint.CrowdingTag; + /** + * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteIndexEndpointRequest + * @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.DeleteIndexEndpointRequest; - /** - * Verifies a CrowdingTag 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); + /** + * Verifies a DeleteIndexEndpointRequest 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 CrowdingTag message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CrowdingTag - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag; + /** + * Creates a DeleteIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteIndexEndpointRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; - /** - * Creates a plain object from a CrowdingTag message. Also converts values to other types if specified. - * @param message CrowdingTag - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a DeleteIndexEndpointRequest message. Also converts values to other types if specified. + * @param message DeleteIndexEndpointRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this CrowdingTag to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this DeleteIndexEndpointRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for CrowdingTag - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + /** + * Gets the default type url for DeleteIndexEndpointRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an IndexStats. */ - interface IIndexStats { + /** Properties of a DeployIndexRequest. */ + interface IDeployIndexRequest { - /** IndexStats vectorsCount */ - vectorsCount?: (number|Long|string|null); + /** DeployIndexRequest indexEndpoint */ + indexEndpoint?: (string|null); - /** IndexStats shardsCount */ - shardsCount?: (number|null); + /** DeployIndexRequest deployedIndex */ + deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); } - /** Represents an IndexStats. */ - class IndexStats implements IIndexStats { + /** Represents a DeployIndexRequest. */ + class DeployIndexRequest implements IDeployIndexRequest { /** - * Constructs a new IndexStats. + * Constructs a new DeployIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexStats); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexRequest); - /** IndexStats vectorsCount. */ - public vectorsCount: (number|Long|string); + /** DeployIndexRequest indexEndpoint. */ + public indexEndpoint: string; - /** IndexStats shardsCount. */ - public shardsCount: number; + /** DeployIndexRequest deployedIndex. */ + public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); /** - * Creates a new IndexStats instance using the specified properties. + * Creates a new DeployIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns IndexStats instance + * @returns DeployIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexStats): google.cloud.aiplatform.v1beta1.IndexStats; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexRequest): google.cloud.aiplatform.v1beta1.DeployIndexRequest; /** - * Encodes the specified IndexStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. - * @param message IndexStats message or plain object to encode + * Encodes the specified DeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. + * @param message DeployIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIndexStats, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IndexStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. - * @param message IndexStats message or plain object to encode + * Encodes the specified DeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. + * @param message DeployIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexStats, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IndexStats message from the specified reader or buffer. + * Decodes a DeployIndexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IndexStats + * @returns DeployIndexRequest * @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.IndexStats; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployIndexRequest; /** - * Decodes an IndexStats message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IndexStats + * @returns DeployIndexRequest * @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.IndexStats; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployIndexRequest; /** - * Verifies an IndexStats message. + * Verifies a DeployIndexRequest 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 IndexStats message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IndexStats + * @returns DeployIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexStats; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexRequest; /** - * Creates a plain object from an IndexStats message. Also converts values to other types if specified. - * @param message IndexStats + * Creates a plain object from a DeployIndexRequest message. Also converts values to other types if specified. + * @param message DeployIndexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IndexStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IndexStats to JSON. + * Converts this DeployIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IndexStats + * Gets the default type url for DeployIndexRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an IndexEndpoint. */ - interface IIndexEndpoint { - - /** IndexEndpoint name */ - name?: (string|null); - - /** IndexEndpoint displayName */ - displayName?: (string|null); - - /** IndexEndpoint description */ - description?: (string|null); - - /** IndexEndpoint deployedIndexes */ - deployedIndexes?: (google.cloud.aiplatform.v1beta1.IDeployedIndex[]|null); - - /** IndexEndpoint etag */ - etag?: (string|null); - - /** IndexEndpoint labels */ - labels?: ({ [k: string]: string }|null); - - /** IndexEndpoint createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** IndexEndpoint updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** IndexEndpoint network */ - network?: (string|null); + /** Properties of a DeployIndexResponse. */ + interface IDeployIndexResponse { - /** IndexEndpoint enablePrivateServiceConnect */ - enablePrivateServiceConnect?: (boolean|null); + /** DeployIndexResponse deployedIndex */ + deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); } - /** Represents an IndexEndpoint. */ - class IndexEndpoint implements IIndexEndpoint { + /** Represents a DeployIndexResponse. */ + class DeployIndexResponse implements IDeployIndexResponse { /** - * Constructs a new IndexEndpoint. + * Constructs a new DeployIndexResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexEndpoint); - - /** IndexEndpoint name. */ - public name: string; - - /** IndexEndpoint displayName. */ - public displayName: string; - - /** IndexEndpoint description. */ - public description: string; - - /** IndexEndpoint deployedIndexes. */ - public deployedIndexes: google.cloud.aiplatform.v1beta1.IDeployedIndex[]; - - /** IndexEndpoint etag. */ - public etag: string; - - /** IndexEndpoint labels. */ - public labels: { [k: string]: string }; - - /** IndexEndpoint createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** IndexEndpoint updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** IndexEndpoint network. */ - public network: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexResponse); - /** IndexEndpoint enablePrivateServiceConnect. */ - public enablePrivateServiceConnect: boolean; + /** DeployIndexResponse deployedIndex. */ + public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); /** - * Creates a new IndexEndpoint instance using the specified properties. + * Creates a new DeployIndexResponse instance using the specified properties. * @param [properties] Properties to set - * @returns IndexEndpoint instance + * @returns DeployIndexResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexEndpoint): google.cloud.aiplatform.v1beta1.IndexEndpoint; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexResponse): google.cloud.aiplatform.v1beta1.DeployIndexResponse; /** - * Encodes the specified IndexEndpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. - * @param message IndexEndpoint message or plain object to encode + * Encodes the specified DeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. + * @param message DeployIndexResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIndexEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IndexEndpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. - * @param message IndexEndpoint message or plain object to encode + * Encodes the specified DeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. + * @param message DeployIndexResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IndexEndpoint message from the specified reader or buffer. + * Decodes a DeployIndexResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IndexEndpoint + * @returns DeployIndexResponse * @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.IndexEndpoint; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployIndexResponse; /** - * Decodes an IndexEndpoint message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IndexEndpoint + * @returns DeployIndexResponse * @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.IndexEndpoint; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployIndexResponse; /** - * Verifies an IndexEndpoint message. + * Verifies a DeployIndexResponse 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 IndexEndpoint message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IndexEndpoint + * @returns DeployIndexResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexEndpoint; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexResponse; /** - * Creates a plain object from an IndexEndpoint message. Also converts values to other types if specified. - * @param message IndexEndpoint + * Creates a plain object from a DeployIndexResponse message. Also converts values to other types if specified. + * @param message DeployIndexResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IndexEndpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IndexEndpoint to JSON. + * Converts this DeployIndexResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IndexEndpoint + * Gets the default type url for DeployIndexResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployedIndex. */ - interface IDeployedIndex { - - /** DeployedIndex id */ - id?: (string|null); - - /** DeployedIndex index */ - index?: (string|null); - - /** DeployedIndex displayName */ - displayName?: (string|null); - - /** DeployedIndex createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** DeployedIndex privateEndpoints */ - privateEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null); - - /** DeployedIndex indexSyncTime */ - indexSyncTime?: (google.protobuf.ITimestamp|null); - - /** DeployedIndex automaticResources */ - automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - - /** DeployedIndex dedicatedResources */ - dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - - /** DeployedIndex enableAccessLogging */ - enableAccessLogging?: (boolean|null); - - /** DeployedIndex deployedIndexAuthConfig */ - deployedIndexAuthConfig?: (google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null); + /** Properties of a DeployIndexOperationMetadata. */ + interface IDeployIndexOperationMetadata { - /** DeployedIndex reservedIpRanges */ - reservedIpRanges?: (string[]|null); + /** DeployIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** DeployedIndex deploymentGroup */ - deploymentGroup?: (string|null); + /** DeployIndexOperationMetadata deployedIndexId */ + deployedIndexId?: (string|null); } - /** Represents a DeployedIndex. */ - class DeployedIndex implements IDeployedIndex { + /** Represents a DeployIndexOperationMetadata. */ + class DeployIndexOperationMetadata implements IDeployIndexOperationMetadata { /** - * Constructs a new DeployedIndex. + * Constructs a new DeployIndexOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndex); - - /** DeployedIndex id. */ - public id: string; - - /** DeployedIndex index. */ - public index: string; - - /** DeployedIndex displayName. */ - public displayName: string; - - /** DeployedIndex createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** DeployedIndex privateEndpoints. */ - public privateEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null); - - /** DeployedIndex indexSyncTime. */ - public indexSyncTime?: (google.protobuf.ITimestamp|null); - - /** DeployedIndex automaticResources. */ - public automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - - /** DeployedIndex dedicatedResources. */ - public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - - /** DeployedIndex enableAccessLogging. */ - public enableAccessLogging: boolean; - - /** DeployedIndex deployedIndexAuthConfig. */ - public deployedIndexAuthConfig?: (google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata); - /** DeployedIndex reservedIpRanges. */ - public reservedIpRanges: string[]; + /** DeployIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** DeployedIndex deploymentGroup. */ - public deploymentGroup: string; + /** DeployIndexOperationMetadata deployedIndexId. */ + public deployedIndexId: string; /** - * Creates a new DeployedIndex instance using the specified properties. + * Creates a new DeployIndexOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedIndex instance + * @returns DeployIndexOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndex): google.cloud.aiplatform.v1beta1.DeployedIndex; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; /** - * Encodes the specified DeployedIndex message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. - * @param message DeployedIndex message or plain object to encode + * Encodes the specified DeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. + * @param message DeployIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployedIndex message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. - * @param message DeployedIndex message or plain object to encode + * Encodes the specified DeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. + * @param message DeployIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedIndex message from the specified reader or buffer. + * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployedIndex + * @returns DeployIndexOperationMetadata * @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.DeployedIndex; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; /** - * Decodes a DeployedIndex message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployedIndex + * @returns DeployIndexOperationMetadata * @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.DeployedIndex; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; /** - * Verifies a DeployedIndex message. + * Verifies a DeployIndexOperationMetadata 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 DeployedIndex message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployedIndex + * @returns DeployIndexOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndex; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; /** - * Creates a plain object from a DeployedIndex message. Also converts values to other types if specified. - * @param message DeployedIndex + * Creates a plain object from a DeployIndexOperationMetadata message. Also converts values to other types if specified. + * @param message DeployIndexOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndex, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedIndex to JSON. + * Converts this DeployIndexOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployedIndex + * Gets the default type url for DeployIndexOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployedIndexAuthConfig. */ - interface IDeployedIndexAuthConfig { + /** Properties of an UndeployIndexRequest. */ + interface IUndeployIndexRequest { - /** DeployedIndexAuthConfig authProvider */ - authProvider?: (google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null); + /** UndeployIndexRequest indexEndpoint */ + indexEndpoint?: (string|null); + + /** UndeployIndexRequest deployedIndexId */ + deployedIndexId?: (string|null); } - /** Represents a DeployedIndexAuthConfig. */ - class DeployedIndexAuthConfig implements IDeployedIndexAuthConfig { + /** Represents an UndeployIndexRequest. */ + class UndeployIndexRequest implements IUndeployIndexRequest { /** - * Constructs a new DeployedIndexAuthConfig. + * Constructs a new UndeployIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest); - /** DeployedIndexAuthConfig authProvider. */ - public authProvider?: (google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null); + /** UndeployIndexRequest indexEndpoint. */ + public indexEndpoint: string; + + /** UndeployIndexRequest deployedIndexId. */ + public deployedIndexId: string; /** - * Creates a new DeployedIndexAuthConfig instance using the specified properties. + * Creates a new UndeployIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedIndexAuthConfig instance + * @returns UndeployIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; /** - * Encodes the specified DeployedIndexAuthConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. - * @param message DeployedIndexAuthConfig message or plain object to encode + * Encodes the specified UndeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. + * @param message UndeployIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployedIndexAuthConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. - * @param message DeployedIndexAuthConfig message or plain object to encode + * Encodes the specified UndeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. + * @param message UndeployIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer. + * Decodes an UndeployIndexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployedIndexAuthConfig + * @returns UndeployIndexRequest * @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.DeployedIndexAuthConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; /** - * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer, length delimited. + * Decodes an UndeployIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployedIndexAuthConfig + * @returns UndeployIndexRequest * @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.DeployedIndexAuthConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; /** - * Verifies a DeployedIndexAuthConfig message. + * Verifies an UndeployIndexRequest 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 DeployedIndexAuthConfig message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployedIndexAuthConfig + * @returns UndeployIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; /** - * Creates a plain object from a DeployedIndexAuthConfig message. Also converts values to other types if specified. - * @param message DeployedIndexAuthConfig + * Creates a plain object from an UndeployIndexRequest message. Also converts values to other types if specified. + * @param message UndeployIndexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedIndexAuthConfig to JSON. + * Converts this UndeployIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployedIndexAuthConfig + * Gets the default type url for UndeployIndexRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace DeployedIndexAuthConfig { - - /** Properties of an AuthProvider. */ - interface IAuthProvider { - - /** AuthProvider audiences */ - audiences?: (string[]|null); - - /** AuthProvider allowedIssuers */ - allowedIssuers?: (string[]|null); - } - - /** Represents an AuthProvider. */ - class AuthProvider implements IAuthProvider { - - /** - * Constructs a new AuthProvider. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider); - - /** AuthProvider audiences. */ - public audiences: string[]; + /** Properties of an UndeployIndexResponse. */ + interface IUndeployIndexResponse { + } - /** AuthProvider allowedIssuers. */ - public allowedIssuers: string[]; + /** Represents an UndeployIndexResponse. */ + class UndeployIndexResponse implements IUndeployIndexResponse { - /** - * Creates a new AuthProvider instance using the specified properties. - * @param [properties] Properties to set - * @returns AuthProvider instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; + /** + * Constructs a new UndeployIndexResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse); - /** - * Encodes the specified AuthProvider message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. - * @param message AuthProvider message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new UndeployIndexResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UndeployIndexResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; - /** - * Encodes the specified AuthProvider message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. - * @param message AuthProvider message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UndeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. + * @param message UndeployIndexResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an AuthProvider message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AuthProvider - * @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.DeployedIndexAuthConfig.AuthProvider; + /** + * Encodes the specified UndeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. + * @param message UndeployIndexResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an AuthProvider message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns AuthProvider - * @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.DeployedIndexAuthConfig.AuthProvider; + /** + * Decodes an UndeployIndexResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UndeployIndexResponse + * @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.UndeployIndexResponse; - /** - * Verifies an AuthProvider 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); + /** + * Decodes an UndeployIndexResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UndeployIndexResponse + * @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.UndeployIndexResponse; - /** - * Creates an AuthProvider message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns AuthProvider - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; + /** + * Verifies an UndeployIndexResponse 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 plain object from an AuthProvider message. Also converts values to other types if specified. - * @param message AuthProvider - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates an UndeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UndeployIndexResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; - /** - * Converts this AuthProvider to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from an UndeployIndexResponse message. Also converts values to other types if specified. + * @param message UndeployIndexResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Gets the default type url for AuthProvider - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** + * Converts this UndeployIndexResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** Properties of an IndexPrivateEndpoints. */ - interface IIndexPrivateEndpoints { + /** + * Gets the default type url for UndeployIndexResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** IndexPrivateEndpoints matchGrpcAddress */ - matchGrpcAddress?: (string|null); + /** Properties of an UndeployIndexOperationMetadata. */ + interface IUndeployIndexOperationMetadata { - /** IndexPrivateEndpoints serviceAttachment */ - serviceAttachment?: (string|null); + /** UndeployIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents an IndexPrivateEndpoints. */ - class IndexPrivateEndpoints implements IIndexPrivateEndpoints { + /** Represents an UndeployIndexOperationMetadata. */ + class UndeployIndexOperationMetadata implements IUndeployIndexOperationMetadata { /** - * Constructs a new IndexPrivateEndpoints. + * Constructs a new UndeployIndexOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints); - - /** IndexPrivateEndpoints matchGrpcAddress. */ - public matchGrpcAddress: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata); - /** IndexPrivateEndpoints serviceAttachment. */ - public serviceAttachment: string; + /** UndeployIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new IndexPrivateEndpoints instance using the specified properties. + * Creates a new UndeployIndexOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns IndexPrivateEndpoints instance + * @returns UndeployIndexOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; /** - * Encodes the specified IndexPrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. - * @param message IndexPrivateEndpoints message or plain object to encode + * Encodes the specified UndeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. + * @param message UndeployIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IndexPrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. - * @param message IndexPrivateEndpoints message or plain object to encode + * Encodes the specified UndeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. + * @param message UndeployIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IndexPrivateEndpoints message from the specified reader or buffer. + * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IndexPrivateEndpoints + * @returns UndeployIndexOperationMetadata * @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.IndexPrivateEndpoints; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; /** - * Decodes an IndexPrivateEndpoints message from the specified reader or buffer, length delimited. + * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IndexPrivateEndpoints + * @returns UndeployIndexOperationMetadata * @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.IndexPrivateEndpoints; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; /** - * Verifies an IndexPrivateEndpoints message. + * Verifies an UndeployIndexOperationMetadata 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 IndexPrivateEndpoints message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IndexPrivateEndpoints + * @returns UndeployIndexOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; /** - * Creates a plain object from an IndexPrivateEndpoints message. Also converts values to other types if specified. - * @param message IndexPrivateEndpoints + * Creates a plain object from an UndeployIndexOperationMetadata message. Also converts values to other types if specified. + * @param message UndeployIndexOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IndexPrivateEndpoints to JSON. + * Converts this UndeployIndexOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for IndexPrivateEndpoints + * Gets the default type url for UndeployIndexOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Represents an IndexEndpointService */ - class IndexEndpointService extends $protobuf.rpc.Service { + /** Properties of a MutateDeployedIndexRequest. */ + interface IMutateDeployedIndexRequest { - /** - * Constructs a new IndexEndpointService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** MutateDeployedIndexRequest indexEndpoint */ + indexEndpoint?: (string|null); - /** - * Creates new IndexEndpointService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IndexEndpointService; + /** MutateDeployedIndexRequest deployedIndex */ + deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + } - /** - * Calls CreateIndexEndpoint. - * @param request CreateIndexEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createIndexEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpointCallback): void; + /** Represents a MutateDeployedIndexRequest. */ + class MutateDeployedIndexRequest implements IMutateDeployedIndexRequest { /** - * Calls CreateIndexEndpoint. - * @param request CreateIndexEndpointRequest message or plain object - * @returns Promise + * Constructs a new MutateDeployedIndexRequest. + * @param [properties] Properties to set */ - public createIndexEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest); - /** - * Calls GetIndexEndpoint. - * @param request GetIndexEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and IndexEndpoint - */ - public getIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpointCallback): void; + /** MutateDeployedIndexRequest indexEndpoint. */ + public indexEndpoint: string; + + /** MutateDeployedIndexRequest deployedIndex. */ + public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); /** - * Calls GetIndexEndpoint. - * @param request GetIndexEndpointRequest message or plain object - * @returns Promise + * Creates a new MutateDeployedIndexRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MutateDeployedIndexRequest instance */ - public getIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; /** - * Calls ListIndexEndpoints. - * @param request ListIndexEndpointsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListIndexEndpointsResponse + * Encodes the specified MutateDeployedIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. + * @param message MutateDeployedIndexRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listIndexEndpoints(request: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpointsCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListIndexEndpoints. - * @param request ListIndexEndpointsRequest message or plain object - * @returns Promise + * Encodes the specified MutateDeployedIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. + * @param message MutateDeployedIndexRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listIndexEndpoints(request: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateIndexEndpoint. - * @param request UpdateIndexEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and IndexEndpoint + * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MutateDeployedIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpointCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; /** - * Calls UpdateIndexEndpoint. - * @param request UpdateIndexEndpointRequest message or plain object - * @returns Promise + * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MutateDeployedIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; /** - * Calls DeleteIndexEndpoint. - * @param request DeleteIndexEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Verifies a MutateDeployedIndexRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpointCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls DeleteIndexEndpoint. - * @param request DeleteIndexEndpointRequest message or plain object - * @returns Promise + * Creates a MutateDeployedIndexRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MutateDeployedIndexRequest */ - public deleteIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; /** - * Calls DeployIndex. - * @param request DeployIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a plain object from a MutateDeployedIndexRequest message. Also converts values to other types if specified. + * @param message MutateDeployedIndexRequest + * @param [options] Conversion options + * @returns Plain object */ - public deployIndex(request: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndexCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeployIndex. - * @param request DeployIndexRequest message or plain object - * @returns Promise + * Converts this MutateDeployedIndexRequest to JSON. + * @returns JSON object */ - public deployIndex(request: google.cloud.aiplatform.v1beta1.IDeployIndexRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls UndeployIndex. - * @param request UndeployIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Gets the default type url for MutateDeployedIndexRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public undeployIndex(request: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndexCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a MutateDeployedIndexResponse. */ + interface IMutateDeployedIndexResponse { + + /** MutateDeployedIndexResponse deployedIndex */ + deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + } + + /** Represents a MutateDeployedIndexResponse. */ + class MutateDeployedIndexResponse implements IMutateDeployedIndexResponse { /** - * Calls UndeployIndex. - * @param request UndeployIndexRequest message or plain object - * @returns Promise + * Constructs a new MutateDeployedIndexResponse. + * @param [properties] Properties to set */ - public undeployIndex(request: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse); + + /** MutateDeployedIndexResponse deployedIndex. */ + public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); /** - * Calls MutateDeployedIndex. - * @param request MutateDeployedIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new MutateDeployedIndexResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns MutateDeployedIndexResponse instance */ - public mutateDeployedIndex(request: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndexCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; /** - * Calls MutateDeployedIndex. - * @param request MutateDeployedIndexRequest message or plain object - * @returns Promise + * Encodes the specified MutateDeployedIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. + * @param message MutateDeployedIndexResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public mutateDeployedIndex(request: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest): Promise; - } - - namespace IndexEndpointService { + public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|createIndexEndpoint}. - * @param error Error, if any - * @param [response] Operation + * Encodes the specified MutateDeployedIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. + * @param message MutateDeployedIndexResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateIndexEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|getIndexEndpoint}. - * @param error Error, if any - * @param [response] IndexEndpoint + * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MutateDeployedIndexResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type GetIndexEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.IndexEndpoint) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|listIndexEndpoints}. - * @param error Error, if any - * @param [response] ListIndexEndpointsResponse + * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MutateDeployedIndexResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListIndexEndpointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|updateIndexEndpoint}. - * @param error Error, if any - * @param [response] IndexEndpoint + * Verifies a MutateDeployedIndexResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type UpdateIndexEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.IndexEndpoint) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|deleteIndexEndpoint}. - * @param error Error, if any - * @param [response] Operation + * Creates a MutateDeployedIndexResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MutateDeployedIndexResponse */ - type DeleteIndexEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|deployIndex}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a MutateDeployedIndexResponse message. Also converts values to other types if specified. + * @param message MutateDeployedIndexResponse + * @param [options] Conversion options + * @returns Plain object */ - type DeployIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|undeployIndex}. - * @param error Error, if any - * @param [response] Operation + * Converts this MutateDeployedIndexResponse to JSON. + * @returns JSON object */ - type UndeployIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|mutateDeployedIndex}. - * @param error Error, if any - * @param [response] Operation + * Gets the default type url for MutateDeployedIndexResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type MutateDeployedIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateIndexEndpointRequest. */ - interface ICreateIndexEndpointRequest { + /** Properties of a MutateDeployedIndexOperationMetadata. */ + interface IMutateDeployedIndexOperationMetadata { - /** CreateIndexEndpointRequest parent */ - parent?: (string|null); + /** MutateDeployedIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** CreateIndexEndpointRequest indexEndpoint */ - indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); + /** MutateDeployedIndexOperationMetadata deployedIndexId */ + deployedIndexId?: (string|null); } - /** Represents a CreateIndexEndpointRequest. */ - class CreateIndexEndpointRequest implements ICreateIndexEndpointRequest { + /** Represents a MutateDeployedIndexOperationMetadata. */ + class MutateDeployedIndexOperationMetadata implements IMutateDeployedIndexOperationMetadata { /** - * Constructs a new CreateIndexEndpointRequest. + * Constructs a new MutateDeployedIndexOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata); - /** CreateIndexEndpointRequest parent. */ - public parent: string; + /** MutateDeployedIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** CreateIndexEndpointRequest indexEndpoint. */ - public indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); + /** MutateDeployedIndexOperationMetadata deployedIndexId. */ + public deployedIndexId: string; /** - * Creates a new CreateIndexEndpointRequest instance using the specified properties. + * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns CreateIndexEndpointRequest instance + * @returns MutateDeployedIndexOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; /** - * Encodes the specified CreateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. - * @param message CreateIndexEndpointRequest message or plain object to encode + * Encodes the specified MutateDeployedIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. + * @param message MutateDeployedIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. - * @param message CreateIndexEndpointRequest message or plain object to encode + * Encodes the specified MutateDeployedIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. + * @param message MutateDeployedIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer. + * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateIndexEndpointRequest + * @returns MutateDeployedIndexOperationMetadata * @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.CreateIndexEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; /** - * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateIndexEndpointRequest + * @returns MutateDeployedIndexOperationMetadata * @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.CreateIndexEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; + + /** + * Verifies a MutateDeployedIndexOperationMetadata 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 MutateDeployedIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MutateDeployedIndexOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; + + /** + * Creates a plain object from a MutateDeployedIndexOperationMetadata message. Also converts values to other types if specified. + * @param message MutateDeployedIndexOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MutateDeployedIndexOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MutateDeployedIndexOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Represents an IndexService */ + class IndexService extends $protobuf.rpc.Service { + + /** + * Constructs a new IndexService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new IndexService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IndexService; + + /** + * Calls CreateIndex. + * @param request CreateIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createIndex(request: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.CreateIndexCallback): void; + + /** + * Calls CreateIndex. + * @param request CreateIndexRequest message or plain object + * @returns Promise + */ + public createIndex(request: google.cloud.aiplatform.v1beta1.ICreateIndexRequest): Promise; + + /** + * Calls GetIndex. + * @param request GetIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Index + */ + public getIndex(request: google.cloud.aiplatform.v1beta1.IGetIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.GetIndexCallback): void; + + /** + * Calls GetIndex. + * @param request GetIndexRequest message or plain object + * @returns Promise + */ + public getIndex(request: google.cloud.aiplatform.v1beta1.IGetIndexRequest): Promise; /** - * Verifies a CreateIndexEndpointRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListIndexes. + * @param request ListIndexesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListIndexesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public listIndexes(request: google.cloud.aiplatform.v1beta1.IListIndexesRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.ListIndexesCallback): void; /** - * Creates a CreateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateIndexEndpointRequest + * Calls ListIndexes. + * @param request ListIndexesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; + public listIndexes(request: google.cloud.aiplatform.v1beta1.IListIndexesRequest): Promise; /** - * Creates a plain object from a CreateIndexEndpointRequest message. Also converts values to other types if specified. - * @param message CreateIndexEndpointRequest - * @param [options] Conversion options - * @returns Plain object + * Calls UpdateIndex. + * @param request UpdateIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public updateIndex(request: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.UpdateIndexCallback): void; /** - * Converts this CreateIndexEndpointRequest to JSON. - * @returns JSON object + * Calls UpdateIndex. + * @param request UpdateIndexRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public updateIndex(request: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest): Promise; /** - * Gets the default type url for CreateIndexEndpointRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls DeleteIndex. + * @param request DeleteIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateIndexEndpointOperationMetadata. */ - interface ICreateIndexEndpointOperationMetadata { - - /** CreateIndexEndpointOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } - - /** Represents a CreateIndexEndpointOperationMetadata. */ - class CreateIndexEndpointOperationMetadata implements ICreateIndexEndpointOperationMetadata { + public deleteIndex(request: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.DeleteIndexCallback): void; /** - * Constructs a new CreateIndexEndpointOperationMetadata. - * @param [properties] Properties to set + * Calls DeleteIndex. + * @param request DeleteIndexRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata); + public deleteIndex(request: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): Promise; - /** CreateIndexEndpointOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Calls UpsertDatapoints. + * @param request UpsertDatapointsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and UpsertDatapointsResponse + */ + public upsertDatapoints(request: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapointsCallback): void; /** - * Creates a new CreateIndexEndpointOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateIndexEndpointOperationMetadata instance + * Calls UpsertDatapoints. + * @param request UpsertDatapointsRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; + public upsertDatapoints(request: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest): Promise; /** - * Encodes the specified CreateIndexEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. - * @param message CreateIndexEndpointOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls RemoveDatapoints. + * @param request RemoveDatapointsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and RemoveDatapointsResponse */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public removeDatapoints(request: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapointsCallback): void; /** - * Encodes the specified CreateIndexEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. - * @param message CreateIndexEndpointOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls RemoveDatapoints. + * @param request RemoveDatapointsRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public removeDatapoints(request: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest): Promise; + } + + namespace IndexService { /** - * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateIndexEndpointOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|createIndex}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; + type CreateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateIndexEndpointOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|getIndex}. + * @param error Error, if any + * @param [response] Index */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; + type GetIndexCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Index) => void; /** - * Verifies a CreateIndexEndpointOperationMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|listIndexes}. + * @param error Error, if any + * @param [response] ListIndexesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ListIndexesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListIndexesResponse) => void; /** - * Creates a CreateIndexEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateIndexEndpointOperationMetadata + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|updateIndex}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; + type UpdateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from a CreateIndexEndpointOperationMetadata message. Also converts values to other types if specified. - * @param message CreateIndexEndpointOperationMetadata - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|deleteIndex}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type DeleteIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this CreateIndexEndpointOperationMetadata to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|upsertDatapoints}. + * @param error Error, if any + * @param [response] UpsertDatapointsResponse */ - public toJSON(): { [k: string]: any }; + type UpsertDatapointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse) => void; /** - * Gets the default type url for CreateIndexEndpointOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|removeDatapoints}. + * @param error Error, if any + * @param [response] RemoveDatapointsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type RemoveDatapointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse) => void; } - /** Properties of a GetIndexEndpointRequest. */ - interface IGetIndexEndpointRequest { + /** Properties of a CreateIndexRequest. */ + interface ICreateIndexRequest { - /** GetIndexEndpointRequest name */ - name?: (string|null); + /** CreateIndexRequest parent */ + parent?: (string|null); + + /** CreateIndexRequest index */ + index?: (google.cloud.aiplatform.v1beta1.IIndex|null); } - /** Represents a GetIndexEndpointRequest. */ - class GetIndexEndpointRequest implements IGetIndexEndpointRequest { + /** Represents a CreateIndexRequest. */ + class CreateIndexRequest implements ICreateIndexRequest { /** - * Constructs a new GetIndexEndpointRequest. + * Constructs a new CreateIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexRequest); - /** GetIndexEndpointRequest name. */ - public name: string; + /** CreateIndexRequest parent. */ + public parent: string; + + /** CreateIndexRequest index. */ + public index?: (google.cloud.aiplatform.v1beta1.IIndex|null); /** - * Creates a new GetIndexEndpointRequest instance using the specified properties. + * Creates a new CreateIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetIndexEndpointRequest instance + * @returns CreateIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexRequest): google.cloud.aiplatform.v1beta1.CreateIndexRequest; /** - * Encodes the specified GetIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. - * @param message GetIndexEndpointRequest message or plain object to encode + * Encodes the specified CreateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. + * @param message CreateIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. - * @param message GetIndexEndpointRequest message or plain object to encode + * Encodes the specified CreateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. + * @param message CreateIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetIndexEndpointRequest message from the specified reader or buffer. + * Decodes a CreateIndexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetIndexEndpointRequest + * @returns CreateIndexRequest * @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.GetIndexEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexRequest; /** - * Decodes a GetIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetIndexEndpointRequest + * @returns CreateIndexRequest * @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.GetIndexEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexRequest; /** - * Verifies a GetIndexEndpointRequest message. + * Verifies a CreateIndexRequest 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 GetIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetIndexEndpointRequest + * @returns CreateIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexRequest; /** - * Creates a plain object from a GetIndexEndpointRequest message. Also converts values to other types if specified. - * @param message GetIndexEndpointRequest + * Creates a plain object from a CreateIndexRequest message. Also converts values to other types if specified. + * @param message CreateIndexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetIndexEndpointRequest to JSON. + * Converts this CreateIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetIndexEndpointRequest + * Gets the default type url for CreateIndexRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListIndexEndpointsRequest. */ - interface IListIndexEndpointsRequest { - - /** ListIndexEndpointsRequest parent */ - parent?: (string|null); - - /** ListIndexEndpointsRequest filter */ - filter?: (string|null); - - /** ListIndexEndpointsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a CreateIndexOperationMetadata. */ + interface ICreateIndexOperationMetadata { - /** ListIndexEndpointsRequest pageToken */ - pageToken?: (string|null); + /** CreateIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ListIndexEndpointsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ + nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); } - /** Represents a ListIndexEndpointsRequest. */ - class ListIndexEndpointsRequest implements IListIndexEndpointsRequest { + /** Represents a CreateIndexOperationMetadata. */ + class CreateIndexOperationMetadata implements ICreateIndexOperationMetadata { /** - * Constructs a new ListIndexEndpointsRequest. + * Constructs a new CreateIndexOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest); - - /** ListIndexEndpointsRequest parent. */ - public parent: string; - - /** ListIndexEndpointsRequest filter. */ - public filter: string; - - /** ListIndexEndpointsRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata); - /** ListIndexEndpointsRequest pageToken. */ - public pageToken: string; + /** CreateIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ListIndexEndpointsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ + public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); /** - * Creates a new ListIndexEndpointsRequest instance using the specified properties. + * Creates a new CreateIndexOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListIndexEndpointsRequest instance + * @returns CreateIndexOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; /** - * Encodes the specified ListIndexEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. - * @param message ListIndexEndpointsRequest message or plain object to encode + * Encodes the specified CreateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. + * @param message CreateIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIndexEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. - * @param message ListIndexEndpointsRequest message or plain object to encode + * Encodes the specified CreateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. + * @param message CreateIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer. + * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIndexEndpointsRequest + * @returns CreateIndexOperationMetadata * @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.ListIndexEndpointsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; /** - * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIndexEndpointsRequest + * @returns CreateIndexOperationMetadata * @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.ListIndexEndpointsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; /** - * Verifies a ListIndexEndpointsRequest message. + * Verifies a CreateIndexOperationMetadata 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 ListIndexEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIndexEndpointsRequest + * @returns CreateIndexOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; /** - * Creates a plain object from a ListIndexEndpointsRequest message. Also converts values to other types if specified. - * @param message ListIndexEndpointsRequest + * Creates a plain object from a CreateIndexOperationMetadata message. Also converts values to other types if specified. + * @param message CreateIndexOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIndexEndpointsRequest to JSON. + * Converts this CreateIndexOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListIndexEndpointsRequest + * Gets the default type url for CreateIndexOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListIndexEndpointsResponse. */ - interface IListIndexEndpointsResponse { - - /** ListIndexEndpointsResponse indexEndpoints */ - indexEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint[]|null); + /** Properties of a GetIndexRequest. */ + interface IGetIndexRequest { - /** ListIndexEndpointsResponse nextPageToken */ - nextPageToken?: (string|null); + /** GetIndexRequest name */ + name?: (string|null); } - /** Represents a ListIndexEndpointsResponse. */ - class ListIndexEndpointsResponse implements IListIndexEndpointsResponse { + /** Represents a GetIndexRequest. */ + class GetIndexRequest implements IGetIndexRequest { /** - * Constructs a new ListIndexEndpointsResponse. + * Constructs a new GetIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse); - - /** ListIndexEndpointsResponse indexEndpoints. */ - public indexEndpoints: google.cloud.aiplatform.v1beta1.IIndexEndpoint[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetIndexRequest); - /** ListIndexEndpointsResponse nextPageToken. */ - public nextPageToken: string; + /** GetIndexRequest name. */ + public name: string; /** - * Creates a new ListIndexEndpointsResponse instance using the specified properties. + * Creates a new GetIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListIndexEndpointsResponse instance + * @returns GetIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetIndexRequest): google.cloud.aiplatform.v1beta1.GetIndexRequest; /** - * Encodes the specified ListIndexEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. - * @param message ListIndexEndpointsResponse message or plain object to encode + * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. + * @param message GetIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIndexEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. - * @param message ListIndexEndpointsResponse message or plain object to encode + * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. + * @param message GetIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer. + * Decodes a GetIndexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIndexEndpointsResponse + * @returns GetIndexRequest * @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.ListIndexEndpointsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetIndexRequest; /** - * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIndexEndpointsResponse + * @returns GetIndexRequest * @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.ListIndexEndpointsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetIndexRequest; /** - * Verifies a ListIndexEndpointsResponse message. + * Verifies a GetIndexRequest 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 ListIndexEndpointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIndexEndpointsResponse + * @returns GetIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetIndexRequest; /** - * Creates a plain object from a ListIndexEndpointsResponse message. Also converts values to other types if specified. - * @param message ListIndexEndpointsResponse + * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified. + * @param message GetIndexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIndexEndpointsResponse to JSON. + * Converts this GetIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListIndexEndpointsResponse + * Gets the default type url for GetIndexRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateIndexEndpointRequest. */ - interface IUpdateIndexEndpointRequest { + /** Properties of a ListIndexesRequest. */ + interface IListIndexesRequest { - /** UpdateIndexEndpointRequest indexEndpoint */ - indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); + /** ListIndexesRequest parent */ + parent?: (string|null); - /** UpdateIndexEndpointRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ListIndexesRequest filter */ + filter?: (string|null); + + /** ListIndexesRequest pageSize */ + pageSize?: (number|null); + + /** ListIndexesRequest pageToken */ + pageToken?: (string|null); + + /** ListIndexesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents an UpdateIndexEndpointRequest. */ - class UpdateIndexEndpointRequest implements IUpdateIndexEndpointRequest { + /** Represents a ListIndexesRequest. */ + class ListIndexesRequest implements IListIndexesRequest { /** - * Constructs a new UpdateIndexEndpointRequest. + * Constructs a new ListIndexesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexesRequest); - /** UpdateIndexEndpointRequest indexEndpoint. */ - public indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); + /** ListIndexesRequest parent. */ + public parent: string; - /** UpdateIndexEndpointRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ListIndexesRequest filter. */ + public filter: string; + + /** ListIndexesRequest pageSize. */ + public pageSize: number; + + /** ListIndexesRequest pageToken. */ + public pageToken: string; + + /** ListIndexesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new UpdateIndexEndpointRequest instance using the specified properties. + * Creates a new ListIndexesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIndexEndpointRequest instance + * @returns ListIndexesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexesRequest): google.cloud.aiplatform.v1beta1.ListIndexesRequest; /** - * Encodes the specified UpdateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. - * @param message UpdateIndexEndpointRequest message or plain object to encode + * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. + * @param message ListIndexesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. - * @param message UpdateIndexEndpointRequest message or plain object to encode + * Encodes the specified ListIndexesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. + * @param message ListIndexesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer. + * Decodes a ListIndexesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateIndexEndpointRequest + * @returns ListIndexesRequest * @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.UpdateIndexEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexesRequest; /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateIndexEndpointRequest + * @returns ListIndexesRequest * @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.UpdateIndexEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexesRequest; /** - * Verifies an UpdateIndexEndpointRequest message. + * Verifies a ListIndexesRequest 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 UpdateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateIndexEndpointRequest + * @returns ListIndexesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexesRequest; /** - * Creates a plain object from an UpdateIndexEndpointRequest message. Also converts values to other types if specified. - * @param message UpdateIndexEndpointRequest + * Creates a plain object from a ListIndexesRequest message. Also converts values to other types if specified. + * @param message ListIndexesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIndexEndpointRequest to JSON. + * Converts this ListIndexesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateIndexEndpointRequest + * Gets the default type url for ListIndexesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteIndexEndpointRequest. */ - interface IDeleteIndexEndpointRequest { + /** Properties of a ListIndexesResponse. */ + interface IListIndexesResponse { - /** DeleteIndexEndpointRequest name */ - name?: (string|null); + /** ListIndexesResponse indexes */ + indexes?: (google.cloud.aiplatform.v1beta1.IIndex[]|null); + + /** ListIndexesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a DeleteIndexEndpointRequest. */ - class DeleteIndexEndpointRequest implements IDeleteIndexEndpointRequest { + /** Represents a ListIndexesResponse. */ + class ListIndexesResponse implements IListIndexesResponse { /** - * Constructs a new DeleteIndexEndpointRequest. + * Constructs a new ListIndexesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexesResponse); + + /** ListIndexesResponse indexes. */ + public indexes: google.cloud.aiplatform.v1beta1.IIndex[]; - /** DeleteIndexEndpointRequest name. */ - public name: string; + /** ListIndexesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new DeleteIndexEndpointRequest instance using the specified properties. + * Creates a new ListIndexesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteIndexEndpointRequest instance + * @returns ListIndexesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexesResponse): google.cloud.aiplatform.v1beta1.ListIndexesResponse; /** - * Encodes the specified DeleteIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. - * @param message DeleteIndexEndpointRequest message or plain object to encode + * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. + * @param message ListIndexesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. - * @param message DeleteIndexEndpointRequest message or plain object to encode + * Encodes the specified ListIndexesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. + * @param message ListIndexesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer. + * Decodes a ListIndexesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteIndexEndpointRequest + * @returns ListIndexesResponse * @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.DeleteIndexEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexesResponse; /** - * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteIndexEndpointRequest + * @returns ListIndexesResponse * @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.DeleteIndexEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexesResponse; /** - * Verifies a DeleteIndexEndpointRequest message. + * Verifies a ListIndexesResponse 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 DeleteIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteIndexEndpointRequest + * @returns ListIndexesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexesResponse; /** - * Creates a plain object from a DeleteIndexEndpointRequest message. Also converts values to other types if specified. - * @param message DeleteIndexEndpointRequest + * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified. + * @param message ListIndexesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteIndexEndpointRequest to JSON. + * Converts this ListIndexesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteIndexEndpointRequest + * Gets the default type url for ListIndexesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployIndexRequest. */ - interface IDeployIndexRequest { + /** Properties of an UpdateIndexRequest. */ + interface IUpdateIndexRequest { - /** DeployIndexRequest indexEndpoint */ - indexEndpoint?: (string|null); + /** UpdateIndexRequest index */ + index?: (google.cloud.aiplatform.v1beta1.IIndex|null); - /** DeployIndexRequest deployedIndex */ - deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** UpdateIndexRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a DeployIndexRequest. */ - class DeployIndexRequest implements IDeployIndexRequest { + /** Represents an UpdateIndexRequest. */ + class UpdateIndexRequest implements IUpdateIndexRequest { /** - * Constructs a new DeployIndexRequest. + * Constructs a new UpdateIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest); - /** DeployIndexRequest indexEndpoint. */ - public indexEndpoint: string; + /** UpdateIndexRequest index. */ + public index?: (google.cloud.aiplatform.v1beta1.IIndex|null); - /** DeployIndexRequest deployedIndex. */ - public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** UpdateIndexRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new DeployIndexRequest instance using the specified properties. + * Creates a new UpdateIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeployIndexRequest instance + * @returns UpdateIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexRequest): google.cloud.aiplatform.v1beta1.DeployIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; /** - * Encodes the specified DeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. - * @param message DeployIndexRequest message or plain object to encode + * Encodes the specified UpdateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. + * @param message UpdateIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. - * @param message DeployIndexRequest message or plain object to encode + * Encodes the specified UpdateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. + * @param message UpdateIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployIndexRequest message from the specified reader or buffer. + * Decodes an UpdateIndexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployIndexRequest + * @returns UpdateIndexRequest * @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.DeployIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; /** - * Decodes a DeployIndexRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployIndexRequest + * @returns UpdateIndexRequest * @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.DeployIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; /** - * Verifies a DeployIndexRequest message. + * Verifies an UpdateIndexRequest 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 DeployIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployIndexRequest + * @returns UpdateIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; /** - * Creates a plain object from a DeployIndexRequest message. Also converts values to other types if specified. - * @param message DeployIndexRequest + * Creates a plain object from an UpdateIndexRequest message. Also converts values to other types if specified. + * @param message UpdateIndexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployIndexRequest to JSON. + * Converts this UpdateIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployIndexRequest + * Gets the default type url for UpdateIndexRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployIndexResponse. */ - interface IDeployIndexResponse { + /** Properties of an UpdateIndexOperationMetadata. */ + interface IUpdateIndexOperationMetadata { - /** DeployIndexResponse deployedIndex */ - deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** UpdateIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + + /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ + nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); } - /** Represents a DeployIndexResponse. */ - class DeployIndexResponse implements IDeployIndexResponse { + /** Represents an UpdateIndexOperationMetadata. */ + class UpdateIndexOperationMetadata implements IUpdateIndexOperationMetadata { /** - * Constructs a new DeployIndexResponse. + * Constructs a new UpdateIndexOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata); - /** DeployIndexResponse deployedIndex. */ - public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** UpdateIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + + /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ + public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); /** - * Creates a new DeployIndexResponse instance using the specified properties. + * Creates a new UpdateIndexOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeployIndexResponse instance + * @returns UpdateIndexOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexResponse): google.cloud.aiplatform.v1beta1.DeployIndexResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; /** - * Encodes the specified DeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. - * @param message DeployIndexResponse message or plain object to encode + * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. + * @param message UpdateIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. - * @param message DeployIndexResponse message or plain object to encode + * Encodes the specified UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. + * @param message UpdateIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployIndexResponse message from the specified reader or buffer. + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployIndexResponse + * @returns UpdateIndexOperationMetadata * @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.DeployIndexResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; /** - * Decodes a DeployIndexResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployIndexResponse + * @returns UpdateIndexOperationMetadata * @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.DeployIndexResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; /** - * Verifies a DeployIndexResponse message. + * Verifies an UpdateIndexOperationMetadata 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 DeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployIndexResponse + * @returns UpdateIndexOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; /** - * Creates a plain object from a DeployIndexResponse message. Also converts values to other types if specified. - * @param message DeployIndexResponse + * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateIndexOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployIndexResponse to JSON. + * Converts this UpdateIndexOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployIndexResponse + * Gets the default type url for UpdateIndexOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeployIndexOperationMetadata. */ - interface IDeployIndexOperationMetadata { - - /** DeployIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Properties of a DeleteIndexRequest. */ + interface IDeleteIndexRequest { - /** DeployIndexOperationMetadata deployedIndexId */ - deployedIndexId?: (string|null); + /** DeleteIndexRequest name */ + name?: (string|null); } - /** Represents a DeployIndexOperationMetadata. */ - class DeployIndexOperationMetadata implements IDeployIndexOperationMetadata { + /** Represents a DeleteIndexRequest. */ + class DeleteIndexRequest implements IDeleteIndexRequest { /** - * Constructs a new DeployIndexOperationMetadata. + * Constructs a new DeleteIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata); - - /** DeployIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest); - /** DeployIndexOperationMetadata deployedIndexId. */ - public deployedIndexId: string; + /** DeleteIndexRequest name. */ + public name: string; /** - * Creates a new DeployIndexOperationMetadata instance using the specified properties. + * Creates a new DeleteIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeployIndexOperationMetadata instance + * @returns DeleteIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Encodes the specified DeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. - * @param message DeployIndexOperationMetadata message or plain object to encode + * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * @param message DeleteIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. - * @param message DeployIndexOperationMetadata message or plain object to encode + * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * @param message DeleteIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer. + * Decodes a DeleteIndexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployIndexOperationMetadata + * @returns DeleteIndexRequest * @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.DeployIndexOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployIndexOperationMetadata + * @returns DeleteIndexRequest * @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.DeployIndexOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Verifies a DeployIndexOperationMetadata message. + * Verifies a DeleteIndexRequest 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 DeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployIndexOperationMetadata + * @returns DeleteIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Creates a plain object from a DeployIndexOperationMetadata message. Also converts values to other types if specified. - * @param message DeployIndexOperationMetadata + * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. + * @param message DeleteIndexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployIndexOperationMetadata to JSON. + * Converts this DeleteIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeployIndexOperationMetadata + * Gets the default type url for DeleteIndexRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UndeployIndexRequest. */ - interface IUndeployIndexRequest { + /** Properties of an UpsertDatapointsRequest. */ + interface IUpsertDatapointsRequest { - /** UndeployIndexRequest indexEndpoint */ - indexEndpoint?: (string|null); + /** UpsertDatapointsRequest index */ + index?: (string|null); - /** UndeployIndexRequest deployedIndexId */ - deployedIndexId?: (string|null); + /** UpsertDatapointsRequest datapoints */ + datapoints?: (google.cloud.aiplatform.v1beta1.IIndexDatapoint[]|null); } - /** Represents an UndeployIndexRequest. */ - class UndeployIndexRequest implements IUndeployIndexRequest { + /** Represents an UpsertDatapointsRequest. */ + class UpsertDatapointsRequest implements IUpsertDatapointsRequest { /** - * Constructs a new UndeployIndexRequest. + * Constructs a new UpsertDatapointsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest); - /** UndeployIndexRequest indexEndpoint. */ - public indexEndpoint: string; + /** UpsertDatapointsRequest index. */ + public index: string; - /** UndeployIndexRequest deployedIndexId. */ - public deployedIndexId: string; + /** UpsertDatapointsRequest datapoints. */ + public datapoints: google.cloud.aiplatform.v1beta1.IIndexDatapoint[]; /** - * Creates a new UndeployIndexRequest instance using the specified properties. + * Creates a new UpsertDatapointsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployIndexRequest instance + * @returns UpsertDatapointsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest): google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest; /** - * Encodes the specified UndeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. - * @param message UndeployIndexRequest message or plain object to encode + * Encodes the specified UpsertDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. + * @param message UpsertDatapointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. - * @param message UndeployIndexRequest message or plain object to encode + * Encodes the specified UpsertDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. + * @param message UpsertDatapointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployIndexRequest message from the specified reader or buffer. + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeployIndexRequest + * @returns UpsertDatapointsRequest * @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.UndeployIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest; /** - * Decodes an UndeployIndexRequest message from the specified reader or buffer, length delimited. + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeployIndexRequest + * @returns UpsertDatapointsRequest * @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.UndeployIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest; /** - * Verifies an UndeployIndexRequest message. + * Verifies an UpsertDatapointsRequest 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 UndeployIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpsertDatapointsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeployIndexRequest + * @returns UpsertDatapointsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest; /** - * Creates a plain object from an UndeployIndexRequest message. Also converts values to other types if specified. - * @param message UndeployIndexRequest + * Creates a plain object from an UpsertDatapointsRequest message. Also converts values to other types if specified. + * @param message UpsertDatapointsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployIndexRequest to JSON. + * Converts this UpsertDatapointsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UndeployIndexRequest + * Gets the default type url for UpsertDatapointsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UndeployIndexResponse. */ - interface IUndeployIndexResponse { + /** Properties of an UpsertDatapointsResponse. */ + interface IUpsertDatapointsResponse { } - /** Represents an UndeployIndexResponse. */ - class UndeployIndexResponse implements IUndeployIndexResponse { + /** Represents an UpsertDatapointsResponse. */ + class UpsertDatapointsResponse implements IUpsertDatapointsResponse { /** - * Constructs a new UndeployIndexResponse. + * Constructs a new UpsertDatapointsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse); /** - * Creates a new UndeployIndexResponse instance using the specified properties. + * Creates a new UpsertDatapointsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployIndexResponse instance + * @returns UpsertDatapointsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse): google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse; /** - * Encodes the specified UndeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. - * @param message UndeployIndexResponse message or plain object to encode + * Encodes the specified UpsertDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. + * @param message UpsertDatapointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. - * @param message UndeployIndexResponse message or plain object to encode + * Encodes the specified UpsertDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. + * @param message UpsertDatapointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployIndexResponse message from the specified reader or buffer. + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeployIndexResponse + * @returns UpsertDatapointsResponse * @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.UndeployIndexResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse; /** - * Decodes an UndeployIndexResponse message from the specified reader or buffer, length delimited. + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeployIndexResponse + * @returns UpsertDatapointsResponse * @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.UndeployIndexResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse; /** - * Verifies an UndeployIndexResponse message. + * Verifies an UpsertDatapointsResponse 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 UndeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpsertDatapointsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeployIndexResponse + * @returns UpsertDatapointsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse; /** - * Creates a plain object from an UndeployIndexResponse message. Also converts values to other types if specified. - * @param message UndeployIndexResponse + * Creates a plain object from an UpsertDatapointsResponse message. Also converts values to other types if specified. + * @param message UpsertDatapointsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployIndexResponse to JSON. + * Converts this UpsertDatapointsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UndeployIndexResponse + * Gets the default type url for UpsertDatapointsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UndeployIndexOperationMetadata. */ - interface IUndeployIndexOperationMetadata { + /** Properties of a RemoveDatapointsRequest. */ + interface IRemoveDatapointsRequest { - /** UndeployIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** RemoveDatapointsRequest index */ + index?: (string|null); + + /** RemoveDatapointsRequest datapointIds */ + datapointIds?: (string[]|null); } - /** Represents an UndeployIndexOperationMetadata. */ - class UndeployIndexOperationMetadata implements IUndeployIndexOperationMetadata { + /** Represents a RemoveDatapointsRequest. */ + class RemoveDatapointsRequest implements IRemoveDatapointsRequest { /** - * Constructs a new UndeployIndexOperationMetadata. + * Constructs a new RemoveDatapointsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest); - /** UndeployIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** RemoveDatapointsRequest index. */ + public index: string; + + /** RemoveDatapointsRequest datapointIds. */ + public datapointIds: string[]; /** - * Creates a new UndeployIndexOperationMetadata instance using the specified properties. + * Creates a new RemoveDatapointsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployIndexOperationMetadata instance + * @returns RemoveDatapointsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest): google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest; /** - * Encodes the specified UndeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. - * @param message UndeployIndexOperationMetadata message or plain object to encode + * Encodes the specified RemoveDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. + * @param message RemoveDatapointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. - * @param message UndeployIndexOperationMetadata message or plain object to encode + * Encodes the specified RemoveDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. + * @param message RemoveDatapointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer. + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeployIndexOperationMetadata + * @returns RemoveDatapointsRequest * @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.UndeployIndexOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest; /** - * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeployIndexOperationMetadata + * @returns RemoveDatapointsRequest * @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.UndeployIndexOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest; /** - * Verifies an UndeployIndexOperationMetadata message. + * Verifies a RemoveDatapointsRequest 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 UndeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveDatapointsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeployIndexOperationMetadata + * @returns RemoveDatapointsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest; /** - * Creates a plain object from an UndeployIndexOperationMetadata message. Also converts values to other types if specified. - * @param message UndeployIndexOperationMetadata + * Creates a plain object from a RemoveDatapointsRequest message. Also converts values to other types if specified. + * @param message RemoveDatapointsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployIndexOperationMetadata to JSON. + * Converts this RemoveDatapointsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UndeployIndexOperationMetadata + * Gets the default type url for RemoveDatapointsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MutateDeployedIndexRequest. */ - interface IMutateDeployedIndexRequest { - - /** MutateDeployedIndexRequest indexEndpoint */ - indexEndpoint?: (string|null); - - /** MutateDeployedIndexRequest deployedIndex */ - deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** Properties of a RemoveDatapointsResponse. */ + interface IRemoveDatapointsResponse { } - /** Represents a MutateDeployedIndexRequest. */ - class MutateDeployedIndexRequest implements IMutateDeployedIndexRequest { + /** Represents a RemoveDatapointsResponse. */ + class RemoveDatapointsResponse implements IRemoveDatapointsResponse { /** - * Constructs a new MutateDeployedIndexRequest. + * Constructs a new RemoveDatapointsResponse. * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest); - - /** MutateDeployedIndexRequest indexEndpoint. */ - public indexEndpoint: string; - - /** MutateDeployedIndexRequest deployedIndex. */ - public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse); /** - * Creates a new MutateDeployedIndexRequest instance using the specified properties. + * Creates a new RemoveDatapointsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MutateDeployedIndexRequest instance + * @returns RemoveDatapointsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse): google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse; /** - * Encodes the specified MutateDeployedIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. - * @param message MutateDeployedIndexRequest message or plain object to encode + * Encodes the specified RemoveDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. + * @param message RemoveDatapointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MutateDeployedIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. - * @param message MutateDeployedIndexRequest message or plain object to encode + * Encodes the specified RemoveDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. + * @param message RemoveDatapointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer. + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MutateDeployedIndexRequest + * @returns RemoveDatapointsResponse * @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.MutateDeployedIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse; /** - * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MutateDeployedIndexRequest + * @returns RemoveDatapointsResponse * @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.MutateDeployedIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse; /** - * Verifies a MutateDeployedIndexRequest message. + * Verifies a RemoveDatapointsResponse 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 MutateDeployedIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveDatapointsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MutateDeployedIndexRequest + * @returns RemoveDatapointsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse; /** - * Creates a plain object from a MutateDeployedIndexRequest message. Also converts values to other types if specified. - * @param message MutateDeployedIndexRequest + * Creates a plain object from a RemoveDatapointsResponse message. Also converts values to other types if specified. + * @param message RemoveDatapointsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MutateDeployedIndexRequest to JSON. + * Converts this RemoveDatapointsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MutateDeployedIndexRequest + * Gets the default type url for RemoveDatapointsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MutateDeployedIndexResponse. */ - interface IMutateDeployedIndexResponse { + /** Properties of a NearestNeighborSearchOperationMetadata. */ + interface INearestNeighborSearchOperationMetadata { - /** MutateDeployedIndexResponse deployedIndex */ - deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** NearestNeighborSearchOperationMetadata contentValidationStats */ + contentValidationStats?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]|null); + + /** NearestNeighborSearchOperationMetadata dataBytesCount */ + dataBytesCount?: (number|Long|string|null); } - /** Represents a MutateDeployedIndexResponse. */ - class MutateDeployedIndexResponse implements IMutateDeployedIndexResponse { + /** Represents a NearestNeighborSearchOperationMetadata. */ + class NearestNeighborSearchOperationMetadata implements INearestNeighborSearchOperationMetadata { /** - * Constructs a new MutateDeployedIndexResponse. + * Constructs a new NearestNeighborSearchOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata); - /** MutateDeployedIndexResponse deployedIndex. */ - public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** NearestNeighborSearchOperationMetadata contentValidationStats. */ + public contentValidationStats: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]; + + /** NearestNeighborSearchOperationMetadata dataBytesCount. */ + public dataBytesCount: (number|Long|string); /** - * Creates a new MutateDeployedIndexResponse instance using the specified properties. + * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns MutateDeployedIndexResponse instance + * @returns NearestNeighborSearchOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Encodes the specified MutateDeployedIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. - * @param message MutateDeployedIndexResponse message or plain object to encode + * Encodes the specified NearestNeighborSearchOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. + * @param message NearestNeighborSearchOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MutateDeployedIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. - * @param message MutateDeployedIndexResponse message or plain object to encode + * Encodes the specified NearestNeighborSearchOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. + * @param message NearestNeighborSearchOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer. + * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MutateDeployedIndexResponse + * @returns NearestNeighborSearchOperationMetadata * @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.MutateDeployedIndexResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer, length delimited. + * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MutateDeployedIndexResponse + * @returns NearestNeighborSearchOperationMetadata * @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.MutateDeployedIndexResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Verifies a MutateDeployedIndexResponse message. + * Verifies a NearestNeighborSearchOperationMetadata 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 MutateDeployedIndexResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NearestNeighborSearchOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MutateDeployedIndexResponse + * @returns NearestNeighborSearchOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Creates a plain object from a MutateDeployedIndexResponse message. Also converts values to other types if specified. - * @param message MutateDeployedIndexResponse + * Creates a plain object from a NearestNeighborSearchOperationMetadata message. Also converts values to other types if specified. + * @param message NearestNeighborSearchOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MutateDeployedIndexResponse to JSON. + * Converts this NearestNeighborSearchOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for MutateDeployedIndexResponse + * Gets the default type url for NearestNeighborSearchOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a MutateDeployedIndexOperationMetadata. */ - interface IMutateDeployedIndexOperationMetadata { + namespace NearestNeighborSearchOperationMetadata { - /** MutateDeployedIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Properties of a RecordError. */ + interface IRecordError { - /** MutateDeployedIndexOperationMetadata deployedIndexId */ - deployedIndexId?: (string|null); + /** RecordError errorType */ + errorType?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|keyof typeof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|null); + + /** RecordError errorMessage */ + errorMessage?: (string|null); + + /** RecordError sourceGcsUri */ + sourceGcsUri?: (string|null); + + /** RecordError embeddingId */ + embeddingId?: (string|null); + + /** RecordError rawRecord */ + rawRecord?: (string|null); + } + + /** Represents a RecordError. */ + class RecordError implements IRecordError { + + /** + * Constructs a new RecordError. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError); + + /** RecordError errorType. */ + public errorType: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|keyof typeof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType); + + /** RecordError errorMessage. */ + public errorMessage: string; + + /** RecordError sourceGcsUri. */ + public sourceGcsUri: string; + + /** RecordError embeddingId. */ + public embeddingId: string; + + /** RecordError rawRecord. */ + public rawRecord: string; + + /** + * Creates a new RecordError instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordError instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; + + /** + * Encodes the specified RecordError message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. + * @param message RecordError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RecordError message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. + * @param message RecordError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecordError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordError + * @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.NearestNeighborSearchOperationMetadata.RecordError; + + /** + * Decodes a RecordError message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RecordError + * @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.NearestNeighborSearchOperationMetadata.RecordError; + + /** + * Verifies a RecordError 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 RecordError message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordError + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; + + /** + * Creates a plain object from a RecordError message. Also converts values to other types if specified. + * @param message RecordError + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecordError to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecordError + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace RecordError { + + /** RecordErrorType enum. */ + enum RecordErrorType { + ERROR_TYPE_UNSPECIFIED = 0, + EMPTY_LINE = 1, + INVALID_JSON_SYNTAX = 2, + INVALID_CSV_SYNTAX = 3, + INVALID_AVRO_SYNTAX = 4, + INVALID_EMBEDDING_ID = 5, + EMBEDDING_SIZE_MISMATCH = 6, + NAMESPACE_MISSING = 7 + } + } + + /** Properties of a ContentValidationStats. */ + interface IContentValidationStats { + + /** ContentValidationStats sourceGcsUri */ + sourceGcsUri?: (string|null); + + /** ContentValidationStats validRecordCount */ + validRecordCount?: (number|Long|string|null); + + /** ContentValidationStats invalidRecordCount */ + invalidRecordCount?: (number|Long|string|null); + + /** ContentValidationStats partialErrors */ + partialErrors?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError[]|null); + } + + /** Represents a ContentValidationStats. */ + class ContentValidationStats implements IContentValidationStats { + + /** + * Constructs a new ContentValidationStats. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats); + + /** ContentValidationStats sourceGcsUri. */ + public sourceGcsUri: string; + + /** ContentValidationStats validRecordCount. */ + public validRecordCount: (number|Long|string); + + /** ContentValidationStats invalidRecordCount. */ + public invalidRecordCount: (number|Long|string); + + /** ContentValidationStats partialErrors. */ + public partialErrors: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError[]; + + /** + * Creates a new ContentValidationStats instance using the specified properties. + * @param [properties] Properties to set + * @returns ContentValidationStats instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + + /** + * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @param message ContentValidationStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @param message ContentValidationStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ContentValidationStats message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContentValidationStats + * @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.NearestNeighborSearchOperationMetadata.ContentValidationStats; + + /** + * Decodes a ContentValidationStats message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ContentValidationStats + * @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.NearestNeighborSearchOperationMetadata.ContentValidationStats; + + /** + * Verifies a ContentValidationStats 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 ContentValidationStats message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ContentValidationStats + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + + /** + * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. + * @param message ContentValidationStats + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ContentValidationStats to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ContentValidationStats + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a MutateDeployedIndexOperationMetadata. */ - class MutateDeployedIndexOperationMetadata implements IMutateDeployedIndexOperationMetadata { + /** Represents a JobService */ + class JobService extends $protobuf.rpc.Service { /** - * Constructs a new MutateDeployedIndexOperationMetadata. - * @param [properties] Properties to set + * Constructs a new JobService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata); + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** MutateDeployedIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Creates new JobService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): JobService; - /** MutateDeployedIndexOperationMetadata deployedIndexId. */ - public deployedIndexId: string; + /** + * Calls CreateCustomJob. + * @param request CreateCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomJob + */ + public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback): void; /** - * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns MutateDeployedIndexOperationMetadata instance + * Calls CreateCustomJob. + * @param request CreateCustomJobRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; + public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): Promise; /** - * Encodes the specified MutateDeployedIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. - * @param message MutateDeployedIndexOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetCustomJob. + * @param request GetCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomJob */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback): void; /** - * Encodes the specified MutateDeployedIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. - * @param message MutateDeployedIndexOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetCustomJob. + * @param request GetCustomJobRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): Promise; /** - * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MutateDeployedIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListCustomJobs. + * @param request ListCustomJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListCustomJobsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; + public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback): void; /** - * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MutateDeployedIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListCustomJobs. + * @param request ListCustomJobsRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; + public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): Promise; /** - * Verifies a MutateDeployedIndexOperationMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls DeleteCustomJob. + * @param request DeleteCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static verify(message: { [k: string]: any }): (string|null); + public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback): void; /** - * Creates a MutateDeployedIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MutateDeployedIndexOperationMetadata + * Calls DeleteCustomJob. + * @param request DeleteCustomJobRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; + public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): Promise; /** - * Creates a plain object from a MutateDeployedIndexOperationMetadata message. Also converts values to other types if specified. - * @param message MutateDeployedIndexOperationMetadata - * @param [options] Conversion options - * @returns Plain object + * Calls CancelCustomJob. + * @param request CancelCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback): void; /** - * Converts this MutateDeployedIndexOperationMetadata to JSON. - * @returns JSON object + * Calls CancelCustomJob. + * @param request CancelCustomJobRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): Promise; /** - * Gets the default type url for MutateDeployedIndexOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls CreateDataLabelingJob. + * @param request CreateDataLabelingJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataLabelingJob */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJobCallback): void; + + /** + * Calls CreateDataLabelingJob. + * @param request CreateDataLabelingJobRequest message or plain object + * @returns Promise + */ + public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): Promise; + + /** + * Calls GetDataLabelingJob. + * @param request GetDataLabelingJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataLabelingJob + */ + public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback): void; - /** Represents an IndexService */ - class IndexService extends $protobuf.rpc.Service { + /** + * Calls GetDataLabelingJob. + * @param request GetDataLabelingJobRequest message or plain object + * @returns Promise + */ + public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): Promise; /** - * Constructs a new IndexService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Calls ListDataLabelingJobs. + * @param request ListDataLabelingJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback): void; /** - * Creates new IndexService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Calls ListDataLabelingJobs. + * @param request ListDataLabelingJobsRequest message or plain object + * @returns Promise */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IndexService; + public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): Promise; /** - * Calls CreateIndex. - * @param request CreateIndexRequest message or plain object + * Calls DeleteDataLabelingJob. + * @param request DeleteDataLabelingJobRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ - public createIndex(request: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.CreateIndexCallback): void; + public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback): void; /** - * Calls CreateIndex. - * @param request CreateIndexRequest message or plain object + * Calls DeleteDataLabelingJob. + * @param request DeleteDataLabelingJobRequest message or plain object * @returns Promise */ - public createIndex(request: google.cloud.aiplatform.v1beta1.ICreateIndexRequest): Promise; + public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): Promise; /** - * Calls GetIndex. - * @param request GetIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Index + * Calls CancelDataLabelingJob. + * @param request CancelDataLabelingJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public getIndex(request: google.cloud.aiplatform.v1beta1.IGetIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.GetIndexCallback): void; + public cancelDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback): void; /** - * Calls GetIndex. - * @param request GetIndexRequest message or plain object + * Calls CancelDataLabelingJob. + * @param request CancelDataLabelingJobRequest message or plain object * @returns Promise */ - public getIndex(request: google.cloud.aiplatform.v1beta1.IGetIndexRequest): Promise; + public cancelDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): Promise; /** - * Calls ListIndexes. - * @param request ListIndexesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListIndexesResponse + * Calls CreateHyperparameterTuningJob. + * @param request CreateHyperparameterTuningJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob */ - public listIndexes(request: google.cloud.aiplatform.v1beta1.IListIndexesRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.ListIndexesCallback): void; + public createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJobCallback): void; /** - * Calls ListIndexes. - * @param request ListIndexesRequest message or plain object + * Calls CreateHyperparameterTuningJob. + * @param request CreateHyperparameterTuningJobRequest message or plain object * @returns Promise */ - public listIndexes(request: google.cloud.aiplatform.v1beta1.IListIndexesRequest): Promise; + public createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): Promise; /** - * Calls UpdateIndex. - * @param request UpdateIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Calls GetHyperparameterTuningJob. + * @param request GetHyperparameterTuningJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob */ - public updateIndex(request: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.UpdateIndexCallback): void; + public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback): void; /** - * Calls UpdateIndex. - * @param request UpdateIndexRequest message or plain object + * Calls GetHyperparameterTuningJob. + * @param request GetHyperparameterTuningJobRequest message or plain object * @returns Promise */ - public updateIndex(request: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest): Promise; + public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): Promise; /** - * Calls DeleteIndex. - * @param request DeleteIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Calls ListHyperparameterTuningJobs. + * @param request ListHyperparameterTuningJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse */ - public deleteIndex(request: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.DeleteIndexCallback): void; + public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback): void; /** - * Calls DeleteIndex. - * @param request DeleteIndexRequest message or plain object + * Calls ListHyperparameterTuningJobs. + * @param request ListHyperparameterTuningJobsRequest message or plain object * @returns Promise */ - public deleteIndex(request: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): Promise; + public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): Promise; /** - * Calls UpsertDatapoints. - * @param request UpsertDatapointsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and UpsertDatapointsResponse + * Calls DeleteHyperparameterTuningJob. + * @param request DeleteHyperparameterTuningJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public upsertDatapoints(request: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapointsCallback): void; + public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback): void; /** - * Calls UpsertDatapoints. - * @param request UpsertDatapointsRequest message or plain object + * Calls DeleteHyperparameterTuningJob. + * @param request DeleteHyperparameterTuningJobRequest message or plain object * @returns Promise */ - public upsertDatapoints(request: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest): Promise; + public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): Promise; /** - * Calls RemoveDatapoints. - * @param request RemoveDatapointsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and RemoveDatapointsResponse + * Calls CancelHyperparameterTuningJob. + * @param request CancelHyperparameterTuningJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public removeDatapoints(request: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapointsCallback): void; + public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback): void; /** - * Calls RemoveDatapoints. - * @param request RemoveDatapointsRequest message or plain object + * Calls CancelHyperparameterTuningJob. + * @param request CancelHyperparameterTuningJobRequest message or plain object * @returns Promise */ - public removeDatapoints(request: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest): Promise; - } - - namespace IndexService { + public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): Promise; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|createIndex}. - * @param error Error, if any - * @param [response] Operation + * Calls CreateNasJob. + * @param request CreateNasJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NasJob */ - type CreateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public createNasJob(request: google.cloud.aiplatform.v1beta1.ICreateNasJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateNasJobCallback): void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|getIndex}. - * @param error Error, if any - * @param [response] Index + * Calls CreateNasJob. + * @param request CreateNasJobRequest message or plain object + * @returns Promise */ - type GetIndexCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Index) => void; + public createNasJob(request: google.cloud.aiplatform.v1beta1.ICreateNasJobRequest): Promise; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|listIndexes}. - * @param error Error, if any - * @param [response] ListIndexesResponse + * Calls GetNasJob. + * @param request GetNasJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NasJob */ - type ListIndexesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListIndexesResponse) => void; + public getNasJob(request: google.cloud.aiplatform.v1beta1.IGetNasJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetNasJobCallback): void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|updateIndex}. - * @param error Error, if any - * @param [response] Operation + * Calls GetNasJob. + * @param request GetNasJobRequest message or plain object + * @returns Promise */ - type UpdateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public getNasJob(request: google.cloud.aiplatform.v1beta1.IGetNasJobRequest): Promise; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|deleteIndex}. - * @param error Error, if any - * @param [response] Operation + * Calls ListNasJobs. + * @param request ListNasJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListNasJobsResponse */ - type DeleteIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public listNasJobs(request: google.cloud.aiplatform.v1beta1.IListNasJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListNasJobsCallback): void; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|upsertDatapoints}. - * @param error Error, if any - * @param [response] UpsertDatapointsResponse + * Calls ListNasJobs. + * @param request ListNasJobsRequest message or plain object + * @returns Promise */ - type UpsertDatapointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse) => void; + public listNasJobs(request: google.cloud.aiplatform.v1beta1.IListNasJobsRequest): Promise; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|removeDatapoints}. - * @param error Error, if any - * @param [response] RemoveDatapointsResponse + * Calls DeleteNasJob. + * @param request DeleteNasJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - type RemoveDatapointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse) => void; - } - - /** Properties of a CreateIndexRequest. */ - interface ICreateIndexRequest { - - /** CreateIndexRequest parent */ - parent?: (string|null); - - /** CreateIndexRequest index */ - index?: (google.cloud.aiplatform.v1beta1.IIndex|null); - } - - /** Represents a CreateIndexRequest. */ - class CreateIndexRequest implements ICreateIndexRequest { + public deleteNasJob(request: google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteNasJobCallback): void; /** - * Constructs a new CreateIndexRequest. - * @param [properties] Properties to set + * Calls DeleteNasJob. + * @param request DeleteNasJobRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexRequest); - - /** CreateIndexRequest parent. */ - public parent: string; - - /** CreateIndexRequest index. */ - public index?: (google.cloud.aiplatform.v1beta1.IIndex|null); + public deleteNasJob(request: google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest): Promise; /** - * Creates a new CreateIndexRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateIndexRequest instance + * Calls CancelNasJob. + * @param request CancelNasJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexRequest): google.cloud.aiplatform.v1beta1.CreateIndexRequest; + public cancelNasJob(request: google.cloud.aiplatform.v1beta1.ICancelNasJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelNasJobCallback): void; /** - * Encodes the specified CreateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. - * @param message CreateIndexRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CancelNasJob. + * @param request CancelNasJobRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public cancelNasJob(request: google.cloud.aiplatform.v1beta1.ICancelNasJobRequest): Promise; /** - * Encodes the specified CreateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. - * @param message CreateIndexRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls GetNasTrialDetail. + * @param request GetNasTrialDetailRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NasTrialDetail */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public getNasTrialDetail(request: google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetNasTrialDetailCallback): void; /** - * Decodes a CreateIndexRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetNasTrialDetail. + * @param request GetNasTrialDetailRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexRequest; + public getNasTrialDetail(request: google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest): Promise; /** - * Decodes a CreateIndexRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListNasTrialDetails. + * @param request ListNasTrialDetailsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListNasTrialDetailsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexRequest; + public listNasTrialDetails(request: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetailsCallback): void; /** - * Verifies a CreateIndexRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListNasTrialDetails. + * @param request ListNasTrialDetailsRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public listNasTrialDetails(request: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest): Promise; /** - * Creates a CreateIndexRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateIndexRequest + * Calls CreateBatchPredictionJob. + * @param request CreateBatchPredictionJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchPredictionJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexRequest; + public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback): void; /** - * Creates a plain object from a CreateIndexRequest message. Also converts values to other types if specified. - * @param message CreateIndexRequest - * @param [options] Conversion options - * @returns Plain object + * Calls CreateBatchPredictionJob. + * @param request CreateBatchPredictionJobRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): Promise; /** - * Converts this CreateIndexRequest to JSON. - * @returns JSON object + * Calls GetBatchPredictionJob. + * @param request GetBatchPredictionJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchPredictionJob */ - public toJSON(): { [k: string]: any }; + public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJobCallback): void; /** - * Gets the default type url for CreateIndexRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls GetBatchPredictionJob. + * @param request GetBatchPredictionJobRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a CreateIndexOperationMetadata. */ - interface ICreateIndexOperationMetadata { - - /** CreateIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - - /** CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ - nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); - } - - /** Represents a CreateIndexOperationMetadata. */ - class CreateIndexOperationMetadata implements ICreateIndexOperationMetadata { + public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): Promise; /** - * Constructs a new CreateIndexOperationMetadata. - * @param [properties] Properties to set + * Calls ListBatchPredictionJobs. + * @param request ListBatchPredictionJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata); - - /** CreateIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - - /** CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ - public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); + public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback): void; /** - * Creates a new CreateIndexOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateIndexOperationMetadata instance + * Calls ListBatchPredictionJobs. + * @param request ListBatchPredictionJobsRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; + public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): Promise; /** - * Encodes the specified CreateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. - * @param message CreateIndexOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteBatchPredictionJob. + * @param request DeleteBatchPredictionJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback): void; /** - * Encodes the specified CreateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. - * @param message CreateIndexOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteBatchPredictionJob. + * @param request DeleteBatchPredictionJobRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): Promise; /** - * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CancelBatchPredictionJob. + * @param request CancelBatchPredictionJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; + public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback): void; /** - * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CancelBatchPredictionJob. + * @param request CancelBatchPredictionJobRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; + public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): Promise; /** - * Verifies a CreateIndexOperationMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls CreateModelDeploymentMonitoringJob. + * @param request CreateModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob */ - public static verify(message: { [k: string]: any }): (string|null); + public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback): void; /** - * Creates a CreateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateIndexOperationMetadata + * Calls CreateModelDeploymentMonitoringJob. + * @param request CreateModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; + public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): Promise; /** - * Creates a plain object from a CreateIndexOperationMetadata message. Also converts values to other types if specified. - * @param message CreateIndexOperationMetadata - * @param [options] Conversion options - * @returns Plain object + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, callback: google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback): void; /** - * Converts this CreateIndexOperationMetadata to JSON. - * @returns JSON object + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; + public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): Promise; /** - * Gets the default type url for CreateIndexOperationMetadata - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls GetModelDeploymentMonitoringJob. + * @param request GetModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - /** Properties of a GetIndexRequest. */ - interface IGetIndexRequest { - - /** GetIndexRequest name */ - name?: (string|null); - } - - /** Represents a GetIndexRequest. */ - class GetIndexRequest implements IGetIndexRequest { + public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback): void; /** - * Constructs a new GetIndexRequest. - * @param [properties] Properties to set + * Calls GetModelDeploymentMonitoringJob. + * @param request GetModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetIndexRequest); - - /** GetIndexRequest name. */ - public name: string; + public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): Promise; /** - * Creates a new GetIndexRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetIndexRequest instance + * Calls ListModelDeploymentMonitoringJobs. + * @param request ListModelDeploymentMonitoringJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetIndexRequest): google.cloud.aiplatform.v1beta1.GetIndexRequest; + public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback): void; /** - * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. - * @param message GetIndexRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListModelDeploymentMonitoringJobs. + * @param request ListModelDeploymentMonitoringJobsRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): Promise; /** - * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. - * @param message GetIndexRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpdateModelDeploymentMonitoringJob. + * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback): void; /** - * Decodes a GetIndexRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls UpdateModelDeploymentMonitoringJob. + * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetIndexRequest; + public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): Promise; /** - * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteModelDeploymentMonitoringJob. + * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetIndexRequest; + public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback): void; /** - * Verifies a GetIndexRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls DeleteModelDeploymentMonitoringJob. + * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): Promise; /** - * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetIndexRequest + * Calls PauseModelDeploymentMonitoringJob. + * @param request PauseModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetIndexRequest; + public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJobCallback): void; /** - * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified. - * @param message GetIndexRequest - * @param [options] Conversion options - * @returns Plain object + * Calls PauseModelDeploymentMonitoringJob. + * @param request PauseModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): Promise; /** - * Converts this GetIndexRequest to JSON. - * @returns JSON object + * Calls ResumeModelDeploymentMonitoringJob. + * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public toJSON(): { [k: string]: any }; + public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJobCallback): void; /** - * Gets the default type url for GetIndexRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Calls ResumeModelDeploymentMonitoringJob. + * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static getTypeUrl(typeUrlPrefix?: string): string; + public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): Promise; } - /** Properties of a ListIndexesRequest. */ - interface IListIndexesRequest { - - /** ListIndexesRequest parent */ - parent?: (string|null); - - /** ListIndexesRequest filter */ - filter?: (string|null); + namespace JobService { - /** ListIndexesRequest pageSize */ - pageSize?: (number|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createCustomJob}. + * @param error Error, if any + * @param [response] CustomJob + */ + type CreateCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; - /** ListIndexesRequest pageToken */ - pageToken?: (string|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getCustomJob}. + * @param error Error, if any + * @param [response] CustomJob + */ + type GetCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; - /** ListIndexesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); - } + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listCustomJobs}. + * @param error Error, if any + * @param [response] ListCustomJobsResponse + */ + type ListCustomJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) => void; - /** Represents a ListIndexesRequest. */ - class ListIndexesRequest implements IListIndexesRequest { + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteCustomJob}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteCustomJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Constructs a new ListIndexesRequest. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelCustomJob}. + * @param error Error, if any + * @param [response] Empty */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexesRequest); - - /** ListIndexesRequest parent. */ - public parent: string; - - /** ListIndexesRequest filter. */ - public filter: string; + type CancelCustomJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** ListIndexesRequest pageSize. */ - public pageSize: number; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createDataLabelingJob}. + * @param error Error, if any + * @param [response] DataLabelingJob + */ + type CreateDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; - /** ListIndexesRequest pageToken. */ - public pageToken: string; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getDataLabelingJob}. + * @param error Error, if any + * @param [response] DataLabelingJob + */ + type GetDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; - /** ListIndexesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listDataLabelingJobs}. + * @param error Error, if any + * @param [response] ListDataLabelingJobsResponse + */ + type ListDataLabelingJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) => void; /** - * Creates a new ListIndexesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListIndexesRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteDataLabelingJob}. + * @param error Error, if any + * @param [response] Operation */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexesRequest): google.cloud.aiplatform.v1beta1.ListIndexesRequest; + type DeleteDataLabelingJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. - * @param message ListIndexesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelDataLabelingJob}. + * @param error Error, if any + * @param [response] Empty */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type CancelDataLabelingJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Encodes the specified ListIndexesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. - * @param message ListIndexesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] HyperparameterTuningJob */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; /** - * Decodes a ListIndexesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListIndexesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] HyperparameterTuningJob */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexesRequest; + type GetHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; /** - * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListIndexesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listHyperparameterTuningJobs}. + * @param error Error, if any + * @param [response] ListHyperparameterTuningJobsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexesRequest; + type ListHyperparameterTuningJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) => void; /** - * Verifies a ListIndexesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] Operation */ - public static verify(message: { [k: string]: any }): (string|null); + type DeleteHyperparameterTuningJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a ListIndexesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListIndexesRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] Empty */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexesRequest; + type CancelHyperparameterTuningJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Creates a plain object from a ListIndexesRequest message. Also converts values to other types if specified. - * @param message ListIndexesRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createNasJob}. + * @param error Error, if any + * @param [response] NasJob */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type CreateNasJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.NasJob) => void; /** - * Converts this ListIndexesRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getNasJob}. + * @param error Error, if any + * @param [response] NasJob */ - public toJSON(): { [k: string]: any }; + type GetNasJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.NasJob) => void; /** - * Gets the default type url for ListIndexesRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listNasJobs}. + * @param error Error, if any + * @param [response] ListNasJobsResponse */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } + type ListNasJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListNasJobsResponse) => void; - /** Properties of a ListIndexesResponse. */ - interface IListIndexesResponse { + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteNasJob}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteNasJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** ListIndexesResponse indexes */ - indexes?: (google.cloud.aiplatform.v1beta1.IIndex[]|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelNasJob}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelNasJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** ListIndexesResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getNasTrialDetail}. + * @param error Error, if any + * @param [response] NasTrialDetail + */ + type GetNasTrialDetailCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.NasTrialDetail) => void; - /** Represents a ListIndexesResponse. */ - class ListIndexesResponse implements IListIndexesResponse { + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listNasTrialDetails}. + * @param error Error, if any + * @param [response] ListNasTrialDetailsResponse + */ + type ListNasTrialDetailsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse) => void; /** - * Constructs a new ListIndexesResponse. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createBatchPredictionJob}. + * @param error Error, if any + * @param [response] BatchPredictionJob */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexesResponse); + type CreateBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; - /** ListIndexesResponse indexes. */ - public indexes: google.cloud.aiplatform.v1beta1.IIndex[]; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getBatchPredictionJob}. + * @param error Error, if any + * @param [response] BatchPredictionJob + */ + type GetBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; - /** ListIndexesResponse nextPageToken. */ - public nextPageToken: string; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listBatchPredictionJobs}. + * @param error Error, if any + * @param [response] ListBatchPredictionJobsResponse + */ + type ListBatchPredictionJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) => void; /** - * Creates a new ListIndexesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListIndexesResponse instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteBatchPredictionJob}. + * @param error Error, if any + * @param [response] Operation */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexesResponse): google.cloud.aiplatform.v1beta1.ListIndexesResponse; + type DeleteBatchPredictionJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. - * @param message ListIndexesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelBatchPredictionJob}. + * @param error Error, if any + * @param [response] Empty */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type CancelBatchPredictionJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Encodes the specified ListIndexesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. - * @param message ListIndexesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] ModelDeploymentMonitoringJob */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; /** - * Decodes a ListIndexesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListIndexesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|searchModelDeploymentMonitoringStatsAnomalies}. + * @param error Error, if any + * @param [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexesResponse; + type SearchModelDeploymentMonitoringStatsAnomaliesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) => void; /** - * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListIndexesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] ModelDeploymentMonitoringJob */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexesResponse; + type GetModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; /** - * Verifies a ListIndexesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listModelDeploymentMonitoringJobs}. + * @param error Error, if any + * @param [response] ListModelDeploymentMonitoringJobsResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ListModelDeploymentMonitoringJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) => void; /** - * Creates a ListIndexesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListIndexesResponse + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|updateModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexesResponse; + type UpdateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified. - * @param message ListIndexesResponse - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type DeleteModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this ListIndexesResponse to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|pauseModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] Empty */ - public toJSON(): { [k: string]: any }; + type PauseModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Gets the default type url for ListIndexesResponse - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|resumeModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] Empty */ - public static getTypeUrl(typeUrlPrefix?: string): string; + type ResumeModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of an UpdateIndexRequest. */ - interface IUpdateIndexRequest { + /** Properties of a CreateCustomJobRequest. */ + interface ICreateCustomJobRequest { - /** UpdateIndexRequest index */ - index?: (google.cloud.aiplatform.v1beta1.IIndex|null); + /** CreateCustomJobRequest parent */ + parent?: (string|null); - /** UpdateIndexRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** CreateCustomJobRequest customJob */ + customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); } - /** Represents an UpdateIndexRequest. */ - class UpdateIndexRequest implements IUpdateIndexRequest { + /** Represents a CreateCustomJobRequest. */ + class CreateCustomJobRequest implements ICreateCustomJobRequest { /** - * Constructs a new UpdateIndexRequest. + * Constructs a new CreateCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest); - /** UpdateIndexRequest index. */ - public index?: (google.cloud.aiplatform.v1beta1.IIndex|null); + /** CreateCustomJobRequest parent. */ + public parent: string; - /** UpdateIndexRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** CreateCustomJobRequest customJob. */ + public customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); /** - * Creates a new UpdateIndexRequest instance using the specified properties. + * Creates a new CreateCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIndexRequest instance + * @returns CreateCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Encodes the specified UpdateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. - * @param message UpdateIndexRequest message or plain object to encode + * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. + * @param message CreateCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. - * @param message UpdateIndexRequest message or plain object to encode + * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. + * @param message CreateCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIndexRequest message from the specified reader or buffer. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateIndexRequest + * @returns CreateCustomJobRequest * @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.UpdateIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Decodes an UpdateIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateIndexRequest + * @returns CreateCustomJobRequest * @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.UpdateIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Verifies an UpdateIndexRequest message. + * Verifies a CreateCustomJobRequest 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 UpdateIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateIndexRequest + * @returns CreateCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Creates a plain object from an UpdateIndexRequest message. Also converts values to other types if specified. - * @param message UpdateIndexRequest + * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. + * @param message CreateCustomJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIndexRequest to JSON. + * Converts this CreateCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateIndexRequest + * Gets the default type url for CreateCustomJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateIndexOperationMetadata. */ - interface IUpdateIndexOperationMetadata { - - /** UpdateIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Properties of a GetCustomJobRequest. */ + interface IGetCustomJobRequest { - /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ - nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); + /** GetCustomJobRequest name */ + name?: (string|null); } - /** Represents an UpdateIndexOperationMetadata. */ - class UpdateIndexOperationMetadata implements IUpdateIndexOperationMetadata { + /** Represents a GetCustomJobRequest. */ + class GetCustomJobRequest implements IGetCustomJobRequest { /** - * Constructs a new UpdateIndexOperationMetadata. + * Constructs a new GetCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata); - - /** UpdateIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest); - /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ - public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); + /** GetCustomJobRequest name. */ + public name: string; /** - * Creates a new UpdateIndexOperationMetadata instance using the specified properties. + * Creates a new GetCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIndexOperationMetadata instance + * @returns GetCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. - * @param message UpdateIndexOperationMetadata message or plain object to encode + * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. + * @param message GetCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. - * @param message UpdateIndexOperationMetadata message or plain object to encode + * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. + * @param message GetCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. + * Decodes a GetCustomJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateIndexOperationMetadata + * @returns GetCustomJobRequest * @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.UpdateIndexOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateIndexOperationMetadata + * @returns GetCustomJobRequest * @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.UpdateIndexOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Verifies an UpdateIndexOperationMetadata message. + * Verifies a GetCustomJobRequest 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 UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateIndexOperationMetadata + * @returns GetCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateIndexOperationMetadata + * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. + * @param message GetCustomJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIndexOperationMetadata to JSON. + * Converts this GetCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateIndexOperationMetadata + * Gets the default type url for GetCustomJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteIndexRequest. */ - interface IDeleteIndexRequest { + /** Properties of a ListCustomJobsRequest. */ + interface IListCustomJobsRequest { - /** DeleteIndexRequest name */ - name?: (string|null); + /** ListCustomJobsRequest parent */ + parent?: (string|null); + + /** ListCustomJobsRequest filter */ + filter?: (string|null); + + /** ListCustomJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListCustomJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListCustomJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a DeleteIndexRequest. */ - class DeleteIndexRequest implements IDeleteIndexRequest { + /** Represents a ListCustomJobsRequest. */ + class ListCustomJobsRequest implements IListCustomJobsRequest { /** - * Constructs a new DeleteIndexRequest. + * Constructs a new ListCustomJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest); - /** DeleteIndexRequest name. */ - public name: string; + /** ListCustomJobsRequest parent. */ + public parent: string; + + /** ListCustomJobsRequest filter. */ + public filter: string; + + /** ListCustomJobsRequest pageSize. */ + public pageSize: number; + + /** ListCustomJobsRequest pageToken. */ + public pageToken: string; + + /** ListCustomJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new DeleteIndexRequest instance using the specified properties. + * Creates a new ListCustomJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteIndexRequest instance + * @returns ListCustomJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. - * @param message DeleteIndexRequest message or plain object to encode + * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. + * @param message ListCustomJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. - * @param message DeleteIndexRequest message or plain object to encode + * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. + * @param message ListCustomJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteIndexRequest + * @returns ListCustomJobsRequest * @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.DeleteIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteIndexRequest + * @returns ListCustomJobsRequest * @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.DeleteIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Verifies a DeleteIndexRequest message. + * Verifies a ListCustomJobsRequest 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 DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteIndexRequest + * @returns ListCustomJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. - * @param message DeleteIndexRequest + * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. + * @param message ListCustomJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteIndexRequest to JSON. + * Converts this ListCustomJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteIndexRequest + * Gets the default type url for ListCustomJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpsertDatapointsRequest. */ - interface IUpsertDatapointsRequest { + /** Properties of a ListCustomJobsResponse. */ + interface IListCustomJobsResponse { - /** UpsertDatapointsRequest index */ - index?: (string|null); + /** ListCustomJobsResponse customJobs */ + customJobs?: (google.cloud.aiplatform.v1beta1.ICustomJob[]|null); - /** UpsertDatapointsRequest datapoints */ - datapoints?: (google.cloud.aiplatform.v1beta1.IIndexDatapoint[]|null); + /** ListCustomJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an UpsertDatapointsRequest. */ - class UpsertDatapointsRequest implements IUpsertDatapointsRequest { + /** Represents a ListCustomJobsResponse. */ + class ListCustomJobsResponse implements IListCustomJobsResponse { /** - * Constructs a new UpsertDatapointsRequest. + * Constructs a new ListCustomJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse); - /** UpsertDatapointsRequest index. */ - public index: string; + /** ListCustomJobsResponse customJobs. */ + public customJobs: google.cloud.aiplatform.v1beta1.ICustomJob[]; - /** UpsertDatapointsRequest datapoints. */ - public datapoints: google.cloud.aiplatform.v1beta1.IIndexDatapoint[]; + /** ListCustomJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new UpsertDatapointsRequest instance using the specified properties. + * Creates a new ListCustomJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpsertDatapointsRequest instance + * @returns ListCustomJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest): google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Encodes the specified UpsertDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. - * @param message UpsertDatapointsRequest message or plain object to encode + * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. + * @param message ListCustomJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpsertDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. - * @param message UpsertDatapointsRequest message or plain object to encode + * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. + * @param message ListCustomJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpsertDatapointsRequest message from the specified reader or buffer. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpsertDatapointsRequest + * @returns ListCustomJobsResponse * @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.UpsertDatapointsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Decodes an UpsertDatapointsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpsertDatapointsRequest + * @returns ListCustomJobsResponse * @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.UpsertDatapointsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Verifies an UpsertDatapointsRequest message. + * Verifies a ListCustomJobsResponse 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 UpsertDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpsertDatapointsRequest + * @returns ListCustomJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Creates a plain object from an UpsertDatapointsRequest message. Also converts values to other types if specified. - * @param message UpsertDatapointsRequest + * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. + * @param message ListCustomJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpsertDatapointsRequest to JSON. + * Converts this ListCustomJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpsertDatapointsRequest + * Gets the default type url for ListCustomJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpsertDatapointsResponse. */ - interface IUpsertDatapointsResponse { + /** Properties of a DeleteCustomJobRequest. */ + interface IDeleteCustomJobRequest { + + /** DeleteCustomJobRequest name */ + name?: (string|null); } - /** Represents an UpsertDatapointsResponse. */ - class UpsertDatapointsResponse implements IUpsertDatapointsResponse { + /** Represents a DeleteCustomJobRequest. */ + class DeleteCustomJobRequest implements IDeleteCustomJobRequest { /** - * Constructs a new UpsertDatapointsResponse. + * Constructs a new DeleteCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest); + + /** DeleteCustomJobRequest name. */ + public name: string; /** - * Creates a new UpsertDatapointsResponse instance using the specified properties. + * Creates a new DeleteCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpsertDatapointsResponse instance + * @returns DeleteCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse): google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Encodes the specified UpsertDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. - * @param message UpsertDatapointsResponse message or plain object to encode + * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. + * @param message DeleteCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpsertDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. - * @param message UpsertDatapointsResponse message or plain object to encode + * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. + * @param message DeleteCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpsertDatapointsResponse message from the specified reader or buffer. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpsertDatapointsResponse + * @returns DeleteCustomJobRequest * @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.UpsertDatapointsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Decodes an UpsertDatapointsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpsertDatapointsResponse + * @returns DeleteCustomJobRequest * @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.UpsertDatapointsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Verifies an UpsertDatapointsResponse message. + * Verifies a DeleteCustomJobRequest 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 UpsertDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpsertDatapointsResponse + * @returns DeleteCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Creates a plain object from an UpsertDatapointsResponse message. Also converts values to other types if specified. - * @param message UpsertDatapointsResponse + * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. + * @param message DeleteCustomJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpsertDatapointsResponse to JSON. + * Converts this DeleteCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpsertDatapointsResponse + * Gets the default type url for DeleteCustomJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RemoveDatapointsRequest. */ - interface IRemoveDatapointsRequest { - - /** RemoveDatapointsRequest index */ - index?: (string|null); + /** Properties of a CancelCustomJobRequest. */ + interface ICancelCustomJobRequest { - /** RemoveDatapointsRequest datapointIds */ - datapointIds?: (string[]|null); + /** CancelCustomJobRequest name */ + name?: (string|null); } - /** Represents a RemoveDatapointsRequest. */ - class RemoveDatapointsRequest implements IRemoveDatapointsRequest { + /** Represents a CancelCustomJobRequest. */ + class CancelCustomJobRequest implements ICancelCustomJobRequest { /** - * Constructs a new RemoveDatapointsRequest. + * Constructs a new CancelCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest); - - /** RemoveDatapointsRequest index. */ - public index: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest); - /** RemoveDatapointsRequest datapointIds. */ - public datapointIds: string[]; + /** CancelCustomJobRequest name. */ + public name: string; /** - * Creates a new RemoveDatapointsRequest instance using the specified properties. + * Creates a new CancelCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveDatapointsRequest instance + * @returns CancelCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest): google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Encodes the specified RemoveDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. - * @param message RemoveDatapointsRequest message or plain object to encode + * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. + * @param message CancelCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RemoveDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. - * @param message RemoveDatapointsRequest message or plain object to encode + * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. + * @param message CancelCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveDatapointsRequest message from the specified reader or buffer. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RemoveDatapointsRequest + * @returns CancelCustomJobRequest * @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.RemoveDatapointsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Decodes a RemoveDatapointsRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveDatapointsRequest + * @returns CancelCustomJobRequest * @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.RemoveDatapointsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Verifies a RemoveDatapointsRequest message. + * Verifies a CancelCustomJobRequest 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 RemoveDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveDatapointsRequest + * @returns CancelCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Creates a plain object from a RemoveDatapointsRequest message. Also converts values to other types if specified. - * @param message RemoveDatapointsRequest + * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. + * @param message CancelCustomJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveDatapointsRequest to JSON. + * Converts this CancelCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveDatapointsRequest + * Gets the default type url for CancelCustomJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a RemoveDatapointsResponse. */ - interface IRemoveDatapointsResponse { + /** Properties of a CreateDataLabelingJobRequest. */ + interface ICreateDataLabelingJobRequest { + + /** CreateDataLabelingJobRequest parent */ + parent?: (string|null); + + /** CreateDataLabelingJobRequest dataLabelingJob */ + dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); } - /** Represents a RemoveDatapointsResponse. */ - class RemoveDatapointsResponse implements IRemoveDatapointsResponse { + /** Represents a CreateDataLabelingJobRequest. */ + class CreateDataLabelingJobRequest implements ICreateDataLabelingJobRequest { /** - * Constructs a new RemoveDatapointsResponse. + * Constructs a new CreateDataLabelingJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest); + + /** CreateDataLabelingJobRequest parent. */ + public parent: string; + + /** CreateDataLabelingJobRequest dataLabelingJob. */ + public dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); /** - * Creates a new RemoveDatapointsResponse instance using the specified properties. + * Creates a new CreateDataLabelingJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns RemoveDatapointsResponse instance + * @returns CreateDataLabelingJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse): google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Encodes the specified RemoveDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. - * @param message RemoveDatapointsResponse message or plain object to encode + * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. + * @param message CreateDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RemoveDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. - * @param message RemoveDatapointsResponse message or plain object to encode + * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. + * @param message CreateDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RemoveDatapointsResponse message from the specified reader or buffer. + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RemoveDatapointsResponse + * @returns CreateDataLabelingJobRequest * @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.RemoveDatapointsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Decodes a RemoveDatapointsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RemoveDatapointsResponse + * @returns CreateDataLabelingJobRequest * @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.RemoveDatapointsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Verifies a RemoveDatapointsResponse message. + * Verifies a CreateDataLabelingJobRequest 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 RemoveDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RemoveDatapointsResponse + * @returns CreateDataLabelingJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Creates a plain object from a RemoveDatapointsResponse message. Also converts values to other types if specified. - * @param message RemoveDatapointsResponse + * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. + * @param message CreateDataLabelingJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RemoveDatapointsResponse to JSON. + * Converts this CreateDataLabelingJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for RemoveDatapointsResponse + * Gets the default type url for CreateDataLabelingJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a NearestNeighborSearchOperationMetadata. */ - interface INearestNeighborSearchOperationMetadata { - - /** NearestNeighborSearchOperationMetadata contentValidationStats */ - contentValidationStats?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]|null); + /** Properties of a GetDataLabelingJobRequest. */ + interface IGetDataLabelingJobRequest { - /** NearestNeighborSearchOperationMetadata dataBytesCount */ - dataBytesCount?: (number|Long|string|null); + /** GetDataLabelingJobRequest name */ + name?: (string|null); } - /** Represents a NearestNeighborSearchOperationMetadata. */ - class NearestNeighborSearchOperationMetadata implements INearestNeighborSearchOperationMetadata { + /** Represents a GetDataLabelingJobRequest. */ + class GetDataLabelingJobRequest implements IGetDataLabelingJobRequest { /** - * Constructs a new NearestNeighborSearchOperationMetadata. + * Constructs a new GetDataLabelingJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata); - - /** NearestNeighborSearchOperationMetadata contentValidationStats. */ - public contentValidationStats: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest); - /** NearestNeighborSearchOperationMetadata dataBytesCount. */ - public dataBytesCount: (number|Long|string); + /** GetDataLabelingJobRequest name. */ + public name: string; /** - * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. + * Creates a new GetDataLabelingJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns NearestNeighborSearchOperationMetadata instance + * @returns GetDataLabelingJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Encodes the specified NearestNeighborSearchOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. - * @param message NearestNeighborSearchOperationMetadata message or plain object to encode + * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. + * @param message GetDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NearestNeighborSearchOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. - * @param message NearestNeighborSearchOperationMetadata message or plain object to encode + * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. + * @param message GetDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NearestNeighborSearchOperationMetadata + * @returns GetDataLabelingJobRequest * @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.NearestNeighborSearchOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NearestNeighborSearchOperationMetadata + * @returns GetDataLabelingJobRequest * @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.NearestNeighborSearchOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Verifies a NearestNeighborSearchOperationMetadata message. + * Verifies a GetDataLabelingJobRequest 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 NearestNeighborSearchOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NearestNeighborSearchOperationMetadata + * @returns GetDataLabelingJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Creates a plain object from a NearestNeighborSearchOperationMetadata message. Also converts values to other types if specified. - * @param message NearestNeighborSearchOperationMetadata + * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. + * @param message GetDataLabelingJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NearestNeighborSearchOperationMetadata to JSON. + * Converts this GetDataLabelingJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for NearestNeighborSearchOperationMetadata + * Gets the default type url for GetDataLabelingJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace NearestNeighborSearchOperationMetadata { - - /** Properties of a RecordError. */ - interface IRecordError { - - /** RecordError errorType */ - errorType?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|keyof typeof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|null); - - /** RecordError errorMessage */ - errorMessage?: (string|null); - - /** RecordError sourceGcsUri */ - sourceGcsUri?: (string|null); - - /** RecordError embeddingId */ - embeddingId?: (string|null); - - /** RecordError rawRecord */ - rawRecord?: (string|null); - } - - /** Represents a RecordError. */ - class RecordError implements IRecordError { - - /** - * Constructs a new RecordError. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError); - - /** RecordError errorType. */ - public errorType: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|keyof typeof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType); - - /** RecordError errorMessage. */ - public errorMessage: string; - - /** RecordError sourceGcsUri. */ - public sourceGcsUri: string; - - /** RecordError embeddingId. */ - public embeddingId: string; - - /** RecordError rawRecord. */ - public rawRecord: string; - - /** - * Creates a new RecordError instance using the specified properties. - * @param [properties] Properties to set - * @returns RecordError instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; - - /** - * Encodes the specified RecordError message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. - * @param message RecordError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RecordError message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. - * @param message RecordError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RecordError message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RecordError - * @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.NearestNeighborSearchOperationMetadata.RecordError; - - /** - * Decodes a RecordError message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordError - * @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.NearestNeighborSearchOperationMetadata.RecordError; - - /** - * Verifies a RecordError 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 RecordError message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RecordError - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; - - /** - * Creates a plain object from a RecordError message. Also converts values to other types if specified. - * @param message RecordError - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RecordError to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for RecordError - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace RecordError { - - /** RecordErrorType enum. */ - enum RecordErrorType { - ERROR_TYPE_UNSPECIFIED = 0, - EMPTY_LINE = 1, - INVALID_JSON_SYNTAX = 2, - INVALID_CSV_SYNTAX = 3, - INVALID_AVRO_SYNTAX = 4, - INVALID_EMBEDDING_ID = 5, - EMBEDDING_SIZE_MISMATCH = 6, - NAMESPACE_MISSING = 7 - } - } - - /** Properties of a ContentValidationStats. */ - interface IContentValidationStats { - - /** ContentValidationStats sourceGcsUri */ - sourceGcsUri?: (string|null); - - /** ContentValidationStats validRecordCount */ - validRecordCount?: (number|Long|string|null); - - /** ContentValidationStats invalidRecordCount */ - invalidRecordCount?: (number|Long|string|null); - - /** ContentValidationStats partialErrors */ - partialErrors?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError[]|null); - } - - /** Represents a ContentValidationStats. */ - class ContentValidationStats implements IContentValidationStats { - - /** - * Constructs a new ContentValidationStats. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats); - - /** ContentValidationStats sourceGcsUri. */ - public sourceGcsUri: string; + /** Properties of a ListDataLabelingJobsRequest. */ + interface IListDataLabelingJobsRequest { - /** ContentValidationStats validRecordCount. */ - public validRecordCount: (number|Long|string); + /** ListDataLabelingJobsRequest parent */ + parent?: (string|null); - /** ContentValidationStats invalidRecordCount. */ - public invalidRecordCount: (number|Long|string); + /** ListDataLabelingJobsRequest filter */ + filter?: (string|null); - /** ContentValidationStats partialErrors. */ - public partialErrors: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError[]; + /** ListDataLabelingJobsRequest pageSize */ + pageSize?: (number|null); - /** - * Creates a new ContentValidationStats instance using the specified properties. - * @param [properties] Properties to set - * @returns ContentValidationStats instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + /** ListDataLabelingJobsRequest pageToken */ + pageToken?: (string|null); - /** - * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @param message ContentValidationStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListDataLabelingJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); - /** - * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @param message ContentValidationStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats, writer?: $protobuf.Writer): $protobuf.Writer; + /** ListDataLabelingJobsRequest orderBy */ + orderBy?: (string|null); + } - /** - * Decodes a ContentValidationStats message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ContentValidationStats - * @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.NearestNeighborSearchOperationMetadata.ContentValidationStats; + /** Represents a ListDataLabelingJobsRequest. */ + class ListDataLabelingJobsRequest implements IListDataLabelingJobsRequest { - /** - * Decodes a ContentValidationStats message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ContentValidationStats - * @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.NearestNeighborSearchOperationMetadata.ContentValidationStats; + /** + * Constructs a new ListDataLabelingJobsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest); - /** - * Verifies a ContentValidationStats 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); + /** ListDataLabelingJobsRequest parent. */ + public parent: string; - /** - * Creates a ContentValidationStats message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ContentValidationStats - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + /** ListDataLabelingJobsRequest filter. */ + public filter: string; - /** - * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. - * @param message ContentValidationStats - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ListDataLabelingJobsRequest pageSize. */ + public pageSize: number; - /** - * Converts this ContentValidationStats to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ListDataLabelingJobsRequest pageToken. */ + public pageToken: string; - /** - * Gets the default type url for ContentValidationStats - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } + /** ListDataLabelingJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** Represents a JobService */ - class JobService extends $protobuf.rpc.Service { + /** ListDataLabelingJobsRequest orderBy. */ + public orderBy: string; /** - * Constructs a new JobService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Creates a new ListDataLabelingJobsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListDataLabelingJobsRequest instance */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Creates new JobService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. + * @param message ListDataLabelingJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): JobService; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateCustomJob. - * @param request CreateCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CustomJob + * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. + * @param message ListDataLabelingJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateCustomJob. - * @param request CreateCustomJobRequest message or plain object - * @returns Promise + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListDataLabelingJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Calls GetCustomJob. - * @param request GetCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CustomJob + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListDataLabelingJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Calls GetCustomJob. - * @param request GetCustomJobRequest message or plain object - * @returns Promise + * Verifies a ListDataLabelingJobsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls ListCustomJobs. - * @param request ListCustomJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListCustomJobsResponse + * Creates a ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListDataLabelingJobsRequest */ - public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Calls ListCustomJobs. - * @param request ListCustomJobsRequest message or plain object - * @returns Promise + * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. + * @param message ListDataLabelingJobsRequest + * @param [options] Conversion options + * @returns Plain object */ - public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeleteCustomJob. - * @param request DeleteCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Converts this ListDataLabelingJobsRequest to JSON. + * @returns JSON object */ - public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls DeleteCustomJob. - * @param request DeleteCustomJobRequest message or plain object - * @returns Promise + * Gets the default type url for ListDataLabelingJobsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Calls CancelCustomJob. - * @param request CancelCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback): void; + /** Properties of a ListDataLabelingJobsResponse. */ + interface IListDataLabelingJobsResponse { - /** - * Calls CancelCustomJob. - * @param request CancelCustomJobRequest message or plain object - * @returns Promise - */ - public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): Promise; + /** ListDataLabelingJobsResponse dataLabelingJobs */ + dataLabelingJobs?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob[]|null); - /** - * Calls CreateDataLabelingJob. - * @param request CreateDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DataLabelingJob - */ - public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJobCallback): void; + /** ListDataLabelingJobsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** - * Calls CreateDataLabelingJob. - * @param request CreateDataLabelingJobRequest message or plain object - * @returns Promise - */ - public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): Promise; + /** Represents a ListDataLabelingJobsResponse. */ + class ListDataLabelingJobsResponse implements IListDataLabelingJobsResponse { /** - * Calls GetDataLabelingJob. - * @param request GetDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DataLabelingJob + * Constructs a new ListDataLabelingJobsResponse. + * @param [properties] Properties to set */ - public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse); + + /** ListDataLabelingJobsResponse dataLabelingJobs. */ + public dataLabelingJobs: google.cloud.aiplatform.v1beta1.IDataLabelingJob[]; + + /** ListDataLabelingJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Calls GetDataLabelingJob. - * @param request GetDataLabelingJobRequest message or plain object - * @returns Promise + * Creates a new ListDataLabelingJobsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListDataLabelingJobsResponse instance */ - public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Calls ListDataLabelingJobs. - * @param request ListDataLabelingJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse + * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. + * @param message ListDataLabelingJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListDataLabelingJobs. - * @param request ListDataLabelingJobsRequest message or plain object - * @returns Promise + * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. + * @param message ListDataLabelingJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteDataLabelingJob. - * @param request DeleteDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListDataLabelingJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Calls DeleteDataLabelingJob. - * @param request DeleteDataLabelingJobRequest message or plain object - * @returns Promise + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListDataLabelingJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Calls CancelDataLabelingJob. - * @param request CancelDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Verifies a ListDataLabelingJobsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public cancelDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CancelDataLabelingJob. - * @param request CancelDataLabelingJobRequest message or plain object - * @returns Promise + * Creates a ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListDataLabelingJobsResponse */ - public cancelDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Calls CreateHyperparameterTuningJob. - * @param request CreateHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. + * @param message ListDataLabelingJobsResponse + * @param [options] Conversion options + * @returns Plain object */ - public createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJobCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls CreateHyperparameterTuningJob. - * @param request CreateHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Converts this ListDataLabelingJobsResponse to JSON. + * @returns JSON object */ - public createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls GetHyperparameterTuningJob. - * @param request GetHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * Gets the default type url for ListDataLabelingJobsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a DeleteDataLabelingJobRequest. */ + interface IDeleteDataLabelingJobRequest { + + /** DeleteDataLabelingJobRequest name */ + name?: (string|null); + } + + /** Represents a DeleteDataLabelingJobRequest. */ + class DeleteDataLabelingJobRequest implements IDeleteDataLabelingJobRequest { /** - * Calls GetHyperparameterTuningJob. - * @param request GetHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Constructs a new DeleteDataLabelingJobRequest. + * @param [properties] Properties to set */ - public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest); + + /** DeleteDataLabelingJobRequest name. */ + public name: string; /** - * Calls ListHyperparameterTuningJobs. - * @param request ListHyperparameterTuningJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse + * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteDataLabelingJobRequest instance */ - public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Calls ListHyperparameterTuningJobs. - * @param request ListHyperparameterTuningJobsRequest message or plain object - * @returns Promise + * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * @param message DeleteDataLabelingJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteHyperparameterTuningJob. - * @param request DeleteHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * @param message DeleteDataLabelingJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteHyperparameterTuningJob. - * @param request DeleteHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Calls CancelHyperparameterTuningJob. - * @param request CancelHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Calls CancelHyperparameterTuningJob. - * @param request CancelHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Verifies a DeleteDataLabelingJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateBatchPredictionJob. - * @param request CreateBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchPredictionJob + * Creates a DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteDataLabelingJobRequest */ - public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Calls CreateBatchPredictionJob. - * @param request CreateBatchPredictionJobRequest message or plain object - * @returns Promise + * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. + * @param message DeleteDataLabelingJobRequest + * @param [options] Conversion options + * @returns Plain object */ - public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls GetBatchPredictionJob. - * @param request GetBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchPredictionJob + * Converts this DeleteDataLabelingJobRequest to JSON. + * @returns JSON object */ - public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJobCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls GetBatchPredictionJob. - * @param request GetBatchPredictionJobRequest message or plain object - * @returns Promise + * Gets the default type url for DeleteDataLabelingJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CancelDataLabelingJobRequest. */ + interface ICancelDataLabelingJobRequest { + + /** CancelDataLabelingJobRequest name */ + name?: (string|null); + } + + /** Represents a CancelDataLabelingJobRequest. */ + class CancelDataLabelingJobRequest implements ICancelDataLabelingJobRequest { /** - * Calls ListBatchPredictionJobs. - * @param request ListBatchPredictionJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse + * Constructs a new CancelDataLabelingJobRequest. + * @param [properties] Properties to set */ - public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest); + + /** CancelDataLabelingJobRequest name. */ + public name: string; /** - * Calls ListBatchPredictionJobs. - * @param request ListBatchPredictionJobsRequest message or plain object - * @returns Promise + * Creates a new CancelDataLabelingJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelDataLabelingJobRequest instance */ - public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Calls DeleteBatchPredictionJob. - * @param request DeleteBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * @param message CancelDataLabelingJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteBatchPredictionJob. - * @param request DeleteBatchPredictionJobRequest message or plain object - * @returns Promise + * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * @param message CancelDataLabelingJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CancelBatchPredictionJob. - * @param request CancelBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Calls CancelBatchPredictionJob. - * @param request CancelBatchPredictionJobRequest message or plain object - * @returns Promise + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Calls CreateModelDeploymentMonitoringJob. - * @param request CreateModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * Verifies a CancelDataLabelingJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls CreateModelDeploymentMonitoringJob. - * @param request CreateModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Creates a CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelDataLabelingJobRequest */ - public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. + * @param message CancelDataLabelingJobRequest + * @param [options] Conversion options + * @returns Plain object */ - public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, callback: google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @returns Promise + * Converts this CancelDataLabelingJobRequest to JSON. + * @returns JSON object */ - public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): Promise; + public toJSON(): { [k: string]: any }; /** - * Calls GetModelDeploymentMonitoringJob. - * @param request GetModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * Gets the default type url for CancelDataLabelingJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback): void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateHyperparameterTuningJobRequest. */ + interface ICreateHyperparameterTuningJobRequest { + + /** CreateHyperparameterTuningJobRequest parent */ + parent?: (string|null); + + /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob */ + hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); + } + + /** Represents a CreateHyperparameterTuningJobRequest. */ + class CreateHyperparameterTuningJobRequest implements ICreateHyperparameterTuningJobRequest { /** - * Calls GetModelDeploymentMonitoringJob. - * @param request GetModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Constructs a new CreateHyperparameterTuningJobRequest. + * @param [properties] Properties to set */ - public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest); + + /** CreateHyperparameterTuningJobRequest parent. */ + public parent: string; + + /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob. */ + public hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); /** - * Calls ListModelDeploymentMonitoringJobs. - * @param request ListModelDeploymentMonitoringJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse + * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateHyperparameterTuningJobRequest instance */ - public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Calls ListModelDeploymentMonitoringJobs. - * @param request ListModelDeploymentMonitoringJobsRequest message or plain object - * @returns Promise + * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * @param message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateModelDeploymentMonitoringJob. - * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * @param message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls UpdateModelDeploymentMonitoringJob. - * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Calls DeleteModelDeploymentMonitoringJob. - * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Calls DeleteModelDeploymentMonitoringJob. - * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Verifies a CreateHyperparameterTuningJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls PauseModelDeploymentMonitoringJob. - * @param request PauseModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Creates a CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateHyperparameterTuningJobRequest */ - public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJobCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Calls PauseModelDeploymentMonitoringJob. - * @param request PauseModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @param message CreateHyperparameterTuningJobRequest + * @param [options] Conversion options + * @returns Plain object */ - public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ResumeModelDeploymentMonitoringJob. - * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Converts this CreateHyperparameterTuningJobRequest to JSON. + * @returns JSON object */ - public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJobCallback): void; + public toJSON(): { [k: string]: any }; /** - * Calls ResumeModelDeploymentMonitoringJob. - * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Gets the default type url for CreateHyperparameterTuningJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): Promise; + public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace JobService { + /** Properties of a GetHyperparameterTuningJobRequest. */ + interface IGetHyperparameterTuningJobRequest { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createCustomJob}. - * @param error Error, if any - * @param [response] CustomJob - */ - type CreateCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; + /** GetHyperparameterTuningJobRequest name */ + name?: (string|null); + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getCustomJob}. - * @param error Error, if any - * @param [response] CustomJob - */ - type GetCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; + /** Represents a GetHyperparameterTuningJobRequest. */ + class GetHyperparameterTuningJobRequest implements IGetHyperparameterTuningJobRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listCustomJobs}. - * @param error Error, if any - * @param [response] ListCustomJobsResponse + * Constructs a new GetHyperparameterTuningJobRequest. + * @param [properties] Properties to set */ - type ListCustomJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteCustomJob}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteCustomJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** GetHyperparameterTuningJobRequest name. */ + public name: string; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelCustomJob}. - * @param error Error, if any - * @param [response] Empty + * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetHyperparameterTuningJobRequest instance */ - type CancelCustomJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createDataLabelingJob}. - * @param error Error, if any - * @param [response] DataLabelingJob + * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * @param message GetHyperparameterTuningJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getDataLabelingJob}. - * @param error Error, if any - * @param [response] DataLabelingJob + * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * @param message GetHyperparameterTuningJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listDataLabelingJobs}. - * @param error Error, if any - * @param [response] ListDataLabelingJobsResponse + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListDataLabelingJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteDataLabelingJob}. - * @param error Error, if any - * @param [response] Operation + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteDataLabelingJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelDataLabelingJob}. - * @param error Error, if any - * @param [response] Empty + * Verifies a GetHyperparameterTuningJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CancelDataLabelingJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] HyperparameterTuningJob + * Creates a GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetHyperparameterTuningJobRequest */ - type CreateHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] HyperparameterTuningJob + * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @param message GetHyperparameterTuningJobRequest + * @param [options] Conversion options + * @returns Plain object */ - type GetHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listHyperparameterTuningJobs}. - * @param error Error, if any - * @param [response] ListHyperparameterTuningJobsResponse + * Converts this GetHyperparameterTuningJobRequest to JSON. + * @returns JSON object */ - type ListHyperparameterTuningJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] Operation + * Gets the default type url for GetHyperparameterTuningJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type DeleteHyperparameterTuningJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] Empty - */ - type CancelHyperparameterTuningJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + /** Properties of a ListHyperparameterTuningJobsRequest. */ + interface IListHyperparameterTuningJobsRequest { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createBatchPredictionJob}. - * @param error Error, if any - * @param [response] BatchPredictionJob - */ - type CreateBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; + /** ListHyperparameterTuningJobsRequest parent */ + parent?: (string|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getBatchPredictionJob}. - * @param error Error, if any - * @param [response] BatchPredictionJob - */ - type GetBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; + /** ListHyperparameterTuningJobsRequest filter */ + filter?: (string|null); + + /** ListHyperparameterTuningJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListHyperparameterTuningJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListHyperparameterTuningJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListHyperparameterTuningJobsRequest. */ + class ListHyperparameterTuningJobsRequest implements IListHyperparameterTuningJobsRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listBatchPredictionJobs}. - * @param error Error, if any - * @param [response] ListBatchPredictionJobsResponse + * Constructs a new ListHyperparameterTuningJobsRequest. + * @param [properties] Properties to set */ - type ListBatchPredictionJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest); + + /** ListHyperparameterTuningJobsRequest parent. */ + public parent: string; + + /** ListHyperparameterTuningJobsRequest filter. */ + public filter: string; + + /** ListHyperparameterTuningJobsRequest pageSize. */ + public pageSize: number; + + /** ListHyperparameterTuningJobsRequest pageToken. */ + public pageToken: string; + + /** ListHyperparameterTuningJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteBatchPredictionJob}. - * @param error Error, if any - * @param [response] Operation + * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListHyperparameterTuningJobsRequest instance */ - type DeleteBatchPredictionJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelBatchPredictionJob}. - * @param error Error, if any - * @param [response] Empty + * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * @param message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CancelBatchPredictionJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] ModelDeploymentMonitoringJob + * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * @param message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|searchModelDeploymentMonitoringStatsAnomalies}. - * @param error Error, if any - * @param [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListHyperparameterTuningJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type SearchModelDeploymentMonitoringStatsAnomaliesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] ModelDeploymentMonitoringJob + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListHyperparameterTuningJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type GetModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listModelDeploymentMonitoringJobs}. - * @param error Error, if any - * @param [response] ListModelDeploymentMonitoringJobsResponse + * Verifies a ListHyperparameterTuningJobsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type ListModelDeploymentMonitoringJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|updateModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Operation + * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListHyperparameterTuningJobsRequest */ - type UpdateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. + * @param message ListHyperparameterTuningJobsRequest + * @param [options] Conversion options + * @returns Plain object */ - type DeleteModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|pauseModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Empty + * Converts this ListHyperparameterTuningJobsRequest to JSON. + * @returns JSON object */ - type PauseModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public toJSON(): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|resumeModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Empty + * Gets the default type url for ListHyperparameterTuningJobsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url */ - type ResumeModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateCustomJobRequest. */ - interface ICreateCustomJobRequest { + /** Properties of a ListHyperparameterTuningJobsResponse. */ + interface IListHyperparameterTuningJobsResponse { - /** CreateCustomJobRequest parent */ - parent?: (string|null); + /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs */ + hyperparameterTuningJobs?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]|null); - /** CreateCustomJobRequest customJob */ - customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); + /** ListHyperparameterTuningJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CreateCustomJobRequest. */ - class CreateCustomJobRequest implements ICreateCustomJobRequest { + /** Represents a ListHyperparameterTuningJobsResponse. */ + class ListHyperparameterTuningJobsResponse implements IListHyperparameterTuningJobsResponse { /** - * Constructs a new CreateCustomJobRequest. + * Constructs a new ListHyperparameterTuningJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse); - /** CreateCustomJobRequest parent. */ - public parent: string; + /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. */ + public hyperparameterTuningJobs: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]; - /** CreateCustomJobRequest customJob. */ - public customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); + /** ListHyperparameterTuningJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CreateCustomJobRequest instance using the specified properties. + * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateCustomJobRequest instance + * @returns ListHyperparameterTuningJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. - * @param message CreateCustomJobRequest message or plain object to encode + * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * @param message ListHyperparameterTuningJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. - * @param message CreateCustomJobRequest message or plain object to encode + * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * @param message ListHyperparameterTuningJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer. + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateCustomJobRequest + * @returns ListHyperparameterTuningJobsResponse * @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.CreateCustomJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateCustomJobRequest + * @returns ListHyperparameterTuningJobsResponse * @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.CreateCustomJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * Verifies a CreateCustomJobRequest message. + * Verifies a ListHyperparameterTuningJobsResponse 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 CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateCustomJobRequest + * @returns ListHyperparameterTuningJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. - * @param message CreateCustomJobRequest + * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. + * @param message ListHyperparameterTuningJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateCustomJobRequest to JSON. + * Converts this ListHyperparameterTuningJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateCustomJobRequest + * Gets the default type url for ListHyperparameterTuningJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetCustomJobRequest. */ - interface IGetCustomJobRequest { + /** Properties of a DeleteHyperparameterTuningJobRequest. */ + interface IDeleteHyperparameterTuningJobRequest { - /** GetCustomJobRequest name */ + /** DeleteHyperparameterTuningJobRequest name */ name?: (string|null); } - /** Represents a GetCustomJobRequest. */ - class GetCustomJobRequest implements IGetCustomJobRequest { + /** Represents a DeleteHyperparameterTuningJobRequest. */ + class DeleteHyperparameterTuningJobRequest implements IDeleteHyperparameterTuningJobRequest { /** - * Constructs a new GetCustomJobRequest. + * Constructs a new DeleteHyperparameterTuningJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest); - /** GetCustomJobRequest name. */ + /** DeleteHyperparameterTuningJobRequest name. */ public name: string; /** - * Creates a new GetCustomJobRequest instance using the specified properties. + * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetCustomJobRequest instance + * @returns DeleteHyperparameterTuningJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. - * @param message GetCustomJobRequest message or plain object to encode + * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * @param message DeleteHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. - * @param message GetCustomJobRequest message or plain object to encode + * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * @param message DeleteHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer. + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetCustomJobRequest + * @returns DeleteHyperparameterTuningJobRequest * @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.GetCustomJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCustomJobRequest + * @returns DeleteHyperparameterTuningJobRequest * @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.GetCustomJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Verifies a GetCustomJobRequest message. + * Verifies a DeleteHyperparameterTuningJobRequest 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 GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCustomJobRequest + * @returns DeleteHyperparameterTuningJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. - * @param message GetCustomJobRequest + * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @param message DeleteHyperparameterTuningJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCustomJobRequest to JSON. + * Converts this DeleteHyperparameterTuningJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetCustomJobRequest + * Gets the default type url for DeleteHyperparameterTuningJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListCustomJobsRequest. */ - interface IListCustomJobsRequest { - - /** ListCustomJobsRequest parent */ - parent?: (string|null); - - /** ListCustomJobsRequest filter */ - filter?: (string|null); - - /** ListCustomJobsRequest pageSize */ - pageSize?: (number|null); - - /** ListCustomJobsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a CancelHyperparameterTuningJobRequest. */ + interface ICancelHyperparameterTuningJobRequest { - /** ListCustomJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** CancelHyperparameterTuningJobRequest name */ + name?: (string|null); } - /** Represents a ListCustomJobsRequest. */ - class ListCustomJobsRequest implements IListCustomJobsRequest { + /** Represents a CancelHyperparameterTuningJobRequest. */ + class CancelHyperparameterTuningJobRequest implements ICancelHyperparameterTuningJobRequest { /** - * Constructs a new ListCustomJobsRequest. + * Constructs a new CancelHyperparameterTuningJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest); - - /** ListCustomJobsRequest parent. */ - public parent: string; - - /** ListCustomJobsRequest filter. */ - public filter: string; - - /** ListCustomJobsRequest pageSize. */ - public pageSize: number; - - /** ListCustomJobsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest); - /** ListCustomJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** CancelHyperparameterTuningJobRequest name. */ + public name: string; /** - * Creates a new ListCustomJobsRequest instance using the specified properties. + * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomJobsRequest instance + * @returns CancelHyperparameterTuningJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; /** - * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. - * @param message ListCustomJobsRequest message or plain object to encode + * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * @param message CancelHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. - * @param message ListCustomJobsRequest message or plain object to encode + * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * @param message CancelHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer. + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCustomJobsRequest + * @returns CancelHyperparameterTuningJobRequest * @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.ListCustomJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCustomJobsRequest + * @returns CancelHyperparameterTuningJobRequest * @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.ListCustomJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; /** - * Verifies a ListCustomJobsRequest message. + * Verifies a CancelHyperparameterTuningJobRequest 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 ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCustomJobsRequest + * @returns CancelHyperparameterTuningJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; /** - * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. - * @param message ListCustomJobsRequest + * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @param message CancelHyperparameterTuningJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomJobsRequest to JSON. + * Converts this CancelHyperparameterTuningJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListCustomJobsRequest + * Gets the default type url for CancelHyperparameterTuningJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListCustomJobsResponse. */ - interface IListCustomJobsResponse { + /** Properties of a CreateNasJobRequest. */ + interface ICreateNasJobRequest { - /** ListCustomJobsResponse customJobs */ - customJobs?: (google.cloud.aiplatform.v1beta1.ICustomJob[]|null); + /** CreateNasJobRequest parent */ + parent?: (string|null); - /** ListCustomJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateNasJobRequest nasJob */ + nasJob?: (google.cloud.aiplatform.v1beta1.INasJob|null); } - /** Represents a ListCustomJobsResponse. */ - class ListCustomJobsResponse implements IListCustomJobsResponse { + /** Represents a CreateNasJobRequest. */ + class CreateNasJobRequest implements ICreateNasJobRequest { /** - * Constructs a new ListCustomJobsResponse. + * Constructs a new CreateNasJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateNasJobRequest); - /** ListCustomJobsResponse customJobs. */ - public customJobs: google.cloud.aiplatform.v1beta1.ICustomJob[]; + /** CreateNasJobRequest parent. */ + public parent: string; - /** ListCustomJobsResponse nextPageToken. */ - public nextPageToken: string; + /** CreateNasJobRequest nasJob. */ + public nasJob?: (google.cloud.aiplatform.v1beta1.INasJob|null); /** - * Creates a new ListCustomJobsResponse instance using the specified properties. + * Creates a new CreateNasJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListCustomJobsResponse instance + * @returns CreateNasJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateNasJobRequest): google.cloud.aiplatform.v1beta1.CreateNasJobRequest; /** - * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. - * @param message ListCustomJobsResponse message or plain object to encode + * Encodes the specified CreateNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateNasJobRequest.verify|verify} messages. + * @param message CreateNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. - * @param message ListCustomJobsResponse message or plain object to encode + * Encodes the specified CreateNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateNasJobRequest.verify|verify} messages. + * @param message CreateNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer. + * Decodes a CreateNasJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListCustomJobsResponse + * @returns CreateNasJobRequest * @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.ListCustomJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateNasJobRequest; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateNasJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListCustomJobsResponse + * @returns CreateNasJobRequest * @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.ListCustomJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateNasJobRequest; /** - * Verifies a ListCustomJobsResponse message. + * Verifies a CreateNasJobRequest 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 ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateNasJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListCustomJobsResponse + * @returns CreateNasJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateNasJobRequest; /** - * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. - * @param message ListCustomJobsResponse + * Creates a plain object from a CreateNasJobRequest message. Also converts values to other types if specified. + * @param message CreateNasJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateNasJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListCustomJobsResponse to JSON. + * Converts this CreateNasJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListCustomJobsResponse + * Gets the default type url for CreateNasJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteCustomJobRequest. */ - interface IDeleteCustomJobRequest { + /** Properties of a GetNasJobRequest. */ + interface IGetNasJobRequest { - /** DeleteCustomJobRequest name */ + /** GetNasJobRequest name */ name?: (string|null); } - /** Represents a DeleteCustomJobRequest. */ - class DeleteCustomJobRequest implements IDeleteCustomJobRequest { + /** Represents a GetNasJobRequest. */ + class GetNasJobRequest implements IGetNasJobRequest { /** - * Constructs a new DeleteCustomJobRequest. + * Constructs a new GetNasJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetNasJobRequest); - /** DeleteCustomJobRequest name. */ + /** GetNasJobRequest name. */ public name: string; /** - * Creates a new DeleteCustomJobRequest instance using the specified properties. + * Creates a new GetNasJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteCustomJobRequest instance + * @returns GetNasJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetNasJobRequest): google.cloud.aiplatform.v1beta1.GetNasJobRequest; /** - * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. - * @param message DeleteCustomJobRequest message or plain object to encode + * Encodes the specified GetNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetNasJobRequest.verify|verify} messages. + * @param message GetNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. - * @param message DeleteCustomJobRequest message or plain object to encode + * Encodes the specified GetNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetNasJobRequest.verify|verify} messages. + * @param message GetNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. + * Decodes a GetNasJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteCustomJobRequest + * @returns GetNasJobRequest * @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.DeleteCustomJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetNasJobRequest; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNasJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteCustomJobRequest + * @returns GetNasJobRequest * @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.DeleteCustomJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetNasJobRequest; /** - * Verifies a DeleteCustomJobRequest message. + * Verifies a GetNasJobRequest 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 DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteCustomJobRequest + * @returns GetNasJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetNasJobRequest; /** - * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. - * @param message DeleteCustomJobRequest + * Creates a plain object from a GetNasJobRequest message. Also converts values to other types if specified. + * @param message GetNasJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetNasJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteCustomJobRequest to JSON. + * Converts this GetNasJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteCustomJobRequest + * Gets the default type url for GetNasJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelCustomJobRequest. */ - interface ICancelCustomJobRequest { + /** Properties of a ListNasJobsRequest. */ + interface IListNasJobsRequest { - /** CancelCustomJobRequest name */ - name?: (string|null); + /** ListNasJobsRequest parent */ + parent?: (string|null); + + /** ListNasJobsRequest filter */ + filter?: (string|null); + + /** ListNasJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListNasJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListNasJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a CancelCustomJobRequest. */ - class CancelCustomJobRequest implements ICancelCustomJobRequest { + /** Represents a ListNasJobsRequest. */ + class ListNasJobsRequest implements IListNasJobsRequest { /** - * Constructs a new CancelCustomJobRequest. + * Constructs a new ListNasJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListNasJobsRequest); - /** CancelCustomJobRequest name. */ - public name: string; + /** ListNasJobsRequest parent. */ + public parent: string; + + /** ListNasJobsRequest filter. */ + public filter: string; + + /** ListNasJobsRequest pageSize. */ + public pageSize: number; + + /** ListNasJobsRequest pageToken. */ + public pageToken: string; + + /** ListNasJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new CancelCustomJobRequest instance using the specified properties. + * Creates a new ListNasJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CancelCustomJobRequest instance + * @returns ListNasJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListNasJobsRequest): google.cloud.aiplatform.v1beta1.ListNasJobsRequest; /** - * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. - * @param message CancelCustomJobRequest message or plain object to encode + * Encodes the specified ListNasJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasJobsRequest.verify|verify} messages. + * @param message ListNasJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListNasJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. - * @param message CancelCustomJobRequest message or plain object to encode + * Encodes the specified ListNasJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasJobsRequest.verify|verify} messages. + * @param message ListNasJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListNasJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer. + * Decodes a ListNasJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelCustomJobRequest + * @returns ListNasJobsRequest * @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.CancelCustomJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListNasJobsRequest; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelCustomJobRequest + * @returns ListNasJobsRequest * @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.CancelCustomJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListNasJobsRequest; /** - * Verifies a CancelCustomJobRequest message. + * Verifies a ListNasJobsRequest 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 CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelCustomJobRequest + * @returns ListNasJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListNasJobsRequest; /** - * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. - * @param message CancelCustomJobRequest + * Creates a plain object from a ListNasJobsRequest message. Also converts values to other types if specified. + * @param message ListNasJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListNasJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelCustomJobRequest to JSON. + * Converts this ListNasJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelCustomJobRequest + * Gets the default type url for ListNasJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateDataLabelingJobRequest. */ - interface ICreateDataLabelingJobRequest { + /** Properties of a ListNasJobsResponse. */ + interface IListNasJobsResponse { - /** CreateDataLabelingJobRequest parent */ - parent?: (string|null); + /** ListNasJobsResponse nasJobs */ + nasJobs?: (google.cloud.aiplatform.v1beta1.INasJob[]|null); - /** CreateDataLabelingJobRequest dataLabelingJob */ - dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); + /** ListNasJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CreateDataLabelingJobRequest. */ - class CreateDataLabelingJobRequest implements ICreateDataLabelingJobRequest { + /** Represents a ListNasJobsResponse. */ + class ListNasJobsResponse implements IListNasJobsResponse { /** - * Constructs a new CreateDataLabelingJobRequest. + * Constructs a new ListNasJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListNasJobsResponse); - /** CreateDataLabelingJobRequest parent. */ - public parent: string; + /** ListNasJobsResponse nasJobs. */ + public nasJobs: google.cloud.aiplatform.v1beta1.INasJob[]; - /** CreateDataLabelingJobRequest dataLabelingJob. */ - public dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); + /** ListNasJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CreateDataLabelingJobRequest instance using the specified properties. + * Creates a new ListNasJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDataLabelingJobRequest instance + * @returns ListNasJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListNasJobsResponse): google.cloud.aiplatform.v1beta1.ListNasJobsResponse; /** - * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. - * @param message CreateDataLabelingJobRequest message or plain object to encode + * Encodes the specified ListNasJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasJobsResponse.verify|verify} messages. + * @param message ListNasJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListNasJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. - * @param message CreateDataLabelingJobRequest message or plain object to encode + * Encodes the specified ListNasJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasJobsResponse.verify|verify} messages. + * @param message ListNasJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListNasJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a ListNasJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateDataLabelingJobRequest + * @returns ListNasJobsResponse * @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.CreateDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListNasJobsResponse; /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateDataLabelingJobRequest + * @returns ListNasJobsResponse * @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.CreateDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListNasJobsResponse; /** - * Verifies a CreateDataLabelingJobRequest message. + * Verifies a ListNasJobsResponse 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 CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateDataLabelingJobRequest + * @returns ListNasJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListNasJobsResponse; /** - * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. - * @param message CreateDataLabelingJobRequest + * Creates a plain object from a ListNasJobsResponse message. Also converts values to other types if specified. + * @param message ListNasJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListNasJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDataLabelingJobRequest to JSON. + * Converts this ListNasJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateDataLabelingJobRequest + * Gets the default type url for ListNasJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetDataLabelingJobRequest. */ - interface IGetDataLabelingJobRequest { + /** Properties of a DeleteNasJobRequest. */ + interface IDeleteNasJobRequest { - /** GetDataLabelingJobRequest name */ + /** DeleteNasJobRequest name */ name?: (string|null); } - /** Represents a GetDataLabelingJobRequest. */ - class GetDataLabelingJobRequest implements IGetDataLabelingJobRequest { + /** Represents a DeleteNasJobRequest. */ + class DeleteNasJobRequest implements IDeleteNasJobRequest { /** - * Constructs a new GetDataLabelingJobRequest. + * Constructs a new DeleteNasJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest); - /** GetDataLabelingJobRequest name. */ + /** DeleteNasJobRequest name. */ public name: string; /** - * Creates a new GetDataLabelingJobRequest instance using the specified properties. + * Creates a new DeleteNasJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetDataLabelingJobRequest instance + * @returns DeleteNasJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest): google.cloud.aiplatform.v1beta1.DeleteNasJobRequest; /** - * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. - * @param message GetDataLabelingJobRequest message or plain object to encode + * Encodes the specified DeleteNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteNasJobRequest.verify|verify} messages. + * @param message DeleteNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. - * @param message GetDataLabelingJobRequest message or plain object to encode + * Encodes the specified DeleteNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteNasJobRequest.verify|verify} messages. + * @param message DeleteNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDataLabelingJobRequest + * @returns DeleteNasJobRequest * @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.GetDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteNasJobRequest; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDataLabelingJobRequest + * @returns DeleteNasJobRequest * @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.GetDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteNasJobRequest; /** - * Verifies a GetDataLabelingJobRequest message. + * Verifies a DeleteNasJobRequest 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 GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteNasJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetDataLabelingJobRequest + * @returns DeleteNasJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteNasJobRequest; /** - * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. - * @param message GetDataLabelingJobRequest + * Creates a plain object from a DeleteNasJobRequest message. Also converts values to other types if specified. + * @param message DeleteNasJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteNasJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDataLabelingJobRequest to JSON. + * Converts this DeleteNasJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetDataLabelingJobRequest + * Gets the default type url for DeleteNasJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDataLabelingJobsRequest. */ - interface IListDataLabelingJobsRequest { - - /** ListDataLabelingJobsRequest parent */ - parent?: (string|null); - - /** ListDataLabelingJobsRequest filter */ - filter?: (string|null); - - /** ListDataLabelingJobsRequest pageSize */ - pageSize?: (number|null); + /** Properties of a CancelNasJobRequest. */ + interface ICancelNasJobRequest { - /** ListDataLabelingJobsRequest pageToken */ - pageToken?: (string|null); - - /** ListDataLabelingJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); - - /** ListDataLabelingJobsRequest orderBy */ - orderBy?: (string|null); + /** CancelNasJobRequest name */ + name?: (string|null); } - /** Represents a ListDataLabelingJobsRequest. */ - class ListDataLabelingJobsRequest implements IListDataLabelingJobsRequest { + /** Represents a CancelNasJobRequest. */ + class CancelNasJobRequest implements ICancelNasJobRequest { /** - * Constructs a new ListDataLabelingJobsRequest. + * Constructs a new CancelNasJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest); - - /** ListDataLabelingJobsRequest parent. */ - public parent: string; - - /** ListDataLabelingJobsRequest filter. */ - public filter: string; - - /** ListDataLabelingJobsRequest pageSize. */ - public pageSize: number; - - /** ListDataLabelingJobsRequest pageToken. */ - public pageToken: string; - - /** ListDataLabelingJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelNasJobRequest); - /** ListDataLabelingJobsRequest orderBy. */ - public orderBy: string; + /** CancelNasJobRequest name. */ + public name: string; /** - * Creates a new ListDataLabelingJobsRequest instance using the specified properties. + * Creates a new CancelNasJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataLabelingJobsRequest instance + * @returns CancelNasJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelNasJobRequest): google.cloud.aiplatform.v1beta1.CancelNasJobRequest; /** - * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. - * @param message ListDataLabelingJobsRequest message or plain object to encode + * Encodes the specified CancelNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelNasJobRequest.verify|verify} messages. + * @param message CancelNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. - * @param message ListDataLabelingJobsRequest message or plain object to encode + * Encodes the specified CancelNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelNasJobRequest.verify|verify} messages. + * @param message CancelNasJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelNasJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. + * Decodes a CancelNasJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDataLabelingJobsRequest + * @returns CancelNasJobRequest * @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.ListDataLabelingJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelNasJobRequest; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelNasJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDataLabelingJobsRequest + * @returns CancelNasJobRequest * @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.ListDataLabelingJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelNasJobRequest; /** - * Verifies a ListDataLabelingJobsRequest message. + * Verifies a CancelNasJobRequest 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 ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelNasJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDataLabelingJobsRequest + * @returns CancelNasJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelNasJobRequest; /** - * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. - * @param message ListDataLabelingJobsRequest + * Creates a plain object from a CancelNasJobRequest message. Also converts values to other types if specified. + * @param message CancelNasJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelNasJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataLabelingJobsRequest to JSON. + * Converts this CancelNasJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDataLabelingJobsRequest + * Gets the default type url for CancelNasJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListDataLabelingJobsResponse. */ - interface IListDataLabelingJobsResponse { - - /** ListDataLabelingJobsResponse dataLabelingJobs */ - dataLabelingJobs?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob[]|null); + /** Properties of a GetNasTrialDetailRequest. */ + interface IGetNasTrialDetailRequest { - /** ListDataLabelingJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** GetNasTrialDetailRequest name */ + name?: (string|null); } - /** Represents a ListDataLabelingJobsResponse. */ - class ListDataLabelingJobsResponse implements IListDataLabelingJobsResponse { + /** Represents a GetNasTrialDetailRequest. */ + class GetNasTrialDetailRequest implements IGetNasTrialDetailRequest { /** - * Constructs a new ListDataLabelingJobsResponse. + * Constructs a new GetNasTrialDetailRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse); - - /** ListDataLabelingJobsResponse dataLabelingJobs. */ - public dataLabelingJobs: google.cloud.aiplatform.v1beta1.IDataLabelingJob[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest); - /** ListDataLabelingJobsResponse nextPageToken. */ - public nextPageToken: string; + /** GetNasTrialDetailRequest name. */ + public name: string; /** - * Creates a new ListDataLabelingJobsResponse instance using the specified properties. + * Creates a new GetNasTrialDetailRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataLabelingJobsResponse instance + * @returns GetNasTrialDetailRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest): google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest; /** - * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. - * @param message ListDataLabelingJobsResponse message or plain object to encode + * Encodes the specified GetNasTrialDetailRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest.verify|verify} messages. + * @param message GetNasTrialDetailRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. - * @param message ListDataLabelingJobsResponse message or plain object to encode + * Encodes the specified GetNasTrialDetailRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest.verify|verify} messages. + * @param message GetNasTrialDetailRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDataLabelingJobsResponse + * @returns GetNasTrialDetailRequest * @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.ListDataLabelingJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDataLabelingJobsResponse + * @returns GetNasTrialDetailRequest * @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.ListDataLabelingJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest; /** - * Verifies a ListDataLabelingJobsResponse message. + * Verifies a GetNasTrialDetailRequest 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 ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasTrialDetailRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDataLabelingJobsResponse + * @returns GetNasTrialDetailRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest; /** - * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. - * @param message ListDataLabelingJobsResponse + * Creates a plain object from a GetNasTrialDetailRequest message. Also converts values to other types if specified. + * @param message GetNasTrialDetailRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataLabelingJobsResponse to JSON. + * Converts this GetNasTrialDetailRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListDataLabelingJobsResponse + * Gets the default type url for GetNasTrialDetailRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteDataLabelingJobRequest. */ - interface IDeleteDataLabelingJobRequest { + /** Properties of a ListNasTrialDetailsRequest. */ + interface IListNasTrialDetailsRequest { - /** DeleteDataLabelingJobRequest name */ - name?: (string|null); + /** ListNasTrialDetailsRequest parent */ + parent?: (string|null); + + /** ListNasTrialDetailsRequest pageSize */ + pageSize?: (number|null); + + /** ListNasTrialDetailsRequest pageToken */ + pageToken?: (string|null); } - /** Represents a DeleteDataLabelingJobRequest. */ - class DeleteDataLabelingJobRequest implements IDeleteDataLabelingJobRequest { + /** Represents a ListNasTrialDetailsRequest. */ + class ListNasTrialDetailsRequest implements IListNasTrialDetailsRequest { /** - * Constructs a new DeleteDataLabelingJobRequest. + * Constructs a new ListNasTrialDetailsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest); - /** DeleteDataLabelingJobRequest name. */ - public name: string; + /** ListNasTrialDetailsRequest parent. */ + public parent: string; + + /** ListNasTrialDetailsRequest pageSize. */ + public pageSize: number; + + /** ListNasTrialDetailsRequest pageToken. */ + public pageToken: string; /** - * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. + * Creates a new ListNasTrialDetailsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteDataLabelingJobRequest instance + * @returns ListNasTrialDetailsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest): google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest; /** - * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. - * @param message DeleteDataLabelingJobRequest message or plain object to encode + * Encodes the specified ListNasTrialDetailsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest.verify|verify} messages. + * @param message ListNasTrialDetailsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. - * @param message DeleteDataLabelingJobRequest message or plain object to encode + * Encodes the specified ListNasTrialDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest.verify|verify} messages. + * @param message ListNasTrialDetailsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteDataLabelingJobRequest + * @returns ListNasTrialDetailsRequest * @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.DeleteDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteDataLabelingJobRequest + * @returns ListNasTrialDetailsRequest * @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.DeleteDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest; /** - * Verifies a DeleteDataLabelingJobRequest message. + * Verifies a ListNasTrialDetailsRequest 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 DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasTrialDetailsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteDataLabelingJobRequest + * @returns ListNasTrialDetailsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest; /** - * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. - * @param message DeleteDataLabelingJobRequest + * Creates a plain object from a ListNasTrialDetailsRequest message. Also converts values to other types if specified. + * @param message ListNasTrialDetailsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteDataLabelingJobRequest to JSON. + * Converts this ListNasTrialDetailsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteDataLabelingJobRequest + * Gets the default type url for ListNasTrialDetailsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelDataLabelingJobRequest. */ - interface ICancelDataLabelingJobRequest { + /** Properties of a ListNasTrialDetailsResponse. */ + interface IListNasTrialDetailsResponse { - /** CancelDataLabelingJobRequest name */ - name?: (string|null); + /** ListNasTrialDetailsResponse nasTrialDetails */ + nasTrialDetails?: (google.cloud.aiplatform.v1beta1.INasTrialDetail[]|null); + + /** ListNasTrialDetailsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CancelDataLabelingJobRequest. */ - class CancelDataLabelingJobRequest implements ICancelDataLabelingJobRequest { + /** Represents a ListNasTrialDetailsResponse. */ + class ListNasTrialDetailsResponse implements IListNasTrialDetailsResponse { /** - * Constructs a new CancelDataLabelingJobRequest. + * Constructs a new ListNasTrialDetailsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse); - /** CancelDataLabelingJobRequest name. */ - public name: string; + /** ListNasTrialDetailsResponse nasTrialDetails. */ + public nasTrialDetails: google.cloud.aiplatform.v1beta1.INasTrialDetail[]; + + /** ListNasTrialDetailsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CancelDataLabelingJobRequest instance using the specified properties. + * Creates a new ListNasTrialDetailsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CancelDataLabelingJobRequest instance + * @returns ListNasTrialDetailsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse): google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse; /** - * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. - * @param message CancelDataLabelingJobRequest message or plain object to encode + * Encodes the specified ListNasTrialDetailsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.verify|verify} messages. + * @param message ListNasTrialDetailsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. - * @param message CancelDataLabelingJobRequest message or plain object to encode + * Encodes the specified ListNasTrialDetailsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.verify|verify} messages. + * @param message ListNasTrialDetailsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelDataLabelingJobRequest + * @returns ListNasTrialDetailsResponse * @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.CancelDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelDataLabelingJobRequest + * @returns ListNasTrialDetailsResponse * @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.CancelDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse; /** - * Verifies a CancelDataLabelingJobRequest message. + * Verifies a ListNasTrialDetailsResponse 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 CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasTrialDetailsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelDataLabelingJobRequest + * @returns ListNasTrialDetailsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse; /** - * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. - * @param message CancelDataLabelingJobRequest + * Creates a plain object from a ListNasTrialDetailsResponse message. Also converts values to other types if specified. + * @param message ListNasTrialDetailsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelDataLabelingJobRequest to JSON. + * Converts this ListNasTrialDetailsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelDataLabelingJobRequest + * Gets the default type url for ListNasTrialDetailsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateHyperparameterTuningJobRequest. */ - interface ICreateHyperparameterTuningJobRequest { + /** Properties of a CreateBatchPredictionJobRequest. */ + interface ICreateBatchPredictionJobRequest { - /** CreateHyperparameterTuningJobRequest parent */ + /** CreateBatchPredictionJobRequest parent */ parent?: (string|null); - /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob */ - hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); + /** CreateBatchPredictionJobRequest batchPredictionJob */ + batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); } - /** Represents a CreateHyperparameterTuningJobRequest. */ - class CreateHyperparameterTuningJobRequest implements ICreateHyperparameterTuningJobRequest { + /** Represents a CreateBatchPredictionJobRequest. */ + class CreateBatchPredictionJobRequest implements ICreateBatchPredictionJobRequest { /** - * Constructs a new CreateHyperparameterTuningJobRequest. + * Constructs a new CreateBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest); - /** CreateHyperparameterTuningJobRequest parent. */ + /** CreateBatchPredictionJobRequest parent. */ public parent: string; - /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob. */ - public hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); + /** CreateBatchPredictionJobRequest batchPredictionJob. */ + public batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); /** - * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateHyperparameterTuningJobRequest instance + * @returns CreateBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. - * @param message CreateHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * @param message CreateBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. - * @param message CreateHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * @param message CreateBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateHyperparameterTuningJobRequest + * @returns CreateBatchPredictionJobRequest * @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.CreateHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateHyperparameterTuningJobRequest + * @returns CreateBatchPredictionJobRequest * @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.CreateHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Verifies a CreateHyperparameterTuningJobRequest message. + * Verifies a CreateBatchPredictionJobRequest 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 CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateHyperparameterTuningJobRequest + * @returns CreateBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message CreateHyperparameterTuningJobRequest + * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message CreateBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateHyperparameterTuningJobRequest to JSON. + * Converts this CreateBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateHyperparameterTuningJobRequest + * Gets the default type url for CreateBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetHyperparameterTuningJobRequest. */ - interface IGetHyperparameterTuningJobRequest { + /** Properties of a GetBatchPredictionJobRequest. */ + interface IGetBatchPredictionJobRequest { - /** GetHyperparameterTuningJobRequest name */ + /** GetBatchPredictionJobRequest name */ name?: (string|null); } - /** Represents a GetHyperparameterTuningJobRequest. */ - class GetHyperparameterTuningJobRequest implements IGetHyperparameterTuningJobRequest { + /** Represents a GetBatchPredictionJobRequest. */ + class GetBatchPredictionJobRequest implements IGetBatchPredictionJobRequest { /** - * Constructs a new GetHyperparameterTuningJobRequest. + * Constructs a new GetBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest); - /** GetHyperparameterTuningJobRequest name. */ + /** GetBatchPredictionJobRequest name. */ public name: string; /** - * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new GetBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetHyperparameterTuningJobRequest instance + * @returns GetBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. - * @param message GetHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. + * @param message GetBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. - * @param message GetHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. + * @param message GetBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetHyperparameterTuningJobRequest + * @returns GetBatchPredictionJobRequest * @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.GetHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetHyperparameterTuningJobRequest + * @returns GetBatchPredictionJobRequest * @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.GetHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Verifies a GetHyperparameterTuningJobRequest message. + * Verifies a GetBatchPredictionJobRequest 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 GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetHyperparameterTuningJobRequest + * @returns GetBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message GetHyperparameterTuningJobRequest + * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message GetBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetHyperparameterTuningJobRequest to JSON. + * Converts this GetBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetHyperparameterTuningJobRequest + * Gets the default type url for GetBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListHyperparameterTuningJobsRequest. */ - interface IListHyperparameterTuningJobsRequest { + /** Properties of a ListBatchPredictionJobsRequest. */ + interface IListBatchPredictionJobsRequest { - /** ListHyperparameterTuningJobsRequest parent */ + /** ListBatchPredictionJobsRequest parent */ parent?: (string|null); - /** ListHyperparameterTuningJobsRequest filter */ + /** ListBatchPredictionJobsRequest filter */ filter?: (string|null); - /** ListHyperparameterTuningJobsRequest pageSize */ + /** ListBatchPredictionJobsRequest pageSize */ pageSize?: (number|null); - /** ListHyperparameterTuningJobsRequest pageToken */ + /** ListBatchPredictionJobsRequest pageToken */ pageToken?: (string|null); - /** ListHyperparameterTuningJobsRequest readMask */ + /** ListBatchPredictionJobsRequest readMask */ readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListHyperparameterTuningJobsRequest. */ - class ListHyperparameterTuningJobsRequest implements IListHyperparameterTuningJobsRequest { + /** Represents a ListBatchPredictionJobsRequest. */ + class ListBatchPredictionJobsRequest implements IListBatchPredictionJobsRequest { /** - * Constructs a new ListHyperparameterTuningJobsRequest. + * Constructs a new ListBatchPredictionJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest); - /** ListHyperparameterTuningJobsRequest parent. */ + /** ListBatchPredictionJobsRequest parent. */ public parent: string; - /** ListHyperparameterTuningJobsRequest filter. */ + /** ListBatchPredictionJobsRequest filter. */ public filter: string; - /** ListHyperparameterTuningJobsRequest pageSize. */ + /** ListBatchPredictionJobsRequest pageSize. */ public pageSize: number; - /** ListHyperparameterTuningJobsRequest pageToken. */ + /** ListBatchPredictionJobsRequest pageToken. */ public pageToken: string; - /** ListHyperparameterTuningJobsRequest readMask. */ + /** ListBatchPredictionJobsRequest readMask. */ public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. + * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListHyperparameterTuningJobsRequest instance + * @returns ListBatchPredictionJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. - * @param message ListHyperparameterTuningJobsRequest message or plain object to encode + * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. + * @param message ListBatchPredictionJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. - * @param message ListHyperparameterTuningJobsRequest message or plain object to encode + * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. + * @param message ListBatchPredictionJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListHyperparameterTuningJobsRequest + * @returns ListBatchPredictionJobsRequest * @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.ListHyperparameterTuningJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListHyperparameterTuningJobsRequest + * @returns ListBatchPredictionJobsRequest * @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.ListHyperparameterTuningJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Verifies a ListHyperparameterTuningJobsRequest message. + * Verifies a ListBatchPredictionJobsRequest 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 ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListHyperparameterTuningJobsRequest + * @returns ListBatchPredictionJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. - * @param message ListHyperparameterTuningJobsRequest + * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. + * @param message ListBatchPredictionJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListHyperparameterTuningJobsRequest to JSON. + * Converts this ListBatchPredictionJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListHyperparameterTuningJobsRequest + * Gets the default type url for ListBatchPredictionJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListHyperparameterTuningJobsResponse. */ - interface IListHyperparameterTuningJobsResponse { + /** Properties of a ListBatchPredictionJobsResponse. */ + interface IListBatchPredictionJobsResponse { - /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs */ - hyperparameterTuningJobs?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]|null); + /** ListBatchPredictionJobsResponse batchPredictionJobs */ + batchPredictionJobs?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]|null); - /** ListHyperparameterTuningJobsResponse nextPageToken */ + /** ListBatchPredictionJobsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListHyperparameterTuningJobsResponse. */ - class ListHyperparameterTuningJobsResponse implements IListHyperparameterTuningJobsResponse { + /** Represents a ListBatchPredictionJobsResponse. */ + class ListBatchPredictionJobsResponse implements IListBatchPredictionJobsResponse { /** - * Constructs a new ListHyperparameterTuningJobsResponse. + * Constructs a new ListBatchPredictionJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse); - /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. */ - public hyperparameterTuningJobs: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]; + /** ListBatchPredictionJobsResponse batchPredictionJobs. */ + public batchPredictionJobs: google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]; - /** ListHyperparameterTuningJobsResponse nextPageToken. */ + /** ListBatchPredictionJobsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. + * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListHyperparameterTuningJobsResponse instance + * @returns ListBatchPredictionJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. - * @param message ListHyperparameterTuningJobsResponse message or plain object to encode + * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * @param message ListBatchPredictionJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. - * @param message ListHyperparameterTuningJobsResponse message or plain object to encode + * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * @param message ListBatchPredictionJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListHyperparameterTuningJobsResponse + * @returns ListBatchPredictionJobsResponse * @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.ListHyperparameterTuningJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListHyperparameterTuningJobsResponse + * @returns ListBatchPredictionJobsResponse * @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.ListHyperparameterTuningJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Verifies a ListHyperparameterTuningJobsResponse message. + * Verifies a ListBatchPredictionJobsResponse 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 ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListHyperparameterTuningJobsResponse + * @returns ListBatchPredictionJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. - * @param message ListHyperparameterTuningJobsResponse + * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. + * @param message ListBatchPredictionJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListHyperparameterTuningJobsResponse to JSON. + * Converts this ListBatchPredictionJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListHyperparameterTuningJobsResponse + * Gets the default type url for ListBatchPredictionJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteHyperparameterTuningJobRequest. */ - interface IDeleteHyperparameterTuningJobRequest { + /** Properties of a DeleteBatchPredictionJobRequest. */ + interface IDeleteBatchPredictionJobRequest { - /** DeleteHyperparameterTuningJobRequest name */ + /** DeleteBatchPredictionJobRequest name */ name?: (string|null); } - /** Represents a DeleteHyperparameterTuningJobRequest. */ - class DeleteHyperparameterTuningJobRequest implements IDeleteHyperparameterTuningJobRequest { + /** Represents a DeleteBatchPredictionJobRequest. */ + class DeleteBatchPredictionJobRequest implements IDeleteBatchPredictionJobRequest { /** - * Constructs a new DeleteHyperparameterTuningJobRequest. + * Constructs a new DeleteBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest); - /** DeleteHyperparameterTuningJobRequest name. */ + /** DeleteBatchPredictionJobRequest name. */ public name: string; /** - * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteHyperparameterTuningJobRequest instance + * @returns DeleteBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. - * @param message DeleteHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * @param message DeleteBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. - * @param message DeleteHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * @param message DeleteBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteHyperparameterTuningJobRequest + * @returns DeleteBatchPredictionJobRequest * @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.DeleteHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteHyperparameterTuningJobRequest + * @returns DeleteBatchPredictionJobRequest * @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.DeleteHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Verifies a DeleteHyperparameterTuningJobRequest message. + * Verifies a DeleteBatchPredictionJobRequest 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 DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteHyperparameterTuningJobRequest + * @returns DeleteBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message DeleteHyperparameterTuningJobRequest + * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message DeleteBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteHyperparameterTuningJobRequest to JSON. + * Converts this DeleteBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteHyperparameterTuningJobRequest + * Gets the default type url for DeleteBatchPredictionJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelHyperparameterTuningJobRequest. */ - interface ICancelHyperparameterTuningJobRequest { + /** Properties of a CancelBatchPredictionJobRequest. */ + interface ICancelBatchPredictionJobRequest { - /** CancelHyperparameterTuningJobRequest name */ + /** CancelBatchPredictionJobRequest name */ name?: (string|null); } - /** Represents a CancelHyperparameterTuningJobRequest. */ - class CancelHyperparameterTuningJobRequest implements ICancelHyperparameterTuningJobRequest { + /** Represents a CancelBatchPredictionJobRequest. */ + class CancelBatchPredictionJobRequest implements ICancelBatchPredictionJobRequest { /** - * Constructs a new CancelHyperparameterTuningJobRequest. + * Constructs a new CancelBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest); - /** CancelHyperparameterTuningJobRequest name. */ + /** CancelBatchPredictionJobRequest name. */ public name: string; /** - * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CancelHyperparameterTuningJobRequest instance + * @returns CancelBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. - * @param message CancelHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. + * @param message CancelBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. - * @param message CancelHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. + * @param message CancelBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelHyperparameterTuningJobRequest + * @returns CancelBatchPredictionJobRequest * @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.CancelHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelHyperparameterTuningJobRequest + * @returns CancelBatchPredictionJobRequest * @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.CancelHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + + /** + * Verifies a CancelBatchPredictionJobRequest 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 CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelBatchPredictionJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + + /** + * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message CancelBatchPredictionJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CancelBatchPredictionJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CancelBatchPredictionJobRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CreateModelDeploymentMonitoringJobRequest. */ + interface ICreateModelDeploymentMonitoringJobRequest { + + /** CreateModelDeploymentMonitoringJobRequest parent */ + parent?: (string|null); + + /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + } + + /** Represents a CreateModelDeploymentMonitoringJobRequest. */ + class CreateModelDeploymentMonitoringJobRequest implements ICreateModelDeploymentMonitoringJobRequest { + + /** + * Constructs a new CreateModelDeploymentMonitoringJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest); + + /** CreateModelDeploymentMonitoringJobRequest parent. */ + public parent: string; + + /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + + /** + * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateModelDeploymentMonitoringJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + + /** + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateModelDeploymentMonitoringJobRequest + * @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.CreateModelDeploymentMonitoringJobRequest; + + /** + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateModelDeploymentMonitoringJobRequest + * @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.CreateModelDeploymentMonitoringJobRequest; /** - * Verifies a CancelHyperparameterTuningJobRequest message. + * Verifies a CreateModelDeploymentMonitoringJobRequest 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 CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelHyperparameterTuningJobRequest + * @returns CreateModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message CancelHyperparameterTuningJobRequest + * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message CreateModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelHyperparameterTuningJobRequest to JSON. + * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelHyperparameterTuningJobRequest + * Gets the default type url for CreateModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateBatchPredictionJobRequest. */ - interface ICreateBatchPredictionJobRequest { + /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ + interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest { - /** CreateBatchPredictionJobRequest parent */ - parent?: (string|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (string|null); - /** CreateBatchPredictionJobRequest batchPredictionJob */ - batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId */ + deployedModelId?: (string|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName */ + featureDisplayName?: (string|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives */ + objectives?: (google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize */ + pageSize?: (number|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken */ + pageToken?: (string|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ + endTime?: (google.protobuf.ITimestamp|null); } - /** Represents a CreateBatchPredictionJobRequest. */ - class CreateBatchPredictionJobRequest implements ICreateBatchPredictionJobRequest { + /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ + class SearchModelDeploymentMonitoringStatsAnomaliesRequest implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest { /** - * Constructs a new CreateBatchPredictionJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest); - /** CreateBatchPredictionJobRequest parent. */ - public parent: string; + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob: string; - /** CreateBatchPredictionJobRequest batchPredictionJob. */ - public batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. */ + public deployedModelId: string; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. */ + public featureDisplayName: string; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. */ + public objectives: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. */ + public pageSize: number; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. */ + public pageToken: string; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateBatchPredictionJobRequest instance + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. - * @param message CreateBatchPredictionJobRequest message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. - * @param message CreateBatchPredictionJobRequest message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateBatchPredictionJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest * @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.CreateBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateBatchPredictionJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest * @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.CreateBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Verifies a CreateBatchPredictionJobRequest message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest 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 CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateBatchPredictionJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message CreateBatchPredictionJobRequest + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateBatchPredictionJobRequest to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateBatchPredictionJobRequest + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetBatchPredictionJobRequest. */ - interface IGetBatchPredictionJobRequest { + namespace SearchModelDeploymentMonitoringStatsAnomaliesRequest { - /** GetBatchPredictionJobRequest name */ - name?: (string|null); + /** Properties of a StatsAnomaliesObjective. */ + interface IStatsAnomaliesObjective { + + /** StatsAnomaliesObjective type */ + type?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); + + /** StatsAnomaliesObjective topFeatureCount */ + topFeatureCount?: (number|null); + } + + /** Represents a StatsAnomaliesObjective. */ + class StatsAnomaliesObjective implements IStatsAnomaliesObjective { + + /** + * Constructs a new StatsAnomaliesObjective. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective); + + /** StatsAnomaliesObjective type. */ + public type: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); + + /** StatsAnomaliesObjective topFeatureCount. */ + public topFeatureCount: number; + + /** + * Creates a new StatsAnomaliesObjective instance using the specified properties. + * @param [properties] Properties to set + * @returns StatsAnomaliesObjective instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + + /** + * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @param message StatsAnomaliesObjective message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @param message StatsAnomaliesObjective message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StatsAnomaliesObjective + * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StatsAnomaliesObjective + * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + + /** + * Verifies a StatsAnomaliesObjective 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 StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StatsAnomaliesObjective + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + + /** + * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. + * @param message StatsAnomaliesObjective + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StatsAnomaliesObjective to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StatsAnomaliesObjective + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Represents a GetBatchPredictionJobRequest. */ - class GetBatchPredictionJobRequest implements IGetBatchPredictionJobRequest { + /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ + interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse { + + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats */ + monitoringStats?: (google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ + class SearchModelDeploymentMonitoringStatsAnomaliesResponse implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse { /** - * Constructs a new GetBatchPredictionJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse); - /** GetBatchPredictionJobRequest name. */ - public name: string; + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. */ + public monitoringStats: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]; + + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetBatchPredictionJobRequest instance using the specified properties. + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetBatchPredictionJobRequest instance + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. - * @param message GetBatchPredictionJobRequest message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. - * @param message GetBatchPredictionJobRequest message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetBatchPredictionJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse * @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.GetBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetBatchPredictionJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse * @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.GetBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Verifies a GetBatchPredictionJobRequest message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse 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 GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetBatchPredictionJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message GetBatchPredictionJobRequest + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetBatchPredictionJobRequest to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetBatchPredictionJobRequest + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListBatchPredictionJobsRequest. */ - interface IListBatchPredictionJobsRequest { - - /** ListBatchPredictionJobsRequest parent */ - parent?: (string|null); - - /** ListBatchPredictionJobsRequest filter */ - filter?: (string|null); - - /** ListBatchPredictionJobsRequest pageSize */ - pageSize?: (number|null); - - /** ListBatchPredictionJobsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a GetModelDeploymentMonitoringJobRequest. */ + interface IGetModelDeploymentMonitoringJobRequest { - /** ListBatchPredictionJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** GetModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a ListBatchPredictionJobsRequest. */ - class ListBatchPredictionJobsRequest implements IListBatchPredictionJobsRequest { + /** Represents a GetModelDeploymentMonitoringJobRequest. */ + class GetModelDeploymentMonitoringJobRequest implements IGetModelDeploymentMonitoringJobRequest { /** - * Constructs a new ListBatchPredictionJobsRequest. + * Constructs a new GetModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest); - - /** ListBatchPredictionJobsRequest parent. */ - public parent: string; - - /** ListBatchPredictionJobsRequest filter. */ - public filter: string; - - /** ListBatchPredictionJobsRequest pageSize. */ - public pageSize: number; - - /** ListBatchPredictionJobsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest); - /** ListBatchPredictionJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** GetModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. + * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListBatchPredictionJobsRequest instance + * @returns GetModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. - * @param message ListBatchPredictionJobsRequest message or plain object to encode + * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. - * @param message ListBatchPredictionJobsRequest message or plain object to encode + * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListBatchPredictionJobsRequest + * @returns GetModelDeploymentMonitoringJobRequest * @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.ListBatchPredictionJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListBatchPredictionJobsRequest + * @returns GetModelDeploymentMonitoringJobRequest * @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.ListBatchPredictionJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Verifies a ListBatchPredictionJobsRequest message. + * Verifies a GetModelDeploymentMonitoringJobRequest 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 ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListBatchPredictionJobsRequest + * @returns GetModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. - * @param message ListBatchPredictionJobsRequest + * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message GetModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListBatchPredictionJobsRequest to JSON. + * Converts this GetModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListBatchPredictionJobsRequest + * Gets the default type url for GetModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListBatchPredictionJobsResponse. */ - interface IListBatchPredictionJobsResponse { + /** Properties of a ListModelDeploymentMonitoringJobsRequest. */ + interface IListModelDeploymentMonitoringJobsRequest { - /** ListBatchPredictionJobsResponse batchPredictionJobs */ - batchPredictionJobs?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]|null); + /** ListModelDeploymentMonitoringJobsRequest parent */ + parent?: (string|null); - /** ListBatchPredictionJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListModelDeploymentMonitoringJobsRequest filter */ + filter?: (string|null); + + /** ListModelDeploymentMonitoringJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListModelDeploymentMonitoringJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListModelDeploymentMonitoringJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListBatchPredictionJobsResponse. */ - class ListBatchPredictionJobsResponse implements IListBatchPredictionJobsResponse { + /** Represents a ListModelDeploymentMonitoringJobsRequest. */ + class ListModelDeploymentMonitoringJobsRequest implements IListModelDeploymentMonitoringJobsRequest { /** - * Constructs a new ListBatchPredictionJobsResponse. + * Constructs a new ListModelDeploymentMonitoringJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest); - /** ListBatchPredictionJobsResponse batchPredictionJobs. */ - public batchPredictionJobs: google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]; + /** ListModelDeploymentMonitoringJobsRequest parent. */ + public parent: string; - /** ListBatchPredictionJobsResponse nextPageToken. */ - public nextPageToken: string; + /** ListModelDeploymentMonitoringJobsRequest filter. */ + public filter: string; + + /** ListModelDeploymentMonitoringJobsRequest pageSize. */ + public pageSize: number; + + /** ListModelDeploymentMonitoringJobsRequest pageToken. */ + public pageToken: string; + + /** ListModelDeploymentMonitoringJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListBatchPredictionJobsResponse instance + * @returns ListModelDeploymentMonitoringJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. - * @param message ListBatchPredictionJobsResponse message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. - * @param message ListBatchPredictionJobsResponse message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListBatchPredictionJobsResponse + * @returns ListModelDeploymentMonitoringJobsRequest * @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.ListBatchPredictionJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListBatchPredictionJobsResponse + * @returns ListModelDeploymentMonitoringJobsRequest * @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.ListBatchPredictionJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Verifies a ListBatchPredictionJobsResponse message. + * Verifies a ListModelDeploymentMonitoringJobsRequest 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 ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListBatchPredictionJobsResponse + * @returns ListModelDeploymentMonitoringJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. - * @param message ListBatchPredictionJobsResponse + * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. + * @param message ListModelDeploymentMonitoringJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListBatchPredictionJobsResponse to JSON. + * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListBatchPredictionJobsResponse + * Gets the default type url for ListModelDeploymentMonitoringJobsRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteBatchPredictionJobRequest. */ - interface IDeleteBatchPredictionJobRequest { + /** Properties of a ListModelDeploymentMonitoringJobsResponse. */ + interface IListModelDeploymentMonitoringJobsResponse { - /** DeleteBatchPredictionJobRequest name */ - name?: (string|null); + /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs */ + modelDeploymentMonitoringJobs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]|null); + + /** ListModelDeploymentMonitoringJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a DeleteBatchPredictionJobRequest. */ - class DeleteBatchPredictionJobRequest implements IDeleteBatchPredictionJobRequest { + /** Represents a ListModelDeploymentMonitoringJobsResponse. */ + class ListModelDeploymentMonitoringJobsResponse implements IListModelDeploymentMonitoringJobsResponse { /** - * Constructs a new DeleteBatchPredictionJobRequest. + * Constructs a new ListModelDeploymentMonitoringJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse); - /** DeleteBatchPredictionJobRequest name. */ - public name: string; + /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. */ + public modelDeploymentMonitoringJobs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]; + + /** ListModelDeploymentMonitoringJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteBatchPredictionJobRequest instance + * @returns ListModelDeploymentMonitoringJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; /** - * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. - * @param message DeleteBatchPredictionJobRequest message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. - * @param message DeleteBatchPredictionJobRequest message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteBatchPredictionJobRequest + * @returns ListModelDeploymentMonitoringJobsResponse * @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.DeleteBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteBatchPredictionJobRequest + * @returns ListModelDeploymentMonitoringJobsResponse * @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.DeleteBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; /** - * Verifies a DeleteBatchPredictionJobRequest message. + * Verifies a ListModelDeploymentMonitoringJobsResponse 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 DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteBatchPredictionJobRequest + * @returns ListModelDeploymentMonitoringJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; /** - * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message DeleteBatchPredictionJobRequest + * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. + * @param message ListModelDeploymentMonitoringJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteBatchPredictionJobRequest to JSON. + * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for DeleteBatchPredictionJobRequest + * Gets the default type url for ListModelDeploymentMonitoringJobsResponse * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CancelBatchPredictionJobRequest. */ - interface ICancelBatchPredictionJobRequest { + /** Properties of an UpdateModelDeploymentMonitoringJobRequest. */ + interface IUpdateModelDeploymentMonitoringJobRequest { - /** CancelBatchPredictionJobRequest name */ - name?: (string|null); + /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + + /** UpdateModelDeploymentMonitoringJobRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a CancelBatchPredictionJobRequest. */ - class CancelBatchPredictionJobRequest implements ICancelBatchPredictionJobRequest { + /** Represents an UpdateModelDeploymentMonitoringJobRequest. */ + class UpdateModelDeploymentMonitoringJobRequest implements IUpdateModelDeploymentMonitoringJobRequest { /** - * Constructs a new CancelBatchPredictionJobRequest. + * Constructs a new UpdateModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest); - /** CancelBatchPredictionJobRequest name. */ - public name: string; + /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + + /** UpdateModelDeploymentMonitoringJobRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CancelBatchPredictionJobRequest instance + * @returns UpdateModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. - * @param message CancelBatchPredictionJobRequest message or plain object to encode + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. - * @param message CancelBatchPredictionJobRequest message or plain object to encode + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelBatchPredictionJobRequest + * @returns UpdateModelDeploymentMonitoringJobRequest * @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.CancelBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelBatchPredictionJobRequest + * @returns UpdateModelDeploymentMonitoringJobRequest * @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.CancelBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Verifies a CancelBatchPredictionJobRequest message. + * Verifies an UpdateModelDeploymentMonitoringJobRequest 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 CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelBatchPredictionJobRequest + * @returns UpdateModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message CancelBatchPredictionJobRequest + * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message UpdateModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelBatchPredictionJobRequest to JSON. + * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CancelBatchPredictionJobRequest + * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a CreateModelDeploymentMonitoringJobRequest. */ - interface ICreateModelDeploymentMonitoringJobRequest { - - /** CreateModelDeploymentMonitoringJobRequest parent */ - parent?: (string|null); + /** Properties of a DeleteModelDeploymentMonitoringJobRequest. */ + interface IDeleteModelDeploymentMonitoringJobRequest { - /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** DeleteModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a CreateModelDeploymentMonitoringJobRequest. */ - class CreateModelDeploymentMonitoringJobRequest implements ICreateModelDeploymentMonitoringJobRequest { + /** Represents a DeleteModelDeploymentMonitoringJobRequest. */ + class DeleteModelDeploymentMonitoringJobRequest implements IDeleteModelDeploymentMonitoringJobRequest { /** - * Constructs a new CreateModelDeploymentMonitoringJobRequest. + * Constructs a new DeleteModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest); - - /** CreateModelDeploymentMonitoringJobRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest); - /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** DeleteModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateModelDeploymentMonitoringJobRequest instance + * @returns DeleteModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns DeleteModelDeploymentMonitoringJobRequest * @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.CreateModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns DeleteModelDeploymentMonitoringJobRequest * @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.CreateModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Verifies a CreateModelDeploymentMonitoringJobRequest message. + * Verifies a DeleteModelDeploymentMonitoringJobRequest 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 CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns DeleteModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message CreateModelDeploymentMonitoringJobRequest + * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message DeleteModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. + * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for CreateModelDeploymentMonitoringJobRequest + * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ - interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest { - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId */ - deployedModelId?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName */ - featureDisplayName?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives */ - objectives?: (google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize */ - pageSize?: (number|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken */ - pageToken?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** Properties of a PauseModelDeploymentMonitoringJobRequest. */ + interface IPauseModelDeploymentMonitoringJobRequest { - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** PauseModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ - class SearchModelDeploymentMonitoringStatsAnomaliesRequest implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest { + /** Represents a PauseModelDeploymentMonitoringJobRequest. */ + class PauseModelDeploymentMonitoringJobRequest implements IPauseModelDeploymentMonitoringJobRequest { /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * Constructs a new PauseModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. */ - public deployedModelId: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. */ - public featureDisplayName: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. */ - public objectives: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. */ - public pageSize: number; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. */ - public pageToken: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest); - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** PauseModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. + * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest instance + * @returns PauseModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns PauseModelDeploymentMonitoringJobRequest * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns PauseModelDeploymentMonitoringJobRequest * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. + * Verifies a PauseModelDeploymentMonitoringJobRequest 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 SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns PauseModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message PauseModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. + * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Gets the default type url for PauseModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - namespace SearchModelDeploymentMonitoringStatsAnomaliesRequest { - - /** Properties of a StatsAnomaliesObjective. */ - interface IStatsAnomaliesObjective { - - /** StatsAnomaliesObjective type */ - type?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); - - /** StatsAnomaliesObjective topFeatureCount */ - topFeatureCount?: (number|null); - } - - /** Represents a StatsAnomaliesObjective. */ - class StatsAnomaliesObjective implements IStatsAnomaliesObjective { - - /** - * Constructs a new StatsAnomaliesObjective. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective); - - /** StatsAnomaliesObjective type. */ - public type: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); - - /** StatsAnomaliesObjective topFeatureCount. */ - public topFeatureCount: number; - - /** - * Creates a new StatsAnomaliesObjective instance using the specified properties. - * @param [properties] Properties to set - * @returns StatsAnomaliesObjective instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @param message StatsAnomaliesObjective message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @param message StatsAnomaliesObjective message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StatsAnomaliesObjective - * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StatsAnomaliesObjective - * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Verifies a StatsAnomaliesObjective 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 StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StatsAnomaliesObjective - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; - - /** - * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. - * @param message StatsAnomaliesObjective - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this StatsAnomaliesObjective to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for StatsAnomaliesObjective - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } - - /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ - interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse { - - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats */ - monitoringStats?: (google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]|null); + /** Properties of a ResumeModelDeploymentMonitoringJobRequest. */ + interface IResumeModelDeploymentMonitoringJobRequest { - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ - nextPageToken?: (string|null); + /** ResumeModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ - class SearchModelDeploymentMonitoringStatsAnomaliesResponse implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse { + /** Represents a ResumeModelDeploymentMonitoringJobRequest. */ + class ResumeModelDeploymentMonitoringJobRequest implements IResumeModelDeploymentMonitoringJobRequest { /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Constructs a new ResumeModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse); - - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. */ - public monitoringStats: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest); - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. */ - public nextPageToken: string; + /** ResumeModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. + * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse instance + * @returns ResumeModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns ResumeModelDeploymentMonitoringJobRequest * @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.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns ResumeModelDeploymentMonitoringJobRequest * @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.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. + * Verifies a ResumeModelDeploymentMonitoringJobRequest 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 SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns ResumeModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message ResumeModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. + * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a GetModelDeploymentMonitoringJobRequest. */ - interface IGetModelDeploymentMonitoringJobRequest { + /** Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. */ + interface IUpdateModelDeploymentMonitoringJobOperationMetadata { - /** GetModelDeploymentMonitoringJobRequest name */ - name?: (string|null); + /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a GetModelDeploymentMonitoringJobRequest. */ - class GetModelDeploymentMonitoringJobRequest implements IGetModelDeploymentMonitoringJobRequest { + /** Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. */ + class UpdateModelDeploymentMonitoringJobOperationMetadata implements IUpdateModelDeploymentMonitoringJobOperationMetadata { /** - * Constructs a new GetModelDeploymentMonitoringJobRequest. + * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata); - /** GetModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GetModelDeploymentMonitoringJobRequest instance + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetModelDeploymentMonitoringJobRequest + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata * @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.GetModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetModelDeploymentMonitoringJobRequest + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata * @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.GetModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; /** - * Verifies a GetModelDeploymentMonitoringJobRequest message. + * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata 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 GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetModelDeploymentMonitoringJobRequest + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; /** - * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message GetModelDeploymentMonitoringJobRequest + * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for GetModelDeploymentMonitoringJobRequest + * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelDeploymentMonitoringJobsRequest. */ - interface IListModelDeploymentMonitoringJobsRequest { + /** Properties of a NasJob. */ + interface INasJob { - /** ListModelDeploymentMonitoringJobsRequest parent */ - parent?: (string|null); + /** NasJob name */ + name?: (string|null); - /** ListModelDeploymentMonitoringJobsRequest filter */ - filter?: (string|null); + /** NasJob displayName */ + displayName?: (string|null); - /** ListModelDeploymentMonitoringJobsRequest pageSize */ - pageSize?: (number|null); + /** NasJob nasJobSpec */ + nasJobSpec?: (google.cloud.aiplatform.v1beta1.INasJobSpec|null); - /** ListModelDeploymentMonitoringJobsRequest pageToken */ - pageToken?: (string|null); + /** NasJob nasJobOutput */ + nasJobOutput?: (google.cloud.aiplatform.v1beta1.INasJobOutput|null); - /** ListModelDeploymentMonitoringJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** NasJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); + + /** NasJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** NasJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** NasJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); + + /** NasJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** NasJob error */ + error?: (google.rpc.IStatus|null); + + /** NasJob labels */ + labels?: ({ [k: string]: string }|null); + + /** NasJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** NasJob enableRestrictedImageTraining */ + enableRestrictedImageTraining?: (boolean|null); } - /** Represents a ListModelDeploymentMonitoringJobsRequest. */ - class ListModelDeploymentMonitoringJobsRequest implements IListModelDeploymentMonitoringJobsRequest { + /** Represents a NasJob. */ + class NasJob implements INasJob { /** - * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * Constructs a new NasJob. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.INasJob); - /** ListModelDeploymentMonitoringJobsRequest parent. */ - public parent: string; + /** NasJob name. */ + public name: string; - /** ListModelDeploymentMonitoringJobsRequest filter. */ - public filter: string; + /** NasJob displayName. */ + public displayName: string; - /** ListModelDeploymentMonitoringJobsRequest pageSize. */ - public pageSize: number; + /** NasJob nasJobSpec. */ + public nasJobSpec?: (google.cloud.aiplatform.v1beta1.INasJobSpec|null); - /** ListModelDeploymentMonitoringJobsRequest pageToken. */ - public pageToken: string; + /** NasJob nasJobOutput. */ + public nasJobOutput?: (google.cloud.aiplatform.v1beta1.INasJobOutput|null); - /** ListModelDeploymentMonitoringJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** NasJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); + + /** NasJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** NasJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** NasJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** NasJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** NasJob error. */ + public error?: (google.rpc.IStatus|null); + + /** NasJob labels. */ + public labels: { [k: string]: string }; + + /** NasJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** NasJob enableRestrictedImageTraining. */ + public enableRestrictedImageTraining: boolean; /** - * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. + * Creates a new NasJob instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelDeploymentMonitoringJobsRequest instance + * @returns NasJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.INasJob): google.cloud.aiplatform.v1beta1.NasJob; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * Encodes the specified NasJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJob.verify|verify} messages. + * @param message NasJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INasJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * Encodes the specified NasJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJob.verify|verify} messages. + * @param message NasJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INasJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. + * Decodes a NasJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns NasJob * @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.ListModelDeploymentMonitoringJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NasJob; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a NasJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns NasJob * @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.ListModelDeploymentMonitoringJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NasJob; /** - * Verifies a ListModelDeploymentMonitoringJobsRequest message. + * Verifies a NasJob 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 ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns NasJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasJob; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. - * @param message ListModelDeploymentMonitoringJobsRequest + * Creates a plain object from a NasJob message. Also converts values to other types if specified. + * @param message NasJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.NasJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. + * Converts this NasJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsRequest + * Gets the default type url for NasJob * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ListModelDeploymentMonitoringJobsResponse. */ - interface IListModelDeploymentMonitoringJobsResponse { + /** Properties of a NasTrialDetail. */ + interface INasTrialDetail { - /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs */ - modelDeploymentMonitoringJobs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]|null); + /** NasTrialDetail name */ + name?: (string|null); - /** ListModelDeploymentMonitoringJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** NasTrialDetail parameters */ + parameters?: (string|null); + + /** NasTrialDetail searchTrial */ + searchTrial?: (google.cloud.aiplatform.v1beta1.INasTrial|null); + + /** NasTrialDetail trainTrial */ + trainTrial?: (google.cloud.aiplatform.v1beta1.INasTrial|null); } - /** Represents a ListModelDeploymentMonitoringJobsResponse. */ - class ListModelDeploymentMonitoringJobsResponse implements IListModelDeploymentMonitoringJobsResponse { + /** Represents a NasTrialDetail. */ + class NasTrialDetail implements INasTrialDetail { /** - * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * Constructs a new NasTrialDetail. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.INasTrialDetail); - /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. */ - public modelDeploymentMonitoringJobs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]; + /** NasTrialDetail name. */ + public name: string; - /** ListModelDeploymentMonitoringJobsResponse nextPageToken. */ - public nextPageToken: string; + /** NasTrialDetail parameters. */ + public parameters: string; + + /** NasTrialDetail searchTrial. */ + public searchTrial?: (google.cloud.aiplatform.v1beta1.INasTrial|null); + + /** NasTrialDetail trainTrial. */ + public trainTrial?: (google.cloud.aiplatform.v1beta1.INasTrial|null); /** - * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * Creates a new NasTrialDetail instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelDeploymentMonitoringJobsResponse instance + * @returns NasTrialDetail instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.INasTrialDetail): google.cloud.aiplatform.v1beta1.NasTrialDetail; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * Encodes the specified NasTrialDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasTrialDetail.verify|verify} messages. + * @param message NasTrialDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INasTrialDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * Encodes the specified NasTrialDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasTrialDetail.verify|verify} messages. + * @param message NasTrialDetail message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INasTrialDetail, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. + * Decodes a NasTrialDetail message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns NasTrialDetail * @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.ListModelDeploymentMonitoringJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NasTrialDetail; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a NasTrialDetail message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns NasTrialDetail * @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.ListModelDeploymentMonitoringJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NasTrialDetail; /** - * Verifies a ListModelDeploymentMonitoringJobsResponse message. + * Verifies a NasTrialDetail 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 ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NasTrialDetail message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns NasTrialDetail */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasTrialDetail; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. - * @param message ListModelDeploymentMonitoringJobsResponse + * Creates a plain object from a NasTrialDetail message. Also converts values to other types if specified. + * @param message NasTrialDetail * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.NasTrialDetail, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. + * Converts this NasTrialDetail to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsResponse + * Gets the default type url for NasTrialDetail * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of an UpdateModelDeploymentMonitoringJobRequest. */ - interface IUpdateModelDeploymentMonitoringJobRequest { + /** Properties of a NasJobSpec. */ + interface INasJobSpec { - /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** NasJobSpec multiTrialAlgorithmSpec */ + multiTrialAlgorithmSpec?: (google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec|null); - /** UpdateModelDeploymentMonitoringJobRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** NasJobSpec resumeNasJobId */ + resumeNasJobId?: (string|null); + + /** NasJobSpec searchSpaceSpec */ + searchSpaceSpec?: (string|null); } - /** Represents an UpdateModelDeploymentMonitoringJobRequest. */ - class UpdateModelDeploymentMonitoringJobRequest implements IUpdateModelDeploymentMonitoringJobRequest { + /** Represents a NasJobSpec. */ + class NasJobSpec implements INasJobSpec { /** - * Constructs a new UpdateModelDeploymentMonitoringJobRequest. + * Constructs a new NasJobSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.INasJobSpec); - /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** NasJobSpec multiTrialAlgorithmSpec. */ + public multiTrialAlgorithmSpec?: (google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec|null); - /** UpdateModelDeploymentMonitoringJobRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** NasJobSpec resumeNasJobId. */ + public resumeNasJobId: string; + + /** NasJobSpec searchSpaceSpec. */ + public searchSpaceSpec: string; + + /** NasJobSpec nasAlgorithmSpec. */ + public nasAlgorithmSpec?: "multiTrialAlgorithmSpec"; /** - * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new NasJobSpec instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateModelDeploymentMonitoringJobRequest instance + * @returns NasJobSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.INasJobSpec): google.cloud.aiplatform.v1beta1.NasJobSpec; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified NasJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.verify|verify} messages. + * @param message NasJobSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INasJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified NasJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.verify|verify} messages. + * @param message NasJobSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INasJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a NasJobSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns NasJobSpec * @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.UpdateModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NasJobSpec; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a NasJobSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns NasJobSpec * @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.UpdateModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NasJobSpec; /** - * Verifies an UpdateModelDeploymentMonitoringJobRequest message. + * Verifies a NasJobSpec 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 UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasJobSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns NasJobSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasJobSpec; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message UpdateModelDeploymentMonitoringJobRequest + * Creates a plain object from a NasJobSpec message. Also converts values to other types if specified. + * @param message NasJobSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.NasJobSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. + * Converts this NasJobSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest + * Gets the default type url for NasJobSpec * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a DeleteModelDeploymentMonitoringJobRequest. */ - interface IDeleteModelDeploymentMonitoringJobRequest { + namespace NasJobSpec { - /** DeleteModelDeploymentMonitoringJobRequest name */ - name?: (string|null); - } + /** Properties of a MultiTrialAlgorithmSpec. */ + interface IMultiTrialAlgorithmSpec { - /** Represents a DeleteModelDeploymentMonitoringJobRequest. */ - class DeleteModelDeploymentMonitoringJobRequest implements IDeleteModelDeploymentMonitoringJobRequest { + /** MultiTrialAlgorithmSpec multiTrialAlgorithm */ + multiTrialAlgorithm?: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|keyof typeof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|null); - /** - * Constructs a new DeleteModelDeploymentMonitoringJobRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest); + /** MultiTrialAlgorithmSpec metric */ + metric?: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null); - /** DeleteModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** MultiTrialAlgorithmSpec searchTrialSpec */ + searchTrialSpec?: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null); - /** - * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteModelDeploymentMonitoringJobRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; + /** MultiTrialAlgorithmSpec trainTrialSpec */ + trainTrialSpec?: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null); + } - /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a MultiTrialAlgorithmSpec. */ + class MultiTrialAlgorithmSpec implements IMultiTrialAlgorithmSpec { - /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new MultiTrialAlgorithmSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec); - /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteModelDeploymentMonitoringJobRequest - * @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.DeleteModelDeploymentMonitoringJobRequest; + /** MultiTrialAlgorithmSpec multiTrialAlgorithm. */ + public multiTrialAlgorithm: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|keyof typeof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm); - /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteModelDeploymentMonitoringJobRequest - * @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.DeleteModelDeploymentMonitoringJobRequest; + /** MultiTrialAlgorithmSpec metric. */ + public metric?: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null); + + /** MultiTrialAlgorithmSpec searchTrialSpec. */ + public searchTrialSpec?: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null); + + /** MultiTrialAlgorithmSpec trainTrialSpec. */ + public trainTrialSpec?: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null); + + /** + * Creates a new MultiTrialAlgorithmSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns MultiTrialAlgorithmSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec): google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec; + + /** + * Encodes the specified MultiTrialAlgorithmSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @param message MultiTrialAlgorithmSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MultiTrialAlgorithmSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @param message MultiTrialAlgorithmSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MultiTrialAlgorithmSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec; + + /** + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MultiTrialAlgorithmSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec; + + /** + * Verifies a MultiTrialAlgorithmSpec 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 MultiTrialAlgorithmSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MultiTrialAlgorithmSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec; + + /** + * Creates a plain object from a MultiTrialAlgorithmSpec message. Also converts values to other types if specified. + * @param message MultiTrialAlgorithmSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MultiTrialAlgorithmSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MultiTrialAlgorithmSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MultiTrialAlgorithmSpec { + + /** Properties of a MetricSpec. */ + interface IMetricSpec { + + /** MetricSpec metricId */ + metricId?: (string|null); + + /** MetricSpec goal */ + goal?: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|null); + } + + /** Represents a MetricSpec. */ + class MetricSpec implements IMetricSpec { + + /** + * Constructs a new MetricSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec); + + /** MetricSpec metricId. */ + public metricId: string; + + /** MetricSpec goal. */ + public goal: (google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType); + + /** + * Creates a new MetricSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns MetricSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec): google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; + + /** + * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MetricSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MetricSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; + + /** + * Decodes a MetricSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MetricSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; + + /** + * Verifies a MetricSpec 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 MetricSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MetricSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec; + + /** + * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. + * @param message MetricSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MetricSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MetricSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace MetricSpec { + + /** GoalType enum. */ + enum GoalType { + GOAL_TYPE_UNSPECIFIED = 0, + MAXIMIZE = 1, + MINIMIZE = 2 + } + } + + /** Properties of a SearchTrialSpec. */ + interface ISearchTrialSpec { + + /** SearchTrialSpec searchTrialJobSpec */ + searchTrialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); + + /** SearchTrialSpec maxTrialCount */ + maxTrialCount?: (number|null); + + /** SearchTrialSpec maxParallelTrialCount */ + maxParallelTrialCount?: (number|null); + + /** SearchTrialSpec maxFailedTrialCount */ + maxFailedTrialCount?: (number|null); + } + + /** Represents a SearchTrialSpec. */ + class SearchTrialSpec implements ISearchTrialSpec { + + /** + * Constructs a new SearchTrialSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec); + + /** SearchTrialSpec searchTrialJobSpec. */ + public searchTrialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); + + /** SearchTrialSpec maxTrialCount. */ + public maxTrialCount: number; + + /** SearchTrialSpec maxParallelTrialCount. */ + public maxParallelTrialCount: number; + + /** SearchTrialSpec maxFailedTrialCount. */ + public maxFailedTrialCount: number; + + /** + * Creates a new SearchTrialSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchTrialSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec): google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; + + /** + * Encodes the specified SearchTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @param message SearchTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SearchTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @param message SearchTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SearchTrialSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SearchTrialSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; + + /** + * Verifies a SearchTrialSpec 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 SearchTrialSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SearchTrialSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec; + + /** + * Creates a plain object from a SearchTrialSpec message. Also converts values to other types if specified. + * @param message SearchTrialSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SearchTrialSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SearchTrialSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a TrainTrialSpec. */ + interface ITrainTrialSpec { + + /** TrainTrialSpec trainTrialJobSpec */ + trainTrialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); + + /** TrainTrialSpec maxParallelTrialCount */ + maxParallelTrialCount?: (number|null); + + /** TrainTrialSpec frequency */ + frequency?: (number|null); + } + + /** Represents a TrainTrialSpec. */ + class TrainTrialSpec implements ITrainTrialSpec { + + /** + * Constructs a new TrainTrialSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec); + + /** TrainTrialSpec trainTrialJobSpec. */ + public trainTrialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); + + /** TrainTrialSpec maxParallelTrialCount. */ + public maxParallelTrialCount: number; + + /** TrainTrialSpec frequency. */ + public frequency: number; + + /** + * Creates a new TrainTrialSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainTrialSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec): google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; + + /** + * Encodes the specified TrainTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @param message TrainTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified TrainTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @param message TrainTrialSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainTrialSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; + + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainTrialSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; - /** - * Verifies a DeleteModelDeploymentMonitoringJobRequest 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); + /** + * Verifies a TrainTrialSpec 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 DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteModelDeploymentMonitoringJobRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; + /** + * Creates a TrainTrialSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainTrialSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec; - /** - * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message DeleteModelDeploymentMonitoringJobRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a TrainTrialSpec message. Also converts values to other types if specified. + * @param message TrainTrialSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this TrainTrialSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; - /** - * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Gets the default type url for TrainTrialSpec + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** MultiTrialAlgorithm enum. */ + enum MultiTrialAlgorithm { + MULTI_TRIAL_ALGORITHM_UNSPECIFIED = 0, + REINFORCEMENT_LEARNING = 1, + GRID_SEARCH = 2 + } + } } - /** Properties of a PauseModelDeploymentMonitoringJobRequest. */ - interface IPauseModelDeploymentMonitoringJobRequest { + /** Properties of a NasJobOutput. */ + interface INasJobOutput { - /** PauseModelDeploymentMonitoringJobRequest name */ - name?: (string|null); + /** NasJobOutput multiTrialJobOutput */ + multiTrialJobOutput?: (google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput|null); } - /** Represents a PauseModelDeploymentMonitoringJobRequest. */ - class PauseModelDeploymentMonitoringJobRequest implements IPauseModelDeploymentMonitoringJobRequest { + /** Represents a NasJobOutput. */ + class NasJobOutput implements INasJobOutput { /** - * Constructs a new PauseModelDeploymentMonitoringJobRequest. + * Constructs a new NasJobOutput. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.INasJobOutput); - /** PauseModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** NasJobOutput multiTrialJobOutput. */ + public multiTrialJobOutput?: (google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput|null); + + /** NasJobOutput output. */ + public output?: "multiTrialJobOutput"; /** - * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new NasJobOutput instance using the specified properties. * @param [properties] Properties to set - * @returns PauseModelDeploymentMonitoringJobRequest instance + * @returns NasJobOutput instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.INasJobOutput): google.cloud.aiplatform.v1beta1.NasJobOutput; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified NasJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobOutput.verify|verify} messages. + * @param message NasJobOutput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INasJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified NasJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobOutput.verify|verify} messages. + * @param message NasJobOutput message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INasJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a NasJobOutput message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns NasJobOutput * @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.PauseModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NasJobOutput; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a NasJobOutput message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns NasJobOutput * @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.PauseModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NasJobOutput; /** - * Verifies a PauseModelDeploymentMonitoringJobRequest message. + * Verifies a NasJobOutput 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 PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasJobOutput message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns NasJobOutput */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasJobOutput; /** - * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message PauseModelDeploymentMonitoringJobRequest + * Creates a plain object from a NasJobOutput message. Also converts values to other types if specified. + * @param message NasJobOutput * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.NasJobOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. + * Converts this NasJobOutput to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for PauseModelDeploymentMonitoringJobRequest + * Gets the default type url for NasJobOutput * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } - /** Properties of a ResumeModelDeploymentMonitoringJobRequest. */ - interface IResumeModelDeploymentMonitoringJobRequest { + namespace NasJobOutput { - /** ResumeModelDeploymentMonitoringJobRequest name */ - name?: (string|null); - } + /** Properties of a MultiTrialJobOutput. */ + interface IMultiTrialJobOutput { - /** Represents a ResumeModelDeploymentMonitoringJobRequest. */ - class ResumeModelDeploymentMonitoringJobRequest implements IResumeModelDeploymentMonitoringJobRequest { + /** MultiTrialJobOutput searchTrials */ + searchTrials?: (google.cloud.aiplatform.v1beta1.INasTrial[]|null); - /** - * Constructs a new ResumeModelDeploymentMonitoringJobRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest); + /** MultiTrialJobOutput trainTrials */ + trainTrials?: (google.cloud.aiplatform.v1beta1.INasTrial[]|null); + } - /** ResumeModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** Represents a MultiTrialJobOutput. */ + class MultiTrialJobOutput implements IMultiTrialJobOutput { - /** - * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ResumeModelDeploymentMonitoringJobRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + /** + * Constructs a new MultiTrialJobOutput. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput); - /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** MultiTrialJobOutput searchTrials. */ + public searchTrials: google.cloud.aiplatform.v1beta1.INasTrial[]; - /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** MultiTrialJobOutput trainTrials. */ + public trainTrials: google.cloud.aiplatform.v1beta1.INasTrial[]; - /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResumeModelDeploymentMonitoringJobRequest - * @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.ResumeModelDeploymentMonitoringJobRequest; + /** + * Creates a new MultiTrialJobOutput instance using the specified properties. + * @param [properties] Properties to set + * @returns MultiTrialJobOutput instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput): google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput; - /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ResumeModelDeploymentMonitoringJobRequest - * @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.ResumeModelDeploymentMonitoringJobRequest; + /** + * Encodes the specified MultiTrialJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @param message MultiTrialJobOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a ResumeModelDeploymentMonitoringJobRequest 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); + /** + * Encodes the specified MultiTrialJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @param message MultiTrialJobOutput message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ResumeModelDeploymentMonitoringJobRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + /** + * Decodes a MultiTrialJobOutput message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MultiTrialJobOutput + * @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.NasJobOutput.MultiTrialJobOutput; - /** - * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message ResumeModelDeploymentMonitoringJobRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a MultiTrialJobOutput message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MultiTrialJobOutput + * @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.NasJobOutput.MultiTrialJobOutput; - /** - * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Verifies a MultiTrialJobOutput 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); - /** - * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; + /** + * Creates a MultiTrialJobOutput message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MultiTrialJobOutput + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput; + + /** + * Creates a plain object from a MultiTrialJobOutput message. Also converts values to other types if specified. + * @param message MultiTrialJobOutput + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MultiTrialJobOutput to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MultiTrialJobOutput + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } } - /** Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. */ - interface IUpdateModelDeploymentMonitoringJobOperationMetadata { + /** Properties of a NasTrial. */ + interface INasTrial { - /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** NasTrial id */ + id?: (string|null); + + /** NasTrial state */ + state?: (google.cloud.aiplatform.v1beta1.NasTrial.State|keyof typeof google.cloud.aiplatform.v1beta1.NasTrial.State|null); + + /** NasTrial finalMeasurement */ + finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); + + /** NasTrial startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** NasTrial endTime */ + endTime?: (google.protobuf.ITimestamp|null); } - /** Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. */ - class UpdateModelDeploymentMonitoringJobOperationMetadata implements IUpdateModelDeploymentMonitoringJobOperationMetadata { + /** Represents a NasTrial. */ + class NasTrial implements INasTrial { /** - * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. + * Constructs a new NasTrial. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.INasTrial); - /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** NasTrial id. */ + public id: string; + + /** NasTrial state. */ + public state: (google.cloud.aiplatform.v1beta1.NasTrial.State|keyof typeof google.cloud.aiplatform.v1beta1.NasTrial.State); + + /** NasTrial finalMeasurement. */ + public finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); + + /** NasTrial startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** NasTrial endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. + * Creates a new NasTrial instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata instance + * @returns NasTrial instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.INasTrial): google.cloud.aiplatform.v1beta1.NasTrial; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * Encodes the specified NasTrial message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasTrial.verify|verify} messages. + * @param message NasTrial message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INasTrial, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * Encodes the specified NasTrial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasTrial.verify|verify} messages. + * @param message NasTrial message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INasTrial, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. + * Decodes a NasTrial message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns NasTrial * @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.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NasTrial; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a NasTrial message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns NasTrial * @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.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NasTrial; /** - * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. + * Verifies a NasTrial 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 UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a NasTrial message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns NasTrial */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NasTrial; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata + * Creates a plain object from a NasTrial message. Also converts values to other types if specified. + * @param message NasTrial * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.NasTrial, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. + * Converts this NasTrial to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata + * Gets the default type url for NasTrial * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace NasTrial { + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + REQUESTED = 1, + ACTIVE = 2, + STOPPING = 3, + SUCCEEDED = 4, + INFEASIBLE = 5 + } + } + /** Properties of a LineageSubgraph. */ interface ILineageSubgraph { @@ -118637,6 +124198,20 @@ export namespace google { */ public exportModel(request: google.cloud.aiplatform.v1beta1.IExportModelRequest): Promise; + /** + * Calls CopyModel. + * @param request CopyModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public copyModel(request: google.cloud.aiplatform.v1beta1.ICopyModelRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.CopyModelCallback): void; + + /** + * Calls CopyModel. + * @param request CopyModelRequest message or plain object + * @returns Promise + */ + public copyModel(request: google.cloud.aiplatform.v1beta1.ICopyModelRequest): Promise; + /** * Calls ImportModelEvaluation. * @param request ImportModelEvaluationRequest message or plain object @@ -118794,6 +124369,13 @@ export namespace google { */ type ExportModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|copyModel}. + * @param error Error, if any + * @param [response] Operation + */ + type CopyModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|importModelEvaluation}. * @param error Error, if any @@ -120915,6 +126497,330 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a CopyModelRequest. */ + interface ICopyModelRequest { + + /** CopyModelRequest modelId */ + modelId?: (string|null); + + /** CopyModelRequest parentModel */ + parentModel?: (string|null); + + /** CopyModelRequest parent */ + parent?: (string|null); + + /** CopyModelRequest sourceModel */ + sourceModel?: (string|null); + + /** CopyModelRequest encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + } + + /** Represents a CopyModelRequest. */ + class CopyModelRequest implements ICopyModelRequest { + + /** + * Constructs a new CopyModelRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICopyModelRequest); + + /** CopyModelRequest modelId. */ + public modelId?: (string|null); + + /** CopyModelRequest parentModel. */ + public parentModel?: (string|null); + + /** CopyModelRequest parent. */ + public parent: string; + + /** CopyModelRequest sourceModel. */ + public sourceModel: string; + + /** CopyModelRequest encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** CopyModelRequest destinationModel. */ + public destinationModel?: ("modelId"|"parentModel"); + + /** + * Creates a new CopyModelRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CopyModelRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICopyModelRequest): google.cloud.aiplatform.v1beta1.CopyModelRequest; + + /** + * Encodes the specified CopyModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelRequest.verify|verify} messages. + * @param message CopyModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICopyModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CopyModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelRequest.verify|verify} messages. + * @param message CopyModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICopyModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CopyModelRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CopyModelRequest + * @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.CopyModelRequest; + + /** + * Decodes a CopyModelRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CopyModelRequest + * @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.CopyModelRequest; + + /** + * Verifies a CopyModelRequest 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 CopyModelRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CopyModelRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CopyModelRequest; + + /** + * Creates a plain object from a CopyModelRequest message. Also converts values to other types if specified. + * @param message CopyModelRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CopyModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CopyModelRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CopyModelRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CopyModelOperationMetadata. */ + interface ICopyModelOperationMetadata { + + /** CopyModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } + + /** Represents a CopyModelOperationMetadata. */ + class CopyModelOperationMetadata implements ICopyModelOperationMetadata { + + /** + * Constructs a new CopyModelOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata); + + /** CopyModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + + /** + * Creates a new CopyModelOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CopyModelOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata): google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata; + + /** + * Encodes the specified CopyModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.verify|verify} messages. + * @param message CopyModelOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CopyModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.verify|verify} messages. + * @param message CopyModelOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CopyModelOperationMetadata + * @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.CopyModelOperationMetadata; + + /** + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CopyModelOperationMetadata + * @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.CopyModelOperationMetadata; + + /** + * Verifies a CopyModelOperationMetadata 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 CopyModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CopyModelOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata; + + /** + * Creates a plain object from a CopyModelOperationMetadata message. Also converts values to other types if specified. + * @param message CopyModelOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CopyModelOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CopyModelOperationMetadata + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a CopyModelResponse. */ + interface ICopyModelResponse { + + /** CopyModelResponse model */ + model?: (string|null); + + /** CopyModelResponse modelVersionId */ + modelVersionId?: (string|null); + } + + /** Represents a CopyModelResponse. */ + class CopyModelResponse implements ICopyModelResponse { + + /** + * Constructs a new CopyModelResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICopyModelResponse); + + /** CopyModelResponse model. */ + public model: string; + + /** CopyModelResponse modelVersionId. */ + public modelVersionId: string; + + /** + * Creates a new CopyModelResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns CopyModelResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICopyModelResponse): google.cloud.aiplatform.v1beta1.CopyModelResponse; + + /** + * Encodes the specified CopyModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelResponse.verify|verify} messages. + * @param message CopyModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICopyModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CopyModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelResponse.verify|verify} messages. + * @param message CopyModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICopyModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CopyModelResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CopyModelResponse + * @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.CopyModelResponse; + + /** + * Decodes a CopyModelResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CopyModelResponse + * @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.CopyModelResponse; + + /** + * Verifies a CopyModelResponse 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 CopyModelResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CopyModelResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CopyModelResponse; + + /** + * Creates a plain object from a CopyModelResponse message. Also converts values to other types if specified. + * @param message CopyModelResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CopyModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CopyModelResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CopyModelResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an ImportModelEvaluationRequest. */ interface IImportModelEvaluationRequest { @@ -123113,6 +129019,9 @@ export namespace google { /** CustomJobDetail job */ job?: (string|null); + + /** CustomJobDetail failedJobs */ + failedJobs?: (string[]|null); } /** Represents a CustomJobDetail. */ @@ -123127,6 +129036,9 @@ export namespace google { /** CustomJobDetail job. */ public job: string; + /** CustomJobDetail failedJobs. */ + public failedJobs: string[]; + /** * Creates a new CustomJobDetail instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-aiplatform/protos/protos.js b/packages/google-cloud-aiplatform/protos/protos.js index 9abbc2b61d4..9415e413fd4 100644 --- a/packages/google-cloud-aiplatform/protos/protos.js +++ b/packages/google-cloud-aiplatform/protos/protos.js @@ -15442,6 +15442,7 @@ * @property {Object.|null} [labels] Model labels * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] Model encryptionSpec * @property {google.cloud.aiplatform.v1.IModelSourceInfo|null} [modelSourceInfo] Model modelSourceInfo + * @property {google.cloud.aiplatform.v1.Model.IOriginalModelInfo|null} [originalModelInfo] Model originalModelInfo * @property {string|null} [metadataArtifact] Model metadataArtifact */ @@ -15675,6 +15676,14 @@ */ Model.prototype.modelSourceInfo = null; + /** + * Model originalModelInfo. + * @member {google.cloud.aiplatform.v1.Model.IOriginalModelInfo|null|undefined} originalModelInfo + * @memberof google.cloud.aiplatform.v1.Model + * @instance + */ + Model.prototype.originalModelInfo = null; + /** * Model metadataArtifact. * @member {string} metadataArtifact @@ -15767,6 +15776,8 @@ $root.google.protobuf.Timestamp.encode(message.versionCreateTime, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); if (message.versionUpdateTime != null && Object.hasOwnProperty.call(message, "versionUpdateTime")) $root.google.protobuf.Timestamp.encode(message.versionUpdateTime, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); + if (message.originalModelInfo != null && Object.hasOwnProperty.call(message, "originalModelInfo")) + $root.google.cloud.aiplatform.v1.Model.OriginalModelInfo.encode(message.originalModelInfo, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); if (message.modelSourceInfo != null && Object.hasOwnProperty.call(message, "modelSourceInfo")) $root.google.cloud.aiplatform.v1.ModelSourceInfo.encode(message.modelSourceInfo, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim(); if (message.metadataArtifact != null && Object.hasOwnProperty.call(message, "metadataArtifact")) @@ -15945,6 +15956,10 @@ message.modelSourceInfo = $root.google.cloud.aiplatform.v1.ModelSourceInfo.decode(reader, reader.uint32()); break; } + case 34: { + message.originalModelInfo = $root.google.cloud.aiplatform.v1.Model.OriginalModelInfo.decode(reader, reader.uint32()); + break; + } case 44: { message.metadataArtifact = reader.string(); break; @@ -16122,6 +16137,11 @@ if (error) return "modelSourceInfo." + error; } + if (message.originalModelInfo != null && message.hasOwnProperty("originalModelInfo")) { + var error = $root.google.cloud.aiplatform.v1.Model.OriginalModelInfo.verify(message.originalModelInfo); + if (error) + return "originalModelInfo." + error; + } if (message.metadataArtifact != null && message.hasOwnProperty("metadataArtifact")) if (!$util.isString(message.metadataArtifact)) return "metadataArtifact: string expected"; @@ -16285,6 +16305,11 @@ throw TypeError(".google.cloud.aiplatform.v1.Model.modelSourceInfo: object expected"); message.modelSourceInfo = $root.google.cloud.aiplatform.v1.ModelSourceInfo.fromObject(object.modelSourceInfo); } + if (object.originalModelInfo != null) { + if (typeof object.originalModelInfo !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Model.originalModelInfo: object expected"); + message.originalModelInfo = $root.google.cloud.aiplatform.v1.Model.OriginalModelInfo.fromObject(object.originalModelInfo); + } if (object.metadataArtifact != null) message.metadataArtifact = String(object.metadataArtifact); return message; @@ -16332,6 +16357,7 @@ object.versionDescription = ""; object.versionCreateTime = null; object.versionUpdateTime = null; + object.originalModelInfo = null; object.modelSourceInfo = null; object.metadataArtifact = ""; } @@ -16407,6 +16433,8 @@ object.versionCreateTime = $root.google.protobuf.Timestamp.toObject(message.versionCreateTime, options); if (message.versionUpdateTime != null && message.hasOwnProperty("versionUpdateTime")) object.versionUpdateTime = $root.google.protobuf.Timestamp.toObject(message.versionUpdateTime, options); + if (message.originalModelInfo != null && message.hasOwnProperty("originalModelInfo")) + object.originalModelInfo = $root.google.cloud.aiplatform.v1.Model.OriginalModelInfo.toObject(message.originalModelInfo, options); if (message.modelSourceInfo != null && message.hasOwnProperty("modelSourceInfo")) object.modelSourceInfo = $root.google.cloud.aiplatform.v1.ModelSourceInfo.toObject(message.modelSourceInfo, options); if (message.metadataArtifact != null && message.hasOwnProperty("metadataArtifact")) @@ -16731,6 +16759,209 @@ return ExportFormat; })(); + Model.OriginalModelInfo = (function() { + + /** + * Properties of an OriginalModelInfo. + * @memberof google.cloud.aiplatform.v1.Model + * @interface IOriginalModelInfo + * @property {string|null} [model] OriginalModelInfo model + */ + + /** + * Constructs a new OriginalModelInfo. + * @memberof google.cloud.aiplatform.v1.Model + * @classdesc Represents an OriginalModelInfo. + * @implements IOriginalModelInfo + * @constructor + * @param {google.cloud.aiplatform.v1.Model.IOriginalModelInfo=} [properties] Properties to set + */ + function OriginalModelInfo(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]]; + } + + /** + * OriginalModelInfo model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @instance + */ + OriginalModelInfo.prototype.model = ""; + + /** + * Creates a new OriginalModelInfo instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @static + * @param {google.cloud.aiplatform.v1.Model.IOriginalModelInfo=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Model.OriginalModelInfo} OriginalModelInfo instance + */ + OriginalModelInfo.create = function create(properties) { + return new OriginalModelInfo(properties); + }; + + /** + * Encodes the specified OriginalModelInfo message. Does not implicitly {@link google.cloud.aiplatform.v1.Model.OriginalModelInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @static + * @param {google.cloud.aiplatform.v1.Model.IOriginalModelInfo} message OriginalModelInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OriginalModelInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + return writer; + }; + + /** + * Encodes the specified OriginalModelInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Model.OriginalModelInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @static + * @param {google.cloud.aiplatform.v1.Model.IOriginalModelInfo} message OriginalModelInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OriginalModelInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OriginalModelInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @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.Model.OriginalModelInfo} OriginalModelInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OriginalModelInfo.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.Model.OriginalModelInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.model = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OriginalModelInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Model.OriginalModelInfo} OriginalModelInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OriginalModelInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OriginalModelInfo message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OriginalModelInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + return null; + }; + + /** + * Creates an OriginalModelInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Model.OriginalModelInfo} OriginalModelInfo + */ + OriginalModelInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Model.OriginalModelInfo) + return object; + var message = new $root.google.cloud.aiplatform.v1.Model.OriginalModelInfo(); + if (object.model != null) + message.model = String(object.model); + return message; + }; + + /** + * Creates a plain object from an OriginalModelInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @static + * @param {google.cloud.aiplatform.v1.Model.OriginalModelInfo} message OriginalModelInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OriginalModelInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.model = ""; + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + return object; + }; + + /** + * Converts this OriginalModelInfo to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @instance + * @returns {Object.} JSON object + */ + OriginalModelInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OriginalModelInfo + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.Model.OriginalModelInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OriginalModelInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Model.OriginalModelInfo"; + }; + + return OriginalModelInfo; + })(); + /** * DeploymentResourcesType enum. * @name google.cloud.aiplatform.v1.Model.DeploymentResourcesType @@ -60719,6 +60950,7 @@ * @interface IMetricSpec * @property {string|null} [metricId] MetricSpec metricId * @property {google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType|null} [goal] MetricSpec goal + * @property {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig|null} [safetyConfig] MetricSpec safetyConfig */ /** @@ -60752,6 +60984,28 @@ */ MetricSpec.prototype.goal = 0; + /** + * MetricSpec safetyConfig. + * @member {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig|null|undefined} safetyConfig + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @instance + */ + MetricSpec.prototype.safetyConfig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MetricSpec _safetyConfig. + * @member {"safetyConfig"|undefined} _safetyConfig + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @instance + */ + Object.defineProperty(MetricSpec.prototype, "_safetyConfig", { + get: $util.oneOfGetter($oneOfFields = ["safetyConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new MetricSpec instance using the specified properties. * @function create @@ -60780,6 +61034,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); if (message.goal != null && Object.hasOwnProperty.call(message, "goal")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.goal); + if (message.safetyConfig != null && Object.hasOwnProperty.call(message, "safetyConfig")) + $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.encode(message.safetyConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -60822,6 +61078,10 @@ message.goal = reader.int32(); break; } + case 3: { + message.safetyConfig = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -60857,6 +61117,7 @@ MetricSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.metricId != null && message.hasOwnProperty("metricId")) if (!$util.isString(message.metricId)) return "metricId: string expected"; @@ -60869,6 +61130,14 @@ case 2: break; } + if (message.safetyConfig != null && message.hasOwnProperty("safetyConfig")) { + properties._safetyConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.verify(message.safetyConfig); + if (error) + return "safetyConfig." + error; + } + } return null; }; @@ -60906,6 +61175,11 @@ message.goal = 2; break; } + if (object.safetyConfig != null) { + if (typeof object.safetyConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.StudySpec.MetricSpec.safetyConfig: object expected"); + message.safetyConfig = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.fromObject(object.safetyConfig); + } return message; }; @@ -60930,6 +61204,11 @@ object.metricId = message.metricId; if (message.goal != null && message.hasOwnProperty("goal")) object.goal = options.enums === String ? $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType[message.goal] === undefined ? message.goal : $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType[message.goal] : message.goal; + if (message.safetyConfig != null && message.hasOwnProperty("safetyConfig")) { + object.safetyConfig = $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.toObject(message.safetyConfig, options); + if (options.oneofs) + object._safetyConfig = "safetyConfig"; + } return object; }; @@ -60959,6 +61238,251 @@ return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.MetricSpec"; }; + MetricSpec.SafetyMetricConfig = (function() { + + /** + * Properties of a SafetyMetricConfig. + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @interface ISafetyMetricConfig + * @property {number|null} [safetyThreshold] SafetyMetricConfig safetyThreshold + * @property {number|null} [desiredMinSafeTrialsFraction] SafetyMetricConfig desiredMinSafeTrialsFraction + */ + + /** + * Constructs a new SafetyMetricConfig. + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec + * @classdesc Represents a SafetyMetricConfig. + * @implements ISafetyMetricConfig + * @constructor + * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig=} [properties] Properties to set + */ + function SafetyMetricConfig(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]]; + } + + /** + * SafetyMetricConfig safetyThreshold. + * @member {number} safetyThreshold + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + */ + SafetyMetricConfig.prototype.safetyThreshold = 0; + + /** + * SafetyMetricConfig desiredMinSafeTrialsFraction. + * @member {number|null|undefined} desiredMinSafeTrialsFraction + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + */ + SafetyMetricConfig.prototype.desiredMinSafeTrialsFraction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SafetyMetricConfig _desiredMinSafeTrialsFraction. + * @member {"desiredMinSafeTrialsFraction"|undefined} _desiredMinSafeTrialsFraction + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + */ + Object.defineProperty(SafetyMetricConfig.prototype, "_desiredMinSafeTrialsFraction", { + get: $util.oneOfGetter($oneOfFields = ["desiredMinSafeTrialsFraction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SafetyMetricConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig instance + */ + SafetyMetricConfig.create = function create(properties) { + return new SafetyMetricConfig(properties); + }; + + /** + * Encodes the specified SafetyMetricConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig} message SafetyMetricConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyMetricConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.safetyThreshold != null && Object.hasOwnProperty.call(message, "safetyThreshold")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.safetyThreshold); + if (message.desiredMinSafeTrialsFraction != null && Object.hasOwnProperty.call(message, "desiredMinSafeTrialsFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.desiredMinSafeTrialsFraction); + return writer; + }; + + /** + * Encodes the specified SafetyMetricConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.ISafetyMetricConfig} message SafetyMetricConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyMetricConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @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.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyMetricConfig.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.StudySpec.MetricSpec.SafetyMetricConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.safetyThreshold = reader.double(); + break; + } + case 2: { + message.desiredMinSafeTrialsFraction = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyMetricConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SafetyMetricConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SafetyMetricConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.safetyThreshold != null && message.hasOwnProperty("safetyThreshold")) + if (typeof message.safetyThreshold !== "number") + return "safetyThreshold: number expected"; + if (message.desiredMinSafeTrialsFraction != null && message.hasOwnProperty("desiredMinSafeTrialsFraction")) { + properties._desiredMinSafeTrialsFraction = 1; + if (typeof message.desiredMinSafeTrialsFraction !== "number") + return "desiredMinSafeTrialsFraction: number expected"; + } + return null; + }; + + /** + * Creates a SafetyMetricConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig + */ + SafetyMetricConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig(); + if (object.safetyThreshold != null) + message.safetyThreshold = Number(object.safetyThreshold); + if (object.desiredMinSafeTrialsFraction != null) + message.desiredMinSafeTrialsFraction = Number(object.desiredMinSafeTrialsFraction); + return message; + }; + + /** + * Creates a plain object from a SafetyMetricConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig} message SafetyMetricConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SafetyMetricConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.safetyThreshold = 0; + if (message.safetyThreshold != null && message.hasOwnProperty("safetyThreshold")) + object.safetyThreshold = options.json && !isFinite(message.safetyThreshold) ? String(message.safetyThreshold) : message.safetyThreshold; + if (message.desiredMinSafeTrialsFraction != null && message.hasOwnProperty("desiredMinSafeTrialsFraction")) { + object.desiredMinSafeTrialsFraction = options.json && !isFinite(message.desiredMinSafeTrialsFraction) ? String(message.desiredMinSafeTrialsFraction) : message.desiredMinSafeTrialsFraction; + if (options.oneofs) + object._desiredMinSafeTrialsFraction = "desiredMinSafeTrialsFraction"; + } + return object; + }; + + /** + * Converts this SafetyMetricConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + * @returns {Object.} JSON object + */ + SafetyMetricConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SafetyMetricConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SafetyMetricConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StudySpec.MetricSpec.SafetyMetricConfig"; + }; + + return SafetyMetricConfig; + })(); + /** * GoalType enum. * @name google.cloud.aiplatform.v1.StudySpec.MetricSpec.GoalType @@ -66563,6 +67087,7 @@ * @property {google.protobuf.ITimestamp|null} [updateTime] IndexEndpoint updateTime * @property {string|null} [network] IndexEndpoint network * @property {boolean|null} [enablePrivateServiceConnect] IndexEndpoint enablePrivateServiceConnect + * @property {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig|null} [privateServiceConnectConfig] IndexEndpoint privateServiceConnectConfig */ /** @@ -66662,6 +67187,14 @@ */ IndexEndpoint.prototype.enablePrivateServiceConnect = false; + /** + * IndexEndpoint privateServiceConnectConfig. + * @member {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig|null|undefined} privateServiceConnectConfig + * @memberof google.cloud.aiplatform.v1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.privateServiceConnectConfig = null; + /** * Creates a new IndexEndpoint instance using the specified properties. * @function create @@ -66708,6 +67241,8 @@ writer.uint32(/* id 9, wireType 2 =*/74).string(message.network); if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.enablePrivateServiceConnect); + if (message.privateServiceConnectConfig != null && Object.hasOwnProperty.call(message, "privateServiceConnectConfig")) + $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.encode(message.privateServiceConnectConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; @@ -66803,6 +67338,10 @@ message.enablePrivateServiceConnect = reader.bool(); break; } + case 12: { + message.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -66883,6 +67422,11 @@ if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) if (typeof message.enablePrivateServiceConnect !== "boolean") return "enablePrivateServiceConnect: boolean expected"; + if (message.privateServiceConnectConfig != null && message.hasOwnProperty("privateServiceConnectConfig")) { + var error = $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.verify(message.privateServiceConnectConfig); + if (error) + return "privateServiceConnectConfig." + error; + } return null; }; @@ -66937,6 +67481,11 @@ message.network = String(object.network); if (object.enablePrivateServiceConnect != null) message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); + if (object.privateServiceConnectConfig != null) { + if (typeof object.privateServiceConnectConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.IndexEndpoint.privateServiceConnectConfig: object expected"); + message.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.fromObject(object.privateServiceConnectConfig); + } return message; }; @@ -66966,6 +67515,7 @@ object.updateTime = null; object.network = ""; object.enablePrivateServiceConnect = false; + object.privateServiceConnectConfig = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -66994,6 +67544,8 @@ object.network = message.network; if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; + if (message.privateServiceConnectConfig != null && message.hasOwnProperty("privateServiceConnectConfig")) + object.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig.toObject(message.privateServiceConnectConfig, options); return object; }; @@ -68224,6 +68776,249 @@ return IndexPrivateEndpoints; })(); + v1.PrivateServiceConnectConfig = (function() { + + /** + * Properties of a PrivateServiceConnectConfig. + * @memberof google.cloud.aiplatform.v1 + * @interface IPrivateServiceConnectConfig + * @property {boolean|null} [enablePrivateServiceConnect] PrivateServiceConnectConfig enablePrivateServiceConnect + * @property {Array.|null} [projectAllowlist] PrivateServiceConnectConfig projectAllowlist + */ + + /** + * Constructs a new PrivateServiceConnectConfig. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PrivateServiceConnectConfig. + * @implements IPrivateServiceConnectConfig + * @constructor + * @param {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig=} [properties] Properties to set + */ + function PrivateServiceConnectConfig(properties) { + this.projectAllowlist = []; + 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]]; + } + + /** + * PrivateServiceConnectConfig enablePrivateServiceConnect. + * @member {boolean} enablePrivateServiceConnect + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @instance + */ + PrivateServiceConnectConfig.prototype.enablePrivateServiceConnect = false; + + /** + * PrivateServiceConnectConfig projectAllowlist. + * @member {Array.} projectAllowlist + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @instance + */ + PrivateServiceConnectConfig.prototype.projectAllowlist = $util.emptyArray; + + /** + * Creates a new PrivateServiceConnectConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} PrivateServiceConnectConfig instance + */ + PrivateServiceConnectConfig.create = function create(properties) { + return new PrivateServiceConnectConfig(properties); + }; + + /** + * Encodes the specified PrivateServiceConnectConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PrivateServiceConnectConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig} message PrivateServiceConnectConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateServiceConnectConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateServiceConnect); + if (message.projectAllowlist != null && message.projectAllowlist.length) + for (var i = 0; i < message.projectAllowlist.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.projectAllowlist[i]); + return writer; + }; + + /** + * Encodes the specified PrivateServiceConnectConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PrivateServiceConnectConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1.IPrivateServiceConnectConfig} message PrivateServiceConnectConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateServiceConnectConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @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.PrivateServiceConnectConfig} PrivateServiceConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateServiceConnectConfig.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.PrivateServiceConnectConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enablePrivateServiceConnect = reader.bool(); + break; + } + case 2: { + if (!(message.projectAllowlist && message.projectAllowlist.length)) + message.projectAllowlist = []; + message.projectAllowlist.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} PrivateServiceConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateServiceConnectConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PrivateServiceConnectConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PrivateServiceConnectConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + if (typeof message.enablePrivateServiceConnect !== "boolean") + return "enablePrivateServiceConnect: boolean expected"; + if (message.projectAllowlist != null && message.hasOwnProperty("projectAllowlist")) { + if (!Array.isArray(message.projectAllowlist)) + return "projectAllowlist: array expected"; + for (var i = 0; i < message.projectAllowlist.length; ++i) + if (!$util.isString(message.projectAllowlist[i])) + return "projectAllowlist: string[] expected"; + } + return null; + }; + + /** + * Creates a PrivateServiceConnectConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} PrivateServiceConnectConfig + */ + PrivateServiceConnectConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.PrivateServiceConnectConfig(); + if (object.enablePrivateServiceConnect != null) + message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); + if (object.projectAllowlist) { + if (!Array.isArray(object.projectAllowlist)) + throw TypeError(".google.cloud.aiplatform.v1.PrivateServiceConnectConfig.projectAllowlist: array expected"); + message.projectAllowlist = []; + for (var i = 0; i < object.projectAllowlist.length; ++i) + message.projectAllowlist[i] = String(object.projectAllowlist[i]); + } + return message; + }; + + /** + * Creates a plain object from a PrivateServiceConnectConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1.PrivateServiceConnectConfig} message PrivateServiceConnectConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PrivateServiceConnectConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.projectAllowlist = []; + if (options.defaults) + object.enablePrivateServiceConnect = false; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; + if (message.projectAllowlist && message.projectAllowlist.length) { + object.projectAllowlist = []; + for (var j = 0; j < message.projectAllowlist.length; ++j) + object.projectAllowlist[j] = message.projectAllowlist[j]; + } + return object; + }; + + /** + * Converts this PrivateServiceConnectConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @instance + * @returns {Object.} JSON object + */ + PrivateServiceConnectConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PrivateServiceConnectConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PrivateServiceConnectConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PrivateServiceConnectConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PrivateServiceConnectConfig"; + }; + + return PrivateServiceConnectConfig; + })(); + v1.IndexEndpointService = (function() { /** @@ -76597,6 +77392,237 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createNasJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef CreateNasJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.NasJob} [response] NasJob + */ + + /** + * Calls CreateNasJob. + * @function createNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest} request CreateNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.CreateNasJobCallback} callback Node-style callback called with the error, if any, and NasJob + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.createNasJob = function createNasJob(request, callback) { + return this.rpcCall(createNasJob, $root.google.cloud.aiplatform.v1.CreateNasJobRequest, $root.google.cloud.aiplatform.v1.NasJob, request, callback); + }, "name", { value: "CreateNasJob" }); + + /** + * Calls CreateNasJob. + * @function createNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest} request CreateNasJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getNasJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef GetNasJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.NasJob} [response] NasJob + */ + + /** + * Calls GetNasJob. + * @function getNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest} request GetNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.GetNasJobCallback} callback Node-style callback called with the error, if any, and NasJob + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.getNasJob = function getNasJob(request, callback) { + return this.rpcCall(getNasJob, $root.google.cloud.aiplatform.v1.GetNasJobRequest, $root.google.cloud.aiplatform.v1.NasJob, request, callback); + }, "name", { value: "GetNasJob" }); + + /** + * Calls GetNasJob. + * @function getNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest} request GetNasJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listNasJobs}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef ListNasJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListNasJobsResponse} [response] ListNasJobsResponse + */ + + /** + * Calls ListNasJobs. + * @function listNasJobs + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest} request ListNasJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.ListNasJobsCallback} callback Node-style callback called with the error, if any, and ListNasJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.listNasJobs = function listNasJobs(request, callback) { + return this.rpcCall(listNasJobs, $root.google.cloud.aiplatform.v1.ListNasJobsRequest, $root.google.cloud.aiplatform.v1.ListNasJobsResponse, request, callback); + }, "name", { value: "ListNasJobs" }); + + /** + * Calls ListNasJobs. + * @function listNasJobs + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest} request ListNasJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|deleteNasJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef DeleteNasJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteNasJob. + * @function deleteNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest} request DeleteNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.DeleteNasJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.deleteNasJob = function deleteNasJob(request, callback) { + return this.rpcCall(deleteNasJob, $root.google.cloud.aiplatform.v1.DeleteNasJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteNasJob" }); + + /** + * Calls DeleteNasJob. + * @function deleteNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest} request DeleteNasJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|cancelNasJob}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef CancelNasJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls CancelNasJob. + * @function cancelNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest} request CancelNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.CancelNasJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.cancelNasJob = function cancelNasJob(request, callback) { + return this.rpcCall(cancelNasJob, $root.google.cloud.aiplatform.v1.CancelNasJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelNasJob" }); + + /** + * Calls CancelNasJob. + * @function cancelNasJob + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest} request CancelNasJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|getNasTrialDetail}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef GetNasTrialDetailCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.NasTrialDetail} [response] NasTrialDetail + */ + + /** + * Calls GetNasTrialDetail. + * @function getNasTrialDetail + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest} request GetNasTrialDetailRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.GetNasTrialDetailCallback} callback Node-style callback called with the error, if any, and NasTrialDetail + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.getNasTrialDetail = function getNasTrialDetail(request, callback) { + return this.rpcCall(getNasTrialDetail, $root.google.cloud.aiplatform.v1.GetNasTrialDetailRequest, $root.google.cloud.aiplatform.v1.NasTrialDetail, request, callback); + }, "name", { value: "GetNasTrialDetail" }); + + /** + * Calls GetNasTrialDetail. + * @function getNasTrialDetail + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest} request GetNasTrialDetailRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.JobService|listNasTrialDetails}. + * @memberof google.cloud.aiplatform.v1.JobService + * @typedef ListNasTrialDetailsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} [response] ListNasTrialDetailsResponse + */ + + /** + * Calls ListNasTrialDetails. + * @function listNasTrialDetails + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest} request ListNasTrialDetailsRequest message or plain object + * @param {google.cloud.aiplatform.v1.JobService.ListNasTrialDetailsCallback} callback Node-style callback called with the error, if any, and ListNasTrialDetailsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.listNasTrialDetails = function listNasTrialDetails(request, callback) { + return this.rpcCall(listNasTrialDetails, $root.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest, $root.google.cloud.aiplatform.v1.ListNasTrialDetailsResponse, request, callback); + }, "name", { value: "ListNasTrialDetails" }); + + /** + * Calls ListNasTrialDetails. + * @function listNasTrialDetails + * @memberof google.cloud.aiplatform.v1.JobService + * @instance + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest} request ListNasTrialDetailsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1.JobService|createBatchPredictionJob}. * @memberof google.cloud.aiplatform.v1.JobService @@ -81222,25 +82248,25 @@ return CancelHyperparameterTuningJobRequest; })(); - v1.CreateBatchPredictionJobRequest = (function() { + v1.CreateNasJobRequest = (function() { /** - * Properties of a CreateBatchPredictionJobRequest. + * Properties of a CreateNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateBatchPredictionJobRequest - * @property {string|null} [parent] CreateBatchPredictionJobRequest parent - * @property {google.cloud.aiplatform.v1.IBatchPredictionJob|null} [batchPredictionJob] CreateBatchPredictionJobRequest batchPredictionJob + * @interface ICreateNasJobRequest + * @property {string|null} [parent] CreateNasJobRequest parent + * @property {google.cloud.aiplatform.v1.INasJob|null} [nasJob] CreateNasJobRequest nasJob */ /** - * Constructs a new CreateBatchPredictionJobRequest. + * Constructs a new CreateNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateBatchPredictionJobRequest. - * @implements ICreateBatchPredictionJobRequest + * @classdesc Represents a CreateNasJobRequest. + * @implements ICreateNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest=} [properties] Properties to set */ - function CreateBatchPredictionJobRequest(properties) { + function CreateNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81248,80 +82274,80 @@ } /** - * CreateBatchPredictionJobRequest parent. + * CreateNasJobRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @instance */ - CreateBatchPredictionJobRequest.prototype.parent = ""; + CreateNasJobRequest.prototype.parent = ""; /** - * CreateBatchPredictionJobRequest batchPredictionJob. - * @member {google.cloud.aiplatform.v1.IBatchPredictionJob|null|undefined} batchPredictionJob - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * CreateNasJobRequest nasJob. + * @member {google.cloud.aiplatform.v1.INasJob|null|undefined} nasJob + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @instance */ - CreateBatchPredictionJobRequest.prototype.batchPredictionJob = null; + CreateNasJobRequest.prototype.nasJob = null; /** - * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. + * Creates a new CreateNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateNasJobRequest} CreateNasJobRequest instance */ - CreateBatchPredictionJobRequest.create = function create(properties) { - return new CreateBatchPredictionJobRequest(properties); + CreateNasJobRequest.create = function create(properties) { + return new CreateNasJobRequest(properties); }; /** - * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified CreateNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest} message CreateNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateBatchPredictionJobRequest.encode = function encode(message, writer) { + CreateNasJobRequest.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.batchPredictionJob != null && Object.hasOwnProperty.call(message, "batchPredictionJob")) - $root.google.cloud.aiplatform.v1.BatchPredictionJob.encode(message.batchPredictionJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nasJob != null && Object.hasOwnProperty.call(message, "nasJob")) + $root.google.cloud.aiplatform.v1.NasJob.encode(message.nasJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified CreateNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateNasJobRequest} message CreateNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a CreateNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @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.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.CreateNasJobRequest} CreateNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateBatchPredictionJobRequest.decode = function decode(reader, length) { + CreateNasJobRequest.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.CreateBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -81330,7 +82356,7 @@ break; } case 2: { - message.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.decode(reader, reader.uint32()); + message.nasJob = $root.google.cloud.aiplatform.v1.NasJob.decode(reader, reader.uint32()); break; } default: @@ -81342,136 +82368,136 @@ }; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.CreateNasJobRequest} CreateNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateBatchPredictionJobRequest message. + * Verifies a CreateNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateBatchPredictionJobRequest.verify = function verify(message) { + CreateNasJobRequest.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.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) { - var error = $root.google.cloud.aiplatform.v1.BatchPredictionJob.verify(message.batchPredictionJob); + if (message.nasJob != null && message.hasOwnProperty("nasJob")) { + var error = $root.google.cloud.aiplatform.v1.NasJob.verify(message.nasJob); if (error) - return "batchPredictionJob." + error; + return "nasJob." + error; } return null; }; /** - * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.CreateNasJobRequest} CreateNasJobRequest */ - CreateBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest) + CreateNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.CreateNasJobRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.batchPredictionJob != null) { - if (typeof object.batchPredictionJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.batchPredictionJob: object expected"); - message.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.fromObject(object.batchPredictionJob); + if (object.nasJob != null) { + if (typeof object.nasJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateNasJobRequest.nasJob: object expected"); + message.nasJob = $root.google.cloud.aiplatform.v1.NasJob.fromObject(object.nasJob); } return message; }; /** - * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1.CreateNasJobRequest} message CreateNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateBatchPredictionJobRequest.toObject = function toObject(message, options) { + CreateNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.batchPredictionJob = null; + object.nasJob = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) - object.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.toObject(message.batchPredictionJob, options); + if (message.nasJob != null && message.hasOwnProperty("nasJob")) + object.nasJob = $root.google.cloud.aiplatform.v1.NasJob.toObject(message.nasJob, options); return object; }; /** - * Converts this CreateBatchPredictionJobRequest to JSON. + * Converts this CreateNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @instance * @returns {Object.} JSON object */ - CreateBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + CreateNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateBatchPredictionJobRequest + * Gets the default type url for CreateNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CreateNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateNasJobRequest"; }; - return CreateBatchPredictionJobRequest; + return CreateNasJobRequest; })(); - v1.GetBatchPredictionJobRequest = (function() { + v1.GetNasJobRequest = (function() { /** - * Properties of a GetBatchPredictionJobRequest. + * Properties of a GetNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetBatchPredictionJobRequest - * @property {string|null} [name] GetBatchPredictionJobRequest name + * @interface IGetNasJobRequest + * @property {string|null} [name] GetNasJobRequest name */ /** - * Constructs a new GetBatchPredictionJobRequest. + * Constructs a new GetNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetBatchPredictionJobRequest. - * @implements IGetBatchPredictionJobRequest + * @classdesc Represents a GetNasJobRequest. + * @implements IGetNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest=} [properties] Properties to set */ - function GetBatchPredictionJobRequest(properties) { + function GetNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81479,35 +82505,35 @@ } /** - * GetBatchPredictionJobRequest name. + * GetNasJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @instance */ - GetBatchPredictionJobRequest.prototype.name = ""; + GetNasJobRequest.prototype.name = ""; /** - * Creates a new GetBatchPredictionJobRequest instance using the specified properties. + * Creates a new GetNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetNasJobRequest} GetNasJobRequest instance */ - GetBatchPredictionJobRequest.create = function create(properties) { - return new GetBatchPredictionJobRequest(properties); + GetNasJobRequest.create = function create(properties) { + return new GetNasJobRequest(properties); }; /** - * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified GetNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest} message GetNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBatchPredictionJobRequest.encode = function encode(message, writer) { + GetNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -81516,33 +82542,33 @@ }; /** - * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified GetNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetNasJobRequest} message GetNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a GetNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @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.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.GetNasJobRequest} GetNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBatchPredictionJobRequest.decode = function decode(reader, length) { + GetNasJobRequest.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.GetBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -81559,30 +82585,30 @@ }; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.GetNasJobRequest} GetNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetBatchPredictionJobRequest message. + * Verifies a GetNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetBatchPredictionJobRequest.verify = function verify(message) { + GetNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -81592,32 +82618,32 @@ }; /** - * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.GetNasJobRequest} GetNasJobRequest */ - GetBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest) + GetNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetNasJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} message GetBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1.GetNasJobRequest} message GetNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBatchPredictionJobRequest.toObject = function toObject(message, options) { + GetNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -81629,56 +82655,56 @@ }; /** - * Converts this GetBatchPredictionJobRequest to JSON. + * Converts this GetNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @instance * @returns {Object.} JSON object */ - GetBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + GetNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetBatchPredictionJobRequest + * Gets the default type url for GetNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetNasJobRequest"; }; - return GetBatchPredictionJobRequest; + return GetNasJobRequest; })(); - v1.ListBatchPredictionJobsRequest = (function() { + v1.ListNasJobsRequest = (function() { /** - * Properties of a ListBatchPredictionJobsRequest. + * Properties of a ListNasJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListBatchPredictionJobsRequest - * @property {string|null} [parent] ListBatchPredictionJobsRequest parent - * @property {string|null} [filter] ListBatchPredictionJobsRequest filter - * @property {number|null} [pageSize] ListBatchPredictionJobsRequest pageSize - * @property {string|null} [pageToken] ListBatchPredictionJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListBatchPredictionJobsRequest readMask + * @interface IListNasJobsRequest + * @property {string|null} [parent] ListNasJobsRequest parent + * @property {string|null} [filter] ListNasJobsRequest filter + * @property {number|null} [pageSize] ListNasJobsRequest pageSize + * @property {string|null} [pageToken] ListNasJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListNasJobsRequest readMask */ /** - * Constructs a new ListBatchPredictionJobsRequest. + * Constructs a new ListNasJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListBatchPredictionJobsRequest. - * @implements IListBatchPredictionJobsRequest + * @classdesc Represents a ListNasJobsRequest. + * @implements IListNasJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest=} [properties] Properties to set */ - function ListBatchPredictionJobsRequest(properties) { + function ListNasJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81686,67 +82712,67 @@ } /** - * ListBatchPredictionJobsRequest parent. + * ListNasJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.parent = ""; + ListNasJobsRequest.prototype.parent = ""; /** - * ListBatchPredictionJobsRequest filter. + * ListNasJobsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.filter = ""; + ListNasJobsRequest.prototype.filter = ""; /** - * ListBatchPredictionJobsRequest pageSize. + * ListNasJobsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.pageSize = 0; + ListNasJobsRequest.prototype.pageSize = 0; /** - * ListBatchPredictionJobsRequest pageToken. + * ListNasJobsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.pageToken = ""; + ListNasJobsRequest.prototype.pageToken = ""; /** - * ListBatchPredictionJobsRequest readMask. + * ListNasJobsRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.readMask = null; + ListNasJobsRequest.prototype.readMask = null; /** - * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. + * Creates a new ListNasJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest instance + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListNasJobsRequest} ListNasJobsRequest instance */ - ListBatchPredictionJobsRequest.create = function create(properties) { - return new ListBatchPredictionJobsRequest(properties); + ListNasJobsRequest.create = function create(properties) { + return new ListNasJobsRequest(properties); }; /** - * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. + * Encodes the specified ListNasJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest} message ListNasJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsRequest.encode = function encode(message, writer) { + ListNasJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -81763,33 +82789,33 @@ }; /** - * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. + * Encodes the specified ListNasJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasJobsRequest} message ListNasJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNasJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. + * Decodes a ListNasJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @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.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1.ListNasJobsRequest} ListNasJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsRequest.decode = function decode(reader, length) { + ListNasJobsRequest.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.ListBatchPredictionJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListNasJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -81822,30 +82848,30 @@ }; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1.ListNasJobsRequest} ListNasJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ListNasJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListBatchPredictionJobsRequest message. + * Verifies a ListNasJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListBatchPredictionJobsRequest.verify = function verify(message) { + ListNasJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -81869,17 +82895,17 @@ }; /** - * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1.ListNasJobsRequest} ListNasJobsRequest */ - ListBatchPredictionJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest) + ListNasJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListNasJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1.ListNasJobsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -81890,22 +82916,22 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.ListNasJobsRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNasJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest + * @param {google.cloud.aiplatform.v1.ListNasJobsRequest} message ListNasJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListBatchPredictionJobsRequest.toObject = function toObject(message, options) { + ListNasJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -81930,54 +82956,54 @@ }; /** - * Converts this ListBatchPredictionJobsRequest to JSON. + * Converts this ListNasJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @instance * @returns {Object.} JSON object */ - ListBatchPredictionJobsRequest.prototype.toJSON = function toJSON() { + ListNasJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListBatchPredictionJobsRequest + * Gets the default type url for ListNasJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1.ListNasJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListBatchPredictionJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListNasJobsRequest"; }; - return ListBatchPredictionJobsRequest; + return ListNasJobsRequest; })(); - v1.ListBatchPredictionJobsResponse = (function() { + v1.ListNasJobsResponse = (function() { /** - * Properties of a ListBatchPredictionJobsResponse. + * Properties of a ListNasJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IListBatchPredictionJobsResponse - * @property {Array.|null} [batchPredictionJobs] ListBatchPredictionJobsResponse batchPredictionJobs - * @property {string|null} [nextPageToken] ListBatchPredictionJobsResponse nextPageToken + * @interface IListNasJobsResponse + * @property {Array.|null} [nasJobs] ListNasJobsResponse nasJobs + * @property {string|null} [nextPageToken] ListNasJobsResponse nextPageToken */ /** - * Constructs a new ListBatchPredictionJobsResponse. + * Constructs a new ListNasJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListBatchPredictionJobsResponse. - * @implements IListBatchPredictionJobsResponse + * @classdesc Represents a ListNasJobsResponse. + * @implements IListNasJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListNasJobsResponse=} [properties] Properties to set */ - function ListBatchPredictionJobsResponse(properties) { - this.batchPredictionJobs = []; + function ListNasJobsResponse(properties) { + this.nasJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -81985,88 +83011,88 @@ } /** - * ListBatchPredictionJobsResponse batchPredictionJobs. - * @member {Array.} batchPredictionJobs - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * ListNasJobsResponse nasJobs. + * @member {Array.} nasJobs + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @instance */ - ListBatchPredictionJobsResponse.prototype.batchPredictionJobs = $util.emptyArray; + ListNasJobsResponse.prototype.nasJobs = $util.emptyArray; /** - * ListBatchPredictionJobsResponse nextPageToken. + * ListNasJobsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @instance */ - ListBatchPredictionJobsResponse.prototype.nextPageToken = ""; + ListNasJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. + * Creates a new ListNasJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse instance + * @param {google.cloud.aiplatform.v1.IListNasJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListNasJobsResponse} ListNasJobsResponse instance */ - ListBatchPredictionJobsResponse.create = function create(properties) { - return new ListBatchPredictionJobsResponse(properties); + ListNasJobsResponse.create = function create(properties) { + return new ListNasJobsResponse(properties); }; /** - * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. + * Encodes the specified ListNasJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasJobsResponse} message ListNasJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsResponse.encode = function encode(message, writer) { + ListNasJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.batchPredictionJobs != null && message.batchPredictionJobs.length) - for (var i = 0; i < message.batchPredictionJobs.length; ++i) - $root.google.cloud.aiplatform.v1.BatchPredictionJob.encode(message.batchPredictionJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nasJobs != null && message.nasJobs.length) + for (var i = 0; i < message.nasJobs.length; ++i) + $root.google.cloud.aiplatform.v1.NasJob.encode(message.nasJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. + * Encodes the specified ListNasJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasJobsResponse} message ListNasJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListNasJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. + * Decodes a ListNasJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @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.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1.ListNasJobsResponse} ListNasJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsResponse.decode = function decode(reader, length) { + ListNasJobsResponse.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.ListBatchPredictionJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListNasJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.batchPredictionJobs && message.batchPredictionJobs.length)) - message.batchPredictionJobs = []; - message.batchPredictionJobs.push($root.google.cloud.aiplatform.v1.BatchPredictionJob.decode(reader, reader.uint32())); + if (!(message.nasJobs && message.nasJobs.length)) + message.nasJobs = []; + message.nasJobs.push($root.google.cloud.aiplatform.v1.NasJob.decode(reader, reader.uint32())); break; } case 2: { @@ -82082,39 +83108,39 @@ }; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1.ListNasJobsResponse} ListNasJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsResponse.decodeDelimited = function decodeDelimited(reader) { + ListNasJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListBatchPredictionJobsResponse message. + * Verifies a ListNasJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListBatchPredictionJobsResponse.verify = function verify(message) { + ListNasJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.batchPredictionJobs != null && message.hasOwnProperty("batchPredictionJobs")) { - if (!Array.isArray(message.batchPredictionJobs)) - return "batchPredictionJobs: array expected"; - for (var i = 0; i < message.batchPredictionJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.BatchPredictionJob.verify(message.batchPredictionJobs[i]); + if (message.nasJobs != null && message.hasOwnProperty("nasJobs")) { + if (!Array.isArray(message.nasJobs)) + return "nasJobs: array expected"; + for (var i = 0; i < message.nasJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.NasJob.verify(message.nasJobs[i]); if (error) - return "batchPredictionJobs." + error; + return "nasJobs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -82124,25 +83150,25 @@ }; /** - * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1.ListNasJobsResponse} ListNasJobsResponse */ - ListBatchPredictionJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse) + ListNasJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListNasJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse(); - if (object.batchPredictionJobs) { - if (!Array.isArray(object.batchPredictionJobs)) - throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.batchPredictionJobs: array expected"); - message.batchPredictionJobs = []; - for (var i = 0; i < object.batchPredictionJobs.length; ++i) { - if (typeof object.batchPredictionJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.batchPredictionJobs: object expected"); - message.batchPredictionJobs[i] = $root.google.cloud.aiplatform.v1.BatchPredictionJob.fromObject(object.batchPredictionJobs[i]); + var message = new $root.google.cloud.aiplatform.v1.ListNasJobsResponse(); + if (object.nasJobs) { + if (!Array.isArray(object.nasJobs)) + throw TypeError(".google.cloud.aiplatform.v1.ListNasJobsResponse.nasJobs: array expected"); + message.nasJobs = []; + for (var i = 0; i < object.nasJobs.length; ++i) { + if (typeof object.nasJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListNasJobsResponse.nasJobs: object expected"); + message.nasJobs[i] = $root.google.cloud.aiplatform.v1.NasJob.fromObject(object.nasJobs[i]); } } if (object.nextPageToken != null) @@ -82151,26 +83177,26 @@ }; /** - * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListNasJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse + * @param {google.cloud.aiplatform.v1.ListNasJobsResponse} message ListNasJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListBatchPredictionJobsResponse.toObject = function toObject(message, options) { + ListNasJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.batchPredictionJobs = []; + object.nasJobs = []; if (options.defaults) object.nextPageToken = ""; - if (message.batchPredictionJobs && message.batchPredictionJobs.length) { - object.batchPredictionJobs = []; - for (var j = 0; j < message.batchPredictionJobs.length; ++j) - object.batchPredictionJobs[j] = $root.google.cloud.aiplatform.v1.BatchPredictionJob.toObject(message.batchPredictionJobs[j], options); + if (message.nasJobs && message.nasJobs.length) { + object.nasJobs = []; + for (var j = 0; j < message.nasJobs.length; ++j) + object.nasJobs[j] = $root.google.cloud.aiplatform.v1.NasJob.toObject(message.nasJobs[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -82178,52 +83204,52 @@ }; /** - * Converts this ListBatchPredictionJobsResponse to JSON. + * Converts this ListNasJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @instance * @returns {Object.} JSON object */ - ListBatchPredictionJobsResponse.prototype.toJSON = function toJSON() { + ListNasJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListBatchPredictionJobsResponse + * Gets the default type url for ListNasJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1.ListNasJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListBatchPredictionJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListNasJobsResponse"; }; - return ListBatchPredictionJobsResponse; + return ListNasJobsResponse; })(); - v1.DeleteBatchPredictionJobRequest = (function() { + v1.DeleteNasJobRequest = (function() { /** - * Properties of a DeleteBatchPredictionJobRequest. + * Properties of a DeleteNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteBatchPredictionJobRequest - * @property {string|null} [name] DeleteBatchPredictionJobRequest name + * @interface IDeleteNasJobRequest + * @property {string|null} [name] DeleteNasJobRequest name */ /** - * Constructs a new DeleteBatchPredictionJobRequest. + * Constructs a new DeleteNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteBatchPredictionJobRequest. - * @implements IDeleteBatchPredictionJobRequest + * @classdesc Represents a DeleteNasJobRequest. + * @implements IDeleteNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest=} [properties] Properties to set */ - function DeleteBatchPredictionJobRequest(properties) { + function DeleteNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82231,35 +83257,35 @@ } /** - * DeleteBatchPredictionJobRequest name. + * DeleteNasJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @instance */ - DeleteBatchPredictionJobRequest.prototype.name = ""; + DeleteNasJobRequest.prototype.name = ""; /** - * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. + * Creates a new DeleteNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteNasJobRequest} DeleteNasJobRequest instance */ - DeleteBatchPredictionJobRequest.create = function create(properties) { - return new DeleteBatchPredictionJobRequest(properties); + DeleteNasJobRequest.create = function create(properties) { + return new DeleteNasJobRequest(properties); }; /** - * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified DeleteNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest} message DeleteNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteBatchPredictionJobRequest.encode = function encode(message, writer) { + DeleteNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -82268,33 +83294,33 @@ }; /** - * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified DeleteNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteNasJobRequest} message DeleteNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @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.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteNasJobRequest} DeleteNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteBatchPredictionJobRequest.decode = function decode(reader, length) { + DeleteNasJobRequest.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.DeleteBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -82311,30 +83337,30 @@ }; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteNasJobRequest} DeleteNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteBatchPredictionJobRequest message. + * Verifies a DeleteNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteBatchPredictionJobRequest.verify = function verify(message) { + DeleteNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -82344,32 +83370,32 @@ }; /** - * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteNasJobRequest} DeleteNasJobRequest */ - DeleteBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest) + DeleteNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.DeleteNasJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1.DeleteNasJobRequest} message DeleteNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteBatchPredictionJobRequest.toObject = function toObject(message, options) { + DeleteNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -82381,52 +83407,52 @@ }; /** - * Converts this DeleteBatchPredictionJobRequest to JSON. + * Converts this DeleteNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @instance * @returns {Object.} JSON object */ - DeleteBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + DeleteNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteBatchPredictionJobRequest + * Gets the default type url for DeleteNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteNasJobRequest"; }; - return DeleteBatchPredictionJobRequest; + return DeleteNasJobRequest; })(); - v1.CancelBatchPredictionJobRequest = (function() { + v1.CancelNasJobRequest = (function() { /** - * Properties of a CancelBatchPredictionJobRequest. + * Properties of a CancelNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICancelBatchPredictionJobRequest - * @property {string|null} [name] CancelBatchPredictionJobRequest name + * @interface ICancelNasJobRequest + * @property {string|null} [name] CancelNasJobRequest name */ /** - * Constructs a new CancelBatchPredictionJobRequest. + * Constructs a new CancelNasJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CancelBatchPredictionJobRequest. - * @implements ICancelBatchPredictionJobRequest + * @classdesc Represents a CancelNasJobRequest. + * @implements ICancelNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest=} [properties] Properties to set */ - function CancelBatchPredictionJobRequest(properties) { + function CancelNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82434,35 +83460,35 @@ } /** - * CancelBatchPredictionJobRequest name. + * CancelNasJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @instance */ - CancelBatchPredictionJobRequest.prototype.name = ""; + CancelNasJobRequest.prototype.name = ""; /** - * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. + * Creates a new CancelNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CancelNasJobRequest} CancelNasJobRequest instance */ - CancelBatchPredictionJobRequest.create = function create(properties) { - return new CancelBatchPredictionJobRequest(properties); + CancelNasJobRequest.create = function create(properties) { + return new CancelNasJobRequest(properties); }; /** - * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified CancelNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest} message CancelNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelBatchPredictionJobRequest.encode = function encode(message, writer) { + CancelNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -82471,33 +83497,33 @@ }; /** - * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified CancelNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelNasJobRequest} message CancelNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a CancelNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @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.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.CancelNasJobRequest} CancelNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelBatchPredictionJobRequest.decode = function decode(reader, length) { + CancelNasJobRequest.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.CancelBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -82514,30 +83540,30 @@ }; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.CancelNasJobRequest} CancelNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + CancelNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelBatchPredictionJobRequest message. + * Verifies a CancelNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelBatchPredictionJobRequest.verify = function verify(message) { + CancelNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -82547,32 +83573,32 @@ }; /** - * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1.CancelNasJobRequest} CancelNasJobRequest */ - CancelBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest) + CancelNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CancelNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.CancelNasJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1.CancelNasJobRequest} message CancelNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelBatchPredictionJobRequest.toObject = function toObject(message, options) { + CancelNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -82584,53 +83610,52 @@ }; /** - * Converts this CancelBatchPredictionJobRequest to JSON. + * Converts this CancelNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @instance * @returns {Object.} JSON object */ - CancelBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + CancelNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelBatchPredictionJobRequest + * Gets the default type url for CancelNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1.CancelNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelNasJobRequest"; }; - return CancelBatchPredictionJobRequest; + return CancelNasJobRequest; })(); - v1.CreateModelDeploymentMonitoringJobRequest = (function() { + v1.GetNasTrialDetailRequest = (function() { /** - * Properties of a CreateModelDeploymentMonitoringJobRequest. + * Properties of a GetNasTrialDetailRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateModelDeploymentMonitoringJobRequest - * @property {string|null} [parent] CreateModelDeploymentMonitoringJobRequest parent - * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + * @interface IGetNasTrialDetailRequest + * @property {string|null} [name] GetNasTrialDetailRequest name */ /** - * Constructs a new CreateModelDeploymentMonitoringJobRequest. + * Constructs a new GetNasTrialDetailRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateModelDeploymentMonitoringJobRequest. - * @implements ICreateModelDeploymentMonitoringJobRequest + * @classdesc Represents a GetNasTrialDetailRequest. + * @implements IGetNasTrialDetailRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest=} [properties] Properties to set */ - function CreateModelDeploymentMonitoringJobRequest(properties) { + function GetNasTrialDetailRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82638,89 +83663,75 @@ } /** - * CreateModelDeploymentMonitoringJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest - * @instance - */ - CreateModelDeploymentMonitoringJobRequest.prototype.parent = ""; - - /** - * CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. - * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * GetNasTrialDetailRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @instance */ - CreateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; + GetNasTrialDetailRequest.prototype.name = ""; /** - * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new GetNasTrialDetailRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} GetNasTrialDetailRequest instance */ - CreateModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new CreateModelDeploymentMonitoringJobRequest(properties); + GetNasTrialDetailRequest.create = function create(properties) { + return new GetNasTrialDetailRequest(properties); }; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified GetNasTrialDetailRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasTrialDetailRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest} message GetNasTrialDetailRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + GetNasTrialDetailRequest.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.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified GetNasTrialDetailRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetNasTrialDetailRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetNasTrialDetailRequest} message GetNasTrialDetailRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetNasTrialDetailRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @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.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} GetNasTrialDetailRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + GetNasTrialDetailRequest.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.CreateModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetNasTrialDetailRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -82732,144 +83743,124 @@ }; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} GetNasTrialDetailRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetNasTrialDetailRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateModelDeploymentMonitoringJobRequest message. + * Verifies a GetNasTrialDetailRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateModelDeploymentMonitoringJobRequest.verify = function verify(message) { + GetNasTrialDetailRequest.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.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); - if (error) - return "modelDeploymentMonitoringJob." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasTrialDetailRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} GetNasTrialDetailRequest */ - CreateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest) + GetNasTrialDetailRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetNasTrialDetailRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.modelDeploymentMonitoringJob != null) { - if (typeof object.modelDeploymentMonitoringJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); - } + var message = new $root.google.cloud.aiplatform.v1.GetNasTrialDetailRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetNasTrialDetailRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1.GetNasTrialDetailRequest} message GetNasTrialDetailRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + GetNasTrialDetailRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.modelDeploymentMonitoringJob = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. + * Converts this GetNasTrialDetailRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @instance * @returns {Object.} JSON object */ - CreateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + GetNasTrialDetailRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateModelDeploymentMonitoringJobRequest + * Gets the default type url for GetNasTrialDetailRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetNasTrialDetailRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetNasTrialDetailRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetNasTrialDetailRequest"; }; - return CreateModelDeploymentMonitoringJobRequest; + return GetNasTrialDetailRequest; })(); - v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest = (function() { + v1.ListNasTrialDetailsRequest = (function() { /** - * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * Properties of a ListNasTrialDetailsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest - * @property {string|null} [modelDeploymentMonitoringJob] SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob - * @property {string|null} [deployedModelId] SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId - * @property {string|null} [featureDisplayName] SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName - * @property {Array.|null} [objectives] SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives - * @property {number|null} [pageSize] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize - * @property {string|null} [pageToken] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken - * @property {google.protobuf.ITimestamp|null} [startTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime - * @property {google.protobuf.ITimestamp|null} [endTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime + * @interface IListNasTrialDetailsRequest + * @property {string|null} [parent] ListNasTrialDetailsRequest parent + * @property {number|null} [pageSize] ListNasTrialDetailsRequest pageSize + * @property {string|null} [pageToken] ListNasTrialDetailsRequest pageToken */ /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * Constructs a new ListNasTrialDetailsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. - * @implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest + * @classdesc Represents a ListNasTrialDetailsRequest. + * @implements IListNasTrialDetailsRequest * @constructor - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest=} [properties] Properties to set */ - function SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties) { - this.objectives = []; + function ListNasTrialDetailsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -82877,178 +83868,105 @@ } /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. - * @member {string} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.modelDeploymentMonitoringJob = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.deployedModelId = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. - * @member {string} featureDisplayName - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.featureDisplayName = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. - * @member {Array.} objectives - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * ListNasTrialDetailsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.objectives = $util.emptyArray; + ListNasTrialDetailsRequest.prototype.parent = ""; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. + * ListNasTrialDetailsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageSize = 0; + ListNasTrialDetailsRequest.prototype.pageSize = 0; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. + * ListNasTrialDetailsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageToken = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.startTime = null; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.endTime = null; + ListNasTrialDetailsRequest.prototype.pageToken = ""; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. + * Creates a new ListNasTrialDetailsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest instance + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.create = function create(properties) { - return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties); + ListNasTrialDetailsRequest.create = function create(properties) { + return new ListNasTrialDetailsRequest(properties); }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * Encodes the specified ListNasTrialDetailsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest} message ListNasTrialDetailsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.encode = function encode(message, writer) { + ListNasTrialDetailsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelDeploymentMonitoringJob); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureDisplayName); - if (message.objectives != null && message.objectives.length) - for (var i = 0; i < message.objectives.length; ++i) - $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.encode(message.objectives[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pageSize); + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.pageToken); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * Encodes the specified ListNasTrialDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsRequest} message ListNasTrialDetailsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNasTrialDetailsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.decode = function decode(reader, length) { + ListNasTrialDetailsRequest.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.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.modelDeploymentMonitoringJob = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.deployedModelId = reader.string(); - break; - } - case 3: { - message.featureDisplayName = reader.string(); - break; - } - case 4: { - if (!(message.objectives && message.objectives.length)) - message.objectives = []; - message.objectives.push($root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.decode(reader, reader.uint32())); - break; - } - case 5: { message.pageSize = reader.int32(); break; } - case 6: { + case 3: { message.pageToken = reader.string(); break; } - case 7: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 8: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -83058,470 +83976,388 @@ }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.decodeDelimited = function decodeDelimited(reader) { + ListNasTrialDetailsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. + * Verifies a ListNasTrialDetailsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify = function verify(message) { + ListNasTrialDetailsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - if (!$util.isString(message.modelDeploymentMonitoringJob)) - return "modelDeploymentMonitoringJob: string expected"; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - if (!$util.isString(message.featureDisplayName)) - return "featureDisplayName: string expected"; - if (message.objectives != null && message.hasOwnProperty("objectives")) { - if (!Array.isArray(message.objectives)) - return "objectives: array expected"; - for (var i = 0; i < message.objectives.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify(message.objectives[i]); - if (error) - return "objectives." + error; - } - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; if (message.pageSize != null && message.hasOwnProperty("pageSize")) if (!$util.isInteger(message.pageSize)) return "pageSize: integer expected"; if (message.pageToken != null && message.hasOwnProperty("pageToken")) if (!$util.isString(message.pageToken)) return "pageToken: string expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } return null; }; /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasTrialDetailsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) + ListNasTrialDetailsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); - if (object.modelDeploymentMonitoringJob != null) - message.modelDeploymentMonitoringJob = String(object.modelDeploymentMonitoringJob); - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.featureDisplayName != null) - message.featureDisplayName = String(object.featureDisplayName); - if (object.objectives) { - if (!Array.isArray(object.objectives)) - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: array expected"); - message.objectives = []; - for (var i = 0; i < object.objectives.length; ++i) { - if (typeof object.objectives[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: object expected"); - message.objectives[i] = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.fromObject(object.objectives[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest(); + if (object.parent != null) + message.parent = String(object.parent); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) message.pageToken = String(object.pageToken); - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } return message; }; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNasTrialDetailsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @param {google.cloud.aiplatform.v1.ListNasTrialDetailsRequest} message ListNasTrialDetailsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.toObject = function toObject(message, options) { + ListNasTrialDetailsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.objectives = []; if (options.defaults) { - object.modelDeploymentMonitoringJob = ""; - object.deployedModelId = ""; - object.featureDisplayName = ""; + object.parent = ""; object.pageSize = 0; object.pageToken = ""; - object.startTime = null; - object.endTime = null; - } - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = message.modelDeploymentMonitoringJob; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - object.featureDisplayName = message.featureDisplayName; - if (message.objectives && message.objectives.length) { - object.objectives = []; - for (var j = 0; j < message.objectives.length; ++j) - object.objectives[j] = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.toObject(message.objectives[j], options); } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; if (message.pageSize != null && message.hasOwnProperty("pageSize")) object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) object.pageToken = message.pageToken; - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. + * Converts this ListNasTrialDetailsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @instance * @returns {Object.} JSON object */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.toJSON = function toJSON() { + ListNasTrialDetailsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Gets the default type url for ListNasTrialDetailsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasTrialDetailsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListNasTrialDetailsRequest"; }; - SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective = (function() { - - /** - * Properties of a StatsAnomaliesObjective. - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @interface IStatsAnomaliesObjective - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null} [type] StatsAnomaliesObjective type - * @property {number|null} [topFeatureCount] StatsAnomaliesObjective topFeatureCount - */ + return ListNasTrialDetailsRequest; + })(); - /** - * Constructs a new StatsAnomaliesObjective. - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @classdesc Represents a StatsAnomaliesObjective. - * @implements IStatsAnomaliesObjective - * @constructor - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set - */ - function StatsAnomaliesObjective(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]]; - } + v1.ListNasTrialDetailsResponse = (function() { - /** - * StatsAnomaliesObjective type. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType} type - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - */ - StatsAnomaliesObjective.prototype.type = 0; + /** + * Properties of a ListNasTrialDetailsResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IListNasTrialDetailsResponse + * @property {Array.|null} [nasTrialDetails] ListNasTrialDetailsResponse nasTrialDetails + * @property {string|null} [nextPageToken] ListNasTrialDetailsResponse nextPageToken + */ - /** - * StatsAnomaliesObjective topFeatureCount. - * @member {number} topFeatureCount - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - */ - StatsAnomaliesObjective.prototype.topFeatureCount = 0; + /** + * Constructs a new ListNasTrialDetailsResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListNasTrialDetailsResponse. + * @implements IListNasTrialDetailsResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsResponse=} [properties] Properties to set + */ + function ListNasTrialDetailsResponse(properties) { + this.nasTrialDetails = []; + 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]]; + } - /** - * Creates a new StatsAnomaliesObjective instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective instance - */ - StatsAnomaliesObjective.create = function create(properties) { - return new StatsAnomaliesObjective(properties); - }; + /** + * ListNasTrialDetailsResponse nasTrialDetails. + * @member {Array.} nasTrialDetails + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @instance + */ + ListNasTrialDetailsResponse.prototype.nasTrialDetails = $util.emptyArray; - /** - * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StatsAnomaliesObjective.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.topFeatureCount != null && Object.hasOwnProperty.call(message, "topFeatureCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.topFeatureCount); - return writer; - }; + /** + * ListNasTrialDetailsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @instance + */ + ListNasTrialDetailsResponse.prototype.nextPageToken = ""; - /** - * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StatsAnomaliesObjective.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ListNasTrialDetailsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse instance + */ + ListNasTrialDetailsResponse.create = function create(properties) { + return new ListNasTrialDetailsResponse(properties); + }; - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StatsAnomaliesObjective.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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.type = reader.int32(); - break; - } - case 4: { - message.topFeatureCount = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ListNasTrialDetailsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsResponse} message ListNasTrialDetailsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListNasTrialDetailsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nasTrialDetails != null && message.nasTrialDetails.length) + for (var i = 0; i < message.nasTrialDetails.length; ++i) + $root.google.cloud.aiplatform.v1.NasTrialDetail.encode(message.nasTrialDetails[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StatsAnomaliesObjective.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ListNasTrialDetailsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListNasTrialDetailsResponse} message ListNasTrialDetailsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListNasTrialDetailsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a StatsAnomaliesObjective message. - * @function verify - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StatsAnomaliesObjective.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: - case 4: + /** + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @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.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListNasTrialDetailsResponse.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.ListNasTrialDetailsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.nasTrialDetails && message.nasTrialDetails.length)) + message.nasTrialDetails = []; + message.nasTrialDetails.push($root.google.cloud.aiplatform.v1.NasTrialDetail.decode(reader, reader.uint32())); break; } - if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) - if (!$util.isInteger(message.topFeatureCount)) - return "topFeatureCount: integer expected"; - return null; - }; - - /** - * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - */ - StatsAnomaliesObjective.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) - return object; - var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; + case 2: { + message.nextPageToken = reader.string(); break; } - break; - case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "RAW_FEATURE_SKEW": - case 1: - message.type = 1; - break; - case "RAW_FEATURE_DRIFT": - case 2: - message.type = 2; - break; - case "FEATURE_ATTRIBUTION_SKEW": - case 3: - message.type = 3; - break; - case "FEATURE_ATTRIBUTION_DRIFT": - case 4: - message.type = 4; + default: + reader.skipType(tag & 7); break; } - if (object.topFeatureCount != null) - message.topFeatureCount = object.topFeatureCount | 0; - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} message StatsAnomaliesObjective - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StatsAnomaliesObjective.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; - object.topFeatureCount = 0; + /** + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListNasTrialDetailsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListNasTrialDetailsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListNasTrialDetailsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nasTrialDetails != null && message.hasOwnProperty("nasTrialDetails")) { + if (!Array.isArray(message.nasTrialDetails)) + return "nasTrialDetails: array expected"; + for (var i = 0; i < message.nasTrialDetails.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.NasTrialDetail.verify(message.nasTrialDetails[i]); + if (error) + return "nasTrialDetails." + error; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.type] === undefined ? message.type : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.type] : message.type; - if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) - object.topFeatureCount = message.topFeatureCount; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListNasTrialDetailsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse + */ + ListNasTrialDetailsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListNasTrialDetailsResponse) return object; - }; + var message = new $root.google.cloud.aiplatform.v1.ListNasTrialDetailsResponse(); + if (object.nasTrialDetails) { + if (!Array.isArray(object.nasTrialDetails)) + throw TypeError(".google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.nasTrialDetails: array expected"); + message.nasTrialDetails = []; + for (var i = 0; i < object.nasTrialDetails.length; ++i) { + if (typeof object.nasTrialDetails[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.nasTrialDetails: object expected"); + message.nasTrialDetails[i] = $root.google.cloud.aiplatform.v1.NasTrialDetail.fromObject(object.nasTrialDetails[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; - /** - * Converts this StatsAnomaliesObjective to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - * @returns {Object.} JSON object - */ - StatsAnomaliesObjective.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListNasTrialDetailsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @static + * @param {google.cloud.aiplatform.v1.ListNasTrialDetailsResponse} message ListNasTrialDetailsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListNasTrialDetailsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.nasTrialDetails = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.nasTrialDetails && message.nasTrialDetails.length) { + object.nasTrialDetails = []; + for (var j = 0; j < message.nasTrialDetails.length; ++j) + object.nasTrialDetails[j] = $root.google.cloud.aiplatform.v1.NasTrialDetail.toObject(message.nasTrialDetails[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; - /** - * Gets the default type url for StatsAnomaliesObjective - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - StatsAnomaliesObjective.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective"; - }; + /** + * Converts this ListNasTrialDetailsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @instance + * @returns {Object.} JSON object + */ + ListNasTrialDetailsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return StatsAnomaliesObjective; - })(); + /** + * Gets the default type url for ListNasTrialDetailsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ListNasTrialDetailsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListNasTrialDetailsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListNasTrialDetailsResponse"; + }; - return SearchModelDeploymentMonitoringStatsAnomaliesRequest; + return ListNasTrialDetailsResponse; })(); - v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse = (function() { + v1.CreateBatchPredictionJobRequest = (function() { /** - * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Properties of a CreateBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse - * @property {Array.|null} [monitoringStats] SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats - * @property {string|null} [nextPageToken] SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken + * @interface ICreateBatchPredictionJobRequest + * @property {string|null} [parent] CreateBatchPredictionJobRequest parent + * @property {google.cloud.aiplatform.v1.IBatchPredictionJob|null} [batchPredictionJob] CreateBatchPredictionJobRequest batchPredictionJob */ /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Constructs a new CreateBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. - * @implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse + * @classdesc Represents a CreateBatchPredictionJobRequest. + * @implements ICreateBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest=} [properties] Properties to set */ - function SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties) { - this.monitoringStats = []; + function CreateBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83529,92 +84365,89 @@ } /** - * SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. - * @member {Array.} monitoringStats - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * CreateBatchPredictionJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.monitoringStats = $util.emptyArray; + CreateBatchPredictionJobRequest.prototype.parent = ""; /** - * SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * CreateBatchPredictionJobRequest batchPredictionJob. + * @member {google.cloud.aiplatform.v1.IBatchPredictionJob|null|undefined} batchPredictionJob + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.nextPageToken = ""; + CreateBatchPredictionJobRequest.prototype.batchPredictionJob = null; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. + * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse instance + * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.create = function create(properties) { - return new SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties); + CreateBatchPredictionJobRequest.create = function create(properties) { + return new CreateBatchPredictionJobRequest(properties); }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.encode = function encode(message, writer) { + CreateBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.monitoringStats != null && message.monitoringStats.length) - for (var i = 0; i < message.monitoringStats.length; ++i) - $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.encode(message.monitoringStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.batchPredictionJob != null && Object.hasOwnProperty.call(message, "batchPredictionJob")) + $root.google.cloud.aiplatform.v1.BatchPredictionJob.encode(message.batchPredictionJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @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.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.decode = function decode(reader, length) { + CreateBatchPredictionJobRequest.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.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.monitoringStats && message.monitoringStats.length)) - message.monitoringStats = []; - message.monitoringStats.push($root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.decode(reader, reader.uint32()); break; } default: @@ -83626,148 +84459,136 @@ }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.decodeDelimited = function decodeDelimited(reader) { + CreateBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. + * Verifies a CreateBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify = function verify(message) { + CreateBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.monitoringStats != null && message.hasOwnProperty("monitoringStats")) { - if (!Array.isArray(message.monitoringStats)) - return "monitoringStats: array expected"; - for (var i = 0; i < message.monitoringStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify(message.monitoringStats[i]); - if (error) - return "monitoringStats." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) { + var error = $root.google.cloud.aiplatform.v1.BatchPredictionJob.verify(message.batchPredictionJob); + if (error) + return "batchPredictionJob." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) + CreateBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); - if (object.monitoringStats) { - if (!Array.isArray(object.monitoringStats)) - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: array expected"); - message.monitoringStats = []; - for (var i = 0; i < object.monitoringStats.length; ++i) { - if (typeof object.monitoringStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: object expected"); - message.monitoringStats[i] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.fromObject(object.monitoringStats[i]); - } + var message = new $root.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.batchPredictionJob != null) { + if (typeof object.batchPredictionJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest.batchPredictionJob: object expected"); + message.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.fromObject(object.batchPredictionJob); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @param {google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.toObject = function toObject(message, options) { + CreateBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.monitoringStats = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.monitoringStats && message.monitoringStats.length) { - object.monitoringStats = []; - for (var j = 0; j < message.monitoringStats.length; ++j) - object.monitoringStats[j] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.toObject(message.monitoringStats[j], options); + if (options.defaults) { + object.parent = ""; + object.batchPredictionJob = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) + object.batchPredictionJob = $root.google.cloud.aiplatform.v1.BatchPredictionJob.toObject(message.batchPredictionJob, options); return object; }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. + * Converts this CreateBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.toJSON = function toJSON() { + CreateBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Gets the default type url for CreateBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest"; }; - return SearchModelDeploymentMonitoringStatsAnomaliesResponse; + return CreateBatchPredictionJobRequest; })(); - v1.GetModelDeploymentMonitoringJobRequest = (function() { + v1.GetBatchPredictionJobRequest = (function() { /** - * Properties of a GetModelDeploymentMonitoringJobRequest. + * Properties of a GetBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetModelDeploymentMonitoringJobRequest - * @property {string|null} [name] GetModelDeploymentMonitoringJobRequest name + * @interface IGetBatchPredictionJobRequest + * @property {string|null} [name] GetBatchPredictionJobRequest name */ /** - * Constructs a new GetModelDeploymentMonitoringJobRequest. + * Constructs a new GetBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetModelDeploymentMonitoringJobRequest. - * @implements IGetModelDeploymentMonitoringJobRequest + * @classdesc Represents a GetBatchPredictionJobRequest. + * @implements IGetBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest=} [properties] Properties to set */ - function GetModelDeploymentMonitoringJobRequest(properties) { + function GetBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83775,35 +84596,35 @@ } /** - * GetModelDeploymentMonitoringJobRequest name. + * GetBatchPredictionJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @instance */ - GetModelDeploymentMonitoringJobRequest.prototype.name = ""; + GetBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new GetBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest instance */ - GetModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new GetModelDeploymentMonitoringJobRequest(properties); + GetBatchPredictionJobRequest.create = function create(properties) { + return new GetBatchPredictionJobRequest(properties); }; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + GetBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -83812,33 +84633,33 @@ }; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @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.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + GetBatchPredictionJobRequest.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.GetModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -83855,30 +84676,30 @@ }; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetModelDeploymentMonitoringJobRequest message. + * Verifies a GetBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetModelDeploymentMonitoringJobRequest.verify = function verify(message) { + GetBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -83888,32 +84709,32 @@ }; /** - * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest */ - GetModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest) + GetBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1.GetBatchPredictionJobRequest} message GetBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + GetBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -83925,56 +84746,56 @@ }; /** - * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * Converts this GetBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - GetModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + GetBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetModelDeploymentMonitoringJobRequest + * Gets the default type url for GetBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.GetBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetBatchPredictionJobRequest"; }; - return GetModelDeploymentMonitoringJobRequest; + return GetBatchPredictionJobRequest; })(); - v1.ListModelDeploymentMonitoringJobsRequest = (function() { + v1.ListBatchPredictionJobsRequest = (function() { /** - * Properties of a ListModelDeploymentMonitoringJobsRequest. + * Properties of a ListBatchPredictionJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelDeploymentMonitoringJobsRequest - * @property {string|null} [parent] ListModelDeploymentMonitoringJobsRequest parent - * @property {string|null} [filter] ListModelDeploymentMonitoringJobsRequest filter - * @property {number|null} [pageSize] ListModelDeploymentMonitoringJobsRequest pageSize - * @property {string|null} [pageToken] ListModelDeploymentMonitoringJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelDeploymentMonitoringJobsRequest readMask + * @interface IListBatchPredictionJobsRequest + * @property {string|null} [parent] ListBatchPredictionJobsRequest parent + * @property {string|null} [filter] ListBatchPredictionJobsRequest filter + * @property {number|null} [pageSize] ListBatchPredictionJobsRequest pageSize + * @property {string|null} [pageToken] ListBatchPredictionJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListBatchPredictionJobsRequest readMask */ /** - * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * Constructs a new ListBatchPredictionJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelDeploymentMonitoringJobsRequest. - * @implements IListModelDeploymentMonitoringJobsRequest + * @classdesc Represents a ListBatchPredictionJobsRequest. + * @implements IListBatchPredictionJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest=} [properties] Properties to set */ - function ListModelDeploymentMonitoringJobsRequest(properties) { + function ListBatchPredictionJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -83982,67 +84803,67 @@ } /** - * ListModelDeploymentMonitoringJobsRequest parent. + * ListBatchPredictionJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.parent = ""; + ListBatchPredictionJobsRequest.prototype.parent = ""; /** - * ListModelDeploymentMonitoringJobsRequest filter. + * ListBatchPredictionJobsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.filter = ""; + ListBatchPredictionJobsRequest.prototype.filter = ""; /** - * ListModelDeploymentMonitoringJobsRequest pageSize. + * ListBatchPredictionJobsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.pageSize = 0; + ListBatchPredictionJobsRequest.prototype.pageSize = 0; /** - * ListModelDeploymentMonitoringJobsRequest pageToken. + * ListBatchPredictionJobsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.pageToken = ""; + ListBatchPredictionJobsRequest.prototype.pageToken = ""; /** - * ListModelDeploymentMonitoringJobsRequest readMask. + * ListBatchPredictionJobsRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.readMask = null; + ListBatchPredictionJobsRequest.prototype.readMask = null; /** - * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. + * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest instance + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest instance */ - ListModelDeploymentMonitoringJobsRequest.create = function create(properties) { - return new ListModelDeploymentMonitoringJobsRequest(properties); + ListBatchPredictionJobsRequest.create = function create(properties) { + return new ListBatchPredictionJobsRequest(properties); }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsRequest.encode = function encode(message, writer) { + ListBatchPredictionJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -84059,33 +84880,33 @@ }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListBatchPredictionJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @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.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsRequest.decode = function decode(reader, length) { + ListBatchPredictionJobsRequest.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.ListModelDeploymentMonitoringJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -84118,30 +84939,30 @@ }; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ListBatchPredictionJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelDeploymentMonitoringJobsRequest message. + * Verifies a ListBatchPredictionJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelDeploymentMonitoringJobsRequest.verify = function verify(message) { + ListBatchPredictionJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -84165,17 +84986,17 @@ }; /** - * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest */ - ListModelDeploymentMonitoringJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest) + ListBatchPredictionJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -84186,22 +85007,22 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest + * @param {google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelDeploymentMonitoringJobsRequest.toObject = function toObject(message, options) { + ListBatchPredictionJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -84226,54 +85047,54 @@ }; /** - * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. + * Converts this ListBatchPredictionJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @instance * @returns {Object.} JSON object */ - ListModelDeploymentMonitoringJobsRequest.prototype.toJSON = function toJSON() { + ListBatchPredictionJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsRequest + * Gets the default type url for ListBatchPredictionJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelDeploymentMonitoringJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListBatchPredictionJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListBatchPredictionJobsRequest"; }; - return ListModelDeploymentMonitoringJobsRequest; + return ListBatchPredictionJobsRequest; })(); - v1.ListModelDeploymentMonitoringJobsResponse = (function() { + v1.ListBatchPredictionJobsResponse = (function() { /** - * Properties of a ListModelDeploymentMonitoringJobsResponse. + * Properties of a ListBatchPredictionJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelDeploymentMonitoringJobsResponse - * @property {Array.|null} [modelDeploymentMonitoringJobs] ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs - * @property {string|null} [nextPageToken] ListModelDeploymentMonitoringJobsResponse nextPageToken + * @interface IListBatchPredictionJobsResponse + * @property {Array.|null} [batchPredictionJobs] ListBatchPredictionJobsResponse batchPredictionJobs + * @property {string|null} [nextPageToken] ListBatchPredictionJobsResponse nextPageToken */ /** - * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * Constructs a new ListBatchPredictionJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelDeploymentMonitoringJobsResponse. - * @implements IListModelDeploymentMonitoringJobsResponse + * @classdesc Represents a ListBatchPredictionJobsResponse. + * @implements IListBatchPredictionJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse=} [properties] Properties to set */ - function ListModelDeploymentMonitoringJobsResponse(properties) { - this.modelDeploymentMonitoringJobs = []; + function ListBatchPredictionJobsResponse(properties) { + this.batchPredictionJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84281,88 +85102,88 @@ } /** - * ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. - * @member {Array.} modelDeploymentMonitoringJobs - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * ListBatchPredictionJobsResponse batchPredictionJobs. + * @member {Array.} batchPredictionJobs + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @instance */ - ListModelDeploymentMonitoringJobsResponse.prototype.modelDeploymentMonitoringJobs = $util.emptyArray; + ListBatchPredictionJobsResponse.prototype.batchPredictionJobs = $util.emptyArray; /** - * ListModelDeploymentMonitoringJobsResponse nextPageToken. + * ListBatchPredictionJobsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @instance */ - ListModelDeploymentMonitoringJobsResponse.prototype.nextPageToken = ""; + ListBatchPredictionJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse instance + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse instance */ - ListModelDeploymentMonitoringJobsResponse.create = function create(properties) { - return new ListModelDeploymentMonitoringJobsResponse(properties); + ListBatchPredictionJobsResponse.create = function create(properties) { + return new ListBatchPredictionJobsResponse(properties); }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsResponse.encode = function encode(message, writer) { + ListBatchPredictionJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJobs != null && message.modelDeploymentMonitoringJobs.length) - for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.batchPredictionJobs != null && message.batchPredictionJobs.length) + for (var i = 0; i < message.batchPredictionJobs.length; ++i) + $root.google.cloud.aiplatform.v1.BatchPredictionJob.encode(message.batchPredictionJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListBatchPredictionJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @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.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsResponse.decode = function decode(reader, length) { + ListBatchPredictionJobsResponse.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.ListModelDeploymentMonitoringJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length)) - message.modelDeploymentMonitoringJobs = []; - message.modelDeploymentMonitoringJobs.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32())); + if (!(message.batchPredictionJobs && message.batchPredictionJobs.length)) + message.batchPredictionJobs = []; + message.batchPredictionJobs.push($root.google.cloud.aiplatform.v1.BatchPredictionJob.decode(reader, reader.uint32())); break; } case 2: { @@ -84378,39 +85199,39 @@ }; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsResponse.decodeDelimited = function decodeDelimited(reader) { + ListBatchPredictionJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelDeploymentMonitoringJobsResponse message. + * Verifies a ListBatchPredictionJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelDeploymentMonitoringJobsResponse.verify = function verify(message) { + ListBatchPredictionJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJobs != null && message.hasOwnProperty("modelDeploymentMonitoringJobs")) { - if (!Array.isArray(message.modelDeploymentMonitoringJobs)) - return "modelDeploymentMonitoringJobs: array expected"; - for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJobs[i]); + if (message.batchPredictionJobs != null && message.hasOwnProperty("batchPredictionJobs")) { + if (!Array.isArray(message.batchPredictionJobs)) + return "batchPredictionJobs: array expected"; + for (var i = 0; i < message.batchPredictionJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.BatchPredictionJob.verify(message.batchPredictionJobs[i]); if (error) - return "modelDeploymentMonitoringJobs." + error; + return "batchPredictionJobs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -84420,25 +85241,25 @@ }; /** - * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse */ - ListModelDeploymentMonitoringJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse) + ListBatchPredictionJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse(); - if (object.modelDeploymentMonitoringJobs) { - if (!Array.isArray(object.modelDeploymentMonitoringJobs)) - throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: array expected"); - message.modelDeploymentMonitoringJobs = []; - for (var i = 0; i < object.modelDeploymentMonitoringJobs.length; ++i) { - if (typeof object.modelDeploymentMonitoringJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: object expected"); - message.modelDeploymentMonitoringJobs[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJobs[i]); + var message = new $root.google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse(); + if (object.batchPredictionJobs) { + if (!Array.isArray(object.batchPredictionJobs)) + throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.batchPredictionJobs: array expected"); + message.batchPredictionJobs = []; + for (var i = 0; i < object.batchPredictionJobs.length; ++i) { + if (typeof object.batchPredictionJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse.batchPredictionJobs: object expected"); + message.batchPredictionJobs[i] = $root.google.cloud.aiplatform.v1.BatchPredictionJob.fromObject(object.batchPredictionJobs[i]); } } if (object.nextPageToken != null) @@ -84447,26 +85268,26 @@ }; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse + * @param {google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelDeploymentMonitoringJobsResponse.toObject = function toObject(message, options) { + ListBatchPredictionJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.modelDeploymentMonitoringJobs = []; + object.batchPredictionJobs = []; if (options.defaults) object.nextPageToken = ""; - if (message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length) { - object.modelDeploymentMonitoringJobs = []; - for (var j = 0; j < message.modelDeploymentMonitoringJobs.length; ++j) - object.modelDeploymentMonitoringJobs[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJobs[j], options); + if (message.batchPredictionJobs && message.batchPredictionJobs.length) { + object.batchPredictionJobs = []; + for (var j = 0; j < message.batchPredictionJobs.length; ++j) + object.batchPredictionJobs[j] = $root.google.cloud.aiplatform.v1.BatchPredictionJob.toObject(message.batchPredictionJobs[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -84474,53 +85295,52 @@ }; /** - * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. + * Converts this ListBatchPredictionJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @instance * @returns {Object.} JSON object */ - ListModelDeploymentMonitoringJobsResponse.prototype.toJSON = function toJSON() { + ListBatchPredictionJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsResponse + * Gets the default type url for ListBatchPredictionJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelDeploymentMonitoringJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListBatchPredictionJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListBatchPredictionJobsResponse"; }; - return ListModelDeploymentMonitoringJobsResponse; + return ListBatchPredictionJobsResponse; })(); - v1.UpdateModelDeploymentMonitoringJobRequest = (function() { + v1.DeleteBatchPredictionJobRequest = (function() { /** - * Properties of an UpdateModelDeploymentMonitoringJobRequest. + * Properties of a DeleteBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateModelDeploymentMonitoringJobRequest - * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelDeploymentMonitoringJobRequest updateMask + * @interface IDeleteBatchPredictionJobRequest + * @property {string|null} [name] DeleteBatchPredictionJobRequest name */ /** - * Constructs a new UpdateModelDeploymentMonitoringJobRequest. + * Constructs a new DeleteBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateModelDeploymentMonitoringJobRequest. - * @implements IUpdateModelDeploymentMonitoringJobRequest + * @classdesc Represents a DeleteBatchPredictionJobRequest. + * @implements IDeleteBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set */ - function UpdateModelDeploymentMonitoringJobRequest(properties) { + function DeleteBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84528,89 +85348,75 @@ } /** - * UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. - * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest - * @instance - */ - UpdateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; - - /** - * UpdateModelDeploymentMonitoringJobRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * DeleteBatchPredictionJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @instance */ - UpdateModelDeploymentMonitoringJobRequest.prototype.updateMask = null; + DeleteBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest instance */ - UpdateModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new UpdateModelDeploymentMonitoringJobRequest(properties); + DeleteBatchPredictionJobRequest.create = function create(properties) { + return new DeleteBatchPredictionJobRequest(properties); }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + DeleteBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @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.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + DeleteBatchPredictionJobRequest.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.UpdateModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); - break; - } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -84622,141 +85428,122 @@ }; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateModelDeploymentMonitoringJobRequest message. + * Verifies a DeleteBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateModelDeploymentMonitoringJobRequest.verify = function verify(message) { + DeleteBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); - if (error) - return "modelDeploymentMonitoringJob." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest */ - UpdateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest) + DeleteBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest(); - if (object.modelDeploymentMonitoringJob != null) { - if (typeof object.modelDeploymentMonitoringJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + DeleteBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.modelDeploymentMonitoringJob = null; - object.updateMask = null; - } - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. + * Converts this DeleteBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - UpdateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + DeleteBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest + * Gets the default type url for DeleteBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest"; }; - return UpdateModelDeploymentMonitoringJobRequest; + return DeleteBatchPredictionJobRequest; })(); - v1.DeleteModelDeploymentMonitoringJobRequest = (function() { + v1.CancelBatchPredictionJobRequest = (function() { /** - * Properties of a DeleteModelDeploymentMonitoringJobRequest. + * Properties of a CancelBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteModelDeploymentMonitoringJobRequest - * @property {string|null} [name] DeleteModelDeploymentMonitoringJobRequest name + * @interface ICancelBatchPredictionJobRequest + * @property {string|null} [name] CancelBatchPredictionJobRequest name */ /** - * Constructs a new DeleteModelDeploymentMonitoringJobRequest. + * Constructs a new CancelBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteModelDeploymentMonitoringJobRequest. - * @implements IDeleteModelDeploymentMonitoringJobRequest + * @classdesc Represents a CancelBatchPredictionJobRequest. + * @implements ICancelBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest=} [properties] Properties to set */ - function DeleteModelDeploymentMonitoringJobRequest(properties) { + function CancelBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84764,35 +85551,35 @@ } /** - * DeleteModelDeploymentMonitoringJobRequest name. + * CancelBatchPredictionJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @instance */ - DeleteModelDeploymentMonitoringJobRequest.prototype.name = ""; + CancelBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest instance */ - DeleteModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new DeleteModelDeploymentMonitoringJobRequest(properties); + CancelBatchPredictionJobRequest.create = function create(properties) { + return new CancelBatchPredictionJobRequest(properties); }; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + CancelBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -84801,33 +85588,33 @@ }; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @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.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + CancelBatchPredictionJobRequest.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.DeleteModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -84844,30 +85631,30 @@ }; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + CancelBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteModelDeploymentMonitoringJobRequest message. + * Verifies a CancelBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteModelDeploymentMonitoringJobRequest.verify = function verify(message) { + CancelBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -84877,32 +85664,32 @@ }; /** - * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest */ - DeleteModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest) + CancelBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + CancelBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -84914,52 +85701,53 @@ }; /** - * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. + * Converts this CancelBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - DeleteModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + CancelBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest + * Gets the default type url for CancelBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest"; }; - return DeleteModelDeploymentMonitoringJobRequest; + return CancelBatchPredictionJobRequest; })(); - v1.PauseModelDeploymentMonitoringJobRequest = (function() { + v1.CreateModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a PauseModelDeploymentMonitoringJobRequest. + * Properties of a CreateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IPauseModelDeploymentMonitoringJobRequest - * @property {string|null} [name] PauseModelDeploymentMonitoringJobRequest name - */ - + * @interface ICreateModelDeploymentMonitoringJobRequest + * @property {string|null} [parent] CreateModelDeploymentMonitoringJobRequest parent + * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + */ + /** - * Constructs a new PauseModelDeploymentMonitoringJobRequest. + * Constructs a new CreateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PauseModelDeploymentMonitoringJobRequest. - * @implements IPauseModelDeploymentMonitoringJobRequest + * @classdesc Represents a CreateModelDeploymentMonitoringJobRequest. + * @implements ICreateModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function PauseModelDeploymentMonitoringJobRequest(properties) { + function CreateModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -84967,75 +85755,89 @@ } /** - * PauseModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * CreateModelDeploymentMonitoringJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @instance */ - PauseModelDeploymentMonitoringJobRequest.prototype.name = ""; + CreateModelDeploymentMonitoringJobRequest.prototype.parent = ""; /** - * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. + * CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. + * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest + * @instance + */ + CreateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; + + /** + * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest instance */ - PauseModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new PauseModelDeploymentMonitoringJobRequest(properties); + CreateModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new CreateModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PauseModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + CreateModelDeploymentMonitoringJobRequest.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); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PauseModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @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.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PauseModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + CreateModelDeploymentMonitoringJobRequest.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.PauseModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); break; } default: @@ -85047,122 +85849,144 @@ }; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PauseModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PauseModelDeploymentMonitoringJobRequest message. + * Verifies a CreateModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PauseModelDeploymentMonitoringJobRequest.verify = function verify(message) { + CreateModelDeploymentMonitoringJobRequest.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"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); + if (error) + return "modelDeploymentMonitoringJob." + error; + } return null; }; /** - * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest */ - PauseModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest) + CreateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.modelDeploymentMonitoringJob != null) { + if (typeof object.modelDeploymentMonitoringJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); + } return message; }; /** - * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PauseModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + CreateModelDeploymentMonitoringJobRequest.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; + if (options.defaults) { + object.parent = ""; + object.modelDeploymentMonitoringJob = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); return object; }; /** - * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. + * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - PauseModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + CreateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PauseModelDeploymentMonitoringJobRequest + * Gets the default type url for CreateModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PauseModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest"; }; - return PauseModelDeploymentMonitoringJobRequest; + return CreateModelDeploymentMonitoringJobRequest; })(); - v1.ResumeModelDeploymentMonitoringJobRequest = (function() { + v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest = (function() { /** - * Properties of a ResumeModelDeploymentMonitoringJobRequest. + * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IResumeModelDeploymentMonitoringJobRequest - * @property {string|null} [name] ResumeModelDeploymentMonitoringJobRequest name + * @interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest + * @property {string|null} [modelDeploymentMonitoringJob] SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob + * @property {string|null} [deployedModelId] SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId + * @property {string|null} [featureDisplayName] SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName + * @property {Array.|null} [objectives] SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives + * @property {number|null} [pageSize] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize + * @property {string|null} [pageToken] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken + * @property {google.protobuf.ITimestamp|null} [startTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime + * @property {google.protobuf.ITimestamp|null} [endTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ /** - * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ResumeModelDeploymentMonitoringJobRequest. - * @implements IResumeModelDeploymentMonitoringJobRequest + * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * @implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set */ - function ResumeModelDeploymentMonitoringJobRequest(properties) { + function SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties) { + this.objectives = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85170,75 +85994,176 @@ } /** - * ResumeModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. + * @member {string} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance */ - ResumeModelDeploymentMonitoringJobRequest.prototype.name = ""; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.modelDeploymentMonitoringJob = ""; /** - * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. + * SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.deployedModelId = ""; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. + * @member {string} featureDisplayName + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.featureDisplayName = ""; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. + * @member {Array.} objectives + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.objectives = $util.emptyArray; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageSize = 0; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageToken = ""; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.startTime = null; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.endTime = null; + + /** + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest instance */ - ResumeModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new ResumeModelDeploymentMonitoringJobRequest(properties); + SearchModelDeploymentMonitoringStatsAnomaliesRequest.create = function create(properties) { + return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties); }; /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResumeModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.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); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelDeploymentMonitoringJob); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureDisplayName); + if (message.objectives != null && message.objectives.length) + for (var i = 0; i < message.objectives.length; ++i) + $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.encode(message.objectives[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.pageToken); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResumeModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @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.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResumeModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.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.ResumeModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.modelDeploymentMonitoringJob = reader.string(); + break; + } + case 2: { + message.deployedModelId = reader.string(); + break; + } + case 3: { + message.featureDisplayName = reader.string(); + break; + } + case 4: { + if (!(message.objectives && message.objectives.length)) + message.objectives = []; + message.objectives.push($root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.decode(reader, reader.uint32())); + break; + } + case 5: { + message.pageSize = reader.int32(); + break; + } + case 6: { + message.pageToken = reader.string(); + break; + } + case 7: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -85250,122 +86175,470 @@ }; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResumeModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResumeModelDeploymentMonitoringJobRequest message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResumeModelDeploymentMonitoringJobRequest.verify = function verify(message) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.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"; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + if (!$util.isString(message.modelDeploymentMonitoringJob)) + return "modelDeploymentMonitoringJob: string expected"; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + if (!$util.isString(message.featureDisplayName)) + return "featureDisplayName: string expected"; + if (message.objectives != null && message.hasOwnProperty("objectives")) { + if (!Array.isArray(message.objectives)) + return "objectives: array expected"; + for (var i = 0; i < message.objectives.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify(message.objectives[i]); + if (error) + return "objectives." + error; + } + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } return null; }; /** - * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest */ - ResumeModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest) + SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + if (object.modelDeploymentMonitoringJob != null) + message.modelDeploymentMonitoringJob = String(object.modelDeploymentMonitoringJob); + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.featureDisplayName != null) + message.featureDisplayName = String(object.featureDisplayName); + if (object.objectives) { + if (!Array.isArray(object.objectives)) + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: array expected"); + message.objectives = []; + for (var i = 0; i < object.objectives.length; ++i) { + if (typeof object.objectives[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: object expected"); + message.objectives[i] = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.fromObject(object.objectives[i]); + } + } + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } return message; }; /** - * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResumeModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.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; + if (options.arrays || options.defaults) + object.objectives = []; + if (options.defaults) { + object.modelDeploymentMonitoringJob = ""; + object.deployedModelId = ""; + object.featureDisplayName = ""; + object.pageSize = 0; + object.pageToken = ""; + object.startTime = null; + object.endTime = null; + } + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = message.modelDeploymentMonitoringJob; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + object.featureDisplayName = message.featureDisplayName; + if (message.objectives && message.objectives.length) { + object.objectives = []; + for (var j = 0; j < message.objectives.length; ++j) + object.objectives[j] = $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.toObject(message.objectives[j], options); + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance * @returns {Object.} JSON object */ - ResumeModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ResumeModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest"; }; - return ResumeModelDeploymentMonitoringJobRequest; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective = (function() { + + /** + * Properties of a StatsAnomaliesObjective. + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @interface IStatsAnomaliesObjective + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null} [type] StatsAnomaliesObjective type + * @property {number|null} [topFeatureCount] StatsAnomaliesObjective topFeatureCount + */ + + /** + * Constructs a new StatsAnomaliesObjective. + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @classdesc Represents a StatsAnomaliesObjective. + * @implements IStatsAnomaliesObjective + * @constructor + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set + */ + function StatsAnomaliesObjective(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]]; + } + + /** + * StatsAnomaliesObjective type. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType} type + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + */ + StatsAnomaliesObjective.prototype.type = 0; + + /** + * StatsAnomaliesObjective topFeatureCount. + * @member {number} topFeatureCount + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + */ + StatsAnomaliesObjective.prototype.topFeatureCount = 0; + + /** + * Creates a new StatsAnomaliesObjective instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective instance + */ + StatsAnomaliesObjective.create = function create(properties) { + return new StatsAnomaliesObjective(properties); + }; + + /** + * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StatsAnomaliesObjective.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.topFeatureCount != null && Object.hasOwnProperty.call(message, "topFeatureCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.topFeatureCount); + return writer; + }; + + /** + * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StatsAnomaliesObjective.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StatsAnomaliesObjective.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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 4: { + message.topFeatureCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StatsAnomaliesObjective.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StatsAnomaliesObjective message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StatsAnomaliesObjective.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: + case 4: + break; + } + if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) + if (!$util.isInteger(message.topFeatureCount)) + return "topFeatureCount: integer expected"; + return null; + }; + + /** + * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + */ + StatsAnomaliesObjective.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) + return object; + var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "RAW_FEATURE_SKEW": + case 1: + message.type = 1; + break; + case "RAW_FEATURE_DRIFT": + case 2: + message.type = 2; + break; + case "FEATURE_ATTRIBUTION_SKEW": + case 3: + message.type = 3; + break; + case "FEATURE_ATTRIBUTION_DRIFT": + case 4: + message.type = 4; + break; + } + if (object.topFeatureCount != null) + message.topFeatureCount = object.topFeatureCount | 0; + return message; + }; + + /** + * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} message StatsAnomaliesObjective + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StatsAnomaliesObjective.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; + object.topFeatureCount = 0; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.type] === undefined ? message.type : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.type] : message.type; + if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) + object.topFeatureCount = message.topFeatureCount; + return object; + }; + + /** + * Converts this StatsAnomaliesObjective to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + * @returns {Object.} JSON object + */ + StatsAnomaliesObjective.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StatsAnomaliesObjective + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StatsAnomaliesObjective.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective"; + }; + + return StatsAnomaliesObjective; + })(); + + return SearchModelDeploymentMonitoringStatsAnomaliesRequest; })(); - v1.UpdateModelDeploymentMonitoringJobOperationMetadata = (function() { + v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse = (function() { /** - * Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. + * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateModelDeploymentMonitoringJobOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata + * @interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse + * @property {Array.|null} [monitoringStats] SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats + * @property {string|null} [nextPageToken] SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ /** - * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. - * @implements IUpdateModelDeploymentMonitoringJobOperationMetadata + * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * @implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set */ - function UpdateModelDeploymentMonitoringJobOperationMetadata(properties) { + function SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties) { + this.monitoringStats = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85373,75 +86646,92 @@ } /** - * UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. + * @member {Array.} monitoringStats + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @instance */ - UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.genericMetadata = null; + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.monitoringStats = $util.emptyArray; /** - * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. + * SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata instance + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse instance */ - UpdateModelDeploymentMonitoringJobOperationMetadata.create = function create(properties) { - return new UpdateModelDeploymentMonitoringJobOperationMetadata(properties); + SearchModelDeploymentMonitoringStatsAnomaliesResponse.create = function create(properties) { + return new SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties); }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobOperationMetadata.encode = function encode(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.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(); + if (message.monitoringStats != null && message.monitoringStats.length) + for (var i = 0; i < message.monitoringStats.length; ++i) + $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.encode(message.monitoringStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @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.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobOperationMetadata.decode = function decode(reader, length) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.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.UpdateModelDeploymentMonitoringJobOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); 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()); + if (!(message.monitoringStats && message.monitoringStats.length)) + message.monitoringStats = []; + message.monitoringStats.push($root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -85453,172 +86743,148 @@ }; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateModelDeploymentMonitoringJobOperationMetadata.verify = function verify(message) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.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; + if (message.monitoringStats != null && message.hasOwnProperty("monitoringStats")) { + if (!Array.isArray(message.monitoringStats)) + return "monitoringStats: array expected"; + for (var i = 0; i < message.monitoringStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify(message.monitoringStats[i]); + if (error) + return "monitoringStats." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - UpdateModelDeploymentMonitoringJobOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata) + SearchModelDeploymentMonitoringStatsAnomaliesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + if (object.monitoringStats) { + if (!Array.isArray(object.monitoringStats)) + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: array expected"); + message.monitoringStats = []; + for (var i = 0; i < object.monitoringStats.length; ++i) { + if (typeof object.monitoringStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: object expected"); + message.monitoringStats[i] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.fromObject(object.monitoringStats[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata + * @param {google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateModelDeploymentMonitoringJobOperationMetadata.toObject = function toObject(message, options) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.monitoringStats = []; 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); + object.nextPageToken = ""; + if (message.monitoringStats && message.monitoringStats.length) { + object.monitoringStats = []; + for (var j = 0; j < message.monitoringStats.length; ++j) + object.monitoringStats[j] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.toObject(message.monitoringStats[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @instance * @returns {Object.} JSON object */ - UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.toJSON = function toJSON() { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateModelDeploymentMonitoringJobOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchModelDeploymentMonitoringStatsAnomaliesResponse"; }; - return UpdateModelDeploymentMonitoringJobOperationMetadata; - })(); - - /** - * ModelDeploymentMonitoringObjectiveType enum. - * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType - * @enum {number} - * @property {number} MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED=0 MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED value - * @property {number} RAW_FEATURE_SKEW=1 RAW_FEATURE_SKEW value - * @property {number} RAW_FEATURE_DRIFT=2 RAW_FEATURE_DRIFT value - * @property {number} FEATURE_ATTRIBUTION_SKEW=3 FEATURE_ATTRIBUTION_SKEW value - * @property {number} FEATURE_ATTRIBUTION_DRIFT=4 FEATURE_ATTRIBUTION_DRIFT value - */ - v1.ModelDeploymentMonitoringObjectiveType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "RAW_FEATURE_SKEW"] = 1; - values[valuesById[2] = "RAW_FEATURE_DRIFT"] = 2; - values[valuesById[3] = "FEATURE_ATTRIBUTION_SKEW"] = 3; - values[valuesById[4] = "FEATURE_ATTRIBUTION_DRIFT"] = 4; - return values; + return SearchModelDeploymentMonitoringStatsAnomaliesResponse; })(); - v1.ModelDeploymentMonitoringJob = (function() { + v1.GetModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ModelDeploymentMonitoringJob. + * Properties of a GetModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IModelDeploymentMonitoringJob - * @property {string|null} [name] ModelDeploymentMonitoringJob name - * @property {string|null} [displayName] ModelDeploymentMonitoringJob displayName - * @property {string|null} [endpoint] ModelDeploymentMonitoringJob endpoint - * @property {google.cloud.aiplatform.v1.JobState|null} [state] ModelDeploymentMonitoringJob state - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null} [scheduleState] ModelDeploymentMonitoringJob scheduleState - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null} [latestMonitoringPipelineMetadata] ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata - * @property {Array.|null} [modelDeploymentMonitoringObjectiveConfigs] ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs - * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null} [modelDeploymentMonitoringScheduleConfig] ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig - * @property {google.cloud.aiplatform.v1.ISamplingStrategy|null} [loggingSamplingStrategy] ModelDeploymentMonitoringJob loggingSamplingStrategy - * @property {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null} [modelMonitoringAlertConfig] ModelDeploymentMonitoringJob modelMonitoringAlertConfig - * @property {string|null} [predictInstanceSchemaUri] ModelDeploymentMonitoringJob predictInstanceSchemaUri - * @property {google.protobuf.IValue|null} [samplePredictInstance] ModelDeploymentMonitoringJob samplePredictInstance - * @property {string|null} [analysisInstanceSchemaUri] ModelDeploymentMonitoringJob analysisInstanceSchemaUri - * @property {Array.|null} [bigqueryTables] ModelDeploymentMonitoringJob bigqueryTables - * @property {google.protobuf.IDuration|null} [logTtl] ModelDeploymentMonitoringJob logTtl - * @property {Object.|null} [labels] ModelDeploymentMonitoringJob labels - * @property {google.protobuf.ITimestamp|null} [createTime] ModelDeploymentMonitoringJob createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] ModelDeploymentMonitoringJob updateTime - * @property {google.protobuf.ITimestamp|null} [nextScheduleTime] ModelDeploymentMonitoringJob nextScheduleTime - * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [statsAnomaliesBaseDirectory] ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory - * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] ModelDeploymentMonitoringJob encryptionSpec - * @property {boolean|null} [enableMonitoringPipelineLogs] ModelDeploymentMonitoringJob enableMonitoringPipelineLogs - * @property {google.rpc.IStatus|null} [error] ModelDeploymentMonitoringJob error + * @interface IGetModelDeploymentMonitoringJobRequest + * @property {string|null} [name] GetModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new ModelDeploymentMonitoringJob. + * Constructs a new GetModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelDeploymentMonitoringJob. - * @implements IModelDeploymentMonitoringJob + * @classdesc Represents a GetModelDeploymentMonitoringJobRequest. + * @implements IGetModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ModelDeploymentMonitoringJob(properties) { - this.modelDeploymentMonitoringObjectiveConfigs = []; - this.bigqueryTables = []; - this.labels = {}; + function GetModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -85626,409 +86892,338 @@ } /** - * ModelDeploymentMonitoringJob name. + * GetModelDeploymentMonitoringJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.name = ""; + GetModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * ModelDeploymentMonitoringJob displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest instance */ - ModelDeploymentMonitoringJob.prototype.displayName = ""; + GetModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new GetModelDeploymentMonitoringJobRequest(properties); + }; /** - * ModelDeploymentMonitoringJob endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.endpoint = ""; - - /** - * ModelDeploymentMonitoringJob state. - * @member {google.cloud.aiplatform.v1.JobState} state - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.state = 0; - - /** - * ModelDeploymentMonitoringJob scheduleState. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState} scheduleState - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.scheduleState = 0; - - /** - * ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null|undefined} latestMonitoringPipelineMetadata - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringJob.prototype.latestMonitoringPipelineMetadata = null; + GetModelDeploymentMonitoringJobRequest.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; + }; /** - * ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. - * @member {Array.} modelDeploymentMonitoringObjectiveConfigs - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringObjectiveConfigs = $util.emptyArray; + GetModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. - * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null|undefined} modelDeploymentMonitoringScheduleConfig - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @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.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringScheduleConfig = null; + GetModelDeploymentMonitoringJobRequest.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.GetModelDeploymentMonitoringJobRequest(); + 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; + }; /** - * ModelDeploymentMonitoringJob loggingSamplingStrategy. - * @member {google.cloud.aiplatform.v1.ISamplingStrategy|null|undefined} loggingSamplingStrategy - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringJob.prototype.loggingSamplingStrategy = null; + GetModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * ModelDeploymentMonitoringJob modelMonitoringAlertConfig. - * @member {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null|undefined} modelMonitoringAlertConfig - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Verifies a GetModelDeploymentMonitoringJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringJob.prototype.modelMonitoringAlertConfig = null; + GetModelDeploymentMonitoringJobRequest.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; + }; /** - * ModelDeploymentMonitoringJob predictInstanceSchemaUri. - * @member {string} predictInstanceSchemaUri - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest */ - ModelDeploymentMonitoringJob.prototype.predictInstanceSchemaUri = ""; + GetModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * ModelDeploymentMonitoringJob samplePredictInstance. - * @member {google.protobuf.IValue|null|undefined} samplePredictInstance - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - ModelDeploymentMonitoringJob.prototype.samplePredictInstance = null; + GetModelDeploymentMonitoringJobRequest.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; + }; /** - * ModelDeploymentMonitoringJob analysisInstanceSchemaUri. - * @member {string} analysisInstanceSchemaUri - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest * @instance + * @returns {Object.} JSON object */ - ModelDeploymentMonitoringJob.prototype.analysisInstanceSchemaUri = ""; + GetModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * ModelDeploymentMonitoringJob bigqueryTables. - * @member {Array.} bigqueryTables - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Gets the default type url for GetModelDeploymentMonitoringJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - ModelDeploymentMonitoringJob.prototype.bigqueryTables = $util.emptyArray; + GetModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest"; + }; - /** - * ModelDeploymentMonitoringJob logTtl. - * @member {google.protobuf.IDuration|null|undefined} logTtl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.logTtl = null; + return GetModelDeploymentMonitoringJobRequest; + })(); - /** - * ModelDeploymentMonitoringJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.labels = $util.emptyObject; + v1.ListModelDeploymentMonitoringJobsRequest = (function() { /** - * ModelDeploymentMonitoringJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Properties of a ListModelDeploymentMonitoringJobsRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IListModelDeploymentMonitoringJobsRequest + * @property {string|null} [parent] ListModelDeploymentMonitoringJobsRequest parent + * @property {string|null} [filter] ListModelDeploymentMonitoringJobsRequest filter + * @property {number|null} [pageSize] ListModelDeploymentMonitoringJobsRequest pageSize + * @property {string|null} [pageToken] ListModelDeploymentMonitoringJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelDeploymentMonitoringJobsRequest readMask */ - ModelDeploymentMonitoringJob.prototype.createTime = null; /** - * ModelDeploymentMonitoringJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @instance + * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListModelDeploymentMonitoringJobsRequest. + * @implements IListModelDeploymentMonitoringJobsRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set */ - ModelDeploymentMonitoringJob.prototype.updateTime = null; + function ListModelDeploymentMonitoringJobsRequest(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]]; + } /** - * ModelDeploymentMonitoringJob nextScheduleTime. - * @member {google.protobuf.ITimestamp|null|undefined} nextScheduleTime - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * ListModelDeploymentMonitoringJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.nextScheduleTime = null; + ListModelDeploymentMonitoringJobsRequest.prototype.parent = ""; /** - * ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. - * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} statsAnomaliesBaseDirectory - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * ListModelDeploymentMonitoringJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.statsAnomaliesBaseDirectory = null; + ListModelDeploymentMonitoringJobsRequest.prototype.filter = ""; /** - * ModelDeploymentMonitoringJob encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * ListModelDeploymentMonitoringJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.encryptionSpec = null; + ListModelDeploymentMonitoringJobsRequest.prototype.pageSize = 0; /** - * ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. - * @member {boolean} enableMonitoringPipelineLogs - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * ListModelDeploymentMonitoringJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.enableMonitoringPipelineLogs = false; + ListModelDeploymentMonitoringJobsRequest.prototype.pageToken = ""; /** - * ModelDeploymentMonitoringJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * ListModelDeploymentMonitoringJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.error = null; + ListModelDeploymentMonitoringJobsRequest.prototype.readMask = null; /** - * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob instance + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest instance */ - ModelDeploymentMonitoringJob.create = function create(properties) { - return new ModelDeploymentMonitoringJob(properties); + ListModelDeploymentMonitoringJobsRequest.create = function create(properties) { + return new ListModelDeploymentMonitoringJobsRequest(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringJob.encode = function encode(message, writer) { + ListModelDeploymentMonitoringJobsRequest.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); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.endpoint); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); - if (message.scheduleState != null && Object.hasOwnProperty.call(message, "scheduleState")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.scheduleState); - if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.modelDeploymentMonitoringObjectiveConfigs.length) - for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.encode(message.modelDeploymentMonitoringObjectiveConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.modelDeploymentMonitoringScheduleConfig != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringScheduleConfig")) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.encode(message.modelDeploymentMonitoringScheduleConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) - $root.google.cloud.aiplatform.v1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.predictInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "predictInstanceSchemaUri")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.predictInstanceSchemaUri); - if (message.bigqueryTables != null && message.bigqueryTables.length) - for (var i = 0; i < message.bigqueryTables.length; ++i) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.encode(message.bigqueryTables[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.nextScheduleTime != null && Object.hasOwnProperty.call(message, "nextScheduleTime")) - $root.google.protobuf.Timestamp.encode(message.nextScheduleTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.modelMonitoringAlertConfig != null && Object.hasOwnProperty.call(message, "modelMonitoringAlertConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.encode(message.modelMonitoringAlertConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.analysisInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "analysisInstanceSchemaUri")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.analysisInstanceSchemaUri); - if (message.logTtl != null && Object.hasOwnProperty.call(message, "logTtl")) - $root.google.protobuf.Duration.encode(message.logTtl, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.samplePredictInstance != null && Object.hasOwnProperty.call(message, "samplePredictInstance")) - $root.google.protobuf.Value.encode(message.samplePredictInstance, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.statsAnomaliesBaseDirectory != null && Object.hasOwnProperty.call(message, "statsAnomaliesBaseDirectory")) - $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.statsAnomaliesBaseDirectory, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.enableMonitoringPipelineLogs != null && Object.hasOwnProperty.call(message, "enableMonitoringPipelineLogs")) - writer.uint32(/* id 22, wireType 0 =*/176).bool(message.enableMonitoringPipelineLogs); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); - if (message.latestMonitoringPipelineMetadata != null && Object.hasOwnProperty.call(message, "latestMonitoringPipelineMetadata")) - $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.encode(message.latestMonitoringPipelineMetadata, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringJob.encodeDelimited = function encodeDelimited(message, writer) { + ListModelDeploymentMonitoringJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @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.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringJob.decode = function decode(reader, length) { + ListModelDeploymentMonitoringJobsRequest.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.ModelDeploymentMonitoringJob(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.displayName = reader.string(); + message.filter = reader.string(); break; } case 3: { - message.endpoint = reader.string(); + message.pageSize = reader.int32(); break; } case 4: { - message.state = reader.int32(); + message.pageToken = reader.string(); break; } case 5: { - message.scheduleState = reader.int32(); - break; - } - case 25: { - message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.decode(reader, reader.uint32()); - break; - } - case 6: { - if (!(message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length)) - message.modelDeploymentMonitoringObjectiveConfigs = []; - message.modelDeploymentMonitoringObjectiveConfigs.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.decode(reader, reader.uint32())); - break; - } - case 7: { - message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.decode(reader, reader.uint32()); - break; - } - case 8: { - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.decode(reader, reader.uint32()); - break; - } - case 15: { - message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.decode(reader, reader.uint32()); - break; - } - case 9: { - message.predictInstanceSchemaUri = reader.string(); - break; - } - case 19: { - message.samplePredictInstance = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 16: { - message.analysisInstanceSchemaUri = reader.string(); - break; - } - case 10: { - if (!(message.bigqueryTables && message.bigqueryTables.length)) - message.bigqueryTables = []; - message.bigqueryTables.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.decode(reader, reader.uint32())); - break; - } - case 17: { - message.logTtl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 11: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 12: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 13: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 14: { - message.nextScheduleTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 20: { - message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); - break; - } - case 21: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); - break; - } - case 22: { - message.enableMonitoringPipelineLogs = reader.bool(); - break; - } - case 23: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -86040,864 +87235,255 @@ }; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringJob.decodeDelimited = function decodeDelimited(reader) { + ListModelDeploymentMonitoringJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringJob message. + * Verifies a ListModelDeploymentMonitoringJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringJob.verify = function verify(message) { + ListModelDeploymentMonitoringJobsRequest.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"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; - } - if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) - switch (message.scheduleState) { - default: - return "scheduleState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify(message.latestMonitoringPipelineMetadata); - if (error) - return "latestMonitoringPipelineMetadata." + error; - } - if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.hasOwnProperty("modelDeploymentMonitoringObjectiveConfigs")) { - if (!Array.isArray(message.modelDeploymentMonitoringObjectiveConfigs)) - return "modelDeploymentMonitoringObjectiveConfigs: array expected"; - for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify(message.modelDeploymentMonitoringObjectiveConfigs[i]); - if (error) - return "modelDeploymentMonitoringObjectiveConfigs." + error; - } - } - if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify(message.modelDeploymentMonitoringScheduleConfig); - if (error) - return "modelDeploymentMonitoringScheduleConfig." + error; - } - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { - var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.verify(message.loggingSamplingStrategy); - if (error) - return "loggingSamplingStrategy." + error; - } - if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify(message.modelMonitoringAlertConfig); - if (error) - return "modelMonitoringAlertConfig." + error; - } - if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) - if (!$util.isString(message.predictInstanceSchemaUri)) - return "predictInstanceSchemaUri: string expected"; - if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) { - var error = $root.google.protobuf.Value.verify(message.samplePredictInstance); - if (error) - return "samplePredictInstance." + error; - } - if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) - if (!$util.isString(message.analysisInstanceSchemaUri)) - return "analysisInstanceSchemaUri: string expected"; - if (message.bigqueryTables != null && message.hasOwnProperty("bigqueryTables")) { - if (!Array.isArray(message.bigqueryTables)) - return "bigqueryTables: array expected"; - for (var i = 0; i < message.bigqueryTables.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify(message.bigqueryTables[i]); - if (error) - return "bigqueryTables." + error; - } - } - if (message.logTtl != null && message.hasOwnProperty("logTtl")) { - var error = $root.google.protobuf.Duration.verify(message.logTtl); - if (error) - return "logTtl." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.nextScheduleTime); - if (error) - return "nextScheduleTime." + error; - } - if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) { - var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.statsAnomaliesBaseDirectory); - if (error) - return "statsAnomaliesBaseDirectory." + error; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; - } - if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) - if (typeof message.enableMonitoringPipelineLogs !== "boolean") - return "enableMonitoringPipelineLogs: boolean expected"; - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "error." + error; + return "readMask." + error; } return null; }; /** - * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest */ - ModelDeploymentMonitoringJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob) + ListModelDeploymentMonitoringJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "JOB_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "JOB_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "JOB_STATE_PENDING": - case 2: - message.state = 2; - break; - case "JOB_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "JOB_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "JOB_STATE_FAILED": - case 5: - message.state = 5; - break; - case "JOB_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "JOB_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "JOB_STATE_PAUSED": - case 8: - message.state = 8; - break; - case "JOB_STATE_EXPIRED": - case 9: - message.state = 9; - break; - case "JOB_STATE_UPDATING": - case 10: - message.state = 10; - break; - } - switch (object.scheduleState) { - default: - if (typeof object.scheduleState === "number") { - message.scheduleState = object.scheduleState; - break; - } - break; - case "MONITORING_SCHEDULE_STATE_UNSPECIFIED": - case 0: - message.scheduleState = 0; - break; - case "PENDING": - case 1: - message.scheduleState = 1; - break; - case "OFFLINE": - case 2: - message.scheduleState = 2; - break; - case "RUNNING": - case 3: - message.scheduleState = 3; - break; - } - if (object.latestMonitoringPipelineMetadata != null) { - if (typeof object.latestMonitoringPipelineMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.latestMonitoringPipelineMetadata: object expected"); - message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.fromObject(object.latestMonitoringPipelineMetadata); - } - if (object.modelDeploymentMonitoringObjectiveConfigs) { - if (!Array.isArray(object.modelDeploymentMonitoringObjectiveConfigs)) - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: array expected"); - message.modelDeploymentMonitoringObjectiveConfigs = []; - for (var i = 0; i < object.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { - if (typeof object.modelDeploymentMonitoringObjectiveConfigs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: object expected"); - message.modelDeploymentMonitoringObjectiveConfigs[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.fromObject(object.modelDeploymentMonitoringObjectiveConfigs[i]); - } - } - if (object.modelDeploymentMonitoringScheduleConfig != null) { - if (typeof object.modelDeploymentMonitoringScheduleConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringScheduleConfig: object expected"); - message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.fromObject(object.modelDeploymentMonitoringScheduleConfig); - } - if (object.loggingSamplingStrategy != null) { - if (typeof object.loggingSamplingStrategy !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.loggingSamplingStrategy: object expected"); - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); - } - if (object.modelMonitoringAlertConfig != null) { - if (typeof object.modelMonitoringAlertConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelMonitoringAlertConfig: object expected"); - message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.fromObject(object.modelMonitoringAlertConfig); - } - if (object.predictInstanceSchemaUri != null) - message.predictInstanceSchemaUri = String(object.predictInstanceSchemaUri); - if (object.samplePredictInstance != null) { - if (typeof object.samplePredictInstance !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.samplePredictInstance: object expected"); - message.samplePredictInstance = $root.google.protobuf.Value.fromObject(object.samplePredictInstance); - } - if (object.analysisInstanceSchemaUri != null) - message.analysisInstanceSchemaUri = String(object.analysisInstanceSchemaUri); - if (object.bigqueryTables) { - if (!Array.isArray(object.bigqueryTables)) - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.bigqueryTables: array expected"); - message.bigqueryTables = []; - for (var i = 0; i < object.bigqueryTables.length; ++i) { - if (typeof object.bigqueryTables[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.bigqueryTables: object expected"); - message.bigqueryTables[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.fromObject(object.bigqueryTables[i]); - } - } - if (object.logTtl != null) { - if (typeof object.logTtl !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.logTtl: object expected"); - message.logTtl = $root.google.protobuf.Duration.fromObject(object.logTtl); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.nextScheduleTime != null) { - if (typeof object.nextScheduleTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.nextScheduleTime: object expected"); - message.nextScheduleTime = $root.google.protobuf.Timestamp.fromObject(object.nextScheduleTime); - } - if (object.statsAnomaliesBaseDirectory != null) { - if (typeof object.statsAnomaliesBaseDirectory !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.statsAnomaliesBaseDirectory: object expected"); - message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.statsAnomaliesBaseDirectory); - } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); - } - if (object.enableMonitoringPipelineLogs != null) - message.enableMonitoringPipelineLogs = Boolean(object.enableMonitoringPipelineLogs); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); + var message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. + * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob + * @param {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringJob.toObject = function toObject(message, options) { + ListModelDeploymentMonitoringJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.modelDeploymentMonitoringObjectiveConfigs = []; - object.bigqueryTables = []; - } - if (options.objects || options.defaults) - object.labels = {}; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.endpoint = ""; - object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; - object.scheduleState = options.enums === String ? "MONITORING_SCHEDULE_STATE_UNSPECIFIED" : 0; - object.modelDeploymentMonitoringScheduleConfig = null; - object.loggingSamplingStrategy = null; - object.predictInstanceSchemaUri = ""; - object.createTime = null; - object.updateTime = null; - object.nextScheduleTime = null; - object.modelMonitoringAlertConfig = null; - object.analysisInstanceSchemaUri = ""; - object.logTtl = null; - object.samplePredictInstance = null; - object.statsAnomaliesBaseDirectory = null; - object.encryptionSpec = null; - object.enableMonitoringPipelineLogs = false; - object.error = null; - object.latestMonitoringPipelineMetadata = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.JobState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.JobState[message.state] : message.state; - if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) - object.scheduleState = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState[message.scheduleState] === undefined ? message.scheduleState : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState[message.scheduleState] : message.scheduleState; - if (message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length) { - object.modelDeploymentMonitoringObjectiveConfigs = []; - for (var j = 0; j < message.modelDeploymentMonitoringObjectiveConfigs.length; ++j) - object.modelDeploymentMonitoringObjectiveConfigs[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.toObject(message.modelDeploymentMonitoringObjectiveConfigs[j], options); - } - if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) - object.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.toObject(message.modelDeploymentMonitoringScheduleConfig, options); - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) - object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); - if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) - object.predictInstanceSchemaUri = message.predictInstanceSchemaUri; - if (message.bigqueryTables && message.bigqueryTables.length) { - object.bigqueryTables = []; - for (var j = 0; j < message.bigqueryTables.length; ++j) - object.bigqueryTables[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.toObject(message.bigqueryTables[j], options); - } - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) - object.nextScheduleTime = $root.google.protobuf.Timestamp.toObject(message.nextScheduleTime, options); - if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) - object.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.toObject(message.modelMonitoringAlertConfig, options); - if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) - object.analysisInstanceSchemaUri = message.analysisInstanceSchemaUri; - if (message.logTtl != null && message.hasOwnProperty("logTtl")) - object.logTtl = $root.google.protobuf.Duration.toObject(message.logTtl, options); - if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) - object.samplePredictInstance = $root.google.protobuf.Value.toObject(message.samplePredictInstance, options); - if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) - object.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.statsAnomaliesBaseDirectory, options); - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) - object.enableMonitoringPipelineLogs = message.enableMonitoringPipelineLogs; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) - object.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.toObject(message.latestMonitoringPipelineMetadata, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ModelDeploymentMonitoringJob to JSON. + * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringJob.prototype.toJSON = function toJSON() { + ListModelDeploymentMonitoringJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelDeploymentMonitoringJob + * Gets the default type url for ListModelDeploymentMonitoringJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelDeploymentMonitoringJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelDeploymentMonitoringJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsRequest"; }; - ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata = (function() { - - /** - * Properties of a LatestMonitoringPipelineMetadata. - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @interface ILatestMonitoringPipelineMetadata - * @property {google.protobuf.ITimestamp|null} [runTime] LatestMonitoringPipelineMetadata runTime - * @property {google.rpc.IStatus|null} [status] LatestMonitoringPipelineMetadata status - */ + return ListModelDeploymentMonitoringJobsRequest; + })(); - /** - * Constructs a new LatestMonitoringPipelineMetadata. - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob - * @classdesc Represents a LatestMonitoringPipelineMetadata. - * @implements ILatestMonitoringPipelineMetadata - * @constructor - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set - */ - function LatestMonitoringPipelineMetadata(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]]; - } + v1.ListModelDeploymentMonitoringJobsResponse = (function() { - /** - * LatestMonitoringPipelineMetadata runTime. - * @member {google.protobuf.ITimestamp|null|undefined} runTime - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @instance - */ - LatestMonitoringPipelineMetadata.prototype.runTime = null; + /** + * Properties of a ListModelDeploymentMonitoringJobsResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IListModelDeploymentMonitoringJobsResponse + * @property {Array.|null} [modelDeploymentMonitoringJobs] ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs + * @property {string|null} [nextPageToken] ListModelDeploymentMonitoringJobsResponse nextPageToken + */ - /** - * LatestMonitoringPipelineMetadata status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @instance - */ - LatestMonitoringPipelineMetadata.prototype.status = null; - - /** - * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata instance - */ - LatestMonitoringPipelineMetadata.create = function create(properties) { - return new LatestMonitoringPipelineMetadata(properties); - }; - - /** - * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LatestMonitoringPipelineMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.runTime != null && Object.hasOwnProperty.call(message, "runTime")) - $root.google.protobuf.Timestamp.encode(message.runTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LatestMonitoringPipelineMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @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.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LatestMonitoringPipelineMetadata.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.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 2: { - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LatestMonitoringPipelineMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a LatestMonitoringPipelineMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LatestMonitoringPipelineMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.runTime != null && message.hasOwnProperty("runTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.runTime); - if (error) - return "runTime." + error; - } - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; - } - return null; - }; - - /** - * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata - */ - LatestMonitoringPipelineMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); - if (object.runTime != null) { - if (typeof object.runTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.runTime: object expected"); - message.runTime = $root.google.protobuf.Timestamp.fromObject(object.runTime); - } - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); - } - return message; - }; - - /** - * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LatestMonitoringPipelineMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.runTime = null; - object.status = null; - } - if (message.runTime != null && message.hasOwnProperty("runTime")) - object.runTime = $root.google.protobuf.Timestamp.toObject(message.runTime, options); - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); - return object; - }; - - /** - * Converts this LatestMonitoringPipelineMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @instance - * @returns {Object.} JSON object - */ - LatestMonitoringPipelineMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for LatestMonitoringPipelineMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - LatestMonitoringPipelineMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata"; - }; - - return LatestMonitoringPipelineMetadata; - })(); - - /** - * MonitoringScheduleState enum. - * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState - * @enum {number} - * @property {number} MONITORING_SCHEDULE_STATE_UNSPECIFIED=0 MONITORING_SCHEDULE_STATE_UNSPECIFIED value - * @property {number} PENDING=1 PENDING value - * @property {number} OFFLINE=2 OFFLINE value - * @property {number} RUNNING=3 RUNNING value - */ - ModelDeploymentMonitoringJob.MonitoringScheduleState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MONITORING_SCHEDULE_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PENDING"] = 1; - values[valuesById[2] = "OFFLINE"] = 2; - values[valuesById[3] = "RUNNING"] = 3; - return values; - })(); - - return ModelDeploymentMonitoringJob; - })(); - - v1.ModelDeploymentMonitoringBigQueryTable = (function() { - - /** - * Properties of a ModelDeploymentMonitoringBigQueryTable. - * @memberof google.cloud.aiplatform.v1 - * @interface IModelDeploymentMonitoringBigQueryTable - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|null} [logSource] ModelDeploymentMonitoringBigQueryTable logSource - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|null} [logType] ModelDeploymentMonitoringBigQueryTable logType - * @property {string|null} [bigqueryTablePath] ModelDeploymentMonitoringBigQueryTable bigqueryTablePath - */ - - /** - * Constructs a new ModelDeploymentMonitoringBigQueryTable. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelDeploymentMonitoringBigQueryTable. - * @implements IModelDeploymentMonitoringBigQueryTable - * @constructor - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set - */ - function ModelDeploymentMonitoringBigQueryTable(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]]; - } - - /** - * ModelDeploymentMonitoringBigQueryTable logSource. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource} logSource - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable - * @instance - */ - ModelDeploymentMonitoringBigQueryTable.prototype.logSource = 0; + /** + * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListModelDeploymentMonitoringJobsResponse. + * @implements IListModelDeploymentMonitoringJobsResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + */ + function ListModelDeploymentMonitoringJobsResponse(properties) { + this.modelDeploymentMonitoringJobs = []; + 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]]; + } /** - * ModelDeploymentMonitoringBigQueryTable logType. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType} logType - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. + * @member {Array.} modelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @instance */ - ModelDeploymentMonitoringBigQueryTable.prototype.logType = 0; + ListModelDeploymentMonitoringJobsResponse.prototype.modelDeploymentMonitoringJobs = $util.emptyArray; /** - * ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. - * @member {string} bigqueryTablePath - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * ListModelDeploymentMonitoringJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @instance */ - ModelDeploymentMonitoringBigQueryTable.prototype.bigqueryTablePath = ""; + ListModelDeploymentMonitoringJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable instance + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse instance */ - ModelDeploymentMonitoringBigQueryTable.create = function create(properties) { - return new ModelDeploymentMonitoringBigQueryTable(properties); + ListModelDeploymentMonitoringJobsResponse.create = function create(properties) { + return new ListModelDeploymentMonitoringJobsResponse(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringBigQueryTable.encode = function encode(message, writer) { + ListModelDeploymentMonitoringJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.logSource != null && Object.hasOwnProperty.call(message, "logSource")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.logSource); - if (message.logType != null && Object.hasOwnProperty.call(message, "logType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.logType); - if (message.bigqueryTablePath != null && Object.hasOwnProperty.call(message, "bigqueryTablePath")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.bigqueryTablePath); + if (message.modelDeploymentMonitoringJobs != null && message.modelDeploymentMonitoringJobs.length) + for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringBigQueryTable.encodeDelimited = function encodeDelimited(message, writer) { + ListModelDeploymentMonitoringJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @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.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringBigQueryTable.decode = function decode(reader, length) { + ListModelDeploymentMonitoringJobsResponse.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.ModelDeploymentMonitoringBigQueryTable(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.logSource = reader.int32(); + if (!(message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length)) + message.modelDeploymentMonitoringJobs = []; + message.modelDeploymentMonitoringJobs.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32())); break; } case 2: { - message.logType = reader.int32(); - break; - } - case 3: { - message.bigqueryTablePath = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -86909,220 +87495,149 @@ }; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringBigQueryTable.decodeDelimited = function decodeDelimited(reader) { + ListModelDeploymentMonitoringJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * Verifies a ListModelDeploymentMonitoringJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringBigQueryTable.verify = function verify(message) { + ListModelDeploymentMonitoringJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.logSource != null && message.hasOwnProperty("logSource")) - switch (message.logSource) { - default: - return "logSource: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.logType != null && message.hasOwnProperty("logType")) - switch (message.logType) { - default: - return "logType: enum value expected"; - case 0: - case 1: - case 2: - break; + if (message.modelDeploymentMonitoringJobs != null && message.hasOwnProperty("modelDeploymentMonitoringJobs")) { + if (!Array.isArray(message.modelDeploymentMonitoringJobs)) + return "modelDeploymentMonitoringJobs: array expected"; + for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJobs[i]); + if (error) + return "modelDeploymentMonitoringJobs." + error; } - if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) - if (!$util.isString(message.bigqueryTablePath)) - return "bigqueryTablePath: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @returns {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse */ - ModelDeploymentMonitoringBigQueryTable.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable) + ListModelDeploymentMonitoringJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable(); - switch (object.logSource) { - default: - if (typeof object.logSource === "number") { - message.logSource = object.logSource; - break; - } - break; - case "LOG_SOURCE_UNSPECIFIED": - case 0: - message.logSource = 0; - break; - case "TRAINING": - case 1: - message.logSource = 1; - break; - case "SERVING": - case 2: - message.logSource = 2; - break; - } - switch (object.logType) { - default: - if (typeof object.logType === "number") { - message.logType = object.logType; - break; + var message = new $root.google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse(); + if (object.modelDeploymentMonitoringJobs) { + if (!Array.isArray(object.modelDeploymentMonitoringJobs)) + throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: array expected"); + message.modelDeploymentMonitoringJobs = []; + for (var i = 0; i < object.modelDeploymentMonitoringJobs.length; ++i) { + if (typeof object.modelDeploymentMonitoringJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: object expected"); + message.modelDeploymentMonitoringJobs[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJobs[i]); } - break; - case "LOG_TYPE_UNSPECIFIED": - case 0: - message.logType = 0; - break; - case "PREDICT": - case 1: - message.logType = 1; - break; - case "EXPLAIN": - case 2: - message.logType = 2; - break; } - if (object.bigqueryTablePath != null) - message.bigqueryTablePath = String(object.bigqueryTablePath); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. + * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable + * @param {google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringBigQueryTable.toObject = function toObject(message, options) { + ListModelDeploymentMonitoringJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.logSource = options.enums === String ? "LOG_SOURCE_UNSPECIFIED" : 0; - object.logType = options.enums === String ? "LOG_TYPE_UNSPECIFIED" : 0; - object.bigqueryTablePath = ""; + if (options.arrays || options.defaults) + object.modelDeploymentMonitoringJobs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length) { + object.modelDeploymentMonitoringJobs = []; + for (var j = 0; j < message.modelDeploymentMonitoringJobs.length; ++j) + object.modelDeploymentMonitoringJobs[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJobs[j], options); } - if (message.logSource != null && message.hasOwnProperty("logSource")) - object.logSource = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] === undefined ? message.logSource : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] : message.logSource; - if (message.logType != null && message.hasOwnProperty("logType")) - object.logType = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] === undefined ? message.logType : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] : message.logType; - if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) - object.bigqueryTablePath = message.bigqueryTablePath; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringBigQueryTable.prototype.toJSON = function toJSON() { + ListModelDeploymentMonitoringJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelDeploymentMonitoringBigQueryTable + * Gets the default type url for ListModelDeploymentMonitoringJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelDeploymentMonitoringBigQueryTable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelDeploymentMonitoringJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelDeploymentMonitoringJobsResponse"; }; - /** - * LogSource enum. - * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource - * @enum {number} - * @property {number} LOG_SOURCE_UNSPECIFIED=0 LOG_SOURCE_UNSPECIFIED value - * @property {number} TRAINING=1 TRAINING value - * @property {number} SERVING=2 SERVING value - */ - ModelDeploymentMonitoringBigQueryTable.LogSource = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LOG_SOURCE_UNSPECIFIED"] = 0; - values[valuesById[1] = "TRAINING"] = 1; - values[valuesById[2] = "SERVING"] = 2; - return values; - })(); - - /** - * LogType enum. - * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType - * @enum {number} - * @property {number} LOG_TYPE_UNSPECIFIED=0 LOG_TYPE_UNSPECIFIED value - * @property {number} PREDICT=1 PREDICT value - * @property {number} EXPLAIN=2 EXPLAIN value - */ - ModelDeploymentMonitoringBigQueryTable.LogType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LOG_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PREDICT"] = 1; - values[valuesById[2] = "EXPLAIN"] = 2; - return values; - })(); - - return ModelDeploymentMonitoringBigQueryTable; + return ListModelDeploymentMonitoringJobsResponse; })(); - v1.ModelDeploymentMonitoringObjectiveConfig = (function() { + v1.UpdateModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ModelDeploymentMonitoringObjectiveConfig. + * Properties of an UpdateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IModelDeploymentMonitoringObjectiveConfig - * @property {string|null} [deployedModelId] ModelDeploymentMonitoringObjectiveConfig deployedModelId - * @property {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null} [objectiveConfig] ModelDeploymentMonitoringObjectiveConfig objectiveConfig + * @interface IUpdateModelDeploymentMonitoringJobRequest + * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelDeploymentMonitoringJobRequest updateMask */ /** - * Constructs a new ModelDeploymentMonitoringObjectiveConfig. + * Constructs a new UpdateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelDeploymentMonitoringObjectiveConfig. - * @implements IModelDeploymentMonitoringObjectiveConfig + * @classdesc Represents an UpdateModelDeploymentMonitoringJobRequest. + * @implements IUpdateModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ModelDeploymentMonitoringObjectiveConfig(properties) { + function UpdateModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87130,89 +87645,89 @@ } /** - * ModelDeploymentMonitoringObjectiveConfig deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. + * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @instance */ - ModelDeploymentMonitoringObjectiveConfig.prototype.deployedModelId = ""; + UpdateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; /** - * ModelDeploymentMonitoringObjectiveConfig objectiveConfig. - * @member {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null|undefined} objectiveConfig - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * UpdateModelDeploymentMonitoringJobRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @instance */ - ModelDeploymentMonitoringObjectiveConfig.prototype.objectiveConfig = null; + UpdateModelDeploymentMonitoringJobRequest.prototype.updateMask = null; /** - * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig instance + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest instance */ - ModelDeploymentMonitoringObjectiveConfig.create = function create(properties) { - return new ModelDeploymentMonitoringObjectiveConfig(properties); + UpdateModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new UpdateModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringObjectiveConfig.encode = function encode(message, writer) { + UpdateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.deployedModelId); - if (message.objectiveConfig != null && Object.hasOwnProperty.call(message, "objectiveConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.encode(message.objectiveConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @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.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringObjectiveConfig.decode = function decode(reader, length) { + UpdateModelDeploymentMonitoringJobRequest.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.ModelDeploymentMonitoringObjectiveConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.deployedModelId = reader.string(); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); break; } case 2: { - message.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -87224,137 +87739,141 @@ }; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { + UpdateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringObjectiveConfig message. + * Verifies an UpdateModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringObjectiveConfig.verify = function verify(message) { + UpdateModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify(message.objectiveConfig); + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); if (error) - return "objectiveConfig." + error; + return "modelDeploymentMonitoringJob." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest */ - ModelDeploymentMonitoringObjectiveConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig) + UpdateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig(); - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.objectiveConfig != null) { - if (typeof object.objectiveConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.objectiveConfig: object expected"); - message.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.fromObject(object.objectiveConfig); + var message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest(); + if (object.modelDeploymentMonitoringJob != null) { + if (typeof object.modelDeploymentMonitoringJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. + * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig + * @param {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringObjectiveConfig.toObject = function toObject(message, options) { + UpdateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.deployedModelId = ""; - object.objectiveConfig = null; + object.modelDeploymentMonitoringJob = null; + object.updateMask = null; } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) - object.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.toObject(message.objectiveConfig, options); + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. + * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { + UpdateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig + * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelDeploymentMonitoringObjectiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest"; }; - return ModelDeploymentMonitoringObjectiveConfig; + return UpdateModelDeploymentMonitoringJobRequest; })(); - v1.ModelDeploymentMonitoringScheduleConfig = (function() { + v1.DeleteModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ModelDeploymentMonitoringScheduleConfig. + * Properties of a DeleteModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IModelDeploymentMonitoringScheduleConfig - * @property {google.protobuf.IDuration|null} [monitorInterval] ModelDeploymentMonitoringScheduleConfig monitorInterval - * @property {google.protobuf.IDuration|null} [monitorWindow] ModelDeploymentMonitoringScheduleConfig monitorWindow + * @interface IDeleteModelDeploymentMonitoringJobRequest + * @property {string|null} [name] DeleteModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * Constructs a new DeleteModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelDeploymentMonitoringScheduleConfig. - * @implements IModelDeploymentMonitoringScheduleConfig + * @classdesc Represents a DeleteModelDeploymentMonitoringJobRequest. + * @implements IDeleteModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ModelDeploymentMonitoringScheduleConfig(properties) { + function DeleteModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87362,89 +87881,75 @@ } /** - * ModelDeploymentMonitoringScheduleConfig monitorInterval. - * @member {google.protobuf.IDuration|null|undefined} monitorInterval - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig - * @instance - */ - ModelDeploymentMonitoringScheduleConfig.prototype.monitorInterval = null; - - /** - * ModelDeploymentMonitoringScheduleConfig monitorWindow. - * @member {google.protobuf.IDuration|null|undefined} monitorWindow - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * DeleteModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @instance */ - ModelDeploymentMonitoringScheduleConfig.prototype.monitorWindow = null; + DeleteModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig instance + * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest instance */ - ModelDeploymentMonitoringScheduleConfig.create = function create(properties) { - return new ModelDeploymentMonitoringScheduleConfig(properties); + DeleteModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new DeleteModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringScheduleConfig.encode = function encode(message, writer) { + DeleteModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.monitorInterval != null && Object.hasOwnProperty.call(message, "monitorInterval")) - $root.google.protobuf.Duration.encode(message.monitorInterval, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.monitorWindow != null && Object.hasOwnProperty.call(message, "monitorWindow")) - $root.google.protobuf.Duration.encode(message.monitorWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringScheduleConfig.encodeDelimited = function encodeDelimited(message, writer) { + DeleteModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @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.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringScheduleConfig.decode = function decode(reader, length) { + DeleteModelDeploymentMonitoringJobRequest.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.ModelDeploymentMonitoringScheduleConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.monitorInterval = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - } - case 2: { - message.monitorWindow = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -87456,145 +87961,122 @@ }; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringScheduleConfig.decodeDelimited = function decodeDelimited(reader) { + DeleteModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringScheduleConfig message. + * Verifies a DeleteModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringScheduleConfig.verify = function verify(message) { + DeleteModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) { - var error = $root.google.protobuf.Duration.verify(message.monitorInterval); - if (error) - return "monitorInterval." + error; - } - if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) { - var error = $root.google.protobuf.Duration.verify(message.monitorWindow); - if (error) - return "monitorWindow." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @returns {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest */ - ModelDeploymentMonitoringScheduleConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig) + DeleteModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig(); - if (object.monitorInterval != null) { - if (typeof object.monitorInterval !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitorInterval: object expected"); - message.monitorInterval = $root.google.protobuf.Duration.fromObject(object.monitorInterval); - } - if (object.monitorWindow != null) { - if (typeof object.monitorWindow !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitorWindow: object expected"); - message.monitorWindow = $root.google.protobuf.Duration.fromObject(object.monitorWindow); - } + var message = new $root.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. + * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig + * @param {google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringScheduleConfig.toObject = function toObject(message, options) { + DeleteModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.monitorInterval = null; - object.monitorWindow = null; - } - if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) - object.monitorInterval = $root.google.protobuf.Duration.toObject(message.monitorInterval, options); - if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) - object.monitorWindow = $root.google.protobuf.Duration.toObject(message.monitorWindow, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringScheduleConfig.prototype.toJSON = function toJSON() { + DeleteModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelDeploymentMonitoringScheduleConfig + * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelDeploymentMonitoringScheduleConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest"; }; - return ModelDeploymentMonitoringScheduleConfig; + return DeleteModelDeploymentMonitoringJobRequest; })(); - v1.ModelMonitoringStatsAnomalies = (function() { + v1.PauseModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ModelMonitoringStatsAnomalies. + * Properties of a PauseModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IModelMonitoringStatsAnomalies - * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null} [objective] ModelMonitoringStatsAnomalies objective - * @property {string|null} [deployedModelId] ModelMonitoringStatsAnomalies deployedModelId - * @property {number|null} [anomalyCount] ModelMonitoringStatsAnomalies anomalyCount - * @property {Array.|null} [featureStats] ModelMonitoringStatsAnomalies featureStats + * @interface IPauseModelDeploymentMonitoringJobRequest + * @property {string|null} [name] PauseModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new ModelMonitoringStatsAnomalies. + * Constructs a new PauseModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelMonitoringStatsAnomalies. - * @implements IModelMonitoringStatsAnomalies + * @classdesc Represents a PauseModelDeploymentMonitoringJobRequest. + * @implements IPauseModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ModelMonitoringStatsAnomalies(properties) { - this.featureStats = []; + function PauseModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -87602,120 +88084,75 @@ } /** - * ModelMonitoringStatsAnomalies objective. - * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType} objective - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies - * @instance - */ - ModelMonitoringStatsAnomalies.prototype.objective = 0; - - /** - * ModelMonitoringStatsAnomalies deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies - * @instance - */ - ModelMonitoringStatsAnomalies.prototype.deployedModelId = ""; - - /** - * ModelMonitoringStatsAnomalies anomalyCount. - * @member {number} anomalyCount - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies - * @instance - */ - ModelMonitoringStatsAnomalies.prototype.anomalyCount = 0; - - /** - * ModelMonitoringStatsAnomalies featureStats. - * @member {Array.} featureStats - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * PauseModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @instance */ - ModelMonitoringStatsAnomalies.prototype.featureStats = $util.emptyArray; + PauseModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies instance + * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest instance */ - ModelMonitoringStatsAnomalies.create = function create(properties) { - return new ModelMonitoringStatsAnomalies(properties); + PauseModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new PauseModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringStatsAnomalies.encode = function encode(message, writer) { + PauseModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.objective != null && Object.hasOwnProperty.call(message, "objective")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objective); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.anomalyCount != null && Object.hasOwnProperty.call(message, "anomalyCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.anomalyCount); - if (message.featureStats != null && message.featureStats.length) - for (var i = 0; i < message.featureStats.length; ++i) - $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.encode(message.featureStats[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { + PauseModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @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.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringStatsAnomalies.decode = function decode(reader, length) { + PauseModelDeploymentMonitoringJobRequest.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.ModelMonitoringStatsAnomalies(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.objective = reader.int32(); - break; - } - case 2: { - message.deployedModelId = reader.string(); - break; - } - case 3: { - message.anomalyCount = reader.int32(); - break; - } - case 4: { - if (!(message.featureStats && message.featureStats.length)) - message.featureStats = []; - message.featureStats.push($root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.decode(reader, reader.uint32())); + message.name = reader.string(); break; } default: @@ -87727,507 +88164,325 @@ }; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { + PauseModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelMonitoringStatsAnomalies message. + * Verifies a PauseModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelMonitoringStatsAnomalies.verify = function verify(message) { + PauseModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.objective != null && message.hasOwnProperty("objective")) - switch (message.objective) { - default: - return "objective: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) - if (!$util.isInteger(message.anomalyCount)) - return "anomalyCount: integer expected"; - if (message.featureStats != null && message.hasOwnProperty("featureStats")) { - if (!Array.isArray(message.featureStats)) - return "featureStats: array expected"; - for (var i = 0; i < message.featureStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify(message.featureStats[i]); - if (error) - return "featureStats." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @returns {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest */ - ModelMonitoringStatsAnomalies.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies(); - switch (object.objective) { - default: - if (typeof object.objective === "number") { - message.objective = object.objective; - break; - } - break; - case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": - case 0: - message.objective = 0; - break; - case "RAW_FEATURE_SKEW": - case 1: - message.objective = 1; - break; - case "RAW_FEATURE_DRIFT": - case 2: - message.objective = 2; - break; - case "FEATURE_ATTRIBUTION_SKEW": - case 3: - message.objective = 3; - break; - case "FEATURE_ATTRIBUTION_DRIFT": - case 4: - message.objective = 4; - break; - } - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.anomalyCount != null) - message.anomalyCount = object.anomalyCount | 0; - if (object.featureStats) { - if (!Array.isArray(object.featureStats)) - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.featureStats: array expected"); - message.featureStats = []; - for (var i = 0; i < object.featureStats.length; ++i) { - if (typeof object.featureStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.featureStats: object expected"); - message.featureStats[i] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.fromObject(object.featureStats[i]); - } - } + PauseModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. + * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies + * @param {google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelMonitoringStatsAnomalies.toObject = function toObject(message, options) { + PauseModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.featureStats = []; - if (options.defaults) { - object.objective = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; - object.deployedModelId = ""; - object.anomalyCount = 0; - } - if (message.objective != null && message.hasOwnProperty("objective")) - object.objective = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.objective] === undefined ? message.objective : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.objective] : message.objective; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) - object.anomalyCount = message.anomalyCount; - if (message.featureStats && message.featureStats.length) { - object.featureStats = []; - for (var j = 0; j < message.featureStats.length; ++j) - object.featureStats[j] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.toObject(message.featureStats[j], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ModelMonitoringStatsAnomalies to JSON. + * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ModelMonitoringStatsAnomalies.prototype.toJSON = function toJSON() { + PauseModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelMonitoringStatsAnomalies + * Gets the default type url for PauseModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelMonitoringStatsAnomalies.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PauseModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest"; }; - ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies = (function() { - - /** - * Properties of a FeatureHistoricStatsAnomalies. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies - * @interface IFeatureHistoricStatsAnomalies - * @property {string|null} [featureDisplayName] FeatureHistoricStatsAnomalies featureDisplayName - * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [threshold] FeatureHistoricStatsAnomalies threshold - * @property {google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null} [trainingStats] FeatureHistoricStatsAnomalies trainingStats - * @property {Array.|null} [predictionStats] FeatureHistoricStatsAnomalies predictionStats - */ - - /** - * Constructs a new FeatureHistoricStatsAnomalies. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies - * @classdesc Represents a FeatureHistoricStatsAnomalies. - * @implements IFeatureHistoricStatsAnomalies - * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set - */ - function FeatureHistoricStatsAnomalies(properties) { - this.predictionStats = []; - 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]]; - } + return PauseModelDeploymentMonitoringJobRequest; + })(); - /** - * FeatureHistoricStatsAnomalies featureDisplayName. - * @member {string} featureDisplayName - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.featureDisplayName = ""; + v1.ResumeModelDeploymentMonitoringJobRequest = (function() { - /** - * FeatureHistoricStatsAnomalies threshold. - * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} threshold - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.threshold = null; + /** + * Properties of a ResumeModelDeploymentMonitoringJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IResumeModelDeploymentMonitoringJobRequest + * @property {string|null} [name] ResumeModelDeploymentMonitoringJobRequest name + */ - /** - * FeatureHistoricStatsAnomalies trainingStats. - * @member {google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null|undefined} trainingStats - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.trainingStats = null; + /** + * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ResumeModelDeploymentMonitoringJobRequest. + * @implements IResumeModelDeploymentMonitoringJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + */ + function ResumeModelDeploymentMonitoringJobRequest(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]]; + } - /** - * FeatureHistoricStatsAnomalies predictionStats. - * @member {Array.} predictionStats - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.predictionStats = $util.emptyArray; + /** + * ResumeModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @instance + */ + ResumeModelDeploymentMonitoringJobRequest.prototype.name = ""; - /** - * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies instance - */ - FeatureHistoricStatsAnomalies.create = function create(properties) { - return new FeatureHistoricStatsAnomalies(properties); - }; + /** + * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest instance + */ + ResumeModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new ResumeModelDeploymentMonitoringJobRequest(properties); + }; - /** - * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureHistoricStatsAnomalies.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureDisplayName); - if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.threshold, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.trainingStats != null && Object.hasOwnProperty.call(message, "trainingStats")) - $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.encode(message.trainingStats, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.predictionStats != null && message.predictionStats.length) - for (var i = 0; i < message.predictionStats.length; ++i) - $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.encode(message.predictionStats[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResumeModelDeploymentMonitoringJobRequest.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 FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureHistoricStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResumeModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureHistoricStatsAnomalies.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.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.featureDisplayName = reader.string(); - break; - } - case 3: { - message.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); - break; - } - case 4: { - message.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.decode(reader, reader.uint32()); - break; - } - case 5: { - if (!(message.predictionStats && message.predictionStats.length)) - message.predictionStats = []; - message.predictionStats.push($root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @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.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResumeModelDeploymentMonitoringJobRequest.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.ResumeModelDeploymentMonitoringJobRequest(); + 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 FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureHistoricStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a FeatureHistoricStatsAnomalies message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FeatureHistoricStatsAnomalies.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - if (!$util.isString(message.featureDisplayName)) - return "featureDisplayName: string expected"; - if (message.threshold != null && message.hasOwnProperty("threshold")) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.threshold); - if (error) - return "threshold." + error; - } - if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) { - var error = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.verify(message.trainingStats); - if (error) - return "trainingStats." + error; - } - if (message.predictionStats != null && message.hasOwnProperty("predictionStats")) { - if (!Array.isArray(message.predictionStats)) - return "predictionStats: array expected"; - for (var i = 0; i < message.predictionStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.verify(message.predictionStats[i]); - if (error) - return "predictionStats." + error; - } - } - return null; - }; + /** + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResumeModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies - */ - FeatureHistoricStatsAnomalies.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); - if (object.featureDisplayName != null) - message.featureDisplayName = String(object.featureDisplayName); - if (object.threshold != null) { - if (typeof object.threshold !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.threshold: object expected"); - message.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.threshold); - } - if (object.trainingStats != null) { - if (typeof object.trainingStats !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.trainingStats: object expected"); - message.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.fromObject(object.trainingStats); - } - if (object.predictionStats) { - if (!Array.isArray(object.predictionStats)) - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: array expected"); - message.predictionStats = []; - for (var i = 0; i < object.predictionStats.length; ++i) { - if (typeof object.predictionStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: object expected"); - message.predictionStats[i] = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.fromObject(object.predictionStats[i]); - } - } - return message; - }; + /** + * Verifies a ResumeModelDeploymentMonitoringJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResumeModelDeploymentMonitoringJobRequest.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 plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FeatureHistoricStatsAnomalies.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.predictionStats = []; - if (options.defaults) { - object.featureDisplayName = ""; - object.threshold = null; - object.trainingStats = null; - } - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - object.featureDisplayName = message.featureDisplayName; - if (message.threshold != null && message.hasOwnProperty("threshold")) - object.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.threshold, options); - if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) - object.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.toObject(message.trainingStats, options); - if (message.predictionStats && message.predictionStats.length) { - object.predictionStats = []; - for (var j = 0; j < message.predictionStats.length; ++j) - object.predictionStats[j] = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.toObject(message.predictionStats[j], options); - } + /** + * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + */ + ResumeModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this FeatureHistoricStatsAnomalies to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - * @returns {Object.} JSON object - */ - FeatureHistoricStatsAnomalies.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResumeModelDeploymentMonitoringJobRequest.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; + }; - /** - * Gets the default type url for FeatureHistoricStatsAnomalies - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - FeatureHistoricStatsAnomalies.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies"; - }; + /** + * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @instance + * @returns {Object.} JSON object + */ + ResumeModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return FeatureHistoricStatsAnomalies; - })(); + /** + * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResumeModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest"; + }; - return ModelMonitoringStatsAnomalies; + return ResumeModelDeploymentMonitoringJobRequest; })(); - v1.ModelMonitoringObjectiveConfig = (function() { + v1.UpdateModelDeploymentMonitoringJobOperationMetadata = (function() { /** - * Properties of a ModelMonitoringObjectiveConfig. + * Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IModelMonitoringObjectiveConfig - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null} [trainingDataset] ModelMonitoringObjectiveConfig trainingDataset - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null} [trainingPredictionSkewDetectionConfig] ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null} [predictionDriftDetectionConfig] ModelMonitoringObjectiveConfig predictionDriftDetectionConfig - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null} [explanationConfig] ModelMonitoringObjectiveConfig explanationConfig + * @interface IUpdateModelDeploymentMonitoringJobOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ /** - * Constructs a new ModelMonitoringObjectiveConfig. + * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelMonitoringObjectiveConfig. - * @implements IModelMonitoringObjectiveConfig + * @classdesc Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. + * @implements IUpdateModelDeploymentMonitoringJobOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set */ - function ModelMonitoringObjectiveConfig(properties) { + function UpdateModelDeploymentMonitoringJobOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -88235,117 +88490,75 @@ } /** - * ModelMonitoringObjectiveConfig trainingDataset. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null|undefined} trainingDataset - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @instance - */ - ModelMonitoringObjectiveConfig.prototype.trainingDataset = null; - - /** - * ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null|undefined} trainingPredictionSkewDetectionConfig - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @instance - */ - ModelMonitoringObjectiveConfig.prototype.trainingPredictionSkewDetectionConfig = null; - - /** - * ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null|undefined} predictionDriftDetectionConfig - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @instance - */ - ModelMonitoringObjectiveConfig.prototype.predictionDriftDetectionConfig = null; - - /** - * ModelMonitoringObjectiveConfig explanationConfig. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null|undefined} explanationConfig - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @instance */ - ModelMonitoringObjectiveConfig.prototype.explanationConfig = null; + UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig instance + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata instance */ - ModelMonitoringObjectiveConfig.create = function create(properties) { - return new ModelMonitoringObjectiveConfig(properties); + UpdateModelDeploymentMonitoringJobOperationMetadata.create = function create(properties) { + return new UpdateModelDeploymentMonitoringJobOperationMetadata(properties); }; /** - * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringObjectiveConfig.encode = function encode(message, writer) { + UpdateModelDeploymentMonitoringJobOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingDataset != null && Object.hasOwnProperty.call(message, "trainingDataset")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.encode(message.trainingDataset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.trainingPredictionSkewDetectionConfig != null && Object.hasOwnProperty.call(message, "trainingPredictionSkewDetectionConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.encode(message.trainingPredictionSkewDetectionConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.predictionDriftDetectionConfig != null && Object.hasOwnProperty.call(message, "predictionDriftDetectionConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.encode(message.predictionDriftDetectionConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.explanationConfig != null && Object.hasOwnProperty.call(message, "explanationConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.encode(message.explanationConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + 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 ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelDeploymentMonitoringJobOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @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.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringObjectiveConfig.decode = function decode(reader, length) { + UpdateModelDeploymentMonitoringJobOperationMetadata.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.ModelMonitoringObjectiveConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.decode(reader, reader.uint32()); - break; - } - case 2: { - message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.decode(reader, reader.uint32()); - break; - } - case 3: { - message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.decode(reader, reader.uint32()); - break; - } - case 5: { - message.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.decode(reader, reader.uint32()); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -88357,329 +88570,1178 @@ }; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { + UpdateModelDeploymentMonitoringJobOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelMonitoringObjectiveConfig message. + * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelMonitoringObjectiveConfig.verify = function verify(message) { + UpdateModelDeploymentMonitoringJobOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify(message.trainingDataset); - if (error) - return "trainingDataset." + error; - } - if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify(message.trainingPredictionSkewDetectionConfig); - if (error) - return "trainingPredictionSkewDetectionConfig." + error; - } - if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify(message.predictionDriftDetectionConfig); - if (error) - return "predictionDriftDetectionConfig." + error; - } - if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify(message.explanationConfig); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "explanationConfig." + error; + return "genericMetadata." + error; } return null; }; /** - * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata */ - ModelMonitoringObjectiveConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig) + UpdateModelDeploymentMonitoringJobOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig(); - if (object.trainingDataset != null) { - if (typeof object.trainingDataset !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.trainingDataset: object expected"); - message.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.fromObject(object.trainingDataset); - } - if (object.trainingPredictionSkewDetectionConfig != null) { - if (typeof object.trainingPredictionSkewDetectionConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.trainingPredictionSkewDetectionConfig: object expected"); - message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.fromObject(object.trainingPredictionSkewDetectionConfig); - } - if (object.predictionDriftDetectionConfig != null) { - if (typeof object.predictionDriftDetectionConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.predictionDriftDetectionConfig: object expected"); - message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.fromObject(object.predictionDriftDetectionConfig); - } - if (object.explanationConfig != null) { - if (typeof object.explanationConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.explanationConfig: object expected"); - message.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.fromObject(object.explanationConfig); + var message = new $root.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. + * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig + * @param {google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelMonitoringObjectiveConfig.toObject = function toObject(message, options) { + UpdateModelDeploymentMonitoringJobOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.trainingDataset = null; - object.trainingPredictionSkewDetectionConfig = null; - object.predictionDriftDetectionConfig = null; - object.explanationConfig = null; - } - if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) - object.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.toObject(message.trainingDataset, options); - if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) - object.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.toObject(message.trainingPredictionSkewDetectionConfig, options); - if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) - object.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.toObject(message.predictionDriftDetectionConfig, options); - if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) - object.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.toObject(message.explanationConfig, options); + 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 ModelMonitoringObjectiveConfig to JSON. + * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @instance * @returns {Object.} JSON object */ - ModelMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { + UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelMonitoringObjectiveConfig + * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelMonitoringObjectiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateModelDeploymentMonitoringJobOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata"; }; - ModelMonitoringObjectiveConfig.TrainingDataset = (function() { - - /** - * Properties of a TrainingDataset. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @interface ITrainingDataset - * @property {string|null} [dataset] TrainingDataset dataset - * @property {google.cloud.aiplatform.v1.IGcsSource|null} [gcsSource] TrainingDataset gcsSource - * @property {google.cloud.aiplatform.v1.IBigQuerySource|null} [bigquerySource] TrainingDataset bigquerySource - * @property {string|null} [dataFormat] TrainingDataset dataFormat - * @property {string|null} [targetField] TrainingDataset targetField - * @property {google.cloud.aiplatform.v1.ISamplingStrategy|null} [loggingSamplingStrategy] TrainingDataset loggingSamplingStrategy - */ + return UpdateModelDeploymentMonitoringJobOperationMetadata; + })(); - /** - * Constructs a new TrainingDataset. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @classdesc Represents a TrainingDataset. - * @implements ITrainingDataset - * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set - */ - function TrainingDataset(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]]; - } + /** + * ModelDeploymentMonitoringObjectiveType enum. + * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType + * @enum {number} + * @property {number} MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED=0 MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED value + * @property {number} RAW_FEATURE_SKEW=1 RAW_FEATURE_SKEW value + * @property {number} RAW_FEATURE_DRIFT=2 RAW_FEATURE_DRIFT value + * @property {number} FEATURE_ATTRIBUTION_SKEW=3 FEATURE_ATTRIBUTION_SKEW value + * @property {number} FEATURE_ATTRIBUTION_DRIFT=4 FEATURE_ATTRIBUTION_DRIFT value + */ + v1.ModelDeploymentMonitoringObjectiveType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "RAW_FEATURE_SKEW"] = 1; + values[valuesById[2] = "RAW_FEATURE_DRIFT"] = 2; + values[valuesById[3] = "FEATURE_ATTRIBUTION_SKEW"] = 3; + values[valuesById[4] = "FEATURE_ATTRIBUTION_DRIFT"] = 4; + return values; + })(); - /** - * TrainingDataset dataset. - * @member {string|null|undefined} dataset - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.dataset = null; + v1.ModelDeploymentMonitoringJob = (function() { - /** - * TrainingDataset gcsSource. - * @member {google.cloud.aiplatform.v1.IGcsSource|null|undefined} gcsSource - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.gcsSource = null; + /** + * Properties of a ModelDeploymentMonitoringJob. + * @memberof google.cloud.aiplatform.v1 + * @interface IModelDeploymentMonitoringJob + * @property {string|null} [name] ModelDeploymentMonitoringJob name + * @property {string|null} [displayName] ModelDeploymentMonitoringJob displayName + * @property {string|null} [endpoint] ModelDeploymentMonitoringJob endpoint + * @property {google.cloud.aiplatform.v1.JobState|null} [state] ModelDeploymentMonitoringJob state + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null} [scheduleState] ModelDeploymentMonitoringJob scheduleState + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null} [latestMonitoringPipelineMetadata] ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata + * @property {Array.|null} [modelDeploymentMonitoringObjectiveConfigs] ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs + * @property {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null} [modelDeploymentMonitoringScheduleConfig] ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig + * @property {google.cloud.aiplatform.v1.ISamplingStrategy|null} [loggingSamplingStrategy] ModelDeploymentMonitoringJob loggingSamplingStrategy + * @property {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null} [modelMonitoringAlertConfig] ModelDeploymentMonitoringJob modelMonitoringAlertConfig + * @property {string|null} [predictInstanceSchemaUri] ModelDeploymentMonitoringJob predictInstanceSchemaUri + * @property {google.protobuf.IValue|null} [samplePredictInstance] ModelDeploymentMonitoringJob samplePredictInstance + * @property {string|null} [analysisInstanceSchemaUri] ModelDeploymentMonitoringJob analysisInstanceSchemaUri + * @property {Array.|null} [bigqueryTables] ModelDeploymentMonitoringJob bigqueryTables + * @property {google.protobuf.IDuration|null} [logTtl] ModelDeploymentMonitoringJob logTtl + * @property {Object.|null} [labels] ModelDeploymentMonitoringJob labels + * @property {google.protobuf.ITimestamp|null} [createTime] ModelDeploymentMonitoringJob createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] ModelDeploymentMonitoringJob updateTime + * @property {google.protobuf.ITimestamp|null} [nextScheduleTime] ModelDeploymentMonitoringJob nextScheduleTime + * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [statsAnomaliesBaseDirectory] ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] ModelDeploymentMonitoringJob encryptionSpec + * @property {boolean|null} [enableMonitoringPipelineLogs] ModelDeploymentMonitoringJob enableMonitoringPipelineLogs + * @property {google.rpc.IStatus|null} [error] ModelDeploymentMonitoringJob error + */ - /** - * TrainingDataset bigquerySource. - * @member {google.cloud.aiplatform.v1.IBigQuerySource|null|undefined} bigquerySource - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.bigquerySource = null; + /** + * Constructs a new ModelDeploymentMonitoringJob. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ModelDeploymentMonitoringJob. + * @implements IModelDeploymentMonitoringJob + * @constructor + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob=} [properties] Properties to set + */ + function ModelDeploymentMonitoringJob(properties) { + this.modelDeploymentMonitoringObjectiveConfigs = []; + this.bigqueryTables = []; + this.labels = {}; + 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]]; + } - /** - * TrainingDataset dataFormat. - * @member {string} dataFormat - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.dataFormat = ""; + /** + * ModelDeploymentMonitoringJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.name = ""; - /** - * TrainingDataset targetField. - * @member {string} targetField - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.targetField = ""; + /** + * ModelDeploymentMonitoringJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.displayName = ""; - /** - * TrainingDataset loggingSamplingStrategy. - * @member {google.cloud.aiplatform.v1.ISamplingStrategy|null|undefined} loggingSamplingStrategy - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.loggingSamplingStrategy = null; + /** + * ModelDeploymentMonitoringJob endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.endpoint = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ModelDeploymentMonitoringJob state. + * @member {google.cloud.aiplatform.v1.JobState} state + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.state = 0; - /** - * TrainingDataset dataSource. - * @member {"dataset"|"gcsSource"|"bigquerySource"|undefined} dataSource - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - Object.defineProperty(TrainingDataset.prototype, "dataSource", { - get: $util.oneOfGetter($oneOfFields = ["dataset", "gcsSource", "bigquerySource"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * ModelDeploymentMonitoringJob scheduleState. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState} scheduleState + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.scheduleState = 0; - /** - * Creates a new TrainingDataset instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset instance - */ - TrainingDataset.create = function create(properties) { - return new TrainingDataset(properties); - }; + /** + * ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null|undefined} latestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.latestMonitoringPipelineMetadata = null; - /** - * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingDataset.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.dataFormat); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dataset); - if (message.gcsSource != null && Object.hasOwnProperty.call(message, "gcsSource")) - $root.google.cloud.aiplatform.v1.GcsSource.encode(message.gcsSource, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) - $root.google.cloud.aiplatform.v1.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.targetField != null && Object.hasOwnProperty.call(message, "targetField")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetField); - if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) - $root.google.cloud.aiplatform.v1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - return writer; - }; + /** + * ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. + * @member {Array.} modelDeploymentMonitoringObjectiveConfigs + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringObjectiveConfigs = $util.emptyArray; + + /** + * ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. + * @member {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig|null|undefined} modelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringScheduleConfig = null; + + /** + * ModelDeploymentMonitoringJob loggingSamplingStrategy. + * @member {google.cloud.aiplatform.v1.ISamplingStrategy|null|undefined} loggingSamplingStrategy + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.loggingSamplingStrategy = null; + + /** + * ModelDeploymentMonitoringJob modelMonitoringAlertConfig. + * @member {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig|null|undefined} modelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.modelMonitoringAlertConfig = null; + + /** + * ModelDeploymentMonitoringJob predictInstanceSchemaUri. + * @member {string} predictInstanceSchemaUri + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.predictInstanceSchemaUri = ""; + + /** + * ModelDeploymentMonitoringJob samplePredictInstance. + * @member {google.protobuf.IValue|null|undefined} samplePredictInstance + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.samplePredictInstance = null; + + /** + * ModelDeploymentMonitoringJob analysisInstanceSchemaUri. + * @member {string} analysisInstanceSchemaUri + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.analysisInstanceSchemaUri = ""; + + /** + * ModelDeploymentMonitoringJob bigqueryTables. + * @member {Array.} bigqueryTables + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.bigqueryTables = $util.emptyArray; + + /** + * ModelDeploymentMonitoringJob logTtl. + * @member {google.protobuf.IDuration|null|undefined} logTtl + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.logTtl = null; + + /** + * ModelDeploymentMonitoringJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.labels = $util.emptyObject; + + /** + * ModelDeploymentMonitoringJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.createTime = null; + + /** + * ModelDeploymentMonitoringJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.updateTime = null; + + /** + * ModelDeploymentMonitoringJob nextScheduleTime. + * @member {google.protobuf.ITimestamp|null|undefined} nextScheduleTime + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.nextScheduleTime = null; + + /** + * ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. + * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} statsAnomaliesBaseDirectory + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.statsAnomaliesBaseDirectory = null; + + /** + * ModelDeploymentMonitoringJob encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.encryptionSpec = null; + + /** + * ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. + * @member {boolean} enableMonitoringPipelineLogs + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.enableMonitoringPipelineLogs = false; + + /** + * ModelDeploymentMonitoringJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.error = null; + + /** + * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob instance + */ + ModelDeploymentMonitoringJob.create = function create(properties) { + return new ModelDeploymentMonitoringJob(properties); + }; + + /** + * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringJob.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); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.endpoint); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); + if (message.scheduleState != null && Object.hasOwnProperty.call(message, "scheduleState")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.scheduleState); + if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.modelDeploymentMonitoringObjectiveConfigs.length) + for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.encode(message.modelDeploymentMonitoringObjectiveConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.modelDeploymentMonitoringScheduleConfig != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringScheduleConfig")) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.encode(message.modelDeploymentMonitoringScheduleConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) + $root.google.cloud.aiplatform.v1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.predictInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "predictInstanceSchemaUri")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.predictInstanceSchemaUri); + if (message.bigqueryTables != null && message.bigqueryTables.length) + for (var i = 0; i < message.bigqueryTables.length; ++i) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.encode(message.bigqueryTables[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.nextScheduleTime != null && Object.hasOwnProperty.call(message, "nextScheduleTime")) + $root.google.protobuf.Timestamp.encode(message.nextScheduleTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.modelMonitoringAlertConfig != null && Object.hasOwnProperty.call(message, "modelMonitoringAlertConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.encode(message.modelMonitoringAlertConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.analysisInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "analysisInstanceSchemaUri")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.analysisInstanceSchemaUri); + if (message.logTtl != null && Object.hasOwnProperty.call(message, "logTtl")) + $root.google.protobuf.Duration.encode(message.logTtl, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.samplePredictInstance != null && Object.hasOwnProperty.call(message, "samplePredictInstance")) + $root.google.protobuf.Value.encode(message.samplePredictInstance, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.statsAnomaliesBaseDirectory != null && Object.hasOwnProperty.call(message, "statsAnomaliesBaseDirectory")) + $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.statsAnomaliesBaseDirectory, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.enableMonitoringPipelineLogs != null && Object.hasOwnProperty.call(message, "enableMonitoringPipelineLogs")) + writer.uint32(/* id 22, wireType 0 =*/176).bool(message.enableMonitoringPipelineLogs); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.latestMonitoringPipelineMetadata != null && Object.hasOwnProperty.call(message, "latestMonitoringPipelineMetadata")) + $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.encode(message.latestMonitoringPipelineMetadata, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringJob.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @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.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringJob.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.ModelDeploymentMonitoringJob(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.endpoint = reader.string(); + break; + } + case 4: { + message.state = reader.int32(); + break; + } + case 5: { + message.scheduleState = reader.int32(); + break; + } + case 25: { + message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.decode(reader, reader.uint32()); + break; + } + case 6: { + if (!(message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length)) + message.modelDeploymentMonitoringObjectiveConfigs = []; + message.modelDeploymentMonitoringObjectiveConfigs.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.decode(reader, reader.uint32())); + break; + } + case 7: { + message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.decode(reader, reader.uint32()); + break; + } + case 8: { + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.decode(reader, reader.uint32()); + break; + } + case 15: { + message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.decode(reader, reader.uint32()); + break; + } + case 9: { + message.predictInstanceSchemaUri = reader.string(); + break; + } + case 19: { + message.samplePredictInstance = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 16: { + message.analysisInstanceSchemaUri = reader.string(); + break; + } + case 10: { + if (!(message.bigqueryTables && message.bigqueryTables.length)) + message.bigqueryTables = []; + message.bigqueryTables.push($root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.decode(reader, reader.uint32())); + break; + } + case 17: { + message.logTtl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 11: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 12: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 13: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 14: { + message.nextScheduleTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 20: { + message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); + break; + } + case 21: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + case 22: { + message.enableMonitoringPipelineLogs = reader.bool(); + break; + } + case 23: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringJob.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModelDeploymentMonitoringJob message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelDeploymentMonitoringJob.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"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; + } + if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) + switch (message.scheduleState) { + default: + return "scheduleState: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify(message.latestMonitoringPipelineMetadata); + if (error) + return "latestMonitoringPipelineMetadata." + error; + } + if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.hasOwnProperty("modelDeploymentMonitoringObjectiveConfigs")) { + if (!Array.isArray(message.modelDeploymentMonitoringObjectiveConfigs)) + return "modelDeploymentMonitoringObjectiveConfigs: array expected"; + for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify(message.modelDeploymentMonitoringObjectiveConfigs[i]); + if (error) + return "modelDeploymentMonitoringObjectiveConfigs." + error; + } + } + if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify(message.modelDeploymentMonitoringScheduleConfig); + if (error) + return "modelDeploymentMonitoringScheduleConfig." + error; + } + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { + var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.verify(message.loggingSamplingStrategy); + if (error) + return "loggingSamplingStrategy." + error; + } + if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify(message.modelMonitoringAlertConfig); + if (error) + return "modelMonitoringAlertConfig." + error; + } + if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) + if (!$util.isString(message.predictInstanceSchemaUri)) + return "predictInstanceSchemaUri: string expected"; + if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) { + var error = $root.google.protobuf.Value.verify(message.samplePredictInstance); + if (error) + return "samplePredictInstance." + error; + } + if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) + if (!$util.isString(message.analysisInstanceSchemaUri)) + return "analysisInstanceSchemaUri: string expected"; + if (message.bigqueryTables != null && message.hasOwnProperty("bigqueryTables")) { + if (!Array.isArray(message.bigqueryTables)) + return "bigqueryTables: array expected"; + for (var i = 0; i < message.bigqueryTables.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify(message.bigqueryTables[i]); + if (error) + return "bigqueryTables." + error; + } + } + if (message.logTtl != null && message.hasOwnProperty("logTtl")) { + var error = $root.google.protobuf.Duration.verify(message.logTtl); + if (error) + return "logTtl." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.nextScheduleTime); + if (error) + return "nextScheduleTime." + error; + } + if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) { + var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.statsAnomaliesBaseDirectory); + if (error) + return "statsAnomaliesBaseDirectory." + error; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) + if (typeof message.enableMonitoringPipelineLogs !== "boolean") + return "enableMonitoringPipelineLogs: boolean expected"; + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + return null; + }; + + /** + * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + */ + ModelDeploymentMonitoringJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "JOB_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "JOB_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "JOB_STATE_PENDING": + case 2: + message.state = 2; + break; + case "JOB_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "JOB_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "JOB_STATE_FAILED": + case 5: + message.state = 5; + break; + case "JOB_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "JOB_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "JOB_STATE_PAUSED": + case 8: + message.state = 8; + break; + case "JOB_STATE_EXPIRED": + case 9: + message.state = 9; + break; + case "JOB_STATE_UPDATING": + case 10: + message.state = 10; + break; + } + switch (object.scheduleState) { + default: + if (typeof object.scheduleState === "number") { + message.scheduleState = object.scheduleState; + break; + } + break; + case "MONITORING_SCHEDULE_STATE_UNSPECIFIED": + case 0: + message.scheduleState = 0; + break; + case "PENDING": + case 1: + message.scheduleState = 1; + break; + case "OFFLINE": + case 2: + message.scheduleState = 2; + break; + case "RUNNING": + case 3: + message.scheduleState = 3; + break; + } + if (object.latestMonitoringPipelineMetadata != null) { + if (typeof object.latestMonitoringPipelineMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.latestMonitoringPipelineMetadata: object expected"); + message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.fromObject(object.latestMonitoringPipelineMetadata); + } + if (object.modelDeploymentMonitoringObjectiveConfigs) { + if (!Array.isArray(object.modelDeploymentMonitoringObjectiveConfigs)) + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: array expected"); + message.modelDeploymentMonitoringObjectiveConfigs = []; + for (var i = 0; i < object.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { + if (typeof object.modelDeploymentMonitoringObjectiveConfigs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: object expected"); + message.modelDeploymentMonitoringObjectiveConfigs[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.fromObject(object.modelDeploymentMonitoringObjectiveConfigs[i]); + } + } + if (object.modelDeploymentMonitoringScheduleConfig != null) { + if (typeof object.modelDeploymentMonitoringScheduleConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringScheduleConfig: object expected"); + message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.fromObject(object.modelDeploymentMonitoringScheduleConfig); + } + if (object.loggingSamplingStrategy != null) { + if (typeof object.loggingSamplingStrategy !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.loggingSamplingStrategy: object expected"); + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); + } + if (object.modelMonitoringAlertConfig != null) { + if (typeof object.modelMonitoringAlertConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.modelMonitoringAlertConfig: object expected"); + message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.fromObject(object.modelMonitoringAlertConfig); + } + if (object.predictInstanceSchemaUri != null) + message.predictInstanceSchemaUri = String(object.predictInstanceSchemaUri); + if (object.samplePredictInstance != null) { + if (typeof object.samplePredictInstance !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.samplePredictInstance: object expected"); + message.samplePredictInstance = $root.google.protobuf.Value.fromObject(object.samplePredictInstance); + } + if (object.analysisInstanceSchemaUri != null) + message.analysisInstanceSchemaUri = String(object.analysisInstanceSchemaUri); + if (object.bigqueryTables) { + if (!Array.isArray(object.bigqueryTables)) + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.bigqueryTables: array expected"); + message.bigqueryTables = []; + for (var i = 0; i < object.bigqueryTables.length; ++i) { + if (typeof object.bigqueryTables[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.bigqueryTables: object expected"); + message.bigqueryTables[i] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.fromObject(object.bigqueryTables[i]); + } + } + if (object.logTtl != null) { + if (typeof object.logTtl !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.logTtl: object expected"); + message.logTtl = $root.google.protobuf.Duration.fromObject(object.logTtl); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.nextScheduleTime != null) { + if (typeof object.nextScheduleTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.nextScheduleTime: object expected"); + message.nextScheduleTime = $root.google.protobuf.Timestamp.fromObject(object.nextScheduleTime); + } + if (object.statsAnomaliesBaseDirectory != null) { + if (typeof object.statsAnomaliesBaseDirectory !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.statsAnomaliesBaseDirectory: object expected"); + message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.statsAnomaliesBaseDirectory); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.enableMonitoringPipelineLogs != null) + message.enableMonitoringPipelineLogs = Boolean(object.enableMonitoringPipelineLogs); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + return message; + }; + + /** + * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @static + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelDeploymentMonitoringJob.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.modelDeploymentMonitoringObjectiveConfigs = []; + object.bigqueryTables = []; + } + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.endpoint = ""; + object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; + object.scheduleState = options.enums === String ? "MONITORING_SCHEDULE_STATE_UNSPECIFIED" : 0; + object.modelDeploymentMonitoringScheduleConfig = null; + object.loggingSamplingStrategy = null; + object.predictInstanceSchemaUri = ""; + object.createTime = null; + object.updateTime = null; + object.nextScheduleTime = null; + object.modelMonitoringAlertConfig = null; + object.analysisInstanceSchemaUri = ""; + object.logTtl = null; + object.samplePredictInstance = null; + object.statsAnomaliesBaseDirectory = null; + object.encryptionSpec = null; + object.enableMonitoringPipelineLogs = false; + object.error = null; + object.latestMonitoringPipelineMetadata = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.JobState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.JobState[message.state] : message.state; + if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) + object.scheduleState = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState[message.scheduleState] === undefined ? message.scheduleState : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState[message.scheduleState] : message.scheduleState; + if (message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length) { + object.modelDeploymentMonitoringObjectiveConfigs = []; + for (var j = 0; j < message.modelDeploymentMonitoringObjectiveConfigs.length; ++j) + object.modelDeploymentMonitoringObjectiveConfigs[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.toObject(message.modelDeploymentMonitoringObjectiveConfigs[j], options); + } + if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) + object.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.toObject(message.modelDeploymentMonitoringScheduleConfig, options); + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) + object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); + if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) + object.predictInstanceSchemaUri = message.predictInstanceSchemaUri; + if (message.bigqueryTables && message.bigqueryTables.length) { + object.bigqueryTables = []; + for (var j = 0; j < message.bigqueryTables.length; ++j) + object.bigqueryTables[j] = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.toObject(message.bigqueryTables[j], options); + } + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) + object.nextScheduleTime = $root.google.protobuf.Timestamp.toObject(message.nextScheduleTime, options); + if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) + object.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.toObject(message.modelMonitoringAlertConfig, options); + if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) + object.analysisInstanceSchemaUri = message.analysisInstanceSchemaUri; + if (message.logTtl != null && message.hasOwnProperty("logTtl")) + object.logTtl = $root.google.protobuf.Duration.toObject(message.logTtl, options); + if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) + object.samplePredictInstance = $root.google.protobuf.Value.toObject(message.samplePredictInstance, options); + if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) + object.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.statsAnomaliesBaseDirectory, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) + object.enableMonitoringPipelineLogs = message.enableMonitoringPipelineLogs; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) + object.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.toObject(message.latestMonitoringPipelineMetadata, options); + return object; + }; + + /** + * Converts this ModelDeploymentMonitoringJob to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @instance + * @returns {Object.} JSON object + */ + ModelDeploymentMonitoringJob.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ModelDeploymentMonitoringJob + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelDeploymentMonitoringJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob"; + }; + + ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata = (function() { /** - * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * Properties of a LatestMonitoringPipelineMetadata. + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @interface ILatestMonitoringPipelineMetadata + * @property {google.protobuf.ITimestamp|null} [runTime] LatestMonitoringPipelineMetadata runTime + * @property {google.rpc.IStatus|null} [status] LatestMonitoringPipelineMetadata status + */ + + /** + * Constructs a new LatestMonitoringPipelineMetadata. + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob + * @classdesc Represents a LatestMonitoringPipelineMetadata. + * @implements ILatestMonitoringPipelineMetadata + * @constructor + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set + */ + function LatestMonitoringPipelineMetadata(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]]; + } + + /** + * LatestMonitoringPipelineMetadata runTime. + * @member {google.protobuf.ITimestamp|null|undefined} runTime + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @instance + */ + LatestMonitoringPipelineMetadata.prototype.runTime = null; + + /** + * LatestMonitoringPipelineMetadata status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @instance + */ + LatestMonitoringPipelineMetadata.prototype.status = null; + + /** + * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @static + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata instance + */ + LatestMonitoringPipelineMetadata.create = function create(properties) { + return new LatestMonitoringPipelineMetadata(properties); + }; + + /** + * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @static + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LatestMonitoringPipelineMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.runTime != null && Object.hasOwnProperty.call(message, "runTime")) + $root.google.protobuf.Timestamp.encode(message.runTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainingDataset.encodeDelimited = function encodeDelimited(message, writer) { + LatestMonitoringPipelineMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TrainingDataset message from the specified reader or buffer. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @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.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingDataset.decode = function decode(reader, length) { + LatestMonitoringPipelineMetadata.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.ModelMonitoringObjectiveConfig.TrainingDataset(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: { - message.dataset = reader.string(); - break; - } - case 4: { - message.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.decode(reader, reader.uint32()); - break; - } - case 5: { - message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.decode(reader, reader.uint32()); + case 1: { + message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 2: { - message.dataFormat = reader.string(); - break; - } - case 6: { - message.targetField = reader.string(); - break; - } - case 7: { - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.decode(reader, reader.uint32()); + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); break; } default: @@ -88691,876 +89753,1291 @@ }; /** - * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingDataset.decodeDelimited = function decodeDelimited(reader) { + LatestMonitoringPipelineMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TrainingDataset message. + * Verifies a LatestMonitoringPipelineMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TrainingDataset.verify = function verify(message) { + LatestMonitoringPipelineMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - properties.dataSource = 1; - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - } - if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { - if (properties.dataSource === 1) - return "dataSource: multiple values"; - properties.dataSource = 1; - { - var error = $root.google.cloud.aiplatform.v1.GcsSource.verify(message.gcsSource); - if (error) - return "gcsSource." + error; - } - } - if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { - if (properties.dataSource === 1) - return "dataSource: multiple values"; - properties.dataSource = 1; - { - var error = $root.google.cloud.aiplatform.v1.BigQuerySource.verify(message.bigquerySource); - if (error) - return "bigquerySource." + error; - } + if (message.runTime != null && message.hasOwnProperty("runTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.runTime); + if (error) + return "runTime." + error; } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - if (!$util.isString(message.dataFormat)) - return "dataFormat: string expected"; - if (message.targetField != null && message.hasOwnProperty("targetField")) - if (!$util.isString(message.targetField)) - return "targetField: string expected"; - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { - var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.verify(message.loggingSamplingStrategy); + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); if (error) - return "loggingSamplingStrategy." + error; + return "status." + error; } return null; }; /** - * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. + * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata */ - TrainingDataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset) + LatestMonitoringPipelineMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.gcsSource != null) { - if (typeof object.gcsSource !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.gcsSource: object expected"); - message.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.fromObject(object.gcsSource); + var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); + if (object.runTime != null) { + if (typeof object.runTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.runTime: object expected"); + message.runTime = $root.google.protobuf.Timestamp.fromObject(object.runTime); } - if (object.bigquerySource != null) { - if (typeof object.bigquerySource !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.bigquerySource: object expected"); - message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.fromObject(object.bigquerySource); - } - if (object.dataFormat != null) - message.dataFormat = String(object.dataFormat); - if (object.targetField != null) - message.targetField = String(object.targetField); - if (object.loggingSamplingStrategy != null) { - if (typeof object.loggingSamplingStrategy !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.loggingSamplingStrategy: object expected"); - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); } return message; }; /** - * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. + * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} message TrainingDataset + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TrainingDataset.toObject = function toObject(message, options) { + LatestMonitoringPipelineMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.dataFormat = ""; - object.targetField = ""; - object.loggingSamplingStrategy = null; - } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - object.dataFormat = message.dataFormat; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - object.dataset = message.dataset; - if (options.oneofs) - object.dataSource = "dataset"; - } - if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { - object.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.toObject(message.gcsSource, options); - if (options.oneofs) - object.dataSource = "gcsSource"; - } - if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { - object.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.toObject(message.bigquerySource, options); - if (options.oneofs) - object.dataSource = "bigquerySource"; + object.runTime = null; + object.status = null; } - if (message.targetField != null && message.hasOwnProperty("targetField")) - object.targetField = message.targetField; - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) - object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); + if (message.runTime != null && message.hasOwnProperty("runTime")) + object.runTime = $root.google.protobuf.Timestamp.toObject(message.runTime, options); + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); return object; }; /** - * Converts this TrainingDataset to JSON. + * Converts this LatestMonitoringPipelineMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @instance * @returns {Object.} JSON object */ - TrainingDataset.prototype.toJSON = function toJSON() { + LatestMonitoringPipelineMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TrainingDataset + * Gets the default type url for LatestMonitoringPipelineMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TrainingDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LatestMonitoringPipelineMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata"; }; - return TrainingDataset; + return LatestMonitoringPipelineMetadata; })(); - ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig = (function() { + /** + * MonitoringScheduleState enum. + * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.MonitoringScheduleState + * @enum {number} + * @property {number} MONITORING_SCHEDULE_STATE_UNSPECIFIED=0 MONITORING_SCHEDULE_STATE_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} OFFLINE=2 OFFLINE value + * @property {number} RUNNING=3 RUNNING value + */ + ModelDeploymentMonitoringJob.MonitoringScheduleState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MONITORING_SCHEDULE_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "OFFLINE"] = 2; + values[valuesById[3] = "RUNNING"] = 3; + return values; + })(); - /** - * Properties of a TrainingPredictionSkewDetectionConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @interface ITrainingPredictionSkewDetectionConfig - * @property {Object.|null} [skewThresholds] TrainingPredictionSkewDetectionConfig skewThresholds - * @property {Object.|null} [attributionScoreSkewThresholds] TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds - * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [defaultSkewThreshold] TrainingPredictionSkewDetectionConfig defaultSkewThreshold - */ + return ModelDeploymentMonitoringJob; + })(); - /** - * Constructs a new TrainingPredictionSkewDetectionConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @classdesc Represents a TrainingPredictionSkewDetectionConfig. - * @implements ITrainingPredictionSkewDetectionConfig - * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set - */ - function TrainingPredictionSkewDetectionConfig(properties) { - this.skewThresholds = {}; - this.attributionScoreSkewThresholds = {}; - 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]]; - } + v1.ModelDeploymentMonitoringBigQueryTable = (function() { - /** - * TrainingPredictionSkewDetectionConfig skewThresholds. - * @member {Object.} skewThresholds - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - */ - TrainingPredictionSkewDetectionConfig.prototype.skewThresholds = $util.emptyObject; + /** + * Properties of a ModelDeploymentMonitoringBigQueryTable. + * @memberof google.cloud.aiplatform.v1 + * @interface IModelDeploymentMonitoringBigQueryTable + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource|null} [logSource] ModelDeploymentMonitoringBigQueryTable logSource + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType|null} [logType] ModelDeploymentMonitoringBigQueryTable logType + * @property {string|null} [bigqueryTablePath] ModelDeploymentMonitoringBigQueryTable bigqueryTablePath + */ - /** - * TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. - * @member {Object.} attributionScoreSkewThresholds - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - */ - TrainingPredictionSkewDetectionConfig.prototype.attributionScoreSkewThresholds = $util.emptyObject; + /** + * Constructs a new ModelDeploymentMonitoringBigQueryTable. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ModelDeploymentMonitoringBigQueryTable. + * @implements IModelDeploymentMonitoringBigQueryTable + * @constructor + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set + */ + function ModelDeploymentMonitoringBigQueryTable(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]]; + } - /** - * TrainingPredictionSkewDetectionConfig defaultSkewThreshold. - * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} defaultSkewThreshold - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - */ - TrainingPredictionSkewDetectionConfig.prototype.defaultSkewThreshold = null; + /** + * ModelDeploymentMonitoringBigQueryTable logSource. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource} logSource + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @instance + */ + ModelDeploymentMonitoringBigQueryTable.prototype.logSource = 0; - /** - * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig instance - */ - TrainingPredictionSkewDetectionConfig.create = function create(properties) { - return new TrainingPredictionSkewDetectionConfig(properties); - }; + /** + * ModelDeploymentMonitoringBigQueryTable logType. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType} logType + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @instance + */ + ModelDeploymentMonitoringBigQueryTable.prototype.logType = 0; - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPredictionSkewDetectionConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.skewThresholds != null && Object.hasOwnProperty.call(message, "skewThresholds")) - for (var keys = Object.keys(message.skewThresholds), 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.ThresholdConfig.encode(message.skewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.attributionScoreSkewThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreSkewThresholds")) - for (var keys = Object.keys(message.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.attributionScoreSkewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.defaultSkewThreshold != null && Object.hasOwnProperty.call(message, "defaultSkewThreshold")) - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.defaultSkewThreshold, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; + /** + * ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. + * @member {string} bigqueryTablePath + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @instance + */ + ModelDeploymentMonitoringBigQueryTable.prototype.bigqueryTablePath = ""; - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPredictionSkewDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable instance + */ + ModelDeploymentMonitoringBigQueryTable.create = function create(properties) { + return new ModelDeploymentMonitoringBigQueryTable(properties); + }; - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @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.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPredictionSkewDetectionConfig.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.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.skewThresholds === $util.emptyObject) - message.skewThresholds = {}; - 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.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.skewThresholds[key] = value; - break; - } - case 2: { - if (message.attributionScoreSkewThresholds === $util.emptyObject) - message.attributionScoreSkewThresholds = {}; - 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.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.attributionScoreSkewThresholds[key] = value; - break; - } - case 6: { - message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringBigQueryTable.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.logSource != null && Object.hasOwnProperty.call(message, "logSource")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.logSource); + if (message.logType != null && Object.hasOwnProperty.call(message, "logType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.logType); + if (message.bigqueryTablePath != null && Object.hasOwnProperty.call(message, "bigqueryTablePath")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.bigqueryTablePath); + return writer; + }; - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPredictionSkewDetectionConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringBigQueryTable.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a TrainingPredictionSkewDetectionConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TrainingPredictionSkewDetectionConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.skewThresholds != null && message.hasOwnProperty("skewThresholds")) { - if (!$util.isObject(message.skewThresholds)) - return "skewThresholds: object expected"; - var key = Object.keys(message.skewThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.skewThresholds[key[i]]); - if (error) - return "skewThresholds." + error; + /** + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @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.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringBigQueryTable.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.ModelDeploymentMonitoringBigQueryTable(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.logSource = reader.int32(); + break; } - } - if (message.attributionScoreSkewThresholds != null && message.hasOwnProperty("attributionScoreSkewThresholds")) { - if (!$util.isObject(message.attributionScoreSkewThresholds)) - return "attributionScoreSkewThresholds: object expected"; - var key = Object.keys(message.attributionScoreSkewThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.attributionScoreSkewThresholds[key[i]]); - if (error) - return "attributionScoreSkewThresholds." + error; + case 2: { + message.logType = reader.int32(); + break; } - } - if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.defaultSkewThreshold); - if (error) - return "defaultSkewThreshold." + error; - } - return null; - }; - - /** - * Creates a TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig - */ - TrainingPredictionSkewDetectionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(); - if (object.skewThresholds) { - if (typeof object.skewThresholds !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); - message.skewThresholds = {}; - for (var keys = Object.keys(object.skewThresholds), i = 0; i < keys.length; ++i) { - if (typeof object.skewThresholds[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); - message.skewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.skewThresholds[keys[i]]); + case 3: { + message.bigqueryTablePath = reader.string(); + break; } + default: + reader.skipType(tag & 7); + break; } - if (object.attributionScoreSkewThresholds) { - if (typeof object.attributionScoreSkewThresholds !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attributionScoreSkewThresholds: object expected"); - message.attributionScoreSkewThresholds = {}; - for (var keys = Object.keys(object.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { - if (typeof object.attributionScoreSkewThresholds[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attributionScoreSkewThresholds: object expected"); - message.attributionScoreSkewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.attributionScoreSkewThresholds[keys[i]]); - } + } + return message; + }; + + /** + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringBigQueryTable.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelDeploymentMonitoringBigQueryTable.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.logSource != null && message.hasOwnProperty("logSource")) + switch (message.logSource) { + default: + return "logSource: enum value expected"; + case 0: + case 1: + case 2: + break; } - if (object.defaultSkewThreshold != null) { - if (typeof object.defaultSkewThreshold !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.defaultSkewThreshold: object expected"); - message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.defaultSkewThreshold); + if (message.logType != null && message.hasOwnProperty("logType")) + switch (message.logType) { + default: + return "logType: enum value expected"; + case 0: + case 1: + case 2: + break; } - return message; - }; + if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) + if (!$util.isString(message.bigqueryTablePath)) + return "bigqueryTablePath: string expected"; + return null; + }; - /** - * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TrainingPredictionSkewDetectionConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.skewThresholds = {}; - object.attributionScoreSkewThresholds = {}; - } - if (options.defaults) - object.defaultSkewThreshold = null; - var keys2; - if (message.skewThresholds && (keys2 = Object.keys(message.skewThresholds)).length) { - object.skewThresholds = {}; - for (var j = 0; j < keys2.length; ++j) - object.skewThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.skewThresholds[keys2[j]], options); + /** + * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + */ + ModelDeploymentMonitoringBigQueryTable.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable(); + switch (object.logSource) { + default: + if (typeof object.logSource === "number") { + message.logSource = object.logSource; + break; } - if (message.attributionScoreSkewThresholds && (keys2 = Object.keys(message.attributionScoreSkewThresholds)).length) { - object.attributionScoreSkewThresholds = {}; - for (var j = 0; j < keys2.length; ++j) - object.attributionScoreSkewThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.attributionScoreSkewThresholds[keys2[j]], options); + break; + case "LOG_SOURCE_UNSPECIFIED": + case 0: + message.logSource = 0; + break; + case "TRAINING": + case 1: + message.logSource = 1; + break; + case "SERVING": + case 2: + message.logSource = 2; + break; + } + switch (object.logType) { + default: + if (typeof object.logType === "number") { + message.logType = object.logType; + break; } - if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) - object.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.defaultSkewThreshold, options); - return object; - }; + break; + case "LOG_TYPE_UNSPECIFIED": + case 0: + message.logType = 0; + break; + case "PREDICT": + case 1: + message.logType = 1; + break; + case "EXPLAIN": + case 2: + message.logType = 2; + break; + } + if (object.bigqueryTablePath != null) + message.bigqueryTablePath = String(object.bigqueryTablePath); + return message; + }; - /** - * Converts this TrainingPredictionSkewDetectionConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - * @returns {Object.} JSON object - */ - TrainingPredictionSkewDetectionConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelDeploymentMonitoringBigQueryTable.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.logSource = options.enums === String ? "LOG_SOURCE_UNSPECIFIED" : 0; + object.logType = options.enums === String ? "LOG_TYPE_UNSPECIFIED" : 0; + object.bigqueryTablePath = ""; + } + if (message.logSource != null && message.hasOwnProperty("logSource")) + object.logSource = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] === undefined ? message.logSource : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] : message.logSource; + if (message.logType != null && message.hasOwnProperty("logType")) + object.logType = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] === undefined ? message.logType : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] : message.logType; + if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) + object.bigqueryTablePath = message.bigqueryTablePath; + return object; + }; - /** - * Gets the default type url for TrainingPredictionSkewDetectionConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TrainingPredictionSkewDetectionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig"; - }; + /** + * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @instance + * @returns {Object.} JSON object + */ + ModelDeploymentMonitoringBigQueryTable.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return TrainingPredictionSkewDetectionConfig; + /** + * Gets the default type url for ModelDeploymentMonitoringBigQueryTable + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelDeploymentMonitoringBigQueryTable.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable"; + }; + + /** + * LogSource enum. + * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogSource + * @enum {number} + * @property {number} LOG_SOURCE_UNSPECIFIED=0 LOG_SOURCE_UNSPECIFIED value + * @property {number} TRAINING=1 TRAINING value + * @property {number} SERVING=2 SERVING value + */ + ModelDeploymentMonitoringBigQueryTable.LogSource = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOG_SOURCE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TRAINING"] = 1; + values[valuesById[2] = "SERVING"] = 2; + return values; })(); - ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig = (function() { + /** + * LogType enum. + * @name google.cloud.aiplatform.v1.ModelDeploymentMonitoringBigQueryTable.LogType + * @enum {number} + * @property {number} LOG_TYPE_UNSPECIFIED=0 LOG_TYPE_UNSPECIFIED value + * @property {number} PREDICT=1 PREDICT value + * @property {number} EXPLAIN=2 EXPLAIN value + */ + ModelDeploymentMonitoringBigQueryTable.LogType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOG_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PREDICT"] = 1; + values[valuesById[2] = "EXPLAIN"] = 2; + return values; + })(); - /** - * Properties of a PredictionDriftDetectionConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @interface IPredictionDriftDetectionConfig - * @property {Object.|null} [driftThresholds] PredictionDriftDetectionConfig driftThresholds - * @property {Object.|null} [attributionScoreDriftThresholds] PredictionDriftDetectionConfig attributionScoreDriftThresholds - * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [defaultDriftThreshold] PredictionDriftDetectionConfig defaultDriftThreshold - */ + return ModelDeploymentMonitoringBigQueryTable; + })(); - /** - * Constructs a new PredictionDriftDetectionConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @classdesc Represents a PredictionDriftDetectionConfig. - * @implements IPredictionDriftDetectionConfig - * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set - */ - function PredictionDriftDetectionConfig(properties) { - this.driftThresholds = {}; - this.attributionScoreDriftThresholds = {}; - 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]]; - } + v1.ModelDeploymentMonitoringObjectiveConfig = (function() { - /** - * PredictionDriftDetectionConfig driftThresholds. - * @member {Object.} driftThresholds - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @instance - */ - PredictionDriftDetectionConfig.prototype.driftThresholds = $util.emptyObject; + /** + * Properties of a ModelDeploymentMonitoringObjectiveConfig. + * @memberof google.cloud.aiplatform.v1 + * @interface IModelDeploymentMonitoringObjectiveConfig + * @property {string|null} [deployedModelId] ModelDeploymentMonitoringObjectiveConfig deployedModelId + * @property {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null} [objectiveConfig] ModelDeploymentMonitoringObjectiveConfig objectiveConfig + */ - /** - * PredictionDriftDetectionConfig attributionScoreDriftThresholds. - * @member {Object.} attributionScoreDriftThresholds - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @instance - */ - PredictionDriftDetectionConfig.prototype.attributionScoreDriftThresholds = $util.emptyObject; + /** + * Constructs a new ModelDeploymentMonitoringObjectiveConfig. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ModelDeploymentMonitoringObjectiveConfig. + * @implements IModelDeploymentMonitoringObjectiveConfig + * @constructor + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set + */ + function ModelDeploymentMonitoringObjectiveConfig(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]]; + } - /** - * PredictionDriftDetectionConfig defaultDriftThreshold. - * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} defaultDriftThreshold - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @instance - */ - PredictionDriftDetectionConfig.prototype.defaultDriftThreshold = null; + /** + * ModelDeploymentMonitoringObjectiveConfig deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @instance + */ + ModelDeploymentMonitoringObjectiveConfig.prototype.deployedModelId = ""; - /** - * Creates a new PredictionDriftDetectionConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig instance - */ - PredictionDriftDetectionConfig.create = function create(properties) { - return new PredictionDriftDetectionConfig(properties); - }; + /** + * ModelDeploymentMonitoringObjectiveConfig objectiveConfig. + * @member {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig|null|undefined} objectiveConfig + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @instance + */ + ModelDeploymentMonitoringObjectiveConfig.prototype.objectiveConfig = null; - /** - * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PredictionDriftDetectionConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.driftThresholds != null && Object.hasOwnProperty.call(message, "driftThresholds")) - for (var keys = Object.keys(message.driftThresholds), 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.ThresholdConfig.encode(message.driftThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.attributionScoreDriftThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreDriftThresholds")) - for (var keys = Object.keys(message.attributionScoreDriftThresholds), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.attributionScoreDriftThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.defaultDriftThreshold != null && Object.hasOwnProperty.call(message, "defaultDriftThreshold")) - $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.defaultDriftThreshold, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; + /** + * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig instance + */ + ModelDeploymentMonitoringObjectiveConfig.create = function create(properties) { + return new ModelDeploymentMonitoringObjectiveConfig(properties); + }; - /** - * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PredictionDriftDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringObjectiveConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.deployedModelId); + if (message.objectiveConfig != null && Object.hasOwnProperty.call(message, "objectiveConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.encode(message.objectiveConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @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.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PredictionDriftDetectionConfig.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.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.driftThresholds === $util.emptyObject) - message.driftThresholds = {}; - 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.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.driftThresholds[key] = value; - break; - } - case 2: { - if (message.attributionScoreDriftThresholds === $util.emptyObject) - message.attributionScoreDriftThresholds = {}; - 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.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.attributionScoreDriftThresholds[key] = value; - break; - } - case 5: { - message.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @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.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringObjectiveConfig.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.ModelDeploymentMonitoringObjectiveConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.deployedModelId = reader.string(); + break; + } + case 2: { + message.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.decode(reader, reader.uint32()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PredictionDriftDetectionConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a PredictionDriftDetectionConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PredictionDriftDetectionConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.driftThresholds != null && message.hasOwnProperty("driftThresholds")) { - if (!$util.isObject(message.driftThresholds)) - return "driftThresholds: object expected"; - var key = Object.keys(message.driftThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.driftThresholds[key[i]]); - if (error) - return "driftThresholds." + error; + /** + * Verifies a ModelDeploymentMonitoringObjectiveConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelDeploymentMonitoringObjectiveConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify(message.objectiveConfig); + if (error) + return "objectiveConfig." + error; + } + return null; + }; + + /** + * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + */ + ModelDeploymentMonitoringObjectiveConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig(); + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.objectiveConfig != null) { + if (typeof object.objectiveConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig.objectiveConfig: object expected"); + message.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.fromObject(object.objectiveConfig); + } + return message; + }; + + /** + * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelDeploymentMonitoringObjectiveConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.deployedModelId = ""; + object.objectiveConfig = null; + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) + object.objectiveConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.toObject(message.objectiveConfig, options); + return object; + }; + + /** + * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @instance + * @returns {Object.} JSON object + */ + ModelDeploymentMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ModelDeploymentMonitoringObjectiveConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelDeploymentMonitoringObjectiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveConfig"; + }; + + return ModelDeploymentMonitoringObjectiveConfig; + })(); + + v1.ModelDeploymentMonitoringScheduleConfig = (function() { + + /** + * Properties of a ModelDeploymentMonitoringScheduleConfig. + * @memberof google.cloud.aiplatform.v1 + * @interface IModelDeploymentMonitoringScheduleConfig + * @property {google.protobuf.IDuration|null} [monitorInterval] ModelDeploymentMonitoringScheduleConfig monitorInterval + * @property {google.protobuf.IDuration|null} [monitorWindow] ModelDeploymentMonitoringScheduleConfig monitorWindow + */ + + /** + * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ModelDeploymentMonitoringScheduleConfig. + * @implements IModelDeploymentMonitoringScheduleConfig + * @constructor + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set + */ + function ModelDeploymentMonitoringScheduleConfig(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]]; + } + + /** + * ModelDeploymentMonitoringScheduleConfig monitorInterval. + * @member {google.protobuf.IDuration|null|undefined} monitorInterval + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @instance + */ + ModelDeploymentMonitoringScheduleConfig.prototype.monitorInterval = null; + + /** + * ModelDeploymentMonitoringScheduleConfig monitorWindow. + * @member {google.protobuf.IDuration|null|undefined} monitorWindow + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @instance + */ + ModelDeploymentMonitoringScheduleConfig.prototype.monitorWindow = null; + + /** + * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig instance + */ + ModelDeploymentMonitoringScheduleConfig.create = function create(properties) { + return new ModelDeploymentMonitoringScheduleConfig(properties); + }; + + /** + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringScheduleConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.monitorInterval != null && Object.hasOwnProperty.call(message, "monitorInterval")) + $root.google.protobuf.Duration.encode(message.monitorInterval, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.monitorWindow != null && Object.hasOwnProperty.call(message, "monitorWindow")) + $root.google.protobuf.Duration.encode(message.monitorWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {google.cloud.aiplatform.v1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringScheduleConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @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.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringScheduleConfig.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.ModelDeploymentMonitoringScheduleConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.monitorInterval = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; } - } - if (message.attributionScoreDriftThresholds != null && message.hasOwnProperty("attributionScoreDriftThresholds")) { - if (!$util.isObject(message.attributionScoreDriftThresholds)) - return "attributionScoreDriftThresholds: object expected"; - var key = Object.keys(message.attributionScoreDriftThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.attributionScoreDriftThresholds[key[i]]); - if (error) - return "attributionScoreDriftThresholds." + error; + case 2: { + message.monitorWindow = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; } + default: + reader.skipType(tag & 7); + break; } - if (message.defaultDriftThreshold != null && message.hasOwnProperty("defaultDriftThreshold")) { - var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.defaultDriftThreshold); - if (error) - return "defaultDriftThreshold." + error; - } - return null; - }; + } + return message; + }; - /** - * Creates a PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig - */ - PredictionDriftDetectionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig(); - if (object.driftThresholds) { - if (typeof object.driftThresholds !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.driftThresholds: object expected"); - message.driftThresholds = {}; - for (var keys = Object.keys(object.driftThresholds), i = 0; i < keys.length; ++i) { - if (typeof object.driftThresholds[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.driftThresholds: object expected"); - message.driftThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.driftThresholds[keys[i]]); + /** + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringScheduleConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModelDeploymentMonitoringScheduleConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelDeploymentMonitoringScheduleConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) { + var error = $root.google.protobuf.Duration.verify(message.monitorInterval); + if (error) + return "monitorInterval." + error; + } + if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) { + var error = $root.google.protobuf.Duration.verify(message.monitorWindow); + if (error) + return "monitorWindow." + error; + } + return null; + }; + + /** + * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + */ + ModelDeploymentMonitoringScheduleConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig(); + if (object.monitorInterval != null) { + if (typeof object.monitorInterval !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitorInterval: object expected"); + message.monitorInterval = $root.google.protobuf.Duration.fromObject(object.monitorInterval); + } + if (object.monitorWindow != null) { + if (typeof object.monitorWindow !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitorWindow: object expected"); + message.monitorWindow = $root.google.protobuf.Duration.fromObject(object.monitorWindow); + } + return message; + }; + + /** + * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelDeploymentMonitoringScheduleConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.monitorInterval = null; + object.monitorWindow = null; + } + if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) + object.monitorInterval = $root.google.protobuf.Duration.toObject(message.monitorInterval, options); + if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) + object.monitorWindow = $root.google.protobuf.Duration.toObject(message.monitorWindow, options); + return object; + }; + + /** + * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @instance + * @returns {Object.} JSON object + */ + ModelDeploymentMonitoringScheduleConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ModelDeploymentMonitoringScheduleConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelDeploymentMonitoringScheduleConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig"; + }; + + return ModelDeploymentMonitoringScheduleConfig; + })(); + + v1.ModelMonitoringStatsAnomalies = (function() { + + /** + * Properties of a ModelMonitoringStatsAnomalies. + * @memberof google.cloud.aiplatform.v1 + * @interface IModelMonitoringStatsAnomalies + * @property {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType|null} [objective] ModelMonitoringStatsAnomalies objective + * @property {string|null} [deployedModelId] ModelMonitoringStatsAnomalies deployedModelId + * @property {number|null} [anomalyCount] ModelMonitoringStatsAnomalies anomalyCount + * @property {Array.|null} [featureStats] ModelMonitoringStatsAnomalies featureStats + */ + + /** + * Constructs a new ModelMonitoringStatsAnomalies. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ModelMonitoringStatsAnomalies. + * @implements IModelMonitoringStatsAnomalies + * @constructor + * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies=} [properties] Properties to set + */ + function ModelMonitoringStatsAnomalies(properties) { + this.featureStats = []; + 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]]; + } + + /** + * ModelMonitoringStatsAnomalies objective. + * @member {google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType} objective + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @instance + */ + ModelMonitoringStatsAnomalies.prototype.objective = 0; + + /** + * ModelMonitoringStatsAnomalies deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @instance + */ + ModelMonitoringStatsAnomalies.prototype.deployedModelId = ""; + + /** + * ModelMonitoringStatsAnomalies anomalyCount. + * @member {number} anomalyCount + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @instance + */ + ModelMonitoringStatsAnomalies.prototype.anomalyCount = 0; + + /** + * ModelMonitoringStatsAnomalies featureStats. + * @member {Array.} featureStats + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @instance + */ + ModelMonitoringStatsAnomalies.prototype.featureStats = $util.emptyArray; + + /** + * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies instance + */ + ModelMonitoringStatsAnomalies.create = function create(properties) { + return new ModelMonitoringStatsAnomalies(properties); + }; + + /** + * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelMonitoringStatsAnomalies.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.objective != null && Object.hasOwnProperty.call(message, "objective")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objective); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.anomalyCount != null && Object.hasOwnProperty.call(message, "anomalyCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.anomalyCount); + if (message.featureStats != null && message.featureStats.length) + for (var i = 0; i < message.featureStats.length; ++i) + $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.encode(message.featureStats[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelMonitoringStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @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.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelMonitoringStatsAnomalies.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.ModelMonitoringStatsAnomalies(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.objective = reader.int32(); + break; } - } - if (object.attributionScoreDriftThresholds) { - if (typeof object.attributionScoreDriftThresholds !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attributionScoreDriftThresholds: object expected"); - message.attributionScoreDriftThresholds = {}; - for (var keys = Object.keys(object.attributionScoreDriftThresholds), i = 0; i < keys.length; ++i) { - if (typeof object.attributionScoreDriftThresholds[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attributionScoreDriftThresholds: object expected"); - message.attributionScoreDriftThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.attributionScoreDriftThresholds[keys[i]]); + case 2: { + message.deployedModelId = reader.string(); + break; } + case 3: { + message.anomalyCount = reader.int32(); + break; + } + case 4: { + if (!(message.featureStats && message.featureStats.length)) + message.featureStats = []; + message.featureStats.push($root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; } - if (object.defaultDriftThreshold != null) { - if (typeof object.defaultDriftThreshold !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.defaultDriftThreshold: object expected"); - message.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.defaultDriftThreshold); - } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} message PredictionDriftDetectionConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PredictionDriftDetectionConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.driftThresholds = {}; - object.attributionScoreDriftThresholds = {}; - } - if (options.defaults) - object.defaultDriftThreshold = null; - var keys2; - if (message.driftThresholds && (keys2 = Object.keys(message.driftThresholds)).length) { - object.driftThresholds = {}; - for (var j = 0; j < keys2.length; ++j) - object.driftThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.driftThresholds[keys2[j]], options); + /** + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelMonitoringStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ModelMonitoringStatsAnomalies message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelMonitoringStatsAnomalies.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.objective != null && message.hasOwnProperty("objective")) + switch (message.objective) { + default: + return "objective: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.attributionScoreDriftThresholds && (keys2 = Object.keys(message.attributionScoreDriftThresholds)).length) { - object.attributionScoreDriftThresholds = {}; - for (var j = 0; j < keys2.length; ++j) - object.attributionScoreDriftThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.attributionScoreDriftThresholds[keys2[j]], options); + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) + if (!$util.isInteger(message.anomalyCount)) + return "anomalyCount: integer expected"; + if (message.featureStats != null && message.hasOwnProperty("featureStats")) { + if (!Array.isArray(message.featureStats)) + return "featureStats: array expected"; + for (var i = 0; i < message.featureStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify(message.featureStats[i]); + if (error) + return "featureStats." + error; } - if (message.defaultDriftThreshold != null && message.hasOwnProperty("defaultDriftThreshold")) - object.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.defaultDriftThreshold, options); + } + return null; + }; + + /** + * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + */ + ModelMonitoringStatsAnomalies.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies) return object; - }; + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies(); + switch (object.objective) { + default: + if (typeof object.objective === "number") { + message.objective = object.objective; + break; + } + break; + case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": + case 0: + message.objective = 0; + break; + case "RAW_FEATURE_SKEW": + case 1: + message.objective = 1; + break; + case "RAW_FEATURE_DRIFT": + case 2: + message.objective = 2; + break; + case "FEATURE_ATTRIBUTION_SKEW": + case 3: + message.objective = 3; + break; + case "FEATURE_ATTRIBUTION_DRIFT": + case 4: + message.objective = 4; + break; + } + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.anomalyCount != null) + message.anomalyCount = object.anomalyCount | 0; + if (object.featureStats) { + if (!Array.isArray(object.featureStats)) + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.featureStats: array expected"); + message.featureStats = []; + for (var i = 0; i < object.featureStats.length; ++i) { + if (typeof object.featureStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.featureStats: object expected"); + message.featureStats[i] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.fromObject(object.featureStats[i]); + } + } + return message; + }; - /** - * Converts this PredictionDriftDetectionConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @instance - * @returns {Object.} JSON object - */ - PredictionDriftDetectionConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelMonitoringStatsAnomalies.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.featureStats = []; + if (options.defaults) { + object.objective = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; + object.deployedModelId = ""; + object.anomalyCount = 0; + } + if (message.objective != null && message.hasOwnProperty("objective")) + object.objective = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.objective] === undefined ? message.objective : $root.google.cloud.aiplatform.v1.ModelDeploymentMonitoringObjectiveType[message.objective] : message.objective; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) + object.anomalyCount = message.anomalyCount; + if (message.featureStats && message.featureStats.length) { + object.featureStats = []; + for (var j = 0; j < message.featureStats.length; ++j) + object.featureStats[j] = $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.toObject(message.featureStats[j], options); + } + return object; + }; - /** - * Gets the default type url for PredictionDriftDetectionConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PredictionDriftDetectionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig"; - }; + /** + * Converts this ModelMonitoringStatsAnomalies to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @instance + * @returns {Object.} JSON object + */ + ModelMonitoringStatsAnomalies.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return PredictionDriftDetectionConfig; - })(); + /** + * Gets the default type url for ModelMonitoringStatsAnomalies + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelMonitoringStatsAnomalies.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies"; + }; - ModelMonitoringObjectiveConfig.ExplanationConfig = (function() { + ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies = (function() { /** - * Properties of an ExplanationConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @interface IExplanationConfig - * @property {boolean|null} [enableFeatureAttributes] ExplanationConfig enableFeatureAttributes - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null} [explanationBaseline] ExplanationConfig explanationBaseline + * Properties of a FeatureHistoricStatsAnomalies. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @interface IFeatureHistoricStatsAnomalies + * @property {string|null} [featureDisplayName] FeatureHistoricStatsAnomalies featureDisplayName + * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [threshold] FeatureHistoricStatsAnomalies threshold + * @property {google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null} [trainingStats] FeatureHistoricStatsAnomalies trainingStats + * @property {Array.|null} [predictionStats] FeatureHistoricStatsAnomalies predictionStats */ /** - * Constructs a new ExplanationConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig - * @classdesc Represents an ExplanationConfig. - * @implements IExplanationConfig + * Constructs a new FeatureHistoricStatsAnomalies. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies + * @classdesc Represents a FeatureHistoricStatsAnomalies. + * @implements IFeatureHistoricStatsAnomalies * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set */ - function ExplanationConfig(properties) { + function FeatureHistoricStatsAnomalies(properties) { + this.predictionStats = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -89568,89 +91045,120 @@ } /** - * ExplanationConfig enableFeatureAttributes. - * @member {boolean} enableFeatureAttributes - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * FeatureHistoricStatsAnomalies featureDisplayName. + * @member {string} featureDisplayName + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @instance */ - ExplanationConfig.prototype.enableFeatureAttributes = false; + FeatureHistoricStatsAnomalies.prototype.featureDisplayName = ""; /** - * ExplanationConfig explanationBaseline. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null|undefined} explanationBaseline - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * FeatureHistoricStatsAnomalies threshold. + * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} threshold + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @instance */ - ExplanationConfig.prototype.explanationBaseline = null; + FeatureHistoricStatsAnomalies.prototype.threshold = null; /** - * Creates a new ExplanationConfig instance using the specified properties. + * FeatureHistoricStatsAnomalies trainingStats. + * @member {google.cloud.aiplatform.v1.IFeatureStatsAnomaly|null|undefined} trainingStats + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @instance + */ + FeatureHistoricStatsAnomalies.prototype.trainingStats = null; + + /** + * FeatureHistoricStatsAnomalies predictionStats. + * @member {Array.} predictionStats + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @instance + */ + FeatureHistoricStatsAnomalies.prototype.predictionStats = $util.emptyArray; + + /** + * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig instance + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies instance */ - ExplanationConfig.create = function create(properties) { - return new ExplanationConfig(properties); + FeatureHistoricStatsAnomalies.create = function create(properties) { + return new FeatureHistoricStatsAnomalies(properties); }; /** - * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig} message ExplanationConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplanationConfig.encode = function encode(message, writer) { + FeatureHistoricStatsAnomalies.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enableFeatureAttributes != null && Object.hasOwnProperty.call(message, "enableFeatureAttributes")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableFeatureAttributes); - if (message.explanationBaseline != null && Object.hasOwnProperty.call(message, "explanationBaseline")) - $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.encode(message.explanationBaseline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureDisplayName); + if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.threshold, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainingStats != null && Object.hasOwnProperty.call(message, "trainingStats")) + $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.encode(message.trainingStats, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.predictionStats != null && message.predictionStats.length) + for (var i = 0; i < message.predictionStats.length; ++i) + $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.encode(message.predictionStats[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig} message ExplanationConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplanationConfig.encodeDelimited = function encodeDelimited(message, writer) { + FeatureHistoricStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExplanationConfig message from the specified reader or buffer. + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @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.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplanationConfig.decode = function decode(reader, length) { + FeatureHistoricStatsAnomalies.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.ModelMonitoringObjectiveConfig.ExplanationConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.enableFeatureAttributes = reader.bool(); + message.featureDisplayName = reader.string(); break; } - case 2: { - message.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.decode(reader, reader.uint32()); + case 3: { + message.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + break; + } + case 4: { + message.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.decode(reader, reader.uint32()); + break; + } + case 5: { + if (!(message.predictionStats && message.predictionStats.length)) + message.predictionStats = []; + message.predictionStats.push($root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.decode(reader, reader.uint32())); break; } default: @@ -89662,466 +91170,181 @@ }; /** - * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplanationConfig.decodeDelimited = function decodeDelimited(reader) { + FeatureHistoricStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExplanationConfig message. + * Verifies a FeatureHistoricStatsAnomalies message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExplanationConfig.verify = function verify(message) { + FeatureHistoricStatsAnomalies.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enableFeatureAttributes != null && message.hasOwnProperty("enableFeatureAttributes")) - if (typeof message.enableFeatureAttributes !== "boolean") - return "enableFeatureAttributes: boolean expected"; - if (message.explanationBaseline != null && message.hasOwnProperty("explanationBaseline")) { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify(message.explanationBaseline); + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + if (!$util.isString(message.featureDisplayName)) + return "featureDisplayName: string expected"; + if (message.threshold != null && message.hasOwnProperty("threshold")) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.threshold); if (error) - return "explanationBaseline." + error; + return "threshold." + error; + } + if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) { + var error = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.verify(message.trainingStats); + if (error) + return "trainingStats." + error; + } + if (message.predictionStats != null && message.hasOwnProperty("predictionStats")) { + if (!Array.isArray(message.predictionStats)) + return "predictionStats: array expected"; + for (var i = 0; i < message.predictionStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.verify(message.predictionStats[i]); + if (error) + return "predictionStats." + error; + } } return null; }; /** - * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies */ - ExplanationConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig) + FeatureHistoricStatsAnomalies.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig(); - if (object.enableFeatureAttributes != null) - message.enableFeatureAttributes = Boolean(object.enableFeatureAttributes); - if (object.explanationBaseline != null) { - if (typeof object.explanationBaseline !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.explanationBaseline: object expected"); - message.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.fromObject(object.explanationBaseline); + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); + if (object.featureDisplayName != null) + message.featureDisplayName = String(object.featureDisplayName); + if (object.threshold != null) { + if (typeof object.threshold !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.threshold: object expected"); + message.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.threshold); + } + if (object.trainingStats != null) { + if (typeof object.trainingStats !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.trainingStats: object expected"); + message.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.fromObject(object.trainingStats); + } + if (object.predictionStats) { + if (!Array.isArray(object.predictionStats)) + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: array expected"); + message.predictionStats = []; + for (var i = 0; i < object.predictionStats.length; ++i) { + if (typeof object.predictionStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: object expected"); + message.predictionStats[i] = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.fromObject(object.predictionStats[i]); + } } return message; }; /** - * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. + * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} message ExplanationConfig + * @param {google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExplanationConfig.toObject = function toObject(message, options) { + FeatureHistoricStatsAnomalies.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.predictionStats = []; if (options.defaults) { - object.enableFeatureAttributes = false; - object.explanationBaseline = null; + object.featureDisplayName = ""; + object.threshold = null; + object.trainingStats = null; + } + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + object.featureDisplayName = message.featureDisplayName; + if (message.threshold != null && message.hasOwnProperty("threshold")) + object.threshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.threshold, options); + if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) + object.trainingStats = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.toObject(message.trainingStats, options); + if (message.predictionStats && message.predictionStats.length) { + object.predictionStats = []; + for (var j = 0; j < message.predictionStats.length; ++j) + object.predictionStats[j] = $root.google.cloud.aiplatform.v1.FeatureStatsAnomaly.toObject(message.predictionStats[j], options); } - if (message.enableFeatureAttributes != null && message.hasOwnProperty("enableFeatureAttributes")) - object.enableFeatureAttributes = message.enableFeatureAttributes; - if (message.explanationBaseline != null && message.hasOwnProperty("explanationBaseline")) - object.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.toObject(message.explanationBaseline, options); return object; }; /** - * Converts this ExplanationConfig to JSON. + * Converts this FeatureHistoricStatsAnomalies to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @instance * @returns {Object.} JSON object */ - ExplanationConfig.prototype.toJSON = function toJSON() { + FeatureHistoricStatsAnomalies.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExplanationConfig + * Gets the default type url for FeatureHistoricStatsAnomalies * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExplanationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FeatureHistoricStatsAnomalies.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies"; }; - ExplanationConfig.ExplanationBaseline = (function() { - - /** - * Properties of an ExplanationBaseline. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig - * @interface IExplanationBaseline - * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [gcs] ExplanationBaseline gcs - * @property {google.cloud.aiplatform.v1.IBigQueryDestination|null} [bigquery] ExplanationBaseline bigquery - * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null} [predictionFormat] ExplanationBaseline predictionFormat - */ + return FeatureHistoricStatsAnomalies; + })(); - /** - * Constructs a new ExplanationBaseline. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig - * @classdesc Represents an ExplanationBaseline. - * @implements IExplanationBaseline - * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline=} [properties] Properties to set - */ - function ExplanationBaseline(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]]; - } - - /** - * ExplanationBaseline gcs. - * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} gcs - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - */ - ExplanationBaseline.prototype.gcs = null; - - /** - * ExplanationBaseline bigquery. - * @member {google.cloud.aiplatform.v1.IBigQueryDestination|null|undefined} bigquery - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - */ - ExplanationBaseline.prototype.bigquery = null; - - /** - * ExplanationBaseline predictionFormat. - * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat} predictionFormat - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - */ - ExplanationBaseline.prototype.predictionFormat = 0; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ExplanationBaseline destination. - * @member {"gcs"|"bigquery"|undefined} destination - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - */ - Object.defineProperty(ExplanationBaseline.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcs", "bigquery"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ExplanationBaseline instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline instance - */ - ExplanationBaseline.create = function create(properties) { - return new ExplanationBaseline(properties); - }; - - /** - * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline} message ExplanationBaseline message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExplanationBaseline.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.predictionFormat != null && Object.hasOwnProperty.call(message, "predictionFormat")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.predictionFormat); - if (message.gcs != null && Object.hasOwnProperty.call(message, "gcs")) - $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.gcs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.bigquery != null && Object.hasOwnProperty.call(message, "bigquery")) - $root.google.cloud.aiplatform.v1.BigQueryDestination.encode(message.bigquery, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline} message ExplanationBaseline message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExplanationBaseline.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @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.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExplanationBaseline.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.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - message.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); - break; - } - case 3: { - message.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.decode(reader, reader.uint32()); - break; - } - case 1: { - message.predictionFormat = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExplanationBaseline.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ExplanationBaseline message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExplanationBaseline.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.gcs != null && message.hasOwnProperty("gcs")) { - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.gcs); - if (error) - return "gcs." + error; - } - } - if (message.bigquery != null && message.hasOwnProperty("bigquery")) { - if (properties.destination === 1) - return "destination: multiple values"; - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1.BigQueryDestination.verify(message.bigquery); - if (error) - return "bigquery." + error; - } - } - if (message.predictionFormat != null && message.hasOwnProperty("predictionFormat")) - switch (message.predictionFormat) { - default: - return "predictionFormat: enum value expected"; - case 0: - case 2: - case 3: - break; - } - return null; - }; - - /** - * Creates an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline - */ - ExplanationBaseline.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline) - return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline(); - if (object.gcs != null) { - if (typeof object.gcs !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.gcs: object expected"); - message.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.gcs); - } - if (object.bigquery != null) { - if (typeof object.bigquery !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.bigquery: object expected"); - message.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.fromObject(object.bigquery); - } - switch (object.predictionFormat) { - default: - if (typeof object.predictionFormat === "number") { - message.predictionFormat = object.predictionFormat; - break; - } - break; - case "PREDICTION_FORMAT_UNSPECIFIED": - case 0: - message.predictionFormat = 0; - break; - case "JSONL": - case 2: - message.predictionFormat = 2; - break; - case "BIGQUERY": - case 3: - message.predictionFormat = 3; - break; - } - return message; - }; - - /** - * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} message ExplanationBaseline - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExplanationBaseline.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.predictionFormat = options.enums === String ? "PREDICTION_FORMAT_UNSPECIFIED" : 0; - if (message.predictionFormat != null && message.hasOwnProperty("predictionFormat")) - object.predictionFormat = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat[message.predictionFormat] === undefined ? message.predictionFormat : $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat[message.predictionFormat] : message.predictionFormat; - if (message.gcs != null && message.hasOwnProperty("gcs")) { - object.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.gcs, options); - if (options.oneofs) - object.destination = "gcs"; - } - if (message.bigquery != null && message.hasOwnProperty("bigquery")) { - object.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.toObject(message.bigquery, options); - if (options.oneofs) - object.destination = "bigquery"; - } - return object; - }; - - /** - * Converts this ExplanationBaseline to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - * @returns {Object.} JSON object - */ - ExplanationBaseline.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ExplanationBaseline - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ExplanationBaseline.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline"; - }; - - /** - * PredictionFormat enum. - * @name google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat - * @enum {number} - * @property {number} PREDICTION_FORMAT_UNSPECIFIED=0 PREDICTION_FORMAT_UNSPECIFIED value - * @property {number} JSONL=2 JSONL value - * @property {number} BIGQUERY=3 BIGQUERY value - */ - ExplanationBaseline.PredictionFormat = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PREDICTION_FORMAT_UNSPECIFIED"] = 0; - values[valuesById[2] = "JSONL"] = 2; - values[valuesById[3] = "BIGQUERY"] = 3; - return values; - })(); - - return ExplanationBaseline; - })(); - - return ExplanationConfig; - })(); - - return ModelMonitoringObjectiveConfig; + return ModelMonitoringStatsAnomalies; })(); - v1.ModelMonitoringAlertConfig = (function() { + v1.ModelMonitoringObjectiveConfig = (function() { /** - * Properties of a ModelMonitoringAlertConfig. + * Properties of a ModelMonitoringObjectiveConfig. * @memberof google.cloud.aiplatform.v1 - * @interface IModelMonitoringAlertConfig - * @property {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null} [emailAlertConfig] ModelMonitoringAlertConfig emailAlertConfig - * @property {boolean|null} [enableLogging] ModelMonitoringAlertConfig enableLogging + * @interface IModelMonitoringObjectiveConfig + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null} [trainingDataset] ModelMonitoringObjectiveConfig trainingDataset + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null} [trainingPredictionSkewDetectionConfig] ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null} [predictionDriftDetectionConfig] ModelMonitoringObjectiveConfig predictionDriftDetectionConfig + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null} [explanationConfig] ModelMonitoringObjectiveConfig explanationConfig */ /** - * Constructs a new ModelMonitoringAlertConfig. + * Constructs a new ModelMonitoringObjectiveConfig. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelMonitoringAlertConfig. - * @implements IModelMonitoringAlertConfig + * @classdesc Represents a ModelMonitoringObjectiveConfig. + * @implements IModelMonitoringObjectiveConfig * @constructor - * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig=} [properties] Properties to set */ - function ModelMonitoringAlertConfig(properties) { + function ModelMonitoringObjectiveConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90129,103 +91352,117 @@ } /** - * ModelMonitoringAlertConfig emailAlertConfig. - * @member {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null|undefined} emailAlertConfig - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * ModelMonitoringObjectiveConfig trainingDataset. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset|null|undefined} trainingDataset + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @instance */ - ModelMonitoringAlertConfig.prototype.emailAlertConfig = null; + ModelMonitoringObjectiveConfig.prototype.trainingDataset = null; /** - * ModelMonitoringAlertConfig enableLogging. - * @member {boolean} enableLogging - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null|undefined} trainingPredictionSkewDetectionConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @instance */ - ModelMonitoringAlertConfig.prototype.enableLogging = false; + ModelMonitoringObjectiveConfig.prototype.trainingPredictionSkewDetectionConfig = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null|undefined} predictionDriftDetectionConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @instance + */ + ModelMonitoringObjectiveConfig.prototype.predictionDriftDetectionConfig = null; /** - * ModelMonitoringAlertConfig alert. - * @member {"emailAlertConfig"|undefined} alert - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * ModelMonitoringObjectiveConfig explanationConfig. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig|null|undefined} explanationConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @instance */ - Object.defineProperty(ModelMonitoringAlertConfig.prototype, "alert", { - get: $util.oneOfGetter($oneOfFields = ["emailAlertConfig"]), - set: $util.oneOfSetter($oneOfFields) - }); + ModelMonitoringObjectiveConfig.prototype.explanationConfig = null; /** - * Creates a new ModelMonitoringAlertConfig instance using the specified properties. + * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig instance + * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig instance */ - ModelMonitoringAlertConfig.create = function create(properties) { - return new ModelMonitoringAlertConfig(properties); + ModelMonitoringObjectiveConfig.create = function create(properties) { + return new ModelMonitoringObjectiveConfig(properties); }; /** - * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. + * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringAlertConfig.encode = function encode(message, writer) { + ModelMonitoringObjectiveConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.emailAlertConfig != null && Object.hasOwnProperty.call(message, "emailAlertConfig")) - $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.encode(message.emailAlertConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.enableLogging != null && Object.hasOwnProperty.call(message, "enableLogging")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableLogging); + if (message.trainingDataset != null && Object.hasOwnProperty.call(message, "trainingDataset")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.encode(message.trainingDataset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.trainingPredictionSkewDetectionConfig != null && Object.hasOwnProperty.call(message, "trainingPredictionSkewDetectionConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.encode(message.trainingPredictionSkewDetectionConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.predictionDriftDetectionConfig != null && Object.hasOwnProperty.call(message, "predictionDriftDetectionConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.encode(message.predictionDriftDetectionConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.explanationConfig != null && Object.hasOwnProperty.call(message, "explanationConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.encode(message.explanationConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. + * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { + ModelMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @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.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringAlertConfig.decode = function decode(reader, length) { + ModelMonitoringObjectiveConfig.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.ModelMonitoringAlertConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.decode(reader, reader.uint32()); + message.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.decode(reader, reader.uint32()); break; } case 2: { - message.enableLogging = reader.bool(); + message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.decode(reader, reader.uint32()); + break; + } + case 3: { + message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.decode(reader, reader.uint32()); + break; + } + case 5: { + message.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.decode(reader, reader.uint32()); break; } default: @@ -90237,139 +91474,169 @@ }; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringAlertConfig.decodeDelimited = function decodeDelimited(reader) { + ModelMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelMonitoringAlertConfig message. + * Verifies a ModelMonitoringObjectiveConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelMonitoringAlertConfig.verify = function verify(message) { + ModelMonitoringObjectiveConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.emailAlertConfig != null && message.hasOwnProperty("emailAlertConfig")) { - properties.alert = 1; - { - var error = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify(message.emailAlertConfig); - if (error) - return "emailAlertConfig." + error; - } + if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify(message.trainingDataset); + if (error) + return "trainingDataset." + error; + } + if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify(message.trainingPredictionSkewDetectionConfig); + if (error) + return "trainingPredictionSkewDetectionConfig." + error; + } + if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify(message.predictionDriftDetectionConfig); + if (error) + return "predictionDriftDetectionConfig." + error; + } + if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify(message.explanationConfig); + if (error) + return "explanationConfig." + error; } - if (message.enableLogging != null && message.hasOwnProperty("enableLogging")) - if (typeof message.enableLogging !== "boolean") - return "enableLogging: boolean expected"; return null; }; /** - * Creates a ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig */ - ModelMonitoringAlertConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig) + ModelMonitoringObjectiveConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig(); - if (object.emailAlertConfig != null) { - if (typeof object.emailAlertConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.emailAlertConfig: object expected"); - message.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.fromObject(object.emailAlertConfig); + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig(); + if (object.trainingDataset != null) { + if (typeof object.trainingDataset !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.trainingDataset: object expected"); + message.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.fromObject(object.trainingDataset); + } + if (object.trainingPredictionSkewDetectionConfig != null) { + if (typeof object.trainingPredictionSkewDetectionConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.trainingPredictionSkewDetectionConfig: object expected"); + message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.fromObject(object.trainingPredictionSkewDetectionConfig); + } + if (object.predictionDriftDetectionConfig != null) { + if (typeof object.predictionDriftDetectionConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.predictionDriftDetectionConfig: object expected"); + message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.fromObject(object.predictionDriftDetectionConfig); + } + if (object.explanationConfig != null) { + if (typeof object.explanationConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.explanationConfig: object expected"); + message.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.fromObject(object.explanationConfig); } - if (object.enableLogging != null) - message.enableLogging = Boolean(object.enableLogging); return message; }; /** - * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. + * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} message ModelMonitoringAlertConfig + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelMonitoringAlertConfig.toObject = function toObject(message, options) { + ModelMonitoringObjectiveConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.enableLogging = false; - if (message.emailAlertConfig != null && message.hasOwnProperty("emailAlertConfig")) { - object.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.toObject(message.emailAlertConfig, options); - if (options.oneofs) - object.alert = "emailAlertConfig"; + if (options.defaults) { + object.trainingDataset = null; + object.trainingPredictionSkewDetectionConfig = null; + object.predictionDriftDetectionConfig = null; + object.explanationConfig = null; } - if (message.enableLogging != null && message.hasOwnProperty("enableLogging")) - object.enableLogging = message.enableLogging; + if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) + object.trainingDataset = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.toObject(message.trainingDataset, options); + if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) + object.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.toObject(message.trainingPredictionSkewDetectionConfig, options); + if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) + object.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.toObject(message.predictionDriftDetectionConfig, options); + if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) + object.explanationConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.toObject(message.explanationConfig, options); return object; }; /** - * Converts this ModelMonitoringAlertConfig to JSON. + * Converts this ModelMonitoringObjectiveConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @instance * @returns {Object.} JSON object */ - ModelMonitoringAlertConfig.prototype.toJSON = function toJSON() { + ModelMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelMonitoringAlertConfig + * Gets the default type url for ModelMonitoringObjectiveConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelMonitoringAlertConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelMonitoringObjectiveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringAlertConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig"; }; - ModelMonitoringAlertConfig.EmailAlertConfig = (function() { + ModelMonitoringObjectiveConfig.TrainingDataset = (function() { /** - * Properties of an EmailAlertConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig - * @interface IEmailAlertConfig - * @property {Array.|null} [userEmails] EmailAlertConfig userEmails + * Properties of a TrainingDataset. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @interface ITrainingDataset + * @property {string|null} [dataset] TrainingDataset dataset + * @property {google.cloud.aiplatform.v1.IGcsSource|null} [gcsSource] TrainingDataset gcsSource + * @property {google.cloud.aiplatform.v1.IBigQuerySource|null} [bigquerySource] TrainingDataset bigquerySource + * @property {string|null} [dataFormat] TrainingDataset dataFormat + * @property {string|null} [targetField] TrainingDataset targetField + * @property {google.cloud.aiplatform.v1.ISamplingStrategy|null} [loggingSamplingStrategy] TrainingDataset loggingSamplingStrategy */ /** - * Constructs a new EmailAlertConfig. - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig - * @classdesc Represents an EmailAlertConfig. - * @implements IEmailAlertConfig + * Constructs a new TrainingDataset. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @classdesc Represents a TrainingDataset. + * @implements ITrainingDataset * @constructor - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set */ - function EmailAlertConfig(properties) { - this.userEmails = []; + function TrainingDataset(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -90377,78 +91644,159 @@ } /** - * EmailAlertConfig userEmails. - * @member {Array.} userEmails - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * TrainingDataset dataset. + * @member {string|null|undefined} dataset + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @instance */ - EmailAlertConfig.prototype.userEmails = $util.emptyArray; + TrainingDataset.prototype.dataset = null; /** - * Creates a new EmailAlertConfig instance using the specified properties. + * TrainingDataset gcsSource. + * @member {google.cloud.aiplatform.v1.IGcsSource|null|undefined} gcsSource + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.gcsSource = null; + + /** + * TrainingDataset bigquerySource. + * @member {google.cloud.aiplatform.v1.IBigQuerySource|null|undefined} bigquerySource + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.bigquerySource = null; + + /** + * TrainingDataset dataFormat. + * @member {string} dataFormat + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.dataFormat = ""; + + /** + * TrainingDataset targetField. + * @member {string} targetField + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.targetField = ""; + + /** + * TrainingDataset loggingSamplingStrategy. + * @member {google.cloud.aiplatform.v1.ISamplingStrategy|null|undefined} loggingSamplingStrategy + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.loggingSamplingStrategy = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TrainingDataset dataSource. + * @member {"dataset"|"gcsSource"|"bigquerySource"|undefined} dataSource + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + Object.defineProperty(TrainingDataset.prototype, "dataSource", { + get: $util.oneOfGetter($oneOfFields = ["dataset", "gcsSource", "bigquerySource"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TrainingDataset instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig instance + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset instance */ - EmailAlertConfig.create = function create(properties) { - return new EmailAlertConfig(properties); + TrainingDataset.create = function create(properties) { + return new TrainingDataset(properties); }; /** - * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig} message EmailAlertConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EmailAlertConfig.encode = function encode(message, writer) { + TrainingDataset.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.userEmails != null && message.userEmails.length) - for (var i = 0; i < message.userEmails.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.userEmails[i]); + if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.dataFormat); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dataset); + if (message.gcsSource != null && Object.hasOwnProperty.call(message, "gcsSource")) + $root.google.cloud.aiplatform.v1.GcsSource.encode(message.gcsSource, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) + $root.google.cloud.aiplatform.v1.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.targetField != null && Object.hasOwnProperty.call(message, "targetField")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetField); + if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) + $root.google.cloud.aiplatform.v1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig} message EmailAlertConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EmailAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { + TrainingDataset.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EmailAlertConfig message from the specified reader or buffer. + * Decodes a TrainingDataset message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @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.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EmailAlertConfig.decode = function decode(reader, length) { + TrainingDataset.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.ModelMonitoringAlertConfig.EmailAlertConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.userEmails && message.userEmails.length)) - message.userEmails = []; - message.userEmails.push(reader.string()); + case 3: { + message.dataset = reader.string(); + break; + } + case 4: { + message.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.decode(reader, reader.uint32()); + break; + } + case 5: { + message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.decode(reader, reader.uint32()); + break; + } + case 2: { + message.dataFormat = reader.string(); + break; + } + case 6: { + message.targetField = reader.string(); + break; + } + case 7: { + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.decode(reader, reader.uint32()); break; } default: @@ -90460,563 +91808,540 @@ }; /** - * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. + * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EmailAlertConfig.decodeDelimited = function decodeDelimited(reader) { + TrainingDataset.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EmailAlertConfig message. + * Verifies a TrainingDataset message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EmailAlertConfig.verify = function verify(message) { + TrainingDataset.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.userEmails != null && message.hasOwnProperty("userEmails")) { - if (!Array.isArray(message.userEmails)) - return "userEmails: array expected"; - for (var i = 0; i < message.userEmails.length; ++i) - if (!$util.isString(message.userEmails[i])) - return "userEmails: string[] expected"; + var properties = {}; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + properties.dataSource = 1; + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + } + if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { + if (properties.dataSource === 1) + return "dataSource: multiple values"; + properties.dataSource = 1; + { + var error = $root.google.cloud.aiplatform.v1.GcsSource.verify(message.gcsSource); + if (error) + return "gcsSource." + error; + } + } + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + if (properties.dataSource === 1) + return "dataSource: multiple values"; + properties.dataSource = 1; + { + var error = $root.google.cloud.aiplatform.v1.BigQuerySource.verify(message.bigquerySource); + if (error) + return "bigquerySource." + error; + } + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + if (!$util.isString(message.dataFormat)) + return "dataFormat: string expected"; + if (message.targetField != null && message.hasOwnProperty("targetField")) + if (!$util.isString(message.targetField)) + return "targetField: string expected"; + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { + var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.verify(message.loggingSamplingStrategy); + if (error) + return "loggingSamplingStrategy." + error; } return null; }; /** - * Creates an EmailAlertConfig message from a plain object. Also converts values to their respective internal types. + * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset */ - EmailAlertConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig) + TrainingDataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig(); - if (object.userEmails) { - if (!Array.isArray(object.userEmails)) - throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.userEmails: array expected"); - message.userEmails = []; - for (var i = 0; i < object.userEmails.length; ++i) - message.userEmails[i] = String(object.userEmails[i]); + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.gcsSource != null) { + if (typeof object.gcsSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.gcsSource: object expected"); + message.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.fromObject(object.gcsSource); + } + if (object.bigquerySource != null) { + if (typeof object.bigquerySource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.bigquerySource: object expected"); + message.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.fromObject(object.bigquerySource); + } + if (object.dataFormat != null) + message.dataFormat = String(object.dataFormat); + if (object.targetField != null) + message.targetField = String(object.targetField); + if (object.loggingSamplingStrategy != null) { + if (typeof object.loggingSamplingStrategy !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset.loggingSamplingStrategy: object expected"); + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); } return message; }; /** - * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. + * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @static - * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} message EmailAlertConfig + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset} message TrainingDataset * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EmailAlertConfig.toObject = function toObject(message, options) { + TrainingDataset.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.userEmails = []; - if (message.userEmails && message.userEmails.length) { - object.userEmails = []; - for (var j = 0; j < message.userEmails.length; ++j) - object.userEmails[j] = message.userEmails[j]; + if (options.defaults) { + object.dataFormat = ""; + object.targetField = ""; + object.loggingSamplingStrategy = null; + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + object.dataFormat = message.dataFormat; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + object.dataset = message.dataset; + if (options.oneofs) + object.dataSource = "dataset"; + } + if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { + object.gcsSource = $root.google.cloud.aiplatform.v1.GcsSource.toObject(message.gcsSource, options); + if (options.oneofs) + object.dataSource = "gcsSource"; + } + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + object.bigquerySource = $root.google.cloud.aiplatform.v1.BigQuerySource.toObject(message.bigquerySource, options); + if (options.oneofs) + object.dataSource = "bigquerySource"; } + if (message.targetField != null && message.hasOwnProperty("targetField")) + object.targetField = message.targetField; + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) + object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); return object; }; /** - * Converts this EmailAlertConfig to JSON. + * Converts this TrainingDataset to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @instance * @returns {Object.} JSON object */ - EmailAlertConfig.prototype.toJSON = function toJSON() { + TrainingDataset.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for EmailAlertConfig + * Gets the default type url for TrainingDataset * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - EmailAlertConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TrainingDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingDataset"; }; - return EmailAlertConfig; + return TrainingDataset; })(); - return ModelMonitoringAlertConfig; - })(); + ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig = (function() { - v1.ThresholdConfig = (function() { + /** + * Properties of a TrainingPredictionSkewDetectionConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @interface ITrainingPredictionSkewDetectionConfig + * @property {Object.|null} [skewThresholds] TrainingPredictionSkewDetectionConfig skewThresholds + * @property {Object.|null} [attributionScoreSkewThresholds] TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds + * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [defaultSkewThreshold] TrainingPredictionSkewDetectionConfig defaultSkewThreshold + */ - /** - * Properties of a ThresholdConfig. - * @memberof google.cloud.aiplatform.v1 - * @interface IThresholdConfig - * @property {number|null} [value] ThresholdConfig value - */ + /** + * Constructs a new TrainingPredictionSkewDetectionConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @classdesc Represents a TrainingPredictionSkewDetectionConfig. + * @implements ITrainingPredictionSkewDetectionConfig + * @constructor + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set + */ + function TrainingPredictionSkewDetectionConfig(properties) { + this.skewThresholds = {}; + this.attributionScoreSkewThresholds = {}; + 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]]; + } - /** - * Constructs a new ThresholdConfig. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ThresholdConfig. - * @implements IThresholdConfig - * @constructor - * @param {google.cloud.aiplatform.v1.IThresholdConfig=} [properties] Properties to set - */ - function ThresholdConfig(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]]; - } + /** + * TrainingPredictionSkewDetectionConfig skewThresholds. + * @member {Object.} skewThresholds + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.skewThresholds = $util.emptyObject; - /** - * ThresholdConfig value. - * @member {number|null|undefined} value - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @instance - */ - ThresholdConfig.prototype.value = null; + /** + * TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. + * @member {Object.} attributionScoreSkewThresholds + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.attributionScoreSkewThresholds = $util.emptyObject; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * TrainingPredictionSkewDetectionConfig defaultSkewThreshold. + * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} defaultSkewThreshold + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.defaultSkewThreshold = null; - /** - * ThresholdConfig threshold. - * @member {"value"|undefined} threshold - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @instance - */ - Object.defineProperty(ThresholdConfig.prototype, "threshold", { - get: $util.oneOfGetter($oneOfFields = ["value"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig instance + */ + TrainingPredictionSkewDetectionConfig.create = function create(properties) { + return new TrainingPredictionSkewDetectionConfig(properties); + }; - /** - * Creates a new ThresholdConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @static - * @param {google.cloud.aiplatform.v1.IThresholdConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig instance - */ - ThresholdConfig.create = function create(properties) { - return new ThresholdConfig(properties); - }; + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPredictionSkewDetectionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.skewThresholds != null && Object.hasOwnProperty.call(message, "skewThresholds")) + for (var keys = Object.keys(message.skewThresholds), 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.ThresholdConfig.encode(message.skewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.attributionScoreSkewThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreSkewThresholds")) + for (var keys = Object.keys(message.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.attributionScoreSkewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.defaultSkewThreshold != null && Object.hasOwnProperty.call(message, "defaultSkewThreshold")) + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.defaultSkewThreshold, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @static - * @param {google.cloud.aiplatform.v1.IThresholdConfig} message ThresholdConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ThresholdConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); - return writer; - }; - - /** - * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @static - * @param {google.cloud.aiplatform.v1.IThresholdConfig} message ThresholdConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ThresholdConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPredictionSkewDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ThresholdConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @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.ThresholdConfig} ThresholdConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ThresholdConfig.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.ThresholdConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.value = reader.double(); + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @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.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPredictionSkewDetectionConfig.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.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.skewThresholds === $util.emptyObject) + message.skewThresholds = {}; + 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.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.skewThresholds[key] = value; + break; + } + case 2: { + if (message.attributionScoreSkewThresholds === $util.emptyObject) + message.attributionScoreSkewThresholds = {}; + 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.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.attributionScoreSkewThresholds[key] = value; + break; + } + case 6: { + message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; - - /** - * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ThresholdConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ThresholdConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ThresholdConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.value != null && message.hasOwnProperty("value")) { - properties.threshold = 1; - if (typeof message.value !== "number") - return "value: number expected"; - } - return null; - }; - - /** - * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig - */ - ThresholdConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ThresholdConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.ThresholdConfig(); - if (object.value != null) - message.value = Number(object.value); - return message; - }; - - /** - * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @static - * @param {google.cloud.aiplatform.v1.ThresholdConfig} message ThresholdConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ThresholdConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.value != null && message.hasOwnProperty("value")) { - object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; - if (options.oneofs) - object.threshold = "value"; - } - return object; - }; - - /** - * Converts this ThresholdConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @instance - * @returns {Object.} JSON object - */ - ThresholdConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ThresholdConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ThresholdConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ThresholdConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ThresholdConfig"; - }; - - return ThresholdConfig; - })(); - - v1.SamplingStrategy = (function() { - - /** - * Properties of a SamplingStrategy. - * @memberof google.cloud.aiplatform.v1 - * @interface ISamplingStrategy - * @property {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null} [randomSampleConfig] SamplingStrategy randomSampleConfig - */ - - /** - * Constructs a new SamplingStrategy. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a SamplingStrategy. - * @implements ISamplingStrategy - * @constructor - * @param {google.cloud.aiplatform.v1.ISamplingStrategy=} [properties] Properties to set - */ - function SamplingStrategy(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]]; - } - - /** - * SamplingStrategy randomSampleConfig. - * @member {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null|undefined} randomSampleConfig - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @instance - */ - SamplingStrategy.prototype.randomSampleConfig = null; - - /** - * Creates a new SamplingStrategy instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @static - * @param {google.cloud.aiplatform.v1.ISamplingStrategy=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy instance - */ - SamplingStrategy.create = function create(properties) { - return new SamplingStrategy(properties); - }; - - /** - * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @static - * @param {google.cloud.aiplatform.v1.ISamplingStrategy} message SamplingStrategy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SamplingStrategy.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.randomSampleConfig != null && Object.hasOwnProperty.call(message, "randomSampleConfig")) - $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.encode(message.randomSampleConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + return message; + }; - /** - * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @static - * @param {google.cloud.aiplatform.v1.ISamplingStrategy} message SamplingStrategy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SamplingStrategy.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPredictionSkewDetectionConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Decodes a SamplingStrategy message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @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.SamplingStrategy} SamplingStrategy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SamplingStrategy.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.SamplingStrategy(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.decode(reader, reader.uint32()); - break; + /** + * Verifies a TrainingPredictionSkewDetectionConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrainingPredictionSkewDetectionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.skewThresholds != null && message.hasOwnProperty("skewThresholds")) { + if (!$util.isObject(message.skewThresholds)) + return "skewThresholds: object expected"; + var key = Object.keys(message.skewThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.skewThresholds[key[i]]); + if (error) + return "skewThresholds." + error; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; - - /** - * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SamplingStrategy.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + if (message.attributionScoreSkewThresholds != null && message.hasOwnProperty("attributionScoreSkewThresholds")) { + if (!$util.isObject(message.attributionScoreSkewThresholds)) + return "attributionScoreSkewThresholds: object expected"; + var key = Object.keys(message.attributionScoreSkewThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.attributionScoreSkewThresholds[key[i]]); + if (error) + return "attributionScoreSkewThresholds." + error; + } + } + if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.defaultSkewThreshold); + if (error) + return "defaultSkewThreshold." + error; + } + return null; + }; - /** - * Verifies a SamplingStrategy message. - * @function verify - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SamplingStrategy.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.randomSampleConfig != null && message.hasOwnProperty("randomSampleConfig")) { - var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify(message.randomSampleConfig); - if (error) - return "randomSampleConfig." + error; - } - return null; - }; + /** + * Creates a TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig + */ + TrainingPredictionSkewDetectionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(); + if (object.skewThresholds) { + if (typeof object.skewThresholds !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); + message.skewThresholds = {}; + for (var keys = Object.keys(object.skewThresholds), i = 0; i < keys.length; ++i) { + if (typeof object.skewThresholds[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); + message.skewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.skewThresholds[keys[i]]); + } + } + if (object.attributionScoreSkewThresholds) { + if (typeof object.attributionScoreSkewThresholds !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attributionScoreSkewThresholds: object expected"); + message.attributionScoreSkewThresholds = {}; + for (var keys = Object.keys(object.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { + if (typeof object.attributionScoreSkewThresholds[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attributionScoreSkewThresholds: object expected"); + message.attributionScoreSkewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.attributionScoreSkewThresholds[keys[i]]); + } + } + if (object.defaultSkewThreshold != null) { + if (typeof object.defaultSkewThreshold !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.defaultSkewThreshold: object expected"); + message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.defaultSkewThreshold); + } + return message; + }; - /** - * Creates a SamplingStrategy message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy - */ - SamplingStrategy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SamplingStrategy) + /** + * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TrainingPredictionSkewDetectionConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.skewThresholds = {}; + object.attributionScoreSkewThresholds = {}; + } + if (options.defaults) + object.defaultSkewThreshold = null; + var keys2; + if (message.skewThresholds && (keys2 = Object.keys(message.skewThresholds)).length) { + object.skewThresholds = {}; + for (var j = 0; j < keys2.length; ++j) + object.skewThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.skewThresholds[keys2[j]], options); + } + if (message.attributionScoreSkewThresholds && (keys2 = Object.keys(message.attributionScoreSkewThresholds)).length) { + object.attributionScoreSkewThresholds = {}; + for (var j = 0; j < keys2.length; ++j) + object.attributionScoreSkewThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.attributionScoreSkewThresholds[keys2[j]], options); + } + if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) + object.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.defaultSkewThreshold, options); return object; - var message = new $root.google.cloud.aiplatform.v1.SamplingStrategy(); - if (object.randomSampleConfig != null) { - if (typeof object.randomSampleConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SamplingStrategy.randomSampleConfig: object expected"); - message.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.fromObject(object.randomSampleConfig); - } - return message; - }; + }; - /** - * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @static - * @param {google.cloud.aiplatform.v1.SamplingStrategy} message SamplingStrategy - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SamplingStrategy.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.randomSampleConfig = null; - if (message.randomSampleConfig != null && message.hasOwnProperty("randomSampleConfig")) - object.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.toObject(message.randomSampleConfig, options); - return object; - }; + /** + * Converts this TrainingPredictionSkewDetectionConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + * @returns {Object.} JSON object + */ + TrainingPredictionSkewDetectionConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this SamplingStrategy to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @instance - * @returns {Object.} JSON object - */ - SamplingStrategy.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for TrainingPredictionSkewDetectionConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TrainingPredictionSkewDetectionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig"; + }; - /** - * Gets the default type url for SamplingStrategy - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - SamplingStrategy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SamplingStrategy"; - }; + return TrainingPredictionSkewDetectionConfig; + })(); - SamplingStrategy.RandomSampleConfig = (function() { + ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig = (function() { /** - * Properties of a RandomSampleConfig. - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @interface IRandomSampleConfig - * @property {number|null} [sampleRate] RandomSampleConfig sampleRate + * Properties of a PredictionDriftDetectionConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @interface IPredictionDriftDetectionConfig + * @property {Object.|null} [driftThresholds] PredictionDriftDetectionConfig driftThresholds + * @property {Object.|null} [attributionScoreDriftThresholds] PredictionDriftDetectionConfig attributionScoreDriftThresholds + * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [defaultDriftThreshold] PredictionDriftDetectionConfig defaultDriftThreshold */ /** - * Constructs a new RandomSampleConfig. - * @memberof google.cloud.aiplatform.v1.SamplingStrategy - * @classdesc Represents a RandomSampleConfig. - * @implements IRandomSampleConfig + * Constructs a new PredictionDriftDetectionConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @classdesc Represents a PredictionDriftDetectionConfig. + * @implements IPredictionDriftDetectionConfig * @constructor - * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set */ - function RandomSampleConfig(properties) { + function PredictionDriftDetectionConfig(properties) { + this.driftThresholds = {}; + this.attributionScoreDriftThresholds = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -91024,75 +92349,147 @@ } /** - * RandomSampleConfig sampleRate. - * @member {number} sampleRate - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * PredictionDriftDetectionConfig driftThresholds. + * @member {Object.} driftThresholds + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @instance */ - RandomSampleConfig.prototype.sampleRate = 0; + PredictionDriftDetectionConfig.prototype.driftThresholds = $util.emptyObject; /** - * Creates a new RandomSampleConfig instance using the specified properties. + * PredictionDriftDetectionConfig attributionScoreDriftThresholds. + * @member {Object.} attributionScoreDriftThresholds + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @instance + */ + PredictionDriftDetectionConfig.prototype.attributionScoreDriftThresholds = $util.emptyObject; + + /** + * PredictionDriftDetectionConfig defaultDriftThreshold. + * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} defaultDriftThreshold + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @instance + */ + PredictionDriftDetectionConfig.prototype.defaultDriftThreshold = null; + + /** + * Creates a new PredictionDriftDetectionConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @static - * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig instance + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig instance */ - RandomSampleConfig.create = function create(properties) { - return new RandomSampleConfig(properties); + PredictionDriftDetectionConfig.create = function create(properties) { + return new PredictionDriftDetectionConfig(properties); }; /** - * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @static - * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig} message RandomSampleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RandomSampleConfig.encode = function encode(message, writer) { + PredictionDriftDetectionConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sampleRate != null && Object.hasOwnProperty.call(message, "sampleRate")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.sampleRate); + if (message.driftThresholds != null && Object.hasOwnProperty.call(message, "driftThresholds")) + for (var keys = Object.keys(message.driftThresholds), 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.ThresholdConfig.encode(message.driftThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.attributionScoreDriftThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreDriftThresholds")) + for (var keys = Object.keys(message.attributionScoreDriftThresholds), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.attributionScoreDriftThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.defaultDriftThreshold != null && Object.hasOwnProperty.call(message, "defaultDriftThreshold")) + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.defaultDriftThreshold, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @static - * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig} message RandomSampleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RandomSampleConfig.encodeDelimited = function encodeDelimited(message, writer) { + PredictionDriftDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RandomSampleConfig message from the specified reader or buffer. + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @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.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RandomSampleConfig.decode = function decode(reader, length) { + PredictionDriftDetectionConfig.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.SamplingStrategy.RandomSampleConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.sampleRate = reader.double(); + if (message.driftThresholds === $util.emptyObject) + message.driftThresholds = {}; + 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.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.driftThresholds[key] = value; + break; + } + case 2: { + if (message.attributionScoreDriftThresholds === $util.emptyObject) + message.attributionScoreDriftThresholds = {}; + 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.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.attributionScoreDriftThresholds[key] = value; + break; + } + case 5: { + message.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); break; } default: @@ -91104,443 +92501,744 @@ }; /** - * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RandomSampleConfig.decodeDelimited = function decodeDelimited(reader) { + PredictionDriftDetectionConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RandomSampleConfig message. + * Verifies a PredictionDriftDetectionConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RandomSampleConfig.verify = function verify(message) { + PredictionDriftDetectionConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) - if (typeof message.sampleRate !== "number") - return "sampleRate: number expected"; + if (message.driftThresholds != null && message.hasOwnProperty("driftThresholds")) { + if (!$util.isObject(message.driftThresholds)) + return "driftThresholds: object expected"; + var key = Object.keys(message.driftThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.driftThresholds[key[i]]); + if (error) + return "driftThresholds." + error; + } + } + if (message.attributionScoreDriftThresholds != null && message.hasOwnProperty("attributionScoreDriftThresholds")) { + if (!$util.isObject(message.attributionScoreDriftThresholds)) + return "attributionScoreDriftThresholds: object expected"; + var key = Object.keys(message.attributionScoreDriftThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.attributionScoreDriftThresholds[key[i]]); + if (error) + return "attributionScoreDriftThresholds." + error; + } + } + if (message.defaultDriftThreshold != null && message.hasOwnProperty("defaultDriftThreshold")) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.defaultDriftThreshold); + if (error) + return "defaultDriftThreshold." + error; + } return null; }; /** - * Creates a RandomSampleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig */ - RandomSampleConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig) + PredictionDriftDetectionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig(); - if (object.sampleRate != null) - message.sampleRate = Number(object.sampleRate); + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig(); + if (object.driftThresholds) { + if (typeof object.driftThresholds !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.driftThresholds: object expected"); + message.driftThresholds = {}; + for (var keys = Object.keys(object.driftThresholds), i = 0; i < keys.length; ++i) { + if (typeof object.driftThresholds[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.driftThresholds: object expected"); + message.driftThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.driftThresholds[keys[i]]); + } + } + if (object.attributionScoreDriftThresholds) { + if (typeof object.attributionScoreDriftThresholds !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attributionScoreDriftThresholds: object expected"); + message.attributionScoreDriftThresholds = {}; + for (var keys = Object.keys(object.attributionScoreDriftThresholds), i = 0; i < keys.length; ++i) { + if (typeof object.attributionScoreDriftThresholds[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attributionScoreDriftThresholds: object expected"); + message.attributionScoreDriftThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.attributionScoreDriftThresholds[keys[i]]); + } + } + if (object.defaultDriftThreshold != null) { + if (typeof object.defaultDriftThreshold !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.defaultDriftThreshold: object expected"); + message.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.defaultDriftThreshold); + } return message; }; /** - * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. + * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @static - * @param {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} message RandomSampleConfig + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} message PredictionDriftDetectionConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RandomSampleConfig.toObject = function toObject(message, options) { + PredictionDriftDetectionConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) { + object.driftThresholds = {}; + object.attributionScoreDriftThresholds = {}; + } if (options.defaults) - object.sampleRate = 0; - if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) - object.sampleRate = options.json && !isFinite(message.sampleRate) ? String(message.sampleRate) : message.sampleRate; + object.defaultDriftThreshold = null; + var keys2; + if (message.driftThresholds && (keys2 = Object.keys(message.driftThresholds)).length) { + object.driftThresholds = {}; + for (var j = 0; j < keys2.length; ++j) + object.driftThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.driftThresholds[keys2[j]], options); + } + if (message.attributionScoreDriftThresholds && (keys2 = Object.keys(message.attributionScoreDriftThresholds)).length) { + object.attributionScoreDriftThresholds = {}; + for (var j = 0; j < keys2.length; ++j) + object.attributionScoreDriftThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.attributionScoreDriftThresholds[keys2[j]], options); + } + if (message.defaultDriftThreshold != null && message.hasOwnProperty("defaultDriftThreshold")) + object.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.defaultDriftThreshold, options); return object; }; /** - * Converts this RandomSampleConfig to JSON. + * Converts this PredictionDriftDetectionConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @instance * @returns {Object.} JSON object */ - RandomSampleConfig.prototype.toJSON = function toJSON() { + PredictionDriftDetectionConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RandomSampleConfig + * Gets the default type url for PredictionDriftDetectionConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RandomSampleConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PredictionDriftDetectionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig"; }; - return RandomSampleConfig; + return PredictionDriftDetectionConfig; })(); - return SamplingStrategy; - })(); - - v1.LineageSubgraph = (function() { + ModelMonitoringObjectiveConfig.ExplanationConfig = (function() { - /** - * Properties of a LineageSubgraph. - * @memberof google.cloud.aiplatform.v1 - * @interface ILineageSubgraph - * @property {Array.|null} [artifacts] LineageSubgraph artifacts - * @property {Array.|null} [executions] LineageSubgraph executions - * @property {Array.|null} [events] LineageSubgraph events - */ + /** + * Properties of an ExplanationConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @interface IExplanationConfig + * @property {boolean|null} [enableFeatureAttributes] ExplanationConfig enableFeatureAttributes + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null} [explanationBaseline] ExplanationConfig explanationBaseline + */ - /** - * Constructs a new LineageSubgraph. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a LineageSubgraph. - * @implements ILineageSubgraph - * @constructor - * @param {google.cloud.aiplatform.v1.ILineageSubgraph=} [properties] Properties to set - */ - function LineageSubgraph(properties) { - this.artifacts = []; - this.executions = []; - this.events = []; - 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]]; - } + /** + * Constructs a new ExplanationConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig + * @classdesc Represents an ExplanationConfig. + * @implements IExplanationConfig + * @constructor + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig=} [properties] Properties to set + */ + function ExplanationConfig(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]]; + } - /** - * LineageSubgraph artifacts. - * @member {Array.} artifacts - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @instance - */ - LineageSubgraph.prototype.artifacts = $util.emptyArray; + /** + * ExplanationConfig enableFeatureAttributes. + * @member {boolean} enableFeatureAttributes + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @instance + */ + ExplanationConfig.prototype.enableFeatureAttributes = false; - /** - * LineageSubgraph executions. - * @member {Array.} executions - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @instance - */ - LineageSubgraph.prototype.executions = $util.emptyArray; + /** + * ExplanationConfig explanationBaseline. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null|undefined} explanationBaseline + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @instance + */ + ExplanationConfig.prototype.explanationBaseline = null; - /** - * LineageSubgraph events. - * @member {Array.} events - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @instance - */ - LineageSubgraph.prototype.events = $util.emptyArray; + /** + * Creates a new ExplanationConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig instance + */ + ExplanationConfig.create = function create(properties) { + return new ExplanationConfig(properties); + }; - /** - * Creates a new LineageSubgraph instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @static - * @param {google.cloud.aiplatform.v1.ILineageSubgraph=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph instance - */ - LineageSubgraph.create = function create(properties) { - return new LineageSubgraph(properties); - }; + /** + * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig} message ExplanationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplanationConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enableFeatureAttributes != null && Object.hasOwnProperty.call(message, "enableFeatureAttributes")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableFeatureAttributes); + if (message.explanationBaseline != null && Object.hasOwnProperty.call(message, "explanationBaseline")) + $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.encode(message.explanationBaseline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified LineageSubgraph message. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @static - * @param {google.cloud.aiplatform.v1.ILineageSubgraph} message LineageSubgraph message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LineageSubgraph.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifacts != null && message.artifacts.length) - for (var i = 0; i < message.artifacts.length; ++i) - $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.executions != null && message.executions.length) - for (var i = 0; i < message.executions.length; ++i) - $root.google.cloud.aiplatform.v1.Execution.encode(message.executions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.events != null && message.events.length) - for (var i = 0; i < message.events.length; ++i) - $root.google.cloud.aiplatform.v1.Event.encode(message.events[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.IExplanationConfig} message ExplanationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplanationConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified LineageSubgraph message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @static - * @param {google.cloud.aiplatform.v1.ILineageSubgraph} message LineageSubgraph message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LineageSubgraph.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a LineageSubgraph message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @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.LineageSubgraph} LineageSubgraph - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LineageSubgraph.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.LineageSubgraph(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.artifacts && message.artifacts.length)) - message.artifacts = []; - message.artifacts.push($root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32())); - break; - } - case 2: { - if (!(message.executions && message.executions.length)) - message.executions = []; - message.executions.push($root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32())); - break; - } - case 3: { - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.google.cloud.aiplatform.v1.Event.decode(reader, reader.uint32())); + /** + * Decodes an ExplanationConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @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.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplanationConfig.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.ModelMonitoringObjectiveConfig.ExplanationConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enableFeatureAttributes = reader.bool(); + break; + } + case 2: { + message.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a LineageSubgraph message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LineageSubgraph.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplanationConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a LineageSubgraph message. - * @function verify - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LineageSubgraph.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) { - if (!Array.isArray(message.artifacts)) - return "artifacts: array expected"; - for (var i = 0; i < message.artifacts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifacts[i]); - if (error) - return "artifacts." + error; - } - } - if (message.executions != null && message.hasOwnProperty("executions")) { - if (!Array.isArray(message.executions)) - return "executions: array expected"; - for (var i = 0; i < message.executions.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.executions[i]); + /** + * Verifies an ExplanationConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExplanationConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enableFeatureAttributes != null && message.hasOwnProperty("enableFeatureAttributes")) + if (typeof message.enableFeatureAttributes !== "boolean") + return "enableFeatureAttributes: boolean expected"; + if (message.explanationBaseline != null && message.hasOwnProperty("explanationBaseline")) { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify(message.explanationBaseline); if (error) - return "executions." + error; + return "explanationBaseline." + error; } - } - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (var i = 0; i < message.events.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Event.verify(message.events[i]); - if (error) - return "events." + error; + return null; + }; + + /** + * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + */ + ExplanationConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig(); + if (object.enableFeatureAttributes != null) + message.enableFeatureAttributes = Boolean(object.enableFeatureAttributes); + if (object.explanationBaseline != null) { + if (typeof object.explanationBaseline !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.explanationBaseline: object expected"); + message.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.fromObject(object.explanationBaseline); } - } - return null; - }; + return message; + }; - /** - * Creates a LineageSubgraph message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph - */ - LineageSubgraph.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.LineageSubgraph) - return object; - var message = new $root.google.cloud.aiplatform.v1.LineageSubgraph(); - if (object.artifacts) { - if (!Array.isArray(object.artifacts)) - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.artifacts: array expected"); - message.artifacts = []; - for (var i = 0; i < object.artifacts.length; ++i) { - if (typeof object.artifacts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.artifacts: object expected"); - message.artifacts[i] = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifacts[i]); + /** + * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig} message ExplanationConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExplanationConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.enableFeatureAttributes = false; + object.explanationBaseline = null; } - } - if (object.executions) { - if (!Array.isArray(object.executions)) - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.executions: array expected"); - message.executions = []; - for (var i = 0; i < object.executions.length; ++i) { - if (typeof object.executions[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.executions: object expected"); - message.executions[i] = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.executions[i]); + if (message.enableFeatureAttributes != null && message.hasOwnProperty("enableFeatureAttributes")) + object.enableFeatureAttributes = message.enableFeatureAttributes; + if (message.explanationBaseline != null && message.hasOwnProperty("explanationBaseline")) + object.explanationBaseline = $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.toObject(message.explanationBaseline, options); + return object; + }; + + /** + * Converts this ExplanationConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @instance + * @returns {Object.} JSON object + */ + ExplanationConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExplanationConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExplanationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - } - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.events: array expected"); - message.events = []; - for (var i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.events: object expected"); - message.events[i] = $root.google.cloud.aiplatform.v1.Event.fromObject(object.events[i]); + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig"; + }; + + ExplanationConfig.ExplanationBaseline = (function() { + + /** + * Properties of an ExplanationBaseline. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @interface IExplanationBaseline + * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [gcs] ExplanationBaseline gcs + * @property {google.cloud.aiplatform.v1.IBigQueryDestination|null} [bigquery] ExplanationBaseline bigquery + * @property {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null} [predictionFormat] ExplanationBaseline predictionFormat + */ + + /** + * Constructs a new ExplanationBaseline. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @classdesc Represents an ExplanationBaseline. + * @implements IExplanationBaseline + * @constructor + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline=} [properties] Properties to set + */ + function ExplanationBaseline(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]]; } - } - return message; - }; - /** - * Creates a plain object from a LineageSubgraph message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @static - * @param {google.cloud.aiplatform.v1.LineageSubgraph} message LineageSubgraph - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - LineageSubgraph.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.artifacts = []; - object.executions = []; - object.events = []; - } - if (message.artifacts && message.artifacts.length) { - object.artifacts = []; - for (var j = 0; j < message.artifacts.length; ++j) - object.artifacts[j] = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifacts[j], options); - } - if (message.executions && message.executions.length) { - object.executions = []; - for (var j = 0; j < message.executions.length; ++j) - object.executions[j] = $root.google.cloud.aiplatform.v1.Execution.toObject(message.executions[j], options); - } - if (message.events && message.events.length) { - object.events = []; - for (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.google.cloud.aiplatform.v1.Event.toObject(message.events[j], options); - } - return object; - }; + /** + * ExplanationBaseline gcs. + * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} gcs + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + ExplanationBaseline.prototype.gcs = null; - /** - * Converts this LineageSubgraph to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @instance - * @returns {Object.} JSON object - */ - LineageSubgraph.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * ExplanationBaseline bigquery. + * @member {google.cloud.aiplatform.v1.IBigQueryDestination|null|undefined} bigquery + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + ExplanationBaseline.prototype.bigquery = null; - /** - * Gets the default type url for LineageSubgraph - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.LineageSubgraph - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - LineageSubgraph.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.LineageSubgraph"; - }; + /** + * ExplanationBaseline predictionFormat. + * @member {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat} predictionFormat + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + ExplanationBaseline.prototype.predictionFormat = 0; - return LineageSubgraph; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExplanationBaseline destination. + * @member {"gcs"|"bigquery"|undefined} destination + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + Object.defineProperty(ExplanationBaseline.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcs", "bigquery"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExplanationBaseline instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline instance + */ + ExplanationBaseline.create = function create(properties) { + return new ExplanationBaseline(properties); + }; + + /** + * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline} message ExplanationBaseline message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplanationBaseline.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.predictionFormat != null && Object.hasOwnProperty.call(message, "predictionFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.predictionFormat); + if (message.gcs != null && Object.hasOwnProperty.call(message, "gcs")) + $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.gcs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.bigquery != null && Object.hasOwnProperty.call(message, "bigquery")) + $root.google.cloud.aiplatform.v1.BigQueryDestination.encode(message.bigquery, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline} message ExplanationBaseline message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplanationBaseline.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @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.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplanationBaseline.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.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); + break; + } + case 3: { + message.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.decode(reader, reader.uint32()); + break; + } + case 1: { + message.predictionFormat = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplanationBaseline.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExplanationBaseline message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExplanationBaseline.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.gcs != null && message.hasOwnProperty("gcs")) { + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.gcs); + if (error) + return "gcs." + error; + } + } + if (message.bigquery != null && message.hasOwnProperty("bigquery")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1.BigQueryDestination.verify(message.bigquery); + if (error) + return "bigquery." + error; + } + } + if (message.predictionFormat != null && message.hasOwnProperty("predictionFormat")) + switch (message.predictionFormat) { + default: + return "predictionFormat: enum value expected"; + case 0: + case 2: + case 3: + break; + } + return null; + }; + + /** + * Creates an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline + */ + ExplanationBaseline.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline(); + if (object.gcs != null) { + if (typeof object.gcs !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.gcs: object expected"); + message.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.gcs); + } + if (object.bigquery != null) { + if (typeof object.bigquery !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.bigquery: object expected"); + message.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.fromObject(object.bigquery); + } + switch (object.predictionFormat) { + default: + if (typeof object.predictionFormat === "number") { + message.predictionFormat = object.predictionFormat; + break; + } + break; + case "PREDICTION_FORMAT_UNSPECIFIED": + case 0: + message.predictionFormat = 0; + break; + case "JSONL": + case 2: + message.predictionFormat = 2; + break; + case "BIGQUERY": + case 3: + message.predictionFormat = 3; + break; + } + return message; + }; + + /** + * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} message ExplanationBaseline + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExplanationBaseline.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.predictionFormat = options.enums === String ? "PREDICTION_FORMAT_UNSPECIFIED" : 0; + if (message.predictionFormat != null && message.hasOwnProperty("predictionFormat")) + object.predictionFormat = options.enums === String ? $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat[message.predictionFormat] === undefined ? message.predictionFormat : $root.google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat[message.predictionFormat] : message.predictionFormat; + if (message.gcs != null && message.hasOwnProperty("gcs")) { + object.gcs = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.gcs, options); + if (options.oneofs) + object.destination = "gcs"; + } + if (message.bigquery != null && message.hasOwnProperty("bigquery")) { + object.bigquery = $root.google.cloud.aiplatform.v1.BigQueryDestination.toObject(message.bigquery, options); + if (options.oneofs) + object.destination = "bigquery"; + } + return object; + }; + + /** + * Converts this ExplanationBaseline to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + * @returns {Object.} JSON object + */ + ExplanationBaseline.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExplanationBaseline + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExplanationBaseline.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline"; + }; + + /** + * PredictionFormat enum. + * @name google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat + * @enum {number} + * @property {number} PREDICTION_FORMAT_UNSPECIFIED=0 PREDICTION_FORMAT_UNSPECIFIED value + * @property {number} JSONL=2 JSONL value + * @property {number} BIGQUERY=3 BIGQUERY value + */ + ExplanationBaseline.PredictionFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PREDICTION_FORMAT_UNSPECIFIED"] = 0; + values[valuesById[2] = "JSONL"] = 2; + values[valuesById[3] = "BIGQUERY"] = 3; + return values; + })(); + + return ExplanationBaseline; + })(); + + return ExplanationConfig; + })(); + + return ModelMonitoringObjectiveConfig; })(); - v1.MetadataSchema = (function() { + v1.ModelMonitoringAlertConfig = (function() { /** - * Properties of a MetadataSchema. + * Properties of a ModelMonitoringAlertConfig. * @memberof google.cloud.aiplatform.v1 - * @interface IMetadataSchema - * @property {string|null} [name] MetadataSchema name - * @property {string|null} [schemaVersion] MetadataSchema schemaVersion - * @property {string|null} [schema] MetadataSchema schema - * @property {google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType|null} [schemaType] MetadataSchema schemaType - * @property {google.protobuf.ITimestamp|null} [createTime] MetadataSchema createTime - * @property {string|null} [description] MetadataSchema description + * @interface IModelMonitoringAlertConfig + * @property {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null} [emailAlertConfig] ModelMonitoringAlertConfig emailAlertConfig + * @property {boolean|null} [enableLogging] ModelMonitoringAlertConfig enableLogging */ /** - * Constructs a new MetadataSchema. + * Constructs a new ModelMonitoringAlertConfig. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MetadataSchema. - * @implements IMetadataSchema + * @classdesc Represents a ModelMonitoringAlertConfig. + * @implements IModelMonitoringAlertConfig * @constructor - * @param {google.cloud.aiplatform.v1.IMetadataSchema=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig=} [properties] Properties to set */ - function MetadataSchema(properties) { + function ModelMonitoringAlertConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -91548,145 +93246,103 @@ } /** - * MetadataSchema name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.MetadataSchema - * @instance - */ - MetadataSchema.prototype.name = ""; - - /** - * MetadataSchema schemaVersion. - * @member {string} schemaVersion - * @memberof google.cloud.aiplatform.v1.MetadataSchema - * @instance - */ - MetadataSchema.prototype.schemaVersion = ""; - - /** - * MetadataSchema schema. - * @member {string} schema - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * ModelMonitoringAlertConfig emailAlertConfig. + * @member {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig|null|undefined} emailAlertConfig + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @instance */ - MetadataSchema.prototype.schema = ""; + ModelMonitoringAlertConfig.prototype.emailAlertConfig = null; /** - * MetadataSchema schemaType. - * @member {google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType} schemaType - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * ModelMonitoringAlertConfig enableLogging. + * @member {boolean} enableLogging + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @instance */ - MetadataSchema.prototype.schemaType = 0; + ModelMonitoringAlertConfig.prototype.enableLogging = false; - /** - * MetadataSchema createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.MetadataSchema - * @instance - */ - MetadataSchema.prototype.createTime = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * MetadataSchema description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * ModelMonitoringAlertConfig alert. + * @member {"emailAlertConfig"|undefined} alert + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @instance */ - MetadataSchema.prototype.description = ""; + Object.defineProperty(ModelMonitoringAlertConfig.prototype, "alert", { + get: $util.oneOfGetter($oneOfFields = ["emailAlertConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new MetadataSchema instance using the specified properties. + * Creates a new ModelMonitoringAlertConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1.IMetadataSchema=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MetadataSchema} MetadataSchema instance + * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig instance */ - MetadataSchema.create = function create(properties) { - return new MetadataSchema(properties); + ModelMonitoringAlertConfig.create = function create(properties) { + return new ModelMonitoringAlertConfig(properties); }; /** - * Encodes the specified MetadataSchema message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataSchema.verify|verify} messages. + * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1.IMetadataSchema} message MetadataSchema message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetadataSchema.encode = function encode(message, writer) { + ModelMonitoringAlertConfig.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); - if (message.schemaVersion != null && Object.hasOwnProperty.call(message, "schemaVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.schemaVersion); - if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.schema); - if (message.schemaType != null && Object.hasOwnProperty.call(message, "schemaType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.schemaType); - 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.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); + if (message.emailAlertConfig != null && Object.hasOwnProperty.call(message, "emailAlertConfig")) + $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.encode(message.emailAlertConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.enableLogging != null && Object.hasOwnProperty.call(message, "enableLogging")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableLogging); return writer; }; /** - * Encodes the specified MetadataSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataSchema.verify|verify} messages. + * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1.IMetadataSchema} message MetadataSchema message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetadataSchema.encodeDelimited = function encodeDelimited(message, writer) { + ModelMonitoringAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MetadataSchema message from the specified reader or buffer. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @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.MetadataSchema} MetadataSchema + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetadataSchema.decode = function decode(reader, length) { + ModelMonitoringAlertConfig.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.MetadataSchema(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.decode(reader, reader.uint32()); break; } case 2: { - message.schemaVersion = reader.string(); - break; - } - case 3: { - message.schema = reader.string(); - break; - } - case 4: { - message.schemaType = reader.int32(); - break; - } - case 5: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.description = reader.string(); + message.enableLogging = reader.bool(); break; } default: @@ -91698,1308 +93354,3298 @@ }; /** - * Decodes a MetadataSchema message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MetadataSchema} MetadataSchema + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetadataSchema.decodeDelimited = function decodeDelimited(reader) { + ModelMonitoringAlertConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MetadataSchema message. + * Verifies a ModelMonitoringAlertConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MetadataSchema.verify = function verify(message) { + ModelMonitoringAlertConfig.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"; - if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) - if (!$util.isString(message.schemaVersion)) - return "schemaVersion: string expected"; - if (message.schema != null && message.hasOwnProperty("schema")) - if (!$util.isString(message.schema)) - return "schema: string expected"; - if (message.schemaType != null && message.hasOwnProperty("schemaType")) - switch (message.schemaType) { - default: - return "schemaType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + var properties = {}; + if (message.emailAlertConfig != null && message.hasOwnProperty("emailAlertConfig")) { + properties.alert = 1; + { + var error = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify(message.emailAlertConfig); + if (error) + return "emailAlertConfig." + error; } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; + if (message.enableLogging != null && message.hasOwnProperty("enableLogging")) + if (typeof message.enableLogging !== "boolean") + return "enableLogging: boolean expected"; return null; }; /** - * Creates a MetadataSchema message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MetadataSchema} MetadataSchema + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig */ - MetadataSchema.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MetadataSchema) + ModelMonitoringAlertConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.MetadataSchema(); - if (object.name != null) - message.name = String(object.name); - if (object.schemaVersion != null) - message.schemaVersion = String(object.schemaVersion); - if (object.schema != null) - message.schema = String(object.schema); - switch (object.schemaType) { - default: - if (typeof object.schemaType === "number") { - message.schemaType = object.schemaType; - break; - } - break; - case "METADATA_SCHEMA_TYPE_UNSPECIFIED": - case 0: - message.schemaType = 0; - break; - case "ARTIFACT_TYPE": - case 1: - message.schemaType = 1; - break; - case "EXECUTION_TYPE": - case 2: - message.schemaType = 2; - break; - case "CONTEXT_TYPE": - case 3: - message.schemaType = 3; - break; - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MetadataSchema.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig(); + if (object.emailAlertConfig != null) { + if (typeof object.emailAlertConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.emailAlertConfig: object expected"); + message.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.fromObject(object.emailAlertConfig); } - if (object.description != null) - message.description = String(object.description); + if (object.enableLogging != null) + message.enableLogging = Boolean(object.enableLogging); return message; }; /** - * Creates a plain object from a MetadataSchema message. Also converts values to other types if specified. + * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1.MetadataSchema} message MetadataSchema + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig} message ModelMonitoringAlertConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MetadataSchema.toObject = function toObject(message, options) { + ModelMonitoringAlertConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.schemaVersion = ""; - object.schema = ""; - object.schemaType = options.enums === String ? "METADATA_SCHEMA_TYPE_UNSPECIFIED" : 0; - object.createTime = null; - object.description = ""; + if (options.defaults) + object.enableLogging = false; + if (message.emailAlertConfig != null && message.hasOwnProperty("emailAlertConfig")) { + object.emailAlertConfig = $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.toObject(message.emailAlertConfig, options); + if (options.oneofs) + object.alert = "emailAlertConfig"; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) - object.schemaVersion = message.schemaVersion; - if (message.schema != null && message.hasOwnProperty("schema")) - object.schema = message.schema; - if (message.schemaType != null && message.hasOwnProperty("schemaType")) - object.schemaType = options.enums === String ? $root.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType[message.schemaType] === undefined ? message.schemaType : $root.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType[message.schemaType] : message.schemaType; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + if (message.enableLogging != null && message.hasOwnProperty("enableLogging")) + object.enableLogging = message.enableLogging; return object; }; /** - * Converts this MetadataSchema to JSON. + * Converts this ModelMonitoringAlertConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @instance * @returns {Object.} JSON object */ - MetadataSchema.prototype.toJSON = function toJSON() { + ModelMonitoringAlertConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MetadataSchema + * Gets the default type url for ModelMonitoringAlertConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MetadataSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelMonitoringAlertConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MetadataSchema"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringAlertConfig"; }; - /** - * MetadataSchemaType enum. - * @name google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType - * @enum {number} - * @property {number} METADATA_SCHEMA_TYPE_UNSPECIFIED=0 METADATA_SCHEMA_TYPE_UNSPECIFIED value - * @property {number} ARTIFACT_TYPE=1 ARTIFACT_TYPE value - * @property {number} EXECUTION_TYPE=2 EXECUTION_TYPE value - * @property {number} CONTEXT_TYPE=3 CONTEXT_TYPE value - */ - MetadataSchema.MetadataSchemaType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "METADATA_SCHEMA_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ARTIFACT_TYPE"] = 1; - values[valuesById[2] = "EXECUTION_TYPE"] = 2; - values[valuesById[3] = "CONTEXT_TYPE"] = 3; - return values; - })(); - - return MetadataSchema; - })(); + ModelMonitoringAlertConfig.EmailAlertConfig = (function() { - v1.MetadataService = (function() { + /** + * Properties of an EmailAlertConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @interface IEmailAlertConfig + * @property {Array.|null} [userEmails] EmailAlertConfig userEmails + */ - /** - * Constructs a new MetadataService service. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MetadataService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function MetadataService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + /** + * Constructs a new EmailAlertConfig. + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig + * @classdesc Represents an EmailAlertConfig. + * @implements IEmailAlertConfig + * @constructor + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig=} [properties] Properties to set + */ + function EmailAlertConfig(properties) { + this.userEmails = []; + 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]]; + } - (MetadataService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MetadataService; + /** + * EmailAlertConfig userEmails. + * @member {Array.} userEmails + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @instance + */ + EmailAlertConfig.prototype.userEmails = $util.emptyArray; - /** - * Creates new MetadataService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1.MetadataService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {MetadataService} RPC service. Useful where requests and/or responses are streamed. + /** + * Creates a new EmailAlertConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig instance + */ + EmailAlertConfig.create = function create(properties) { + return new EmailAlertConfig(properties); + }; + + /** + * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig} message EmailAlertConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EmailAlertConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.userEmails != null && message.userEmails.length) + for (var i = 0; i < message.userEmails.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.userEmails[i]); + return writer; + }; + + /** + * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.IEmailAlertConfig} message EmailAlertConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EmailAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EmailAlertConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @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.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EmailAlertConfig.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.ModelMonitoringAlertConfig.EmailAlertConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.userEmails && message.userEmails.length)) + message.userEmails = []; + message.userEmails.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EmailAlertConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EmailAlertConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EmailAlertConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.userEmails != null && message.hasOwnProperty("userEmails")) { + if (!Array.isArray(message.userEmails)) + return "userEmails: array expected"; + for (var i = 0; i < message.userEmails.length; ++i) + if (!$util.isString(message.userEmails[i])) + return "userEmails: string[] expected"; + } + return null; + }; + + /** + * Creates an EmailAlertConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig + */ + EmailAlertConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig(); + if (object.userEmails) { + if (!Array.isArray(object.userEmails)) + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig.userEmails: array expected"); + message.userEmails = []; + for (var i = 0; i < object.userEmails.length; ++i) + message.userEmails[i] = String(object.userEmails[i]); + } + return message; + }; + + /** + * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig} message EmailAlertConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EmailAlertConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.userEmails = []; + if (message.userEmails && message.userEmails.length) { + object.userEmails = []; + for (var j = 0; j < message.userEmails.length; ++j) + object.userEmails[j] = message.userEmails[j]; + } + return object; + }; + + /** + * Converts this EmailAlertConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @instance + * @returns {Object.} JSON object + */ + EmailAlertConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for EmailAlertConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EmailAlertConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelMonitoringAlertConfig.EmailAlertConfig"; + }; + + return EmailAlertConfig; + })(); + + return ModelMonitoringAlertConfig; + })(); + + v1.ThresholdConfig = (function() { + + /** + * Properties of a ThresholdConfig. + * @memberof google.cloud.aiplatform.v1 + * @interface IThresholdConfig + * @property {number|null} [value] ThresholdConfig value */ - MetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createMetadataStore}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef CreateMetadataStoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Constructs a new ThresholdConfig. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ThresholdConfig. + * @implements IThresholdConfig + * @constructor + * @param {google.cloud.aiplatform.v1.IThresholdConfig=} [properties] Properties to set */ + function ThresholdConfig(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]]; + } /** - * Calls CreateMetadataStore. - * @function createMetadataStore - * @memberof google.cloud.aiplatform.v1.MetadataService + * ThresholdConfig value. + * @member {number|null|undefined} value + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @instance - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest} request CreateMetadataStoreRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.CreateMetadataStoreCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.createMetadataStore = function createMetadataStore(request, callback) { - return this.rpcCall(createMetadataStore, $root.google.cloud.aiplatform.v1.CreateMetadataStoreRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateMetadataStore" }); + ThresholdConfig.prototype.value = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Calls CreateMetadataStore. - * @function createMetadataStore - * @memberof google.cloud.aiplatform.v1.MetadataService + * ThresholdConfig threshold. + * @member {"value"|undefined} threshold + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @instance - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest} request CreateMetadataStoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + Object.defineProperty(ThresholdConfig.prototype, "threshold", { + get: $util.oneOfGetter($oneOfFields = ["value"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getMetadataStore}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef GetMetadataStoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.MetadataStore} [response] MetadataStore + * Creates a new ThresholdConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @static + * @param {google.cloud.aiplatform.v1.IThresholdConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig instance */ + ThresholdConfig.create = function create(properties) { + return new ThresholdConfig(properties); + }; /** - * Calls GetMetadataStore. - * @function getMetadataStore - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest} request GetMetadataStoreRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.GetMetadataStoreCallback} callback Node-style callback called with the error, if any, and MetadataStore - * @returns {undefined} - * @variation 1 + * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @static + * @param {google.cloud.aiplatform.v1.IThresholdConfig} message ThresholdConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(MetadataService.prototype.getMetadataStore = function getMetadataStore(request, callback) { - return this.rpcCall(getMetadataStore, $root.google.cloud.aiplatform.v1.GetMetadataStoreRequest, $root.google.cloud.aiplatform.v1.MetadataStore, request, callback); - }, "name", { value: "GetMetadataStore" }); + ThresholdConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); + return writer; + }; /** - * Calls GetMetadataStore. - * @function getMetadataStore - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest} request GetMetadataStoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ThresholdConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @static + * @param {google.cloud.aiplatform.v1.IThresholdConfig} message ThresholdConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ThresholdConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listMetadataStores}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef ListMetadataStoresCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListMetadataStoresResponse} [response] ListMetadataStoresResponse + * Decodes a ThresholdConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @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.ThresholdConfig} ThresholdConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ThresholdConfig.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.ThresholdConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.value = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ListMetadataStores. - * @function listMetadataStores - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest} request ListMetadataStoresRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.ListMetadataStoresCallback} callback Node-style callback called with the error, if any, and ListMetadataStoresResponse - * @returns {undefined} - * @variation 1 + * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(MetadataService.prototype.listMetadataStores = function listMetadataStores(request, callback) { - return this.rpcCall(listMetadataStores, $root.google.cloud.aiplatform.v1.ListMetadataStoresRequest, $root.google.cloud.aiplatform.v1.ListMetadataStoresResponse, request, callback); - }, "name", { value: "ListMetadataStores" }); + ThresholdConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListMetadataStores. - * @function listMetadataStores - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest} request ListMetadataStoresRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a ThresholdConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ThresholdConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.value != null && message.hasOwnProperty("value")) { + properties.threshold = 1; + if (typeof message.value !== "number") + return "value: number expected"; + } + return null; + }; + + /** + * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ThresholdConfig} ThresholdConfig */ + ThresholdConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ThresholdConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ThresholdConfig(); + if (object.value != null) + message.value = Number(object.value); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteMetadataStore}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef DeleteMetadataStoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @static + * @param {google.cloud.aiplatform.v1.ThresholdConfig} message ThresholdConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + ThresholdConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.value != null && message.hasOwnProperty("value")) { + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + if (options.oneofs) + object.threshold = "value"; + } + return object; + }; /** - * Calls DeleteMetadataStore. - * @function deleteMetadataStore - * @memberof google.cloud.aiplatform.v1.MetadataService + * Converts this ThresholdConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ThresholdConfig * @instance - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest} request DeleteMetadataStoreRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.DeleteMetadataStoreCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(MetadataService.prototype.deleteMetadataStore = function deleteMetadataStore(request, callback) { - return this.rpcCall(deleteMetadataStore, $root.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteMetadataStore" }); + ThresholdConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls DeleteMetadataStore. - * @function deleteMetadataStore - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest} request DeleteMetadataStoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for ThresholdConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ThresholdConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + ThresholdConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ThresholdConfig"; + }; + + return ThresholdConfig; + })(); + + v1.SamplingStrategy = (function() { /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createArtifact}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef CreateArtifactCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Artifact} [response] Artifact + * Properties of a SamplingStrategy. + * @memberof google.cloud.aiplatform.v1 + * @interface ISamplingStrategy + * @property {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null} [randomSampleConfig] SamplingStrategy randomSampleConfig */ /** - * Calls CreateArtifact. - * @function createArtifact - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.CreateArtifactCallback} callback Node-style callback called with the error, if any, and Artifact - * @returns {undefined} - * @variation 1 + * Constructs a new SamplingStrategy. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SamplingStrategy. + * @implements ISamplingStrategy + * @constructor + * @param {google.cloud.aiplatform.v1.ISamplingStrategy=} [properties] Properties to set */ - Object.defineProperty(MetadataService.prototype.createArtifact = function createArtifact(request, callback) { - return this.rpcCall(createArtifact, $root.google.cloud.aiplatform.v1.CreateArtifactRequest, $root.google.cloud.aiplatform.v1.Artifact, request, callback); - }, "name", { value: "CreateArtifact" }); + function SamplingStrategy(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]]; + } /** - * Calls CreateArtifact. - * @function createArtifact - * @memberof google.cloud.aiplatform.v1.MetadataService + * SamplingStrategy randomSampleConfig. + * @member {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig|null|undefined} randomSampleConfig + * @memberof google.cloud.aiplatform.v1.SamplingStrategy * @instance - * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + SamplingStrategy.prototype.randomSampleConfig = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getArtifact}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef GetArtifactCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Artifact} [response] Artifact + * Creates a new SamplingStrategy instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @static + * @param {google.cloud.aiplatform.v1.ISamplingStrategy=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy instance */ + SamplingStrategy.create = function create(properties) { + return new SamplingStrategy(properties); + }; /** - * Calls GetArtifact. - * @function getArtifact - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IGetArtifactRequest} request GetArtifactRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.GetArtifactCallback} callback Node-style callback called with the error, if any, and Artifact - * @returns {undefined} - * @variation 1 + * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @static + * @param {google.cloud.aiplatform.v1.ISamplingStrategy} message SamplingStrategy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(MetadataService.prototype.getArtifact = function getArtifact(request, callback) { - return this.rpcCall(getArtifact, $root.google.cloud.aiplatform.v1.GetArtifactRequest, $root.google.cloud.aiplatform.v1.Artifact, request, callback); - }, "name", { value: "GetArtifact" }); + SamplingStrategy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.randomSampleConfig != null && Object.hasOwnProperty.call(message, "randomSampleConfig")) + $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.encode(message.randomSampleConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; /** - * Calls GetArtifact. - * @function getArtifact - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IGetArtifactRequest} request GetArtifactRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @static + * @param {google.cloud.aiplatform.v1.ISamplingStrategy} message SamplingStrategy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + SamplingStrategy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listArtifacts}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef ListArtifactsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListArtifactsResponse} [response] ListArtifactsResponse + * Decodes a SamplingStrategy message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @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.SamplingStrategy} SamplingStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + SamplingStrategy.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.SamplingStrategy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ListArtifacts. - * @function listArtifacts - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IListArtifactsRequest} request ListArtifactsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.ListArtifactsCallback} callback Node-style callback called with the error, if any, and ListArtifactsResponse - * @returns {undefined} - * @variation 1 + * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(MetadataService.prototype.listArtifacts = function listArtifacts(request, callback) { - return this.rpcCall(listArtifacts, $root.google.cloud.aiplatform.v1.ListArtifactsRequest, $root.google.cloud.aiplatform.v1.ListArtifactsResponse, request, callback); - }, "name", { value: "ListArtifacts" }); + SamplingStrategy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListArtifacts. - * @function listArtifacts - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IListArtifactsRequest} request ListArtifactsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a SamplingStrategy message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + SamplingStrategy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.randomSampleConfig != null && message.hasOwnProperty("randomSampleConfig")) { + var error = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify(message.randomSampleConfig); + if (error) + return "randomSampleConfig." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateArtifact}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef UpdateArtifactCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Artifact} [response] Artifact + * Creates a SamplingStrategy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SamplingStrategy} SamplingStrategy */ + SamplingStrategy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SamplingStrategy) + return object; + var message = new $root.google.cloud.aiplatform.v1.SamplingStrategy(); + if (object.randomSampleConfig != null) { + if (typeof object.randomSampleConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SamplingStrategy.randomSampleConfig: object expected"); + message.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.fromObject(object.randomSampleConfig); + } + return message; + }; /** - * Calls UpdateArtifact. - * @function updateArtifact - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest} request UpdateArtifactRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.UpdateArtifactCallback} callback Node-style callback called with the error, if any, and Artifact - * @returns {undefined} - * @variation 1 + * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @static + * @param {google.cloud.aiplatform.v1.SamplingStrategy} message SamplingStrategy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(MetadataService.prototype.updateArtifact = function updateArtifact(request, callback) { - return this.rpcCall(updateArtifact, $root.google.cloud.aiplatform.v1.UpdateArtifactRequest, $root.google.cloud.aiplatform.v1.Artifact, request, callback); - }, "name", { value: "UpdateArtifact" }); + SamplingStrategy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.randomSampleConfig = null; + if (message.randomSampleConfig != null && message.hasOwnProperty("randomSampleConfig")) + object.randomSampleConfig = $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.toObject(message.randomSampleConfig, options); + return object; + }; /** - * Calls UpdateArtifact. - * @function updateArtifact - * @memberof google.cloud.aiplatform.v1.MetadataService + * Converts this SamplingStrategy to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SamplingStrategy * @instance - * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest} request UpdateArtifactRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + SamplingStrategy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteArtifact}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef DeleteArtifactCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Gets the default type url for SamplingStrategy + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SamplingStrategy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SamplingStrategy"; + }; + + SamplingStrategy.RandomSampleConfig = (function() { + + /** + * Properties of a RandomSampleConfig. + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @interface IRandomSampleConfig + * @property {number|null} [sampleRate] RandomSampleConfig sampleRate + */ + + /** + * Constructs a new RandomSampleConfig. + * @memberof google.cloud.aiplatform.v1.SamplingStrategy + * @classdesc Represents a RandomSampleConfig. + * @implements IRandomSampleConfig + * @constructor + * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig=} [properties] Properties to set + */ + function RandomSampleConfig(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]]; + } + + /** + * RandomSampleConfig sampleRate. + * @member {number} sampleRate + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @instance + */ + RandomSampleConfig.prototype.sampleRate = 0; + + /** + * Creates a new RandomSampleConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig instance + */ + RandomSampleConfig.create = function create(properties) { + return new RandomSampleConfig(properties); + }; + + /** + * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig} message RandomSampleConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RandomSampleConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sampleRate != null && Object.hasOwnProperty.call(message, "sampleRate")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.sampleRate); + return writer; + }; + + /** + * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {google.cloud.aiplatform.v1.SamplingStrategy.IRandomSampleConfig} message RandomSampleConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RandomSampleConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @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.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RandomSampleConfig.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.SamplingStrategy.RandomSampleConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.sampleRate = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RandomSampleConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RandomSampleConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RandomSampleConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) + if (typeof message.sampleRate !== "number") + return "sampleRate: number expected"; + return null; + }; + + /** + * Creates a RandomSampleConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + */ + RandomSampleConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig(); + if (object.sampleRate != null) + message.sampleRate = Number(object.sampleRate); + return message; + }; + + /** + * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig} message RandomSampleConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RandomSampleConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.sampleRate = 0; + if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) + object.sampleRate = options.json && !isFinite(message.sampleRate) ? String(message.sampleRate) : message.sampleRate; + return object; + }; + + /** + * Converts this RandomSampleConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @instance + * @returns {Object.} JSON object + */ + RandomSampleConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RandomSampleConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RandomSampleConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SamplingStrategy.RandomSampleConfig"; + }; + + return RandomSampleConfig; + })(); + + return SamplingStrategy; + })(); + + v1.NasJob = (function() { + + /** + * Properties of a NasJob. + * @memberof google.cloud.aiplatform.v1 + * @interface INasJob + * @property {string|null} [name] NasJob name + * @property {string|null} [displayName] NasJob displayName + * @property {google.cloud.aiplatform.v1.INasJobSpec|null} [nasJobSpec] NasJob nasJobSpec + * @property {google.cloud.aiplatform.v1.INasJobOutput|null} [nasJobOutput] NasJob nasJobOutput + * @property {google.cloud.aiplatform.v1.JobState|null} [state] NasJob state + * @property {google.protobuf.ITimestamp|null} [createTime] NasJob createTime + * @property {google.protobuf.ITimestamp|null} [startTime] NasJob startTime + * @property {google.protobuf.ITimestamp|null} [endTime] NasJob endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] NasJob updateTime + * @property {google.rpc.IStatus|null} [error] NasJob error + * @property {Object.|null} [labels] NasJob labels + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] NasJob encryptionSpec + * @property {boolean|null} [enableRestrictedImageTraining] NasJob enableRestrictedImageTraining + */ + + /** + * Constructs a new NasJob. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a NasJob. + * @implements INasJob + * @constructor + * @param {google.cloud.aiplatform.v1.INasJob=} [properties] Properties to set */ + function NasJob(properties) { + this.labels = {}; + 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]]; + } /** - * Calls DeleteArtifact. - * @function deleteArtifact - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.DeleteArtifactCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.deleteArtifact = function deleteArtifact(request, callback) { - return this.rpcCall(deleteArtifact, $root.google.cloud.aiplatform.v1.DeleteArtifactRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteArtifact" }); + NasJob.prototype.name = ""; /** - * Calls DeleteArtifact. - * @function deleteArtifact - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + NasJob.prototype.displayName = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeArtifacts}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef PurgeArtifactsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * NasJob nasJobSpec. + * @member {google.cloud.aiplatform.v1.INasJobSpec|null|undefined} nasJobSpec + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance */ + NasJob.prototype.nasJobSpec = null; /** - * Calls PurgeArtifacts. - * @function purgeArtifacts - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob nasJobOutput. + * @member {google.cloud.aiplatform.v1.INasJobOutput|null|undefined} nasJobOutput + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest} request PurgeArtifactsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.PurgeArtifactsCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.purgeArtifacts = function purgeArtifacts(request, callback) { - return this.rpcCall(purgeArtifacts, $root.google.cloud.aiplatform.v1.PurgeArtifactsRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "PurgeArtifacts" }); + NasJob.prototype.nasJobOutput = null; /** - * Calls PurgeArtifacts. - * @function purgeArtifacts - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob state. + * @member {google.cloud.aiplatform.v1.JobState} state + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest} request PurgeArtifactsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + NasJob.prototype.state = 0; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createContext}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef CreateContextCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Context} [response] Context + * NasJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance */ + NasJob.prototype.createTime = null; /** - * Calls CreateContext. - * @function createContext - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.ICreateContextRequest} request CreateContextRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.CreateContextCallback} callback Node-style callback called with the error, if any, and Context - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.createContext = function createContext(request, callback) { - return this.rpcCall(createContext, $root.google.cloud.aiplatform.v1.CreateContextRequest, $root.google.cloud.aiplatform.v1.Context, request, callback); - }, "name", { value: "CreateContext" }); + NasJob.prototype.startTime = null; /** - * Calls CreateContext. - * @function createContext - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.ICreateContextRequest} request CreateContextRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + NasJob.prototype.endTime = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getContext}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef GetContextCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Context} [response] Context - */ - - /** - * Calls GetContext. - * @function getContext - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IGetContextRequest} request GetContextRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.GetContextCallback} callback Node-style callback called with the error, if any, and Context - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.getContext = function getContext(request, callback) { - return this.rpcCall(getContext, $root.google.cloud.aiplatform.v1.GetContextRequest, $root.google.cloud.aiplatform.v1.Context, request, callback); - }, "name", { value: "GetContext" }); + NasJob.prototype.updateTime = null; /** - * Calls GetContext. - * @function getContext - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IGetContextRequest} request GetContextRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + NasJob.prototype.error = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listContexts}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef ListContextsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListContextsResponse} [response] ListContextsResponse + * NasJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.NasJob + * @instance */ + NasJob.prototype.labels = $util.emptyObject; /** - * Calls ListContexts. - * @function listContexts - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IListContextsRequest} request ListContextsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.ListContextsCallback} callback Node-style callback called with the error, if any, and ListContextsResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.listContexts = function listContexts(request, callback) { - return this.rpcCall(listContexts, $root.google.cloud.aiplatform.v1.ListContextsRequest, $root.google.cloud.aiplatform.v1.ListContextsResponse, request, callback); - }, "name", { value: "ListContexts" }); + NasJob.prototype.encryptionSpec = null; /** - * Calls ListContexts. - * @function listContexts - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJob enableRestrictedImageTraining. + * @member {boolean} enableRestrictedImageTraining + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IListContextsRequest} request ListContextsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + NasJob.prototype.enableRestrictedImageTraining = false; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateContext}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef UpdateContextCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Context} [response] Context + * Creates a new NasJob instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {google.cloud.aiplatform.v1.INasJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJob} NasJob instance */ + NasJob.create = function create(properties) { + return new NasJob(properties); + }; /** - * Calls UpdateContext. - * @function updateContext - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateContextRequest} request UpdateContextRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.UpdateContextCallback} callback Node-style callback called with the error, if any, and Context - * @returns {undefined} - * @variation 1 + * Encodes the specified NasJob message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJob.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {google.cloud.aiplatform.v1.INasJob} message NasJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(MetadataService.prototype.updateContext = function updateContext(request, callback) { - return this.rpcCall(updateContext, $root.google.cloud.aiplatform.v1.UpdateContextRequest, $root.google.cloud.aiplatform.v1.Context, request, callback); - }, "name", { value: "UpdateContext" }); + NasJob.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); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.nasJobSpec != null && Object.hasOwnProperty.call(message, "nasJobSpec")) + $root.google.cloud.aiplatform.v1.NasJobSpec.encode(message.nasJobSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.nasJobOutput != null && Object.hasOwnProperty.call(message, "nasJobOutput")) + $root.google.cloud.aiplatform.v1.NasJobOutput.encode(message.nasJobOutput, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.enableRestrictedImageTraining != null && Object.hasOwnProperty.call(message, "enableRestrictedImageTraining")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableRestrictedImageTraining); + return writer; + }; /** - * Calls UpdateContext. - * @function updateContext - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateContextRequest} request UpdateContextRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified NasJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJob.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {google.cloud.aiplatform.v1.INasJob} message NasJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + NasJob.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteContext}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef DeleteContextCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Decodes a NasJob message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJob + * @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.NasJob} NasJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + NasJob.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.NasJob(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 4: { + message.nasJobSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.decode(reader, reader.uint32()); + break; + } + case 5: { + message.nasJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.decode(reader, reader.uint32()); + break; + } + case 6: { + message.state = reader.int32(); + break; + } + case 7: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 9: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 10: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 11: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 12: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 13: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + case 14: { + message.enableRestrictedImageTraining = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls DeleteContext. - * @function deleteContext - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteContextRequest} request DeleteContextRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.DeleteContextCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Decodes a NasJob message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJob} NasJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(MetadataService.prototype.deleteContext = function deleteContext(request, callback) { - return this.rpcCall(deleteContext, $root.google.cloud.aiplatform.v1.DeleteContextRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteContext" }); + NasJob.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls DeleteContext. - * @function deleteContext - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteContextRequest} request DeleteContextRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a NasJob message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + NasJob.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"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.nasJobSpec != null && message.hasOwnProperty("nasJobSpec")) { + var error = $root.google.cloud.aiplatform.v1.NasJobSpec.verify(message.nasJobSpec); + if (error) + return "nasJobSpec." + error; + } + if (message.nasJobOutput != null && message.hasOwnProperty("nasJobOutput")) { + var error = $root.google.cloud.aiplatform.v1.NasJobOutput.verify(message.nasJobOutput); + if (error) + return "nasJobOutput." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.enableRestrictedImageTraining != null && message.hasOwnProperty("enableRestrictedImageTraining")) + if (typeof message.enableRestrictedImageTraining !== "boolean") + return "enableRestrictedImageTraining: boolean expected"; + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeContexts}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef PurgeContextsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a NasJob message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJob} NasJob */ + NasJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJob) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJob(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.nasJobSpec != null) { + if (typeof object.nasJobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.nasJobSpec: object expected"); + message.nasJobSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.fromObject(object.nasJobSpec); + } + if (object.nasJobOutput != null) { + if (typeof object.nasJobOutput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.nasJobOutput: object expected"); + message.nasJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.fromObject(object.nasJobOutput); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "JOB_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "JOB_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "JOB_STATE_PENDING": + case 2: + message.state = 2; + break; + case "JOB_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "JOB_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "JOB_STATE_FAILED": + case 5: + message.state = 5; + break; + case "JOB_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "JOB_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "JOB_STATE_PAUSED": + case 8: + message.state = 8; + break; + case "JOB_STATE_EXPIRED": + case 9: + message.state = 9; + break; + case "JOB_STATE_UPDATING": + case 10: + message.state = 10; + break; + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.enableRestrictedImageTraining != null) + message.enableRestrictedImageTraining = Boolean(object.enableRestrictedImageTraining); + return message; + }; /** - * Calls PurgeContexts. - * @function purgeContexts - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest} request PurgeContextsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.PurgeContextsCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Creates a plain object from a NasJob message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {google.cloud.aiplatform.v1.NasJob} message NasJob + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(MetadataService.prototype.purgeContexts = function purgeContexts(request, callback) { - return this.rpcCall(purgeContexts, $root.google.cloud.aiplatform.v1.PurgeContextsRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "PurgeContexts" }); + NasJob.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.nasJobSpec = null; + object.nasJobOutput = null; + object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.updateTime = null; + object.error = null; + object.encryptionSpec = null; + object.enableRestrictedImageTraining = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.nasJobSpec != null && message.hasOwnProperty("nasJobSpec")) + object.nasJobSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.toObject(message.nasJobSpec, options); + if (message.nasJobOutput != null && message.hasOwnProperty("nasJobOutput")) + object.nasJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.toObject(message.nasJobOutput, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.JobState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.JobState[message.state] : message.state; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.enableRestrictedImageTraining != null && message.hasOwnProperty("enableRestrictedImageTraining")) + object.enableRestrictedImageTraining = message.enableRestrictedImageTraining; + return object; + }; /** - * Calls PurgeContexts. - * @function purgeContexts - * @memberof google.cloud.aiplatform.v1.MetadataService + * Converts this NasJob to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJob * @instance - * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest} request PurgeContextsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + NasJob.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addContextArtifactsAndExecutions}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef AddContextArtifactsAndExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} [response] AddContextArtifactsAndExecutionsResponse + * Gets the default type url for NasJob + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJob + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + NasJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJob"; + }; - /** - * Calls AddContextArtifactsAndExecutions. - * @function addContextArtifactsAndExecutions - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest} request AddContextArtifactsAndExecutionsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutionsCallback} callback Node-style callback called with the error, if any, and AddContextArtifactsAndExecutionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.addContextArtifactsAndExecutions = function addContextArtifactsAndExecutions(request, callback) { - return this.rpcCall(addContextArtifactsAndExecutions, $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest, $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse, request, callback); - }, "name", { value: "AddContextArtifactsAndExecutions" }); + return NasJob; + })(); - /** - * Calls AddContextArtifactsAndExecutions. - * @function addContextArtifactsAndExecutions - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest} request AddContextArtifactsAndExecutionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + v1.NasTrialDetail = (function() { /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addContextChildren}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef AddContextChildrenCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.AddContextChildrenResponse} [response] AddContextChildrenResponse + * Properties of a NasTrialDetail. + * @memberof google.cloud.aiplatform.v1 + * @interface INasTrialDetail + * @property {string|null} [name] NasTrialDetail name + * @property {string|null} [parameters] NasTrialDetail parameters + * @property {google.cloud.aiplatform.v1.INasTrial|null} [searchTrial] NasTrialDetail searchTrial + * @property {google.cloud.aiplatform.v1.INasTrial|null} [trainTrial] NasTrialDetail trainTrial */ /** - * Calls AddContextChildren. - * @function addContextChildren - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest} request AddContextChildrenRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.AddContextChildrenCallback} callback Node-style callback called with the error, if any, and AddContextChildrenResponse - * @returns {undefined} - * @variation 1 + * Constructs a new NasTrialDetail. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a NasTrialDetail. + * @implements INasTrialDetail + * @constructor + * @param {google.cloud.aiplatform.v1.INasTrialDetail=} [properties] Properties to set */ - Object.defineProperty(MetadataService.prototype.addContextChildren = function addContextChildren(request, callback) { - return this.rpcCall(addContextChildren, $root.google.cloud.aiplatform.v1.AddContextChildrenRequest, $root.google.cloud.aiplatform.v1.AddContextChildrenResponse, request, callback); - }, "name", { value: "AddContextChildren" }); + function NasTrialDetail(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]]; + } /** - * Calls AddContextChildren. - * @function addContextChildren - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasTrialDetail name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @instance - * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest} request AddContextChildrenRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + NasTrialDetail.prototype.name = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|removeContextChildren}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef RemoveContextChildrenCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} [response] RemoveContextChildrenResponse + * NasTrialDetail parameters. + * @member {string} parameters + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @instance */ + NasTrialDetail.prototype.parameters = ""; /** - * Calls RemoveContextChildren. - * @function removeContextChildren - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasTrialDetail searchTrial. + * @member {google.cloud.aiplatform.v1.INasTrial|null|undefined} searchTrial + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @instance - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} request RemoveContextChildrenRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.RemoveContextChildrenCallback} callback Node-style callback called with the error, if any, and RemoveContextChildrenResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.removeContextChildren = function removeContextChildren(request, callback) { - return this.rpcCall(removeContextChildren, $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest, $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse, request, callback); - }, "name", { value: "RemoveContextChildren" }); + NasTrialDetail.prototype.searchTrial = null; /** - * Calls RemoveContextChildren. - * @function removeContextChildren - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasTrialDetail trainTrial. + * @member {google.cloud.aiplatform.v1.INasTrial|null|undefined} trainTrial + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @instance - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} request RemoveContextChildrenRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + NasTrialDetail.prototype.trainTrial = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryContextLineageSubgraph}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef QueryContextLineageSubgraphCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.LineageSubgraph} [response] LineageSubgraph + * Creates a new NasTrialDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @static + * @param {google.cloud.aiplatform.v1.INasTrialDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasTrialDetail} NasTrialDetail instance */ + NasTrialDetail.create = function create(properties) { + return new NasTrialDetail(properties); + }; /** - * Calls QueryContextLineageSubgraph. - * @function queryContextLineageSubgraph - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest} request QueryContextLineageSubgraphRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.QueryContextLineageSubgraphCallback} callback Node-style callback called with the error, if any, and LineageSubgraph - * @returns {undefined} - * @variation 1 + * Encodes the specified NasTrialDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrialDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @static + * @param {google.cloud.aiplatform.v1.INasTrialDetail} message NasTrialDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(MetadataService.prototype.queryContextLineageSubgraph = function queryContextLineageSubgraph(request, callback) { - return this.rpcCall(queryContextLineageSubgraph, $root.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest, $root.google.cloud.aiplatform.v1.LineageSubgraph, request, callback); - }, "name", { value: "QueryContextLineageSubgraph" }); + NasTrialDetail.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); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameters); + if (message.searchTrial != null && Object.hasOwnProperty.call(message, "searchTrial")) + $root.google.cloud.aiplatform.v1.NasTrial.encode(message.searchTrial, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainTrial != null && Object.hasOwnProperty.call(message, "trainTrial")) + $root.google.cloud.aiplatform.v1.NasTrial.encode(message.trainTrial, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; /** - * Calls QueryContextLineageSubgraph. - * @function queryContextLineageSubgraph - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest} request QueryContextLineageSubgraphRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified NasTrialDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrialDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @static + * @param {google.cloud.aiplatform.v1.INasTrialDetail} message NasTrialDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + NasTrialDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createExecution}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef CreateExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Execution} [response] Execution + * Decodes a NasTrialDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @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.NasTrialDetail} NasTrialDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + NasTrialDetail.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.NasTrialDetail(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.parameters = reader.string(); + break; + } + case 3: { + message.searchTrial = $root.google.cloud.aiplatform.v1.NasTrial.decode(reader, reader.uint32()); + break; + } + case 4: { + message.trainTrial = $root.google.cloud.aiplatform.v1.NasTrial.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls CreateExecution. - * @function createExecution - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest} request CreateExecutionRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.CreateExecutionCallback} callback Node-style callback called with the error, if any, and Execution - * @returns {undefined} - * @variation 1 + * Decodes a NasTrialDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasTrialDetail} NasTrialDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(MetadataService.prototype.createExecution = function createExecution(request, callback) { - return this.rpcCall(createExecution, $root.google.cloud.aiplatform.v1.CreateExecutionRequest, $root.google.cloud.aiplatform.v1.Execution, request, callback); - }, "name", { value: "CreateExecution" }); + NasTrialDetail.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls CreateExecution. - * @function createExecution - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest} request CreateExecutionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a NasTrialDetail message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + NasTrialDetail.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"; + if (message.parameters != null && message.hasOwnProperty("parameters")) + if (!$util.isString(message.parameters)) + return "parameters: string expected"; + if (message.searchTrial != null && message.hasOwnProperty("searchTrial")) { + var error = $root.google.cloud.aiplatform.v1.NasTrial.verify(message.searchTrial); + if (error) + return "searchTrial." + error; + } + if (message.trainTrial != null && message.hasOwnProperty("trainTrial")) { + var error = $root.google.cloud.aiplatform.v1.NasTrial.verify(message.trainTrial); + if (error) + return "trainTrial." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getExecution}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef GetExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Execution} [response] Execution + * Creates a NasTrialDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasTrialDetail} NasTrialDetail */ + NasTrialDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasTrialDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasTrialDetail(); + if (object.name != null) + message.name = String(object.name); + if (object.parameters != null) + message.parameters = String(object.parameters); + if (object.searchTrial != null) { + if (typeof object.searchTrial !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasTrialDetail.searchTrial: object expected"); + message.searchTrial = $root.google.cloud.aiplatform.v1.NasTrial.fromObject(object.searchTrial); + } + if (object.trainTrial != null) { + if (typeof object.trainTrial !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasTrialDetail.trainTrial: object expected"); + message.trainTrial = $root.google.cloud.aiplatform.v1.NasTrial.fromObject(object.trainTrial); + } + return message; + }; /** - * Calls GetExecution. - * @function getExecution - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IGetExecutionRequest} request GetExecutionRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.GetExecutionCallback} callback Node-style callback called with the error, if any, and Execution - * @returns {undefined} - * @variation 1 + * Creates a plain object from a NasTrialDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @static + * @param {google.cloud.aiplatform.v1.NasTrialDetail} message NasTrialDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(MetadataService.prototype.getExecution = function getExecution(request, callback) { - return this.rpcCall(getExecution, $root.google.cloud.aiplatform.v1.GetExecutionRequest, $root.google.cloud.aiplatform.v1.Execution, request, callback); - }, "name", { value: "GetExecution" }); + NasTrialDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.parameters = ""; + object.searchTrial = null; + object.trainTrial = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = message.parameters; + if (message.searchTrial != null && message.hasOwnProperty("searchTrial")) + object.searchTrial = $root.google.cloud.aiplatform.v1.NasTrial.toObject(message.searchTrial, options); + if (message.trainTrial != null && message.hasOwnProperty("trainTrial")) + object.trainTrial = $root.google.cloud.aiplatform.v1.NasTrial.toObject(message.trainTrial, options); + return object; + }; /** - * Calls GetExecution. - * @function getExecution - * @memberof google.cloud.aiplatform.v1.MetadataService + * Converts this NasTrialDetail to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasTrialDetail * @instance - * @param {google.cloud.aiplatform.v1.IGetExecutionRequest} request GetExecutionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + NasTrialDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listExecutions}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef ListExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListExecutionsResponse} [response] ListExecutionsResponse + * Gets the default type url for NasTrialDetail + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasTrialDetail + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + NasTrialDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasTrialDetail"; + }; - /** - * Calls ListExecutions. - * @function listExecutions - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IListExecutionsRequest} request ListExecutionsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.ListExecutionsCallback} callback Node-style callback called with the error, if any, and ListExecutionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.listExecutions = function listExecutions(request, callback) { - return this.rpcCall(listExecutions, $root.google.cloud.aiplatform.v1.ListExecutionsRequest, $root.google.cloud.aiplatform.v1.ListExecutionsResponse, request, callback); - }, "name", { value: "ListExecutions" }); + return NasTrialDetail; + })(); - /** - * Calls ListExecutions. - * @function listExecutions - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IListExecutionsRequest} request ListExecutionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + v1.NasJobSpec = (function() { /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateExecution}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef UpdateExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Execution} [response] Execution + * Properties of a NasJobSpec. + * @memberof google.cloud.aiplatform.v1 + * @interface INasJobSpec + * @property {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec|null} [multiTrialAlgorithmSpec] NasJobSpec multiTrialAlgorithmSpec + * @property {string|null} [resumeNasJobId] NasJobSpec resumeNasJobId + * @property {string|null} [searchSpaceSpec] NasJobSpec searchSpaceSpec */ /** - * Calls UpdateExecution. - * @function updateExecution - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest} request UpdateExecutionRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.UpdateExecutionCallback} callback Node-style callback called with the error, if any, and Execution - * @returns {undefined} - * @variation 1 + * Constructs a new NasJobSpec. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a NasJobSpec. + * @implements INasJobSpec + * @constructor + * @param {google.cloud.aiplatform.v1.INasJobSpec=} [properties] Properties to set */ - Object.defineProperty(MetadataService.prototype.updateExecution = function updateExecution(request, callback) { - return this.rpcCall(updateExecution, $root.google.cloud.aiplatform.v1.UpdateExecutionRequest, $root.google.cloud.aiplatform.v1.Execution, request, callback); - }, "name", { value: "UpdateExecution" }); + function NasJobSpec(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]]; + } /** - * Calls UpdateExecution. - * @function updateExecution - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJobSpec multiTrialAlgorithmSpec. + * @member {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec|null|undefined} multiTrialAlgorithmSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @instance - * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest} request UpdateExecutionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteExecution}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef DeleteExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation */ + NasJobSpec.prototype.multiTrialAlgorithmSpec = null; /** - * Calls DeleteExecution. - * @function deleteExecution - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJobSpec resumeNasJobId. + * @member {string} resumeNasJobId + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @instance - * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest} request DeleteExecutionRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.DeleteExecutionCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.deleteExecution = function deleteExecution(request, callback) { - return this.rpcCall(deleteExecution, $root.google.cloud.aiplatform.v1.DeleteExecutionRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteExecution" }); + NasJobSpec.prototype.resumeNasJobId = ""; /** - * Calls DeleteExecution. - * @function deleteExecution - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJobSpec searchSpaceSpec. + * @member {string} searchSpaceSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @instance - * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest} request DeleteExecutionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + NasJobSpec.prototype.searchSpaceSpec = ""; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeExecutions}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef PurgeExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Calls PurgeExecutions. - * @function purgeExecutions - * @memberof google.cloud.aiplatform.v1.MetadataService + * NasJobSpec nasAlgorithmSpec. + * @member {"multiTrialAlgorithmSpec"|undefined} nasAlgorithmSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @instance - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest} request PurgeExecutionsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.PurgeExecutionsCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(MetadataService.prototype.purgeExecutions = function purgeExecutions(request, callback) { - return this.rpcCall(purgeExecutions, $root.google.cloud.aiplatform.v1.PurgeExecutionsRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "PurgeExecutions" }); + Object.defineProperty(NasJobSpec.prototype, "nasAlgorithmSpec", { + get: $util.oneOfGetter($oneOfFields = ["multiTrialAlgorithmSpec"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Calls PurgeExecutions. - * @function purgeExecutions - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest} request PurgeExecutionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new NasJobSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @static + * @param {google.cloud.aiplatform.v1.INasJobSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobSpec} NasJobSpec instance */ + NasJobSpec.create = function create(properties) { + return new NasJobSpec(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addExecutionEvents}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef AddExecutionEventsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.AddExecutionEventsResponse} [response] AddExecutionEventsResponse + * Encodes the specified NasJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @static + * @param {google.cloud.aiplatform.v1.INasJobSpec} message NasJobSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + NasJobSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.searchSpaceSpec != null && Object.hasOwnProperty.call(message, "searchSpaceSpec")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.searchSpaceSpec); + if (message.multiTrialAlgorithmSpec != null && Object.hasOwnProperty.call(message, "multiTrialAlgorithmSpec")) + $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.encode(message.multiTrialAlgorithmSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.resumeNasJobId != null && Object.hasOwnProperty.call(message, "resumeNasJobId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resumeNasJobId); + return writer; + }; /** - * Calls AddExecutionEvents. - * @function addExecutionEvents - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest} request AddExecutionEventsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.AddExecutionEventsCallback} callback Node-style callback called with the error, if any, and AddExecutionEventsResponse - * @returns {undefined} - * @variation 1 + * Encodes the specified NasJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @static + * @param {google.cloud.aiplatform.v1.INasJobSpec} message NasJobSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(MetadataService.prototype.addExecutionEvents = function addExecutionEvents(request, callback) { - return this.rpcCall(addExecutionEvents, $root.google.cloud.aiplatform.v1.AddExecutionEventsRequest, $root.google.cloud.aiplatform.v1.AddExecutionEventsResponse, request, callback); - }, "name", { value: "AddExecutionEvents" }); + NasJobSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls AddExecutionEvents. - * @function addExecutionEvents - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest} request AddExecutionEventsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a NasJobSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @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.NasJobSpec} NasJobSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + NasJobSpec.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.NasJobSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.decode(reader, reader.uint32()); + break; + } + case 3: { + message.resumeNasJobId = reader.string(); + break; + } + case 1: { + message.searchSpaceSpec = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryExecutionInputsAndOutputs}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef QueryExecutionInputsAndOutputsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.LineageSubgraph} [response] LineageSubgraph + * Decodes a NasJobSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJobSpec} NasJobSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + NasJobSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls QueryExecutionInputsAndOutputs. - * @function queryExecutionInputsAndOutputs - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest} request QueryExecutionInputsAndOutputsRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.QueryExecutionInputsAndOutputsCallback} callback Node-style callback called with the error, if any, and LineageSubgraph - * @returns {undefined} - * @variation 1 + * Verifies a NasJobSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(MetadataService.prototype.queryExecutionInputsAndOutputs = function queryExecutionInputsAndOutputs(request, callback) { - return this.rpcCall(queryExecutionInputsAndOutputs, $root.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest, $root.google.cloud.aiplatform.v1.LineageSubgraph, request, callback); - }, "name", { value: "QueryExecutionInputsAndOutputs" }); + NasJobSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.multiTrialAlgorithmSpec != null && message.hasOwnProperty("multiTrialAlgorithmSpec")) { + properties.nasAlgorithmSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify(message.multiTrialAlgorithmSpec); + if (error) + return "multiTrialAlgorithmSpec." + error; + } + } + if (message.resumeNasJobId != null && message.hasOwnProperty("resumeNasJobId")) + if (!$util.isString(message.resumeNasJobId)) + return "resumeNasJobId: string expected"; + if (message.searchSpaceSpec != null && message.hasOwnProperty("searchSpaceSpec")) + if (!$util.isString(message.searchSpaceSpec)) + return "searchSpaceSpec: string expected"; + return null; + }; /** - * Calls QueryExecutionInputsAndOutputs. - * @function queryExecutionInputsAndOutputs - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest} request QueryExecutionInputsAndOutputsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a NasJobSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJobSpec} NasJobSpec */ + NasJobSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJobSpec(); + if (object.multiTrialAlgorithmSpec != null) { + if (typeof object.multiTrialAlgorithmSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.multiTrialAlgorithmSpec: object expected"); + message.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.fromObject(object.multiTrialAlgorithmSpec); + } + if (object.resumeNasJobId != null) + message.resumeNasJobId = String(object.resumeNasJobId); + if (object.searchSpaceSpec != null) + message.searchSpaceSpec = String(object.searchSpaceSpec); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createMetadataSchema}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef CreateMetadataSchemaCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.MetadataSchema} [response] MetadataSchema + * Creates a plain object from a NasJobSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec} message NasJobSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + NasJobSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.searchSpaceSpec = ""; + object.resumeNasJobId = ""; + } + if (message.searchSpaceSpec != null && message.hasOwnProperty("searchSpaceSpec")) + object.searchSpaceSpec = message.searchSpaceSpec; + if (message.multiTrialAlgorithmSpec != null && message.hasOwnProperty("multiTrialAlgorithmSpec")) { + object.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.toObject(message.multiTrialAlgorithmSpec, options); + if (options.oneofs) + object.nasAlgorithmSpec = "multiTrialAlgorithmSpec"; + } + if (message.resumeNasJobId != null && message.hasOwnProperty("resumeNasJobId")) + object.resumeNasJobId = message.resumeNasJobId; + return object; + }; /** - * Calls CreateMetadataSchema. - * @function createMetadataSchema - * @memberof google.cloud.aiplatform.v1.MetadataService + * Converts this NasJobSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJobSpec * @instance - * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest} request CreateMetadataSchemaRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.CreateMetadataSchemaCallback} callback Node-style callback called with the error, if any, and MetadataSchema - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(MetadataService.prototype.createMetadataSchema = function createMetadataSchema(request, callback) { - return this.rpcCall(createMetadataSchema, $root.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest, $root.google.cloud.aiplatform.v1.MetadataSchema, request, callback); - }, "name", { value: "CreateMetadataSchema" }); + NasJobSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls CreateMetadataSchema. - * @function createMetadataSchema - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest} request CreateMetadataSchemaRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for NasJobSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + NasJobSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec"; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getMetadataSchema}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef GetMetadataSchemaCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.MetadataSchema} [response] MetadataSchema - */ + NasJobSpec.MultiTrialAlgorithmSpec = (function() { - /** - * Calls GetMetadataSchema. - * @function getMetadataSchema - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest} request GetMetadataSchemaRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.GetMetadataSchemaCallback} callback Node-style callback called with the error, if any, and MetadataSchema - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.getMetadataSchema = function getMetadataSchema(request, callback) { - return this.rpcCall(getMetadataSchema, $root.google.cloud.aiplatform.v1.GetMetadataSchemaRequest, $root.google.cloud.aiplatform.v1.MetadataSchema, request, callback); - }, "name", { value: "GetMetadataSchema" }); + /** + * Properties of a MultiTrialAlgorithmSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @interface IMultiTrialAlgorithmSpec + * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|null} [multiTrialAlgorithm] MultiTrialAlgorithmSpec multiTrialAlgorithm + * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null} [metric] MultiTrialAlgorithmSpec metric + * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null} [searchTrialSpec] MultiTrialAlgorithmSpec searchTrialSpec + * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null} [trainTrialSpec] MultiTrialAlgorithmSpec trainTrialSpec + */ - /** - * Calls GetMetadataSchema. - * @function getMetadataSchema - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest} request GetMetadataSchemaRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Constructs a new MultiTrialAlgorithmSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec + * @classdesc Represents a MultiTrialAlgorithmSpec. + * @implements IMultiTrialAlgorithmSpec + * @constructor + * @param {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec=} [properties] Properties to set + */ + function MultiTrialAlgorithmSpec(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]]; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listMetadataSchemas}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef ListMetadataSchemasCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} [response] ListMetadataSchemasResponse - */ + /** + * MultiTrialAlgorithmSpec multiTrialAlgorithm. + * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm} multiTrialAlgorithm + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + */ + MultiTrialAlgorithmSpec.prototype.multiTrialAlgorithm = 0; - /** - * Calls ListMetadataSchemas. - * @function listMetadataSchemas - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest} request ListMetadataSchemasRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemasCallback} callback Node-style callback called with the error, if any, and ListMetadataSchemasResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.listMetadataSchemas = function listMetadataSchemas(request, callback) { - return this.rpcCall(listMetadataSchemas, $root.google.cloud.aiplatform.v1.ListMetadataSchemasRequest, $root.google.cloud.aiplatform.v1.ListMetadataSchemasResponse, request, callback); - }, "name", { value: "ListMetadataSchemas" }); + /** + * MultiTrialAlgorithmSpec metric. + * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null|undefined} metric + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + */ + MultiTrialAlgorithmSpec.prototype.metric = null; - /** - * Calls ListMetadataSchemas. - * @function listMetadataSchemas - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest} request ListMetadataSchemasRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * MultiTrialAlgorithmSpec searchTrialSpec. + * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null|undefined} searchTrialSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + */ + MultiTrialAlgorithmSpec.prototype.searchTrialSpec = null; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryArtifactLineageSubgraph}. - * @memberof google.cloud.aiplatform.v1.MetadataService - * @typedef QueryArtifactLineageSubgraphCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.LineageSubgraph} [response] LineageSubgraph - */ + /** + * MultiTrialAlgorithmSpec trainTrialSpec. + * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null|undefined} trainTrialSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + */ + MultiTrialAlgorithmSpec.prototype.trainTrialSpec = null; - /** - * Calls QueryArtifactLineageSubgraph. - * @function queryArtifactLineageSubgraph - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest} request QueryArtifactLineageSubgraphRequest message or plain object - * @param {google.cloud.aiplatform.v1.MetadataService.QueryArtifactLineageSubgraphCallback} callback Node-style callback called with the error, if any, and LineageSubgraph - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MetadataService.prototype.queryArtifactLineageSubgraph = function queryArtifactLineageSubgraph(request, callback) { - return this.rpcCall(queryArtifactLineageSubgraph, $root.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest, $root.google.cloud.aiplatform.v1.LineageSubgraph, request, callback); - }, "name", { value: "QueryArtifactLineageSubgraph" }); + /** + * Creates a new MultiTrialAlgorithmSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec instance + */ + MultiTrialAlgorithmSpec.create = function create(properties) { + return new MultiTrialAlgorithmSpec(properties); + }; - /** - * Calls QueryArtifactLineageSubgraph. - * @function queryArtifactLineageSubgraph - * @memberof google.cloud.aiplatform.v1.MetadataService - * @instance - * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest} request QueryArtifactLineageSubgraphRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified MultiTrialAlgorithmSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiTrialAlgorithmSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.multiTrialAlgorithm != null && Object.hasOwnProperty.call(message, "multiTrialAlgorithm")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.multiTrialAlgorithm); + if (message.metric != null && Object.hasOwnProperty.call(message, "metric")) + $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.encode(message.metric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.searchTrialSpec != null && Object.hasOwnProperty.call(message, "searchTrialSpec")) + $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.encode(message.searchTrialSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainTrialSpec != null && Object.hasOwnProperty.call(message, "trainTrialSpec")) + $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.encode(message.trainTrialSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; - return MetadataService; + /** + * Encodes the specified MultiTrialAlgorithmSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.IMultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiTrialAlgorithmSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiTrialAlgorithmSpec.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.NasJobSpec.MultiTrialAlgorithmSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.multiTrialAlgorithm = reader.int32(); + break; + } + case 2: { + message.metric = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.decode(reader, reader.uint32()); + break; + } + case 3: { + message.searchTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.decode(reader, reader.uint32()); + break; + } + case 4: { + message.trainTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiTrialAlgorithmSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MultiTrialAlgorithmSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MultiTrialAlgorithmSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.multiTrialAlgorithm != null && message.hasOwnProperty("multiTrialAlgorithm")) + switch (message.multiTrialAlgorithm) { + default: + return "multiTrialAlgorithm: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.metric != null && message.hasOwnProperty("metric")) { + var error = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify(message.metric); + if (error) + return "metric." + error; + } + if (message.searchTrialSpec != null && message.hasOwnProperty("searchTrialSpec")) { + var error = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify(message.searchTrialSpec); + if (error) + return "searchTrialSpec." + error; + } + if (message.trainTrialSpec != null && message.hasOwnProperty("trainTrialSpec")) { + var error = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify(message.trainTrialSpec); + if (error) + return "trainTrialSpec." + error; + } + return null; + }; + + /** + * Creates a MultiTrialAlgorithmSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec + */ + MultiTrialAlgorithmSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec(); + switch (object.multiTrialAlgorithm) { + default: + if (typeof object.multiTrialAlgorithm === "number") { + message.multiTrialAlgorithm = object.multiTrialAlgorithm; + break; + } + break; + case "MULTI_TRIAL_ALGORITHM_UNSPECIFIED": + case 0: + message.multiTrialAlgorithm = 0; + break; + case "REINFORCEMENT_LEARNING": + case 1: + message.multiTrialAlgorithm = 1; + break; + case "GRID_SEARCH": + case 2: + message.multiTrialAlgorithm = 2; + break; + } + if (object.metric != null) { + if (typeof object.metric !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.metric: object expected"); + message.metric = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.fromObject(object.metric); + } + if (object.searchTrialSpec != null) { + if (typeof object.searchTrialSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.searchTrialSpec: object expected"); + message.searchTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.fromObject(object.searchTrialSpec); + } + if (object.trainTrialSpec != null) { + if (typeof object.trainTrialSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.trainTrialSpec: object expected"); + message.trainTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.fromObject(object.trainTrialSpec); + } + return message; + }; + + /** + * Creates a plain object from a MultiTrialAlgorithmSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MultiTrialAlgorithmSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.multiTrialAlgorithm = options.enums === String ? "MULTI_TRIAL_ALGORITHM_UNSPECIFIED" : 0; + object.metric = null; + object.searchTrialSpec = null; + object.trainTrialSpec = null; + } + if (message.multiTrialAlgorithm != null && message.hasOwnProperty("multiTrialAlgorithm")) + object.multiTrialAlgorithm = options.enums === String ? $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm[message.multiTrialAlgorithm] === undefined ? message.multiTrialAlgorithm : $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm[message.multiTrialAlgorithm] : message.multiTrialAlgorithm; + if (message.metric != null && message.hasOwnProperty("metric")) + object.metric = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.toObject(message.metric, options); + if (message.searchTrialSpec != null && message.hasOwnProperty("searchTrialSpec")) + object.searchTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.toObject(message.searchTrialSpec, options); + if (message.trainTrialSpec != null && message.hasOwnProperty("trainTrialSpec")) + object.trainTrialSpec = $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.toObject(message.trainTrialSpec, options); + return object; + }; + + /** + * Converts this MultiTrialAlgorithmSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + * @returns {Object.} JSON object + */ + MultiTrialAlgorithmSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MultiTrialAlgorithmSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MultiTrialAlgorithmSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec"; + }; + + MultiTrialAlgorithmSpec.MetricSpec = (function() { + + /** + * Properties of a MetricSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @interface IMetricSpec + * @property {string|null} [metricId] MetricSpec metricId + * @property {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|null} [goal] MetricSpec goal + */ + + /** + * Constructs a new MetricSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @classdesc Represents a MetricSpec. + * @implements IMetricSpec + * @constructor + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec=} [properties] Properties to set + */ + function MetricSpec(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]]; + } + + /** + * MetricSpec metricId. + * @member {string} metricId + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @instance + */ + MetricSpec.prototype.metricId = ""; + + /** + * MetricSpec goal. + * @member {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType} goal + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @instance + */ + MetricSpec.prototype.goal = 0; + + /** + * Creates a new MetricSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec instance + */ + MetricSpec.create = function create(properties) { + return new MetricSpec(properties); + }; + + /** + * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec} message MetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); + if (message.goal != null && Object.hasOwnProperty.call(message, "goal")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.goal); + return writer; + }; + + /** + * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec} message MetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetricSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricSpec.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.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricId = reader.string(); + break; + } + case 2: { + message.goal = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MetricSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetricSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetricSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricId != null && message.hasOwnProperty("metricId")) + if (!$util.isString(message.metricId)) + return "metricId: string expected"; + if (message.goal != null && message.hasOwnProperty("goal")) + switch (message.goal) { + default: + return "goal: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec + */ + MetricSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec(); + if (object.metricId != null) + message.metricId = String(object.metricId); + switch (object.goal) { + default: + if (typeof object.goal === "number") { + message.goal = object.goal; + break; + } + break; + case "GOAL_TYPE_UNSPECIFIED": + case 0: + message.goal = 0; + break; + case "MAXIMIZE": + case 1: + message.goal = 1; + break; + case "MINIMIZE": + case 2: + message.goal = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} message MetricSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetricSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricId = ""; + object.goal = options.enums === String ? "GOAL_TYPE_UNSPECIFIED" : 0; + } + if (message.metricId != null && message.hasOwnProperty("metricId")) + object.metricId = message.metricId; + if (message.goal != null && message.hasOwnProperty("goal")) + object.goal = options.enums === String ? $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType[message.goal] === undefined ? message.goal : $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType[message.goal] : message.goal; + return object; + }; + + /** + * Converts this MetricSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @instance + * @returns {Object.} JSON object + */ + MetricSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MetricSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetricSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec"; + }; + + /** + * GoalType enum. + * @name google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType + * @enum {number} + * @property {number} GOAL_TYPE_UNSPECIFIED=0 GOAL_TYPE_UNSPECIFIED value + * @property {number} MAXIMIZE=1 MAXIMIZE value + * @property {number} MINIMIZE=2 MINIMIZE value + */ + MetricSpec.GoalType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GOAL_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "MAXIMIZE"] = 1; + values[valuesById[2] = "MINIMIZE"] = 2; + return values; + })(); + + return MetricSpec; + })(); + + MultiTrialAlgorithmSpec.SearchTrialSpec = (function() { + + /** + * Properties of a SearchTrialSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @interface ISearchTrialSpec + * @property {google.cloud.aiplatform.v1.ICustomJobSpec|null} [searchTrialJobSpec] SearchTrialSpec searchTrialJobSpec + * @property {number|null} [maxTrialCount] SearchTrialSpec maxTrialCount + * @property {number|null} [maxParallelTrialCount] SearchTrialSpec maxParallelTrialCount + * @property {number|null} [maxFailedTrialCount] SearchTrialSpec maxFailedTrialCount + */ + + /** + * Constructs a new SearchTrialSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @classdesc Represents a SearchTrialSpec. + * @implements ISearchTrialSpec + * @constructor + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec=} [properties] Properties to set + */ + function SearchTrialSpec(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]]; + } + + /** + * SearchTrialSpec searchTrialJobSpec. + * @member {google.cloud.aiplatform.v1.ICustomJobSpec|null|undefined} searchTrialJobSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.searchTrialJobSpec = null; + + /** + * SearchTrialSpec maxTrialCount. + * @member {number} maxTrialCount + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.maxTrialCount = 0; + + /** + * SearchTrialSpec maxParallelTrialCount. + * @member {number} maxParallelTrialCount + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.maxParallelTrialCount = 0; + + /** + * SearchTrialSpec maxFailedTrialCount. + * @member {number} maxFailedTrialCount + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.maxFailedTrialCount = 0; + + /** + * Creates a new SearchTrialSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec instance + */ + SearchTrialSpec.create = function create(properties) { + return new SearchTrialSpec(properties); + }; + + /** + * Encodes the specified SearchTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec} message SearchTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchTrialSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.searchTrialJobSpec != null && Object.hasOwnProperty.call(message, "searchTrialJobSpec")) + $root.google.cloud.aiplatform.v1.CustomJobSpec.encode(message.searchTrialJobSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.maxTrialCount != null && Object.hasOwnProperty.call(message, "maxTrialCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxTrialCount); + if (message.maxParallelTrialCount != null && Object.hasOwnProperty.call(message, "maxParallelTrialCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxParallelTrialCount); + if (message.maxFailedTrialCount != null && Object.hasOwnProperty.call(message, "maxFailedTrialCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maxFailedTrialCount); + return writer; + }; + + /** + * Encodes the specified SearchTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec} message SearchTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchTrialSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchTrialSpec.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.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.searchTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.maxTrialCount = reader.int32(); + break; + } + case 3: { + message.maxParallelTrialCount = reader.int32(); + break; + } + case 4: { + message.maxFailedTrialCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchTrialSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SearchTrialSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SearchTrialSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.searchTrialJobSpec != null && message.hasOwnProperty("searchTrialJobSpec")) { + var error = $root.google.cloud.aiplatform.v1.CustomJobSpec.verify(message.searchTrialJobSpec); + if (error) + return "searchTrialJobSpec." + error; + } + if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) + if (!$util.isInteger(message.maxTrialCount)) + return "maxTrialCount: integer expected"; + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + if (!$util.isInteger(message.maxParallelTrialCount)) + return "maxParallelTrialCount: integer expected"; + if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) + if (!$util.isInteger(message.maxFailedTrialCount)) + return "maxFailedTrialCount: integer expected"; + return null; + }; + + /** + * Creates a SearchTrialSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec + */ + SearchTrialSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec(); + if (object.searchTrialJobSpec != null) { + if (typeof object.searchTrialJobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.searchTrialJobSpec: object expected"); + message.searchTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.fromObject(object.searchTrialJobSpec); + } + if (object.maxTrialCount != null) + message.maxTrialCount = object.maxTrialCount | 0; + if (object.maxParallelTrialCount != null) + message.maxParallelTrialCount = object.maxParallelTrialCount | 0; + if (object.maxFailedTrialCount != null) + message.maxFailedTrialCount = object.maxFailedTrialCount | 0; + return message; + }; + + /** + * Creates a plain object from a SearchTrialSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} message SearchTrialSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SearchTrialSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.searchTrialJobSpec = null; + object.maxTrialCount = 0; + object.maxParallelTrialCount = 0; + object.maxFailedTrialCount = 0; + } + if (message.searchTrialJobSpec != null && message.hasOwnProperty("searchTrialJobSpec")) + object.searchTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.toObject(message.searchTrialJobSpec, options); + if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) + object.maxTrialCount = message.maxTrialCount; + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + object.maxParallelTrialCount = message.maxParallelTrialCount; + if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) + object.maxFailedTrialCount = message.maxFailedTrialCount; + return object; + }; + + /** + * Converts this SearchTrialSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + * @returns {Object.} JSON object + */ + SearchTrialSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SearchTrialSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SearchTrialSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec"; + }; + + return SearchTrialSpec; + })(); + + MultiTrialAlgorithmSpec.TrainTrialSpec = (function() { + + /** + * Properties of a TrainTrialSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @interface ITrainTrialSpec + * @property {google.cloud.aiplatform.v1.ICustomJobSpec|null} [trainTrialJobSpec] TrainTrialSpec trainTrialJobSpec + * @property {number|null} [maxParallelTrialCount] TrainTrialSpec maxParallelTrialCount + * @property {number|null} [frequency] TrainTrialSpec frequency + */ + + /** + * Constructs a new TrainTrialSpec. + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec + * @classdesc Represents a TrainTrialSpec. + * @implements ITrainTrialSpec + * @constructor + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec=} [properties] Properties to set + */ + function TrainTrialSpec(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]]; + } + + /** + * TrainTrialSpec trainTrialJobSpec. + * @member {google.cloud.aiplatform.v1.ICustomJobSpec|null|undefined} trainTrialJobSpec + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + */ + TrainTrialSpec.prototype.trainTrialJobSpec = null; + + /** + * TrainTrialSpec maxParallelTrialCount. + * @member {number} maxParallelTrialCount + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + */ + TrainTrialSpec.prototype.maxParallelTrialCount = 0; + + /** + * TrainTrialSpec frequency. + * @member {number} frequency + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + */ + TrainTrialSpec.prototype.frequency = 0; + + /** + * Creates a new TrainTrialSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec instance + */ + TrainTrialSpec.create = function create(properties) { + return new TrainTrialSpec(properties); + }; + + /** + * Encodes the specified TrainTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec} message TrainTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainTrialSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trainTrialJobSpec != null && Object.hasOwnProperty.call(message, "trainTrialJobSpec")) + $root.google.cloud.aiplatform.v1.CustomJobSpec.encode(message.trainTrialJobSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.maxParallelTrialCount != null && Object.hasOwnProperty.call(message, "maxParallelTrialCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxParallelTrialCount); + if (message.frequency != null && Object.hasOwnProperty.call(message, "frequency")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.frequency); + return writer; + }; + + /** + * Encodes the specified TrainTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec} message TrainTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainTrialSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainTrialSpec.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.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.trainTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.maxParallelTrialCount = reader.int32(); + break; + } + case 3: { + message.frequency = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainTrialSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TrainTrialSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrainTrialSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trainTrialJobSpec != null && message.hasOwnProperty("trainTrialJobSpec")) { + var error = $root.google.cloud.aiplatform.v1.CustomJobSpec.verify(message.trainTrialJobSpec); + if (error) + return "trainTrialJobSpec." + error; + } + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + if (!$util.isInteger(message.maxParallelTrialCount)) + return "maxParallelTrialCount: integer expected"; + if (message.frequency != null && message.hasOwnProperty("frequency")) + if (!$util.isInteger(message.frequency)) + return "frequency: integer expected"; + return null; + }; + + /** + * Creates a TrainTrialSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec + */ + TrainTrialSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec(); + if (object.trainTrialJobSpec != null) { + if (typeof object.trainTrialJobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.trainTrialJobSpec: object expected"); + message.trainTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.fromObject(object.trainTrialJobSpec); + } + if (object.maxParallelTrialCount != null) + message.maxParallelTrialCount = object.maxParallelTrialCount | 0; + if (object.frequency != null) + message.frequency = object.frequency | 0; + return message; + }; + + /** + * Creates a plain object from a TrainTrialSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} message TrainTrialSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TrainTrialSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.trainTrialJobSpec = null; + object.maxParallelTrialCount = 0; + object.frequency = 0; + } + if (message.trainTrialJobSpec != null && message.hasOwnProperty("trainTrialJobSpec")) + object.trainTrialJobSpec = $root.google.cloud.aiplatform.v1.CustomJobSpec.toObject(message.trainTrialJobSpec, options); + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + object.maxParallelTrialCount = message.maxParallelTrialCount; + if (message.frequency != null && message.hasOwnProperty("frequency")) + object.frequency = message.frequency; + return object; + }; + + /** + * Converts this TrainTrialSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + * @returns {Object.} JSON object + */ + TrainTrialSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TrainTrialSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TrainTrialSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec"; + }; + + return TrainTrialSpec; + })(); + + /** + * MultiTrialAlgorithm enum. + * @name google.cloud.aiplatform.v1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm + * @enum {number} + * @property {number} MULTI_TRIAL_ALGORITHM_UNSPECIFIED=0 MULTI_TRIAL_ALGORITHM_UNSPECIFIED value + * @property {number} REINFORCEMENT_LEARNING=1 REINFORCEMENT_LEARNING value + * @property {number} GRID_SEARCH=2 GRID_SEARCH value + */ + MultiTrialAlgorithmSpec.MultiTrialAlgorithm = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MULTI_TRIAL_ALGORITHM_UNSPECIFIED"] = 0; + values[valuesById[1] = "REINFORCEMENT_LEARNING"] = 1; + values[valuesById[2] = "GRID_SEARCH"] = 2; + return values; + })(); + + return MultiTrialAlgorithmSpec; + })(); + + return NasJobSpec; })(); - v1.CreateMetadataStoreRequest = (function() { + v1.NasJobOutput = (function() { /** - * Properties of a CreateMetadataStoreRequest. + * Properties of a NasJobOutput. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateMetadataStoreRequest - * @property {string|null} [parent] CreateMetadataStoreRequest parent - * @property {google.cloud.aiplatform.v1.IMetadataStore|null} [metadataStore] CreateMetadataStoreRequest metadataStore - * @property {string|null} [metadataStoreId] CreateMetadataStoreRequest metadataStoreId + * @interface INasJobOutput + * @property {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput|null} [multiTrialJobOutput] NasJobOutput multiTrialJobOutput */ /** - * Constructs a new CreateMetadataStoreRequest. + * Constructs a new NasJobOutput. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateMetadataStoreRequest. - * @implements ICreateMetadataStoreRequest + * @classdesc Represents a NasJobOutput. + * @implements INasJobOutput * @constructor - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.INasJobOutput=} [properties] Properties to set */ - function CreateMetadataStoreRequest(properties) { + function NasJobOutput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93007,103 +96653,89 @@ } /** - * CreateMetadataStoreRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * NasJobOutput multiTrialJobOutput. + * @member {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput|null|undefined} multiTrialJobOutput + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @instance */ - CreateMetadataStoreRequest.prototype.parent = ""; + NasJobOutput.prototype.multiTrialJobOutput = null; - /** - * CreateMetadataStoreRequest metadataStore. - * @member {google.cloud.aiplatform.v1.IMetadataStore|null|undefined} metadataStore - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest - * @instance - */ - CreateMetadataStoreRequest.prototype.metadataStore = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * CreateMetadataStoreRequest metadataStoreId. - * @member {string} metadataStoreId - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * NasJobOutput output. + * @member {"multiTrialJobOutput"|undefined} output + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @instance */ - CreateMetadataStoreRequest.prototype.metadataStoreId = ""; + Object.defineProperty(NasJobOutput.prototype, "output", { + get: $util.oneOfGetter($oneOfFields = ["multiTrialJobOutput"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new CreateMetadataStoreRequest instance using the specified properties. + * Creates a new NasJobOutput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} CreateMetadataStoreRequest instance + * @param {google.cloud.aiplatform.v1.INasJobOutput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobOutput} NasJobOutput instance */ - CreateMetadataStoreRequest.create = function create(properties) { - return new CreateMetadataStoreRequest(properties); + NasJobOutput.create = function create(properties) { + return new NasJobOutput(properties); }; /** - * Encodes the specified CreateMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreRequest.verify|verify} messages. + * Encodes the specified NasJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest} message CreateMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.INasJobOutput} message NasJobOutput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataStoreRequest.encode = function encode(message, writer) { + NasJobOutput.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.metadataStore != null && Object.hasOwnProperty.call(message, "metadataStore")) - $root.google.cloud.aiplatform.v1.MetadataStore.encode(message.metadataStore, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadataStoreId != null && Object.hasOwnProperty.call(message, "metadataStoreId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataStoreId); + if (message.multiTrialJobOutput != null && Object.hasOwnProperty.call(message, "multiTrialJobOutput")) + $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.encode(message.multiTrialJobOutput, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreRequest.verify|verify} messages. + * Encodes the specified NasJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest} message CreateMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.INasJobOutput} message NasJobOutput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + NasJobOutput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer. + * Decodes a NasJobOutput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @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.CreateMetadataStoreRequest} CreateMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1.NasJobOutput} NasJobOutput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataStoreRequest.decode = function decode(reader, length) { + NasJobOutput.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.CreateMetadataStoreRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasJobOutput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.metadataStore = $root.google.cloud.aiplatform.v1.MetadataStore.decode(reader, reader.uint32()); - break; - } - case 3: { - message.metadataStoreId = reader.string(); + message.multiTrialJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.decode(reader, reader.uint32()); break; } default: @@ -93115,144 +96747,405 @@ }; /** - * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes a NasJobOutput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} CreateMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1.NasJobOutput} NasJobOutput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { + NasJobOutput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateMetadataStoreRequest message. + * Verifies a NasJobOutput message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateMetadataStoreRequest.verify = function verify(message) { + NasJobOutput.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.metadataStore != null && message.hasOwnProperty("metadataStore")) { - var error = $root.google.cloud.aiplatform.v1.MetadataStore.verify(message.metadataStore); - if (error) - return "metadataStore." + error; + var properties = {}; + if (message.multiTrialJobOutput != null && message.hasOwnProperty("multiTrialJobOutput")) { + properties.output = 1; + { + var error = $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify(message.multiTrialJobOutput); + if (error) + return "multiTrialJobOutput." + error; + } } - if (message.metadataStoreId != null && message.hasOwnProperty("metadataStoreId")) - if (!$util.isString(message.metadataStoreId)) - return "metadataStoreId: string expected"; return null; }; /** - * Creates a CreateMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasJobOutput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} CreateMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1.NasJobOutput} NasJobOutput */ - CreateMetadataStoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateMetadataStoreRequest) + NasJobOutput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobOutput) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateMetadataStoreRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.metadataStore != null) { - if (typeof object.metadataStore !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateMetadataStoreRequest.metadataStore: object expected"); - message.metadataStore = $root.google.cloud.aiplatform.v1.MetadataStore.fromObject(object.metadataStore); + var message = new $root.google.cloud.aiplatform.v1.NasJobOutput(); + if (object.multiTrialJobOutput != null) { + if (typeof object.multiTrialJobOutput !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.multiTrialJobOutput: object expected"); + message.multiTrialJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.fromObject(object.multiTrialJobOutput); } - if (object.metadataStoreId != null) - message.metadataStoreId = String(object.metadataStoreId); return message; }; /** - * Creates a plain object from a CreateMetadataStoreRequest message. Also converts values to other types if specified. + * Creates a plain object from a NasJobOutput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @static - * @param {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} message CreateMetadataStoreRequest + * @param {google.cloud.aiplatform.v1.NasJobOutput} message NasJobOutput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateMetadataStoreRequest.toObject = function toObject(message, options) { + NasJobOutput.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.metadataStore = null; - object.metadataStoreId = ""; + if (message.multiTrialJobOutput != null && message.hasOwnProperty("multiTrialJobOutput")) { + object.multiTrialJobOutput = $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.toObject(message.multiTrialJobOutput, options); + if (options.oneofs) + object.output = "multiTrialJobOutput"; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.metadataStore != null && message.hasOwnProperty("metadataStore")) - object.metadataStore = $root.google.cloud.aiplatform.v1.MetadataStore.toObject(message.metadataStore, options); - if (message.metadataStoreId != null && message.hasOwnProperty("metadataStoreId")) - object.metadataStoreId = message.metadataStoreId; return object; }; /** - * Converts this CreateMetadataStoreRequest to JSON. + * Converts this NasJobOutput to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @instance * @returns {Object.} JSON object */ - CreateMetadataStoreRequest.prototype.toJSON = function toJSON() { + NasJobOutput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateMetadataStoreRequest + * Gets the default type url for NasJobOutput * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.NasJobOutput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NasJobOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateMetadataStoreRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobOutput"; }; - return CreateMetadataStoreRequest; + NasJobOutput.MultiTrialJobOutput = (function() { + + /** + * Properties of a MultiTrialJobOutput. + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @interface IMultiTrialJobOutput + * @property {Array.|null} [searchTrials] MultiTrialJobOutput searchTrials + * @property {Array.|null} [trainTrials] MultiTrialJobOutput trainTrials + */ + + /** + * Constructs a new MultiTrialJobOutput. + * @memberof google.cloud.aiplatform.v1.NasJobOutput + * @classdesc Represents a MultiTrialJobOutput. + * @implements IMultiTrialJobOutput + * @constructor + * @param {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput=} [properties] Properties to set + */ + function MultiTrialJobOutput(properties) { + this.searchTrials = []; + this.trainTrials = []; + 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]]; + } + + /** + * MultiTrialJobOutput searchTrials. + * @member {Array.} searchTrials + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @instance + */ + MultiTrialJobOutput.prototype.searchTrials = $util.emptyArray; + + /** + * MultiTrialJobOutput trainTrials. + * @member {Array.} trainTrials + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @instance + */ + MultiTrialJobOutput.prototype.trainTrials = $util.emptyArray; + + /** + * Creates a new MultiTrialJobOutput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput instance + */ + MultiTrialJobOutput.create = function create(properties) { + return new MultiTrialJobOutput(properties); + }; + + /** + * Encodes the specified MultiTrialJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput} message MultiTrialJobOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiTrialJobOutput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.searchTrials != null && message.searchTrials.length) + for (var i = 0; i < message.searchTrials.length; ++i) + $root.google.cloud.aiplatform.v1.NasTrial.encode(message.searchTrials[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.trainTrials != null && message.trainTrials.length) + for (var i = 0; i < message.trainTrials.length; ++i) + $root.google.cloud.aiplatform.v1.NasTrial.encode(message.trainTrials[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MultiTrialJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {google.cloud.aiplatform.v1.NasJobOutput.IMultiTrialJobOutput} message MultiTrialJobOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiTrialJobOutput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MultiTrialJobOutput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @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.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiTrialJobOutput.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.NasJobOutput.MultiTrialJobOutput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.searchTrials && message.searchTrials.length)) + message.searchTrials = []; + message.searchTrials.push($root.google.cloud.aiplatform.v1.NasTrial.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.trainTrials && message.trainTrials.length)) + message.trainTrials = []; + message.trainTrials.push($root.google.cloud.aiplatform.v1.NasTrial.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MultiTrialJobOutput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiTrialJobOutput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MultiTrialJobOutput message. + * @function verify + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MultiTrialJobOutput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.searchTrials != null && message.hasOwnProperty("searchTrials")) { + if (!Array.isArray(message.searchTrials)) + return "searchTrials: array expected"; + for (var i = 0; i < message.searchTrials.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.NasTrial.verify(message.searchTrials[i]); + if (error) + return "searchTrials." + error; + } + } + if (message.trainTrials != null && message.hasOwnProperty("trainTrials")) { + if (!Array.isArray(message.trainTrials)) + return "trainTrials: array expected"; + for (var i = 0; i < message.trainTrials.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.NasTrial.verify(message.trainTrials[i]); + if (error) + return "trainTrials." + error; + } + } + return null; + }; + + /** + * Creates a MultiTrialJobOutput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput + */ + MultiTrialJobOutput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput) + return object; + var message = new $root.google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput(); + if (object.searchTrials) { + if (!Array.isArray(object.searchTrials)) + throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.searchTrials: array expected"); + message.searchTrials = []; + for (var i = 0; i < object.searchTrials.length; ++i) { + if (typeof object.searchTrials[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.searchTrials: object expected"); + message.searchTrials[i] = $root.google.cloud.aiplatform.v1.NasTrial.fromObject(object.searchTrials[i]); + } + } + if (object.trainTrials) { + if (!Array.isArray(object.trainTrials)) + throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.trainTrials: array expected"); + message.trainTrials = []; + for (var i = 0; i < object.trainTrials.length; ++i) { + if (typeof object.trainTrials[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput.trainTrials: object expected"); + message.trainTrials[i] = $root.google.cloud.aiplatform.v1.NasTrial.fromObject(object.trainTrials[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a MultiTrialJobOutput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput} message MultiTrialJobOutput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MultiTrialJobOutput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.searchTrials = []; + object.trainTrials = []; + } + if (message.searchTrials && message.searchTrials.length) { + object.searchTrials = []; + for (var j = 0; j < message.searchTrials.length; ++j) + object.searchTrials[j] = $root.google.cloud.aiplatform.v1.NasTrial.toObject(message.searchTrials[j], options); + } + if (message.trainTrials && message.trainTrials.length) { + object.trainTrials = []; + for (var j = 0; j < message.trainTrials.length; ++j) + object.trainTrials[j] = $root.google.cloud.aiplatform.v1.NasTrial.toObject(message.trainTrials[j], options); + } + return object; + }; + + /** + * Converts this MultiTrialJobOutput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @instance + * @returns {Object.} JSON object + */ + MultiTrialJobOutput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MultiTrialJobOutput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MultiTrialJobOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasJobOutput.MultiTrialJobOutput"; + }; + + return MultiTrialJobOutput; + })(); + + return NasJobOutput; })(); - v1.CreateMetadataStoreOperationMetadata = (function() { + v1.NasTrial = (function() { /** - * Properties of a CreateMetadataStoreOperationMetadata. + * Properties of a NasTrial. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateMetadataStoreOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateMetadataStoreOperationMetadata genericMetadata + * @interface INasTrial + * @property {string|null} [id] NasTrial id + * @property {google.cloud.aiplatform.v1.NasTrial.State|null} [state] NasTrial state + * @property {google.cloud.aiplatform.v1.IMeasurement|null} [finalMeasurement] NasTrial finalMeasurement + * @property {google.protobuf.ITimestamp|null} [startTime] NasTrial startTime + * @property {google.protobuf.ITimestamp|null} [endTime] NasTrial endTime */ /** - * Constructs a new CreateMetadataStoreOperationMetadata. + * Constructs a new NasTrial. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateMetadataStoreOperationMetadata. - * @implements ICreateMetadataStoreOperationMetadata + * @classdesc Represents a NasTrial. + * @implements INasTrial * @constructor - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.INasTrial=} [properties] Properties to set */ - function CreateMetadataStoreOperationMetadata(properties) { + function NasTrial(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93260,75 +97153,131 @@ } /** - * CreateMetadataStoreOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * NasTrial id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1.NasTrial * @instance */ - CreateMetadataStoreOperationMetadata.prototype.genericMetadata = null; + NasTrial.prototype.id = ""; /** - * Creates a new CreateMetadataStoreOperationMetadata instance using the specified properties. + * NasTrial state. + * @member {google.cloud.aiplatform.v1.NasTrial.State} state + * @memberof google.cloud.aiplatform.v1.NasTrial + * @instance + */ + NasTrial.prototype.state = 0; + + /** + * NasTrial finalMeasurement. + * @member {google.cloud.aiplatform.v1.IMeasurement|null|undefined} finalMeasurement + * @memberof google.cloud.aiplatform.v1.NasTrial + * @instance + */ + NasTrial.prototype.finalMeasurement = null; + + /** + * NasTrial startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.NasTrial + * @instance + */ + NasTrial.prototype.startTime = null; + + /** + * NasTrial endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.NasTrial + * @instance + */ + NasTrial.prototype.endTime = null; + + /** + * Creates a new NasTrial instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata instance + * @param {google.cloud.aiplatform.v1.INasTrial=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.NasTrial} NasTrial instance */ - CreateMetadataStoreOperationMetadata.create = function create(properties) { - return new CreateMetadataStoreOperationMetadata(properties); + NasTrial.create = function create(properties) { + return new NasTrial(properties); }; /** - * Encodes the specified CreateMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.verify|verify} messages. + * Encodes the specified NasTrial message. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrial.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.INasTrial} message NasTrial message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataStoreOperationMetadata.encode = function encode(message, writer) { + NasTrial.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(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + if (message.finalMeasurement != null && Object.hasOwnProperty.call(message, "finalMeasurement")) + $root.google.cloud.aiplatform.v1.Measurement.encode(message.finalMeasurement, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.verify|verify} messages. + * Encodes the specified NasTrial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.NasTrial.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.INasTrial} message NasTrial message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + NasTrial.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer. + * Decodes a NasTrial message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @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.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1.NasTrial} NasTrial * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataStoreOperationMetadata.decode = function decode(reader, length) { + NasTrial.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.CreateMetadataStoreOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.NasTrial(); 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()); + message.id = reader.string(); + break; + } + case 2: { + message.state = reader.int32(); + break; + } + case 3: { + message.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.decode(reader, reader.uint32()); + break; + } + case 4: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -93340,127 +97289,236 @@ }; /** - * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a NasTrial message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1.NasTrial} NasTrial * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + NasTrial.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateMetadataStoreOperationMetadata message. + * Verifies a NasTrial message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateMetadataStoreOperationMetadata.verify = function verify(message) { + NasTrial.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 (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) { + var error = $root.google.cloud.aiplatform.v1.Measurement.verify(message.finalMeasurement); if (error) - return "genericMetadata." + error; + return "finalMeasurement." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; } return null; }; /** - * Creates a CreateMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a NasTrial message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata + * @returns {google.cloud.aiplatform.v1.NasTrial} NasTrial */ - CreateMetadataStoreOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata) + NasTrial.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.NasTrial) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1.NasTrial(); + if (object.id != null) + message.id = String(object.id); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "REQUESTED": + case 1: + message.state = 1; + break; + case "ACTIVE": + case 2: + message.state = 2; + break; + case "STOPPING": + case 3: + message.state = 3; + break; + case "SUCCEEDED": + case 4: + message.state = 4; + break; + case "INFEASIBLE": + case 5: + message.state = 5; + break; + } + if (object.finalMeasurement != null) { + if (typeof object.finalMeasurement !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasTrial.finalMeasurement: object expected"); + message.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.fromObject(object.finalMeasurement); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasTrial.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.NasTrial.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } return message; }; /** - * Creates a plain object from a CreateMetadataStoreOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a NasTrial message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @static - * @param {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata + * @param {google.cloud.aiplatform.v1.NasTrial} message NasTrial * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateMetadataStoreOperationMetadata.toObject = function toObject(message, options) { + NasTrial.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); + if (options.defaults) { + object.id = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.finalMeasurement = null; + object.startTime = null; + object.endTime = null; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.NasTrial.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.NasTrial.State[message.state] : message.state; + if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) + object.finalMeasurement = $root.google.cloud.aiplatform.v1.Measurement.toObject(message.finalMeasurement, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this CreateMetadataStoreOperationMetadata to JSON. + * Converts this NasTrial to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @instance * @returns {Object.} JSON object */ - CreateMetadataStoreOperationMetadata.prototype.toJSON = function toJSON() { + NasTrial.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateMetadataStoreOperationMetadata + * Gets the default type url for NasTrial * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata + * @memberof google.cloud.aiplatform.v1.NasTrial * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateMetadataStoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NasTrial.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.NasTrial"; }; - return CreateMetadataStoreOperationMetadata; + /** + * State enum. + * @name google.cloud.aiplatform.v1.NasTrial.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} REQUESTED=1 REQUESTED value + * @property {number} ACTIVE=2 ACTIVE value + * @property {number} STOPPING=3 STOPPING value + * @property {number} SUCCEEDED=4 SUCCEEDED value + * @property {number} INFEASIBLE=5 INFEASIBLE value + */ + NasTrial.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "REQUESTED"] = 1; + values[valuesById[2] = "ACTIVE"] = 2; + values[valuesById[3] = "STOPPING"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + values[valuesById[5] = "INFEASIBLE"] = 5; + return values; + })(); + + return NasTrial; })(); - v1.GetMetadataStoreRequest = (function() { + v1.LineageSubgraph = (function() { /** - * Properties of a GetMetadataStoreRequest. + * Properties of a LineageSubgraph. * @memberof google.cloud.aiplatform.v1 - * @interface IGetMetadataStoreRequest - * @property {string|null} [name] GetMetadataStoreRequest name + * @interface ILineageSubgraph + * @property {Array.|null} [artifacts] LineageSubgraph artifacts + * @property {Array.|null} [executions] LineageSubgraph executions + * @property {Array.|null} [events] LineageSubgraph events */ /** - * Constructs a new GetMetadataStoreRequest. + * Constructs a new LineageSubgraph. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetMetadataStoreRequest. - * @implements IGetMetadataStoreRequest + * @classdesc Represents a LineageSubgraph. + * @implements ILineageSubgraph * @constructor - * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ILineageSubgraph=} [properties] Properties to set */ - function GetMetadataStoreRequest(properties) { + function LineageSubgraph(properties) { + this.artifacts = []; + this.executions = []; + this.events = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93468,75 +97526,112 @@ } /** - * GetMetadataStoreRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * LineageSubgraph artifacts. + * @member {Array.} artifacts + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @instance */ - GetMetadataStoreRequest.prototype.name = ""; + LineageSubgraph.prototype.artifacts = $util.emptyArray; /** - * Creates a new GetMetadataStoreRequest instance using the specified properties. + * LineageSubgraph executions. + * @member {Array.} executions + * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @instance + */ + LineageSubgraph.prototype.executions = $util.emptyArray; + + /** + * LineageSubgraph events. + * @member {Array.} events + * @memberof google.cloud.aiplatform.v1.LineageSubgraph + * @instance + */ + LineageSubgraph.prototype.events = $util.emptyArray; + + /** + * Creates a new LineageSubgraph instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @static - * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetMetadataStoreRequest} GetMetadataStoreRequest instance + * @param {google.cloud.aiplatform.v1.ILineageSubgraph=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph instance */ - GetMetadataStoreRequest.create = function create(properties) { - return new GetMetadataStoreRequest(properties); + LineageSubgraph.create = function create(properties) { + return new LineageSubgraph(properties); }; /** - * Encodes the specified GetMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataStoreRequest.verify|verify} messages. + * Encodes the specified LineageSubgraph message. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @static - * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest} message GetMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ILineageSubgraph} message LineageSubgraph message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMetadataStoreRequest.encode = function encode(message, writer) { + LineageSubgraph.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); + if (message.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.executions != null && message.executions.length) + for (var i = 0; i < message.executions.length; ++i) + $root.google.cloud.aiplatform.v1.Execution.encode(message.executions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.events != null && message.events.length) + for (var i = 0; i < message.events.length; ++i) + $root.google.cloud.aiplatform.v1.Event.encode(message.events[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataStoreRequest.verify|verify} messages. + * Encodes the specified LineageSubgraph message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.LineageSubgraph.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @static - * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest} message GetMetadataStoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ILineageSubgraph} message LineageSubgraph message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + LineageSubgraph.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetMetadataStoreRequest message from the specified reader or buffer. + * Decodes a LineageSubgraph message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @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.GetMetadataStoreRequest} GetMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMetadataStoreRequest.decode = function decode(reader, length) { + LineageSubgraph.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.GetMetadataStoreRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.LineageSubgraph(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push($root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.executions && message.executions.length)) + message.executions = []; + message.executions.push($root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.google.cloud.aiplatform.v1.Event.decode(reader, reader.uint32())); break; } default: @@ -93548,124 +97643,195 @@ }; /** - * Decodes a GetMetadataStoreRequest message from the specified reader or buffer, length delimited. + * Decodes a LineageSubgraph message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetMetadataStoreRequest} GetMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { + LineageSubgraph.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetMetadataStoreRequest message. + * Verifies a LineageSubgraph message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetMetadataStoreRequest.verify = function verify(message) { + LineageSubgraph.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"; + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifacts[i]); + if (error) + return "artifacts." + error; + } + } + if (message.executions != null && message.hasOwnProperty("executions")) { + if (!Array.isArray(message.executions)) + return "executions: array expected"; + for (var i = 0; i < message.executions.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.executions[i]); + if (error) + return "executions." + error; + } + } + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Event.verify(message.events[i]); + if (error) + return "events." + error; + } + } return null; }; /** - * Creates a GetMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a LineageSubgraph message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetMetadataStoreRequest} GetMetadataStoreRequest + * @returns {google.cloud.aiplatform.v1.LineageSubgraph} LineageSubgraph */ - GetMetadataStoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetMetadataStoreRequest) + LineageSubgraph.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.LineageSubgraph) return object; - var message = new $root.google.cloud.aiplatform.v1.GetMetadataStoreRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.LineageSubgraph(); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) { + if (typeof object.artifacts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.artifacts: object expected"); + message.artifacts[i] = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifacts[i]); + } + } + if (object.executions) { + if (!Array.isArray(object.executions)) + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.executions: array expected"); + message.executions = []; + for (var i = 0; i < object.executions.length; ++i) { + if (typeof object.executions[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.executions: object expected"); + message.executions[i] = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.executions[i]); + } + } + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.events: array expected"); + message.events = []; + for (var i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.LineageSubgraph.events: object expected"); + message.events[i] = $root.google.cloud.aiplatform.v1.Event.fromObject(object.events[i]); + } + } return message; }; /** - * Creates a plain object from a GetMetadataStoreRequest message. Also converts values to other types if specified. + * Creates a plain object from a LineageSubgraph message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @static - * @param {google.cloud.aiplatform.v1.GetMetadataStoreRequest} message GetMetadataStoreRequest + * @param {google.cloud.aiplatform.v1.LineageSubgraph} message LineageSubgraph * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetMetadataStoreRequest.toObject = function toObject(message, options) { + LineageSubgraph.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; + if (options.arrays || options.defaults) { + object.artifacts = []; + object.executions = []; + object.events = []; + } + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifacts[j], options); + } + if (message.executions && message.executions.length) { + object.executions = []; + for (var j = 0; j < message.executions.length; ++j) + object.executions[j] = $root.google.cloud.aiplatform.v1.Execution.toObject(message.executions[j], options); + } + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.google.cloud.aiplatform.v1.Event.toObject(message.events[j], options); + } return object; }; /** - * Converts this GetMetadataStoreRequest to JSON. + * Converts this LineageSubgraph to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @instance * @returns {Object.} JSON object */ - GetMetadataStoreRequest.prototype.toJSON = function toJSON() { + LineageSubgraph.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetMetadataStoreRequest + * Gets the default type url for LineageSubgraph * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest + * @memberof google.cloud.aiplatform.v1.LineageSubgraph * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + LineageSubgraph.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetMetadataStoreRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.LineageSubgraph"; }; - return GetMetadataStoreRequest; + return LineageSubgraph; })(); - v1.ListMetadataStoresRequest = (function() { + v1.MetadataSchema = (function() { /** - * Properties of a ListMetadataStoresRequest. + * Properties of a MetadataSchema. * @memberof google.cloud.aiplatform.v1 - * @interface IListMetadataStoresRequest - * @property {string|null} [parent] ListMetadataStoresRequest parent - * @property {number|null} [pageSize] ListMetadataStoresRequest pageSize - * @property {string|null} [pageToken] ListMetadataStoresRequest pageToken + * @interface IMetadataSchema + * @property {string|null} [name] MetadataSchema name + * @property {string|null} [schemaVersion] MetadataSchema schemaVersion + * @property {string|null} [schema] MetadataSchema schema + * @property {google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType|null} [schemaType] MetadataSchema schemaType + * @property {google.protobuf.ITimestamp|null} [createTime] MetadataSchema createTime + * @property {string|null} [description] MetadataSchema description */ /** - * Constructs a new ListMetadataStoresRequest. + * Constructs a new MetadataSchema. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListMetadataStoresRequest. - * @implements IListMetadataStoresRequest + * @classdesc Represents a MetadataSchema. + * @implements IMetadataSchema * @constructor - * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IMetadataSchema=} [properties] Properties to set */ - function ListMetadataStoresRequest(properties) { + function MetadataSchema(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -93673,103 +97839,145 @@ } /** - * ListMetadataStoresRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * MetadataSchema name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @instance */ - ListMetadataStoresRequest.prototype.parent = ""; + MetadataSchema.prototype.name = ""; /** - * ListMetadataStoresRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * MetadataSchema schemaVersion. + * @member {string} schemaVersion + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @instance */ - ListMetadataStoresRequest.prototype.pageSize = 0; + MetadataSchema.prototype.schemaVersion = ""; /** - * ListMetadataStoresRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * MetadataSchema schema. + * @member {string} schema + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @instance */ - ListMetadataStoresRequest.prototype.pageToken = ""; + MetadataSchema.prototype.schema = ""; /** - * Creates a new ListMetadataStoresRequest instance using the specified properties. + * MetadataSchema schemaType. + * @member {google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType} schemaType + * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @instance + */ + MetadataSchema.prototype.schemaType = 0; + + /** + * MetadataSchema createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @instance + */ + MetadataSchema.prototype.createTime = null; + + /** + * MetadataSchema description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1.MetadataSchema + * @instance + */ + MetadataSchema.prototype.description = ""; + + /** + * Creates a new MetadataSchema instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @static - * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListMetadataStoresRequest} ListMetadataStoresRequest instance + * @param {google.cloud.aiplatform.v1.IMetadataSchema=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MetadataSchema} MetadataSchema instance */ - ListMetadataStoresRequest.create = function create(properties) { - return new ListMetadataStoresRequest(properties); + MetadataSchema.create = function create(properties) { + return new MetadataSchema(properties); }; /** - * Encodes the specified ListMetadataStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresRequest.verify|verify} messages. + * Encodes the specified MetadataSchema message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataSchema.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @static - * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest} message ListMetadataStoresRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMetadataSchema} message MetadataSchema message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataStoresRequest.encode = function encode(message, writer) { + MetadataSchema.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.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.schemaVersion != null && Object.hasOwnProperty.call(message, "schemaVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.schemaVersion); + if (message.schema != null && Object.hasOwnProperty.call(message, "schema")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.schema); + if (message.schemaType != null && Object.hasOwnProperty.call(message, "schemaType")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.schemaType); + 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.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); return writer; }; /** - * Encodes the specified ListMetadataStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresRequest.verify|verify} messages. + * Encodes the specified MetadataSchema message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataSchema.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @static - * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest} message ListMetadataStoresRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMetadataSchema} message MetadataSchema message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataStoresRequest.encodeDelimited = function encodeDelimited(message, writer) { + MetadataSchema.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMetadataStoresRequest message from the specified reader or buffer. + * Decodes a MetadataSchema message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @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.ListMetadataStoresRequest} ListMetadataStoresRequest + * @returns {google.cloud.aiplatform.v1.MetadataSchema} MetadataSchema * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataStoresRequest.decode = function decode(reader, length) { + MetadataSchema.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.ListMetadataStoresRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MetadataSchema(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); + message.schemaVersion = reader.string(); break; } case 3: { - message.pageToken = reader.string(); + message.schema = reader.string(); + break; + } + case 4: { + message.schemaType = reader.int32(); + break; + } + case 5: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.description = reader.string(); break; } default: @@ -93781,1284 +97989,1308 @@ }; /** - * Decodes a ListMetadataStoresRequest message from the specified reader or buffer, length delimited. + * Decodes a MetadataSchema message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListMetadataStoresRequest} ListMetadataStoresRequest + * @returns {google.cloud.aiplatform.v1.MetadataSchema} MetadataSchema * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataStoresRequest.decodeDelimited = function decodeDelimited(reader) { + MetadataSchema.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListMetadataStoresRequest message. + * Verifies a MetadataSchema message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListMetadataStoresRequest.verify = function verify(message) { + MetadataSchema.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.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) + if (!$util.isString(message.schemaVersion)) + return "schemaVersion: string expected"; + if (message.schema != null && message.hasOwnProperty("schema")) + if (!$util.isString(message.schema)) + return "schema: string expected"; + if (message.schemaType != null && message.hasOwnProperty("schemaType")) + switch (message.schemaType) { + default: + return "schemaType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates a ListMetadataStoresRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MetadataSchema message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListMetadataStoresRequest} ListMetadataStoresRequest + * @returns {google.cloud.aiplatform.v1.MetadataSchema} MetadataSchema */ - ListMetadataStoresRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListMetadataStoresRequest) + MetadataSchema.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MetadataSchema) return object; - var message = new $root.google.cloud.aiplatform.v1.ListMetadataStoresRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.aiplatform.v1.MetadataSchema(); + if (object.name != null) + message.name = String(object.name); + if (object.schemaVersion != null) + message.schemaVersion = String(object.schemaVersion); + if (object.schema != null) + message.schema = String(object.schema); + switch (object.schemaType) { + default: + if (typeof object.schemaType === "number") { + message.schemaType = object.schemaType; + break; + } + break; + case "METADATA_SCHEMA_TYPE_UNSPECIFIED": + case 0: + message.schemaType = 0; + break; + case "ARTIFACT_TYPE": + case 1: + message.schemaType = 1; + break; + case "EXECUTION_TYPE": + case 2: + message.schemaType = 2; + break; + case "CONTEXT_TYPE": + case 3: + message.schemaType = 3; + break; + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MetadataSchema.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from a ListMetadataStoresRequest message. Also converts values to other types if specified. + * Creates a plain object from a MetadataSchema message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @static - * @param {google.cloud.aiplatform.v1.ListMetadataStoresRequest} message ListMetadataStoresRequest + * @param {google.cloud.aiplatform.v1.MetadataSchema} message MetadataSchema * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListMetadataStoresRequest.toObject = function toObject(message, options) { + MetadataSchema.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; + object.name = ""; + object.schemaVersion = ""; + object.schema = ""; + object.schemaType = options.enums === String ? "METADATA_SCHEMA_TYPE_UNSPECIFIED" : 0; + object.createTime = null; + object.description = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) + object.schemaVersion = message.schemaVersion; + if (message.schema != null && message.hasOwnProperty("schema")) + object.schema = message.schema; + if (message.schemaType != null && message.hasOwnProperty("schemaType")) + object.schemaType = options.enums === String ? $root.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType[message.schemaType] === undefined ? message.schemaType : $root.google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType[message.schemaType] : message.schemaType; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; return object; }; /** - * Converts this ListMetadataStoresRequest to JSON. + * Converts this MetadataSchema to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @instance * @returns {Object.} JSON object */ - ListMetadataStoresRequest.prototype.toJSON = function toJSON() { + MetadataSchema.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListMetadataStoresRequest + * Gets the default type url for MetadataSchema * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @memberof google.cloud.aiplatform.v1.MetadataSchema * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListMetadataStoresRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MetadataSchema.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListMetadataStoresRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MetadataSchema"; }; - return ListMetadataStoresRequest; + /** + * MetadataSchemaType enum. + * @name google.cloud.aiplatform.v1.MetadataSchema.MetadataSchemaType + * @enum {number} + * @property {number} METADATA_SCHEMA_TYPE_UNSPECIFIED=0 METADATA_SCHEMA_TYPE_UNSPECIFIED value + * @property {number} ARTIFACT_TYPE=1 ARTIFACT_TYPE value + * @property {number} EXECUTION_TYPE=2 EXECUTION_TYPE value + * @property {number} CONTEXT_TYPE=3 CONTEXT_TYPE value + */ + MetadataSchema.MetadataSchemaType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "METADATA_SCHEMA_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ARTIFACT_TYPE"] = 1; + values[valuesById[2] = "EXECUTION_TYPE"] = 2; + values[valuesById[3] = "CONTEXT_TYPE"] = 3; + return values; + })(); + + return MetadataSchema; })(); - v1.ListMetadataStoresResponse = (function() { + v1.MetadataService = (function() { /** - * Properties of a ListMetadataStoresResponse. + * Constructs a new MetadataService service. * @memberof google.cloud.aiplatform.v1 - * @interface IListMetadataStoresResponse - * @property {Array.|null} [metadataStores] ListMetadataStoresResponse metadataStores - * @property {string|null} [nextPageToken] ListMetadataStoresResponse nextPageToken + * @classdesc Represents a MetadataService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function MetadataService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (MetadataService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MetadataService; /** - * Constructs a new ListMetadataStoresResponse. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListMetadataStoresResponse. - * @implements IListMetadataStoresResponse - * @constructor - * @param {google.cloud.aiplatform.v1.IListMetadataStoresResponse=} [properties] Properties to set + * Creates new MetadataService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.MetadataService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {MetadataService} RPC service. Useful where requests and/or responses are streamed. */ - function ListMetadataStoresResponse(properties) { - this.metadataStores = []; - 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]]; - } + MetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * ListMetadataStoresResponse metadataStores. - * @member {Array.} metadataStores - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createMetadataStore}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef CreateMetadataStoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ListMetadataStoresResponse.prototype.metadataStores = $util.emptyArray; /** - * ListMetadataStoresResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse + * Calls CreateMetadataStore. + * @function createMetadataStore + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest} request CreateMetadataStoreRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.CreateMetadataStoreCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListMetadataStoresResponse.prototype.nextPageToken = ""; + Object.defineProperty(MetadataService.prototype.createMetadataStore = function createMetadataStore(request, callback) { + return this.rpcCall(createMetadataStore, $root.google.cloud.aiplatform.v1.CreateMetadataStoreRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateMetadataStore" }); /** - * Creates a new ListMetadataStoresResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @static - * @param {google.cloud.aiplatform.v1.IListMetadataStoresResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListMetadataStoresResponse} ListMetadataStoresResponse instance + * Calls CreateMetadataStore. + * @function createMetadataStore + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest} request CreateMetadataStoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListMetadataStoresResponse.create = function create(properties) { - return new ListMetadataStoresResponse(properties); - }; /** - * Encodes the specified ListMetadataStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @static - * @param {google.cloud.aiplatform.v1.IListMetadataStoresResponse} message ListMetadataStoresResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getMetadataStore}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef GetMetadataStoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.MetadataStore} [response] MetadataStore */ - ListMetadataStoresResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metadataStores != null && message.metadataStores.length) - for (var i = 0; i < message.metadataStores.length; ++i) - $root.google.cloud.aiplatform.v1.MetadataStore.encode(message.metadataStores[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; /** - * Encodes the specified ListMetadataStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @static - * @param {google.cloud.aiplatform.v1.IListMetadataStoresResponse} message ListMetadataStoresResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetMetadataStore. + * @function getMetadataStore + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest} request GetMetadataStoreRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.GetMetadataStoreCallback} callback Node-style callback called with the error, if any, and MetadataStore + * @returns {undefined} + * @variation 1 */ - ListMetadataStoresResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(MetadataService.prototype.getMetadataStore = function getMetadataStore(request, callback) { + return this.rpcCall(getMetadataStore, $root.google.cloud.aiplatform.v1.GetMetadataStoreRequest, $root.google.cloud.aiplatform.v1.MetadataStore, request, callback); + }, "name", { value: "GetMetadataStore" }); /** - * Decodes a ListMetadataStoresResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @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.ListMetadataStoresResponse} ListMetadataStoresResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetMetadataStore. + * @function getMetadataStore + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest} request GetMetadataStoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListMetadataStoresResponse.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.ListMetadataStoresResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.metadataStores && message.metadataStores.length)) - message.metadataStores = []; - message.metadataStores.push($root.google.cloud.aiplatform.v1.MetadataStore.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ListMetadataStoresResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListMetadataStoresResponse} ListMetadataStoresResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listMetadataStores}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef ListMetadataStoresCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListMetadataStoresResponse} [response] ListMetadataStoresResponse */ - ListMetadataStoresResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a ListMetadataStoresResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls ListMetadataStores. + * @function listMetadataStores + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest} request ListMetadataStoresRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.ListMetadataStoresCallback} callback Node-style callback called with the error, if any, and ListMetadataStoresResponse + * @returns {undefined} + * @variation 1 */ - ListMetadataStoresResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metadataStores != null && message.hasOwnProperty("metadataStores")) { - if (!Array.isArray(message.metadataStores)) - return "metadataStores: array expected"; - for (var i = 0; i < message.metadataStores.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.MetadataStore.verify(message.metadataStores[i]); - if (error) - return "metadataStores." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + Object.defineProperty(MetadataService.prototype.listMetadataStores = function listMetadataStores(request, callback) { + return this.rpcCall(listMetadataStores, $root.google.cloud.aiplatform.v1.ListMetadataStoresRequest, $root.google.cloud.aiplatform.v1.ListMetadataStoresResponse, request, callback); + }, "name", { value: "ListMetadataStores" }); /** - * Creates a ListMetadataStoresResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListMetadataStoresResponse} ListMetadataStoresResponse + * Calls ListMetadataStores. + * @function listMetadataStores + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest} request ListMetadataStoresRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListMetadataStoresResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListMetadataStoresResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1.ListMetadataStoresResponse(); - if (object.metadataStores) { - if (!Array.isArray(object.metadataStores)) - throw TypeError(".google.cloud.aiplatform.v1.ListMetadataStoresResponse.metadataStores: array expected"); - message.metadataStores = []; - for (var i = 0; i < object.metadataStores.length; ++i) { - if (typeof object.metadataStores[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListMetadataStoresResponse.metadataStores: object expected"); - message.metadataStores[i] = $root.google.cloud.aiplatform.v1.MetadataStore.fromObject(object.metadataStores[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; /** - * Creates a plain object from a ListMetadataStoresResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @static - * @param {google.cloud.aiplatform.v1.ListMetadataStoresResponse} message ListMetadataStoresResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteMetadataStore}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef DeleteMetadataStoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ListMetadataStoresResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.metadataStores = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.metadataStores && message.metadataStores.length) { - object.metadataStores = []; - for (var j = 0; j < message.metadataStores.length; ++j) - object.metadataStores[j] = $root.google.cloud.aiplatform.v1.MetadataStore.toObject(message.metadataStores[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; /** - * Converts this ListMetadataStoresResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse + * Calls DeleteMetadataStore. + * @function deleteMetadataStore + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest} request DeleteMetadataStoreRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.DeleteMetadataStoreCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListMetadataStoresResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(MetadataService.prototype.deleteMetadataStore = function deleteMetadataStore(request, callback) { + return this.rpcCall(deleteMetadataStore, $root.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteMetadataStore" }); /** - * Gets the default type url for ListMetadataStoresResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls DeleteMetadataStore. + * @function deleteMetadataStore + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest} request DeleteMetadataStoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListMetadataStoresResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListMetadataStoresResponse"; - }; - - return ListMetadataStoresResponse; - })(); - - v1.DeleteMetadataStoreRequest = (function() { /** - * Properties of a DeleteMetadataStoreRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteMetadataStoreRequest - * @property {string|null} [name] DeleteMetadataStoreRequest name - * @property {boolean|null} [force] DeleteMetadataStoreRequest force + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createArtifact}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef CreateArtifactCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Artifact} [response] Artifact */ /** - * Constructs a new DeleteMetadataStoreRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteMetadataStoreRequest. - * @implements IDeleteMetadataStoreRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest=} [properties] Properties to set + * Calls CreateArtifact. + * @function createArtifact + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.CreateArtifactCallback} callback Node-style callback called with the error, if any, and Artifact + * @returns {undefined} + * @variation 1 */ - function DeleteMetadataStoreRequest(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]]; - } + Object.defineProperty(MetadataService.prototype.createArtifact = function createArtifact(request, callback) { + return this.rpcCall(createArtifact, $root.google.cloud.aiplatform.v1.CreateArtifactRequest, $root.google.cloud.aiplatform.v1.Artifact, request, callback); + }, "name", { value: "CreateArtifact" }); /** - * DeleteMetadataStoreRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest + * Calls CreateArtifact. + * @function createArtifact + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest} request CreateArtifactRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreRequest.prototype.name = ""; /** - * DeleteMetadataStoreRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getArtifact}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef GetArtifactCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Artifact} [response] Artifact + */ + + /** + * Calls GetArtifact. + * @function getArtifact + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1.IGetArtifactRequest} request GetArtifactRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.GetArtifactCallback} callback Node-style callback called with the error, if any, and Artifact + * @returns {undefined} + * @variation 1 */ - DeleteMetadataStoreRequest.prototype.force = false; + Object.defineProperty(MetadataService.prototype.getArtifact = function getArtifact(request, callback) { + return this.rpcCall(getArtifact, $root.google.cloud.aiplatform.v1.GetArtifactRequest, $root.google.cloud.aiplatform.v1.Artifact, request, callback); + }, "name", { value: "GetArtifact" }); /** - * Creates a new DeleteMetadataStoreRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest instance + * Calls GetArtifact. + * @function getArtifact + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetArtifactRequest} request GetArtifactRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreRequest.create = function create(properties) { - return new DeleteMetadataStoreRequest(properties); - }; /** - * Encodes the specified DeleteMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest} message DeleteMetadataStoreRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listArtifacts}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef ListArtifactsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListArtifactsResponse} [response] ListArtifactsResponse */ - DeleteMetadataStoreRequest.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); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); - return writer; - }; /** - * Encodes the specified DeleteMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest} message DeleteMetadataStoreRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls ListArtifacts. + * @function listArtifacts + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IListArtifactsRequest} request ListArtifactsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.ListArtifactsCallback} callback Node-style callback called with the error, if any, and ListArtifactsResponse + * @returns {undefined} + * @variation 1 */ - DeleteMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(MetadataService.prototype.listArtifacts = function listArtifacts(request, callback) { + return this.rpcCall(listArtifacts, $root.google.cloud.aiplatform.v1.ListArtifactsRequest, $root.google.cloud.aiplatform.v1.ListArtifactsResponse, request, callback); + }, "name", { value: "ListArtifacts" }); /** - * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @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.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListArtifacts. + * @function listArtifacts + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IListArtifactsRequest} request ListArtifactsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreRequest.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.DeleteMetadataStoreRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.force = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateArtifact}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef UpdateArtifactCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Artifact} [response] Artifact */ - DeleteMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a DeleteMetadataStoreRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls UpdateArtifact. + * @function updateArtifact + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest} request UpdateArtifactRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.UpdateArtifactCallback} callback Node-style callback called with the error, if any, and Artifact + * @returns {undefined} + * @variation 1 */ - DeleteMetadataStoreRequest.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"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; - return null; - }; + Object.defineProperty(MetadataService.prototype.updateArtifact = function updateArtifact(request, callback) { + return this.rpcCall(updateArtifact, $root.google.cloud.aiplatform.v1.UpdateArtifactRequest, $root.google.cloud.aiplatform.v1.Artifact, request, callback); + }, "name", { value: "UpdateArtifact" }); /** - * Creates a DeleteMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest + * Calls UpdateArtifact. + * @function updateArtifact + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest} request UpdateArtifactRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); - return message; - }; /** - * Creates a plain object from a DeleteMetadataStoreRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @static - * @param {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} message DeleteMetadataStoreRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteArtifact}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef DeleteArtifactCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - DeleteMetadataStoreRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.force = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; - return object; - }; /** - * Converts this DeleteMetadataStoreRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest + * Calls DeleteArtifact. + * @function deleteArtifact + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.DeleteArtifactCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - DeleteMetadataStoreRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(MetadataService.prototype.deleteArtifact = function deleteArtifact(request, callback) { + return this.rpcCall(deleteArtifact, $root.google.cloud.aiplatform.v1.DeleteArtifactRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteArtifact" }); /** - * Gets the default type url for DeleteMetadataStoreRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls DeleteArtifact. + * @function deleteArtifact + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest} request DeleteArtifactRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteMetadataStoreRequest"; - }; - - return DeleteMetadataStoreRequest; - })(); - - v1.DeleteMetadataStoreOperationMetadata = (function() { /** - * Properties of a DeleteMetadataStoreOperationMetadata. - * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteMetadataStoreOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] DeleteMetadataStoreOperationMetadata genericMetadata + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeArtifacts}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef PurgeArtifactsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ /** - * Constructs a new DeleteMetadataStoreOperationMetadata. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteMetadataStoreOperationMetadata. - * @implements IDeleteMetadataStoreOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata=} [properties] Properties to set + * Calls PurgeArtifacts. + * @function purgeArtifacts + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest} request PurgeArtifactsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.PurgeArtifactsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - function DeleteMetadataStoreOperationMetadata(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]]; - } + Object.defineProperty(MetadataService.prototype.purgeArtifacts = function purgeArtifacts(request, callback) { + return this.rpcCall(purgeArtifacts, $root.google.cloud.aiplatform.v1.PurgeArtifactsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "PurgeArtifacts" }); /** - * DeleteMetadataStoreOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata + * Calls PurgeArtifacts. + * @function purgeArtifacts + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest} request PurgeArtifactsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new DeleteMetadataStoreOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata instance + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createContext}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef CreateContextCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Context} [response] Context */ - DeleteMetadataStoreOperationMetadata.create = function create(properties) { - return new DeleteMetadataStoreOperationMetadata(properties); - }; /** - * Encodes the specified DeleteMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateContext. + * @function createContext + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateContextRequest} request CreateContextRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.CreateContextCallback} callback Node-style callback called with the error, if any, and Context + * @returns {undefined} + * @variation 1 */ - DeleteMetadataStoreOperationMetadata.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; - }; + Object.defineProperty(MetadataService.prototype.createContext = function createContext(request, callback) { + return this.rpcCall(createContext, $root.google.cloud.aiplatform.v1.CreateContextRequest, $root.google.cloud.aiplatform.v1.Context, request, callback); + }, "name", { value: "CreateContext" }); /** - * Encodes the specified DeleteMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateContext. + * @function createContext + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateContextRequest} request CreateContextRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @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.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getContext}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef GetContextCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Context} [response] Context */ - DeleteMetadataStoreOperationMetadata.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.DeleteMetadataStoreOperationMetadata(); - 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 DeleteMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetContext. + * @function getContext + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetContextRequest} request GetContextRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.GetContextCallback} callback Node-style callback called with the error, if any, and Context + * @returns {undefined} + * @variation 1 */ - DeleteMetadataStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(MetadataService.prototype.getContext = function getContext(request, callback) { + return this.rpcCall(getContext, $root.google.cloud.aiplatform.v1.GetContextRequest, $root.google.cloud.aiplatform.v1.Context, request, callback); + }, "name", { value: "GetContext" }); /** - * Verifies a DeleteMetadataStoreOperationMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetContext. + * @function getContext + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetContextRequest} request GetContextRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreOperationMetadata.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 DeleteMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listContexts}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef ListContextsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListContextsResponse} [response] ListContextsResponse */ - DeleteMetadataStoreOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - return message; - }; /** - * Creates a plain object from a DeleteMetadataStoreOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ListContexts. + * @function listContexts + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IListContextsRequest} request ListContextsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.ListContextsCallback} callback Node-style callback called with the error, if any, and ListContextsResponse + * @returns {undefined} + * @variation 1 */ - DeleteMetadataStoreOperationMetadata.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; - }; + Object.defineProperty(MetadataService.prototype.listContexts = function listContexts(request, callback) { + return this.rpcCall(listContexts, $root.google.cloud.aiplatform.v1.ListContextsRequest, $root.google.cloud.aiplatform.v1.ListContextsResponse, request, callback); + }, "name", { value: "ListContexts" }); /** - * Converts this DeleteMetadataStoreOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata + * Calls ListContexts. + * @function listContexts + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IListContextsRequest} request ListContextsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteMetadataStoreOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for DeleteMetadataStoreOperationMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateContext}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef UpdateContextCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Context} [response] Context */ - DeleteMetadataStoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata"; - }; - - return DeleteMetadataStoreOperationMetadata; - })(); - - v1.CreateArtifactRequest = (function() { /** - * Properties of a CreateArtifactRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface ICreateArtifactRequest - * @property {string|null} [parent] CreateArtifactRequest parent - * @property {google.cloud.aiplatform.v1.IArtifact|null} [artifact] CreateArtifactRequest artifact - * @property {string|null} [artifactId] CreateArtifactRequest artifactId + * Calls UpdateContext. + * @function updateContext + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateContextRequest} request UpdateContextRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.UpdateContextCallback} callback Node-style callback called with the error, if any, and Context + * @returns {undefined} + * @variation 1 */ + Object.defineProperty(MetadataService.prototype.updateContext = function updateContext(request, callback) { + return this.rpcCall(updateContext, $root.google.cloud.aiplatform.v1.UpdateContextRequest, $root.google.cloud.aiplatform.v1.Context, request, callback); + }, "name", { value: "UpdateContext" }); /** - * Constructs a new CreateArtifactRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateArtifactRequest. - * @implements ICreateArtifactRequest - * @constructor - * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest=} [properties] Properties to set + * Calls UpdateContext. + * @function updateContext + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateContextRequest} request UpdateContextRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - function CreateArtifactRequest(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]]; - } /** - * CreateArtifactRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteContext}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef DeleteContextCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - CreateArtifactRequest.prototype.parent = ""; /** - * CreateArtifactRequest artifact. - * @member {google.cloud.aiplatform.v1.IArtifact|null|undefined} artifact - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest + * Calls DeleteContext. + * @function deleteContext + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1.IDeleteContextRequest} request DeleteContextRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.DeleteContextCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CreateArtifactRequest.prototype.artifact = null; + Object.defineProperty(MetadataService.prototype.deleteContext = function deleteContext(request, callback) { + return this.rpcCall(deleteContext, $root.google.cloud.aiplatform.v1.DeleteContextRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteContext" }); /** - * CreateArtifactRequest artifactId. - * @member {string} artifactId - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest + * Calls DeleteContext. + * @function deleteContext + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance + * @param {google.cloud.aiplatform.v1.IDeleteContextRequest} request DeleteContextRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateArtifactRequest.prototype.artifactId = ""; /** - * Creates a new CreateArtifactRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateArtifactRequest} CreateArtifactRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeContexts}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef PurgeContextsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - CreateArtifactRequest.create = function create(properties) { - return new CreateArtifactRequest(properties); - }; /** - * Encodes the specified CreateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateArtifactRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest} message CreateArtifactRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls PurgeContexts. + * @function purgeContexts + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest} request PurgeContextsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.PurgeContextsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CreateArtifactRequest.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.artifact != null && Object.hasOwnProperty.call(message, "artifact")) - $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifact, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.artifactId); - return writer; - }; + Object.defineProperty(MetadataService.prototype.purgeContexts = function purgeContexts(request, callback) { + return this.rpcCall(purgeContexts, $root.google.cloud.aiplatform.v1.PurgeContextsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "PurgeContexts" }); /** - * Encodes the specified CreateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateArtifactRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest} message CreateArtifactRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls PurgeContexts. + * @function purgeContexts + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest} request PurgeContextsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a CreateArtifactRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @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.CreateArtifactRequest} CreateArtifactRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addContextArtifactsAndExecutions}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef AddContextArtifactsAndExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} [response] AddContextArtifactsAndExecutionsResponse */ - CreateArtifactRequest.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.CreateArtifactRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.artifact = $root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32()); - break; - } - case 3: { - message.artifactId = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a CreateArtifactRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateArtifactRequest} CreateArtifactRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls AddContextArtifactsAndExecutions. + * @function addContextArtifactsAndExecutions + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest} request AddContextArtifactsAndExecutionsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.AddContextArtifactsAndExecutionsCallback} callback Node-style callback called with the error, if any, and AddContextArtifactsAndExecutionsResponse + * @returns {undefined} + * @variation 1 */ - CreateArtifactRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(MetadataService.prototype.addContextArtifactsAndExecutions = function addContextArtifactsAndExecutions(request, callback) { + return this.rpcCall(addContextArtifactsAndExecutions, $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest, $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse, request, callback); + }, "name", { value: "AddContextArtifactsAndExecutions" }); /** - * Verifies a CreateArtifactRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls AddContextArtifactsAndExecutions. + * @function addContextArtifactsAndExecutions + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest} request AddContextArtifactsAndExecutionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateArtifactRequest.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.artifact != null && message.hasOwnProperty("artifact")) { - var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifact); - if (error) - return "artifact." + error; - } - if (message.artifactId != null && message.hasOwnProperty("artifactId")) - if (!$util.isString(message.artifactId)) - return "artifactId: string expected"; - return null; - }; /** - * Creates a CreateArtifactRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateArtifactRequest} CreateArtifactRequest + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addContextChildren}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef AddContextChildrenCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.AddContextChildrenResponse} [response] AddContextChildrenResponse */ - CreateArtifactRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateArtifactRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.CreateArtifactRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.artifact != null) { - if (typeof object.artifact !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateArtifactRequest.artifact: object expected"); - message.artifact = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifact); - } - if (object.artifactId != null) - message.artifactId = String(object.artifactId); - return message; - }; /** - * Creates a plain object from a CreateArtifactRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @static - * @param {google.cloud.aiplatform.v1.CreateArtifactRequest} message CreateArtifactRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls AddContextChildren. + * @function addContextChildren + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest} request AddContextChildrenRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.AddContextChildrenCallback} callback Node-style callback called with the error, if any, and AddContextChildrenResponse + * @returns {undefined} + * @variation 1 */ - CreateArtifactRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.artifact = null; - object.artifactId = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.artifact != null && message.hasOwnProperty("artifact")) - object.artifact = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifact, options); - if (message.artifactId != null && message.hasOwnProperty("artifactId")) - object.artifactId = message.artifactId; - return object; - }; + Object.defineProperty(MetadataService.prototype.addContextChildren = function addContextChildren(request, callback) { + return this.rpcCall(addContextChildren, $root.google.cloud.aiplatform.v1.AddContextChildrenRequest, $root.google.cloud.aiplatform.v1.AddContextChildrenResponse, request, callback); + }, "name", { value: "AddContextChildren" }); /** - * Converts this CreateArtifactRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest + * Calls AddContextChildren. + * @function addContextChildren + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest} request AddContextChildrenRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateArtifactRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for CreateArtifactRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|removeContextChildren}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef RemoveContextChildrenCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} [response] RemoveContextChildrenResponse */ - CreateArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateArtifactRequest"; - }; - - return CreateArtifactRequest; - })(); - - v1.GetArtifactRequest = (function() { /** - * Properties of a GetArtifactRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IGetArtifactRequest - * @property {string|null} [name] GetArtifactRequest name + * Calls RemoveContextChildren. + * @function removeContextChildren + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} request RemoveContextChildrenRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.RemoveContextChildrenCallback} callback Node-style callback called with the error, if any, and RemoveContextChildrenResponse + * @returns {undefined} + * @variation 1 */ + Object.defineProperty(MetadataService.prototype.removeContextChildren = function removeContextChildren(request, callback) { + return this.rpcCall(removeContextChildren, $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest, $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse, request, callback); + }, "name", { value: "RemoveContextChildren" }); /** - * Constructs a new GetArtifactRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetArtifactRequest. - * @implements IGetArtifactRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IGetArtifactRequest=} [properties] Properties to set + * Calls RemoveContextChildren. + * @function removeContextChildren + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} request RemoveContextChildrenRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - function GetArtifactRequest(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]]; - } /** - * GetArtifactRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryContextLineageSubgraph}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef QueryContextLineageSubgraphCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.LineageSubgraph} [response] LineageSubgraph */ - GetArtifactRequest.prototype.name = ""; /** - * Creates a new GetArtifactRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetArtifactRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetArtifactRequest} GetArtifactRequest instance + * Calls QueryContextLineageSubgraph. + * @function queryContextLineageSubgraph + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest} request QueryContextLineageSubgraphRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.QueryContextLineageSubgraphCallback} callback Node-style callback called with the error, if any, and LineageSubgraph + * @returns {undefined} + * @variation 1 */ - GetArtifactRequest.create = function create(properties) { - return new GetArtifactRequest(properties); - }; + Object.defineProperty(MetadataService.prototype.queryContextLineageSubgraph = function queryContextLineageSubgraph(request, callback) { + return this.rpcCall(queryContextLineageSubgraph, $root.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest, $root.google.cloud.aiplatform.v1.LineageSubgraph, request, callback); + }, "name", { value: "QueryContextLineageSubgraph" }); /** - * Encodes the specified GetArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetArtifactRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetArtifactRequest} message GetArtifactRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls QueryContextLineageSubgraph. + * @function queryContextLineageSubgraph + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest} request QueryContextLineageSubgraphRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetArtifactRequest.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 GetArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetArtifactRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetArtifactRequest} message GetArtifactRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createExecution}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef CreateExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Execution} [response] Execution */ - GetArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a GetArtifactRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @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.GetArtifactRequest} GetArtifactRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateExecution. + * @function createExecution + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest} request CreateExecutionRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.CreateExecutionCallback} callback Node-style callback called with the error, if any, and Execution + * @returns {undefined} + * @variation 1 */ - GetArtifactRequest.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.GetArtifactRequest(); - 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; - }; + Object.defineProperty(MetadataService.prototype.createExecution = function createExecution(request, callback) { + return this.rpcCall(createExecution, $root.google.cloud.aiplatform.v1.CreateExecutionRequest, $root.google.cloud.aiplatform.v1.Execution, request, callback); + }, "name", { value: "CreateExecution" }); /** - * Decodes a GetArtifactRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetArtifactRequest} GetArtifactRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateExecution. + * @function createExecution + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest} request CreateExecutionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetArtifactRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a GetArtifactRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getExecution}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef GetExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Execution} [response] Execution */ - GetArtifactRequest.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 GetArtifactRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetArtifactRequest} GetArtifactRequest + * Calls GetExecution. + * @function getExecution + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetExecutionRequest} request GetExecutionRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.GetExecutionCallback} callback Node-style callback called with the error, if any, and Execution + * @returns {undefined} + * @variation 1 */ - GetArtifactRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetArtifactRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.GetArtifactRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + Object.defineProperty(MetadataService.prototype.getExecution = function getExecution(request, callback) { + return this.rpcCall(getExecution, $root.google.cloud.aiplatform.v1.GetExecutionRequest, $root.google.cloud.aiplatform.v1.Execution, request, callback); + }, "name", { value: "GetExecution" }); /** - * Creates a plain object from a GetArtifactRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @static - * @param {google.cloud.aiplatform.v1.GetArtifactRequest} message GetArtifactRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetExecution. + * @function getExecution + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetExecutionRequest} request GetExecutionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetArtifactRequest.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 GetArtifactRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listExecutions}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef ListExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListExecutionsResponse} [response] ListExecutionsResponse + */ + + /** + * Calls ListExecutions. + * @function listExecutions + * @memberof google.cloud.aiplatform.v1.MetadataService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IListExecutionsRequest} request ListExecutionsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.ListExecutionsCallback} callback Node-style callback called with the error, if any, and ListExecutionsResponse + * @returns {undefined} + * @variation 1 */ - GetArtifactRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(MetadataService.prototype.listExecutions = function listExecutions(request, callback) { + return this.rpcCall(listExecutions, $root.google.cloud.aiplatform.v1.ListExecutionsRequest, $root.google.cloud.aiplatform.v1.ListExecutionsResponse, request, callback); + }, "name", { value: "ListExecutions" }); /** - * Gets the default type url for GetArtifactRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetArtifactRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls ListExecutions. + * @function listExecutions + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IListExecutionsRequest} request ListExecutionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetArtifactRequest"; - }; - return GetArtifactRequest; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|updateExecution}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef UpdateExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Execution} [response] Execution + */ + + /** + * Calls UpdateExecution. + * @function updateExecution + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest} request UpdateExecutionRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.UpdateExecutionCallback} callback Node-style callback called with the error, if any, and Execution + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.updateExecution = function updateExecution(request, callback) { + return this.rpcCall(updateExecution, $root.google.cloud.aiplatform.v1.UpdateExecutionRequest, $root.google.cloud.aiplatform.v1.Execution, request, callback); + }, "name", { value: "UpdateExecution" }); + + /** + * Calls UpdateExecution. + * @function updateExecution + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest} request UpdateExecutionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|deleteExecution}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef DeleteExecutionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteExecution. + * @function deleteExecution + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest} request DeleteExecutionRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.DeleteExecutionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.deleteExecution = function deleteExecution(request, callback) { + return this.rpcCall(deleteExecution, $root.google.cloud.aiplatform.v1.DeleteExecutionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteExecution" }); + + /** + * Calls DeleteExecution. + * @function deleteExecution + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest} request DeleteExecutionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|purgeExecutions}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef PurgeExecutionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls PurgeExecutions. + * @function purgeExecutions + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest} request PurgeExecutionsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.PurgeExecutionsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.purgeExecutions = function purgeExecutions(request, callback) { + return this.rpcCall(purgeExecutions, $root.google.cloud.aiplatform.v1.PurgeExecutionsRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "PurgeExecutions" }); + + /** + * Calls PurgeExecutions. + * @function purgeExecutions + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest} request PurgeExecutionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|addExecutionEvents}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef AddExecutionEventsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.AddExecutionEventsResponse} [response] AddExecutionEventsResponse + */ + + /** + * Calls AddExecutionEvents. + * @function addExecutionEvents + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest} request AddExecutionEventsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.AddExecutionEventsCallback} callback Node-style callback called with the error, if any, and AddExecutionEventsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.addExecutionEvents = function addExecutionEvents(request, callback) { + return this.rpcCall(addExecutionEvents, $root.google.cloud.aiplatform.v1.AddExecutionEventsRequest, $root.google.cloud.aiplatform.v1.AddExecutionEventsResponse, request, callback); + }, "name", { value: "AddExecutionEvents" }); + + /** + * Calls AddExecutionEvents. + * @function addExecutionEvents + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest} request AddExecutionEventsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryExecutionInputsAndOutputs}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef QueryExecutionInputsAndOutputsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.LineageSubgraph} [response] LineageSubgraph + */ + + /** + * Calls QueryExecutionInputsAndOutputs. + * @function queryExecutionInputsAndOutputs + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest} request QueryExecutionInputsAndOutputsRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.QueryExecutionInputsAndOutputsCallback} callback Node-style callback called with the error, if any, and LineageSubgraph + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.queryExecutionInputsAndOutputs = function queryExecutionInputsAndOutputs(request, callback) { + return this.rpcCall(queryExecutionInputsAndOutputs, $root.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest, $root.google.cloud.aiplatform.v1.LineageSubgraph, request, callback); + }, "name", { value: "QueryExecutionInputsAndOutputs" }); + + /** + * Calls QueryExecutionInputsAndOutputs. + * @function queryExecutionInputsAndOutputs + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest} request QueryExecutionInputsAndOutputsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|createMetadataSchema}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef CreateMetadataSchemaCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.MetadataSchema} [response] MetadataSchema + */ + + /** + * Calls CreateMetadataSchema. + * @function createMetadataSchema + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest} request CreateMetadataSchemaRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.CreateMetadataSchemaCallback} callback Node-style callback called with the error, if any, and MetadataSchema + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.createMetadataSchema = function createMetadataSchema(request, callback) { + return this.rpcCall(createMetadataSchema, $root.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest, $root.google.cloud.aiplatform.v1.MetadataSchema, request, callback); + }, "name", { value: "CreateMetadataSchema" }); + + /** + * Calls CreateMetadataSchema. + * @function createMetadataSchema + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest} request CreateMetadataSchemaRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|getMetadataSchema}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef GetMetadataSchemaCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.MetadataSchema} [response] MetadataSchema + */ + + /** + * Calls GetMetadataSchema. + * @function getMetadataSchema + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest} request GetMetadataSchemaRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.GetMetadataSchemaCallback} callback Node-style callback called with the error, if any, and MetadataSchema + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.getMetadataSchema = function getMetadataSchema(request, callback) { + return this.rpcCall(getMetadataSchema, $root.google.cloud.aiplatform.v1.GetMetadataSchemaRequest, $root.google.cloud.aiplatform.v1.MetadataSchema, request, callback); + }, "name", { value: "GetMetadataSchema" }); + + /** + * Calls GetMetadataSchema. + * @function getMetadataSchema + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest} request GetMetadataSchemaRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|listMetadataSchemas}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef ListMetadataSchemasCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} [response] ListMetadataSchemasResponse + */ + + /** + * Calls ListMetadataSchemas. + * @function listMetadataSchemas + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest} request ListMetadataSchemasRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.ListMetadataSchemasCallback} callback Node-style callback called with the error, if any, and ListMetadataSchemasResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.listMetadataSchemas = function listMetadataSchemas(request, callback) { + return this.rpcCall(listMetadataSchemas, $root.google.cloud.aiplatform.v1.ListMetadataSchemasRequest, $root.google.cloud.aiplatform.v1.ListMetadataSchemasResponse, request, callback); + }, "name", { value: "ListMetadataSchemas" }); + + /** + * Calls ListMetadataSchemas. + * @function listMetadataSchemas + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest} request ListMetadataSchemasRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MetadataService|queryArtifactLineageSubgraph}. + * @memberof google.cloud.aiplatform.v1.MetadataService + * @typedef QueryArtifactLineageSubgraphCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.LineageSubgraph} [response] LineageSubgraph + */ + + /** + * Calls QueryArtifactLineageSubgraph. + * @function queryArtifactLineageSubgraph + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest} request QueryArtifactLineageSubgraphRequest message or plain object + * @param {google.cloud.aiplatform.v1.MetadataService.QueryArtifactLineageSubgraphCallback} callback Node-style callback called with the error, if any, and LineageSubgraph + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MetadataService.prototype.queryArtifactLineageSubgraph = function queryArtifactLineageSubgraph(request, callback) { + return this.rpcCall(queryArtifactLineageSubgraph, $root.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest, $root.google.cloud.aiplatform.v1.LineageSubgraph, request, callback); + }, "name", { value: "QueryArtifactLineageSubgraph" }); + + /** + * Calls QueryArtifactLineageSubgraph. + * @function queryArtifactLineageSubgraph + * @memberof google.cloud.aiplatform.v1.MetadataService + * @instance + * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest} request QueryArtifactLineageSubgraphRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return MetadataService; })(); - v1.ListArtifactsRequest = (function() { + v1.CreateMetadataStoreRequest = (function() { /** - * Properties of a ListArtifactsRequest. + * Properties of a CreateMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListArtifactsRequest - * @property {string|null} [parent] ListArtifactsRequest parent - * @property {number|null} [pageSize] ListArtifactsRequest pageSize - * @property {string|null} [pageToken] ListArtifactsRequest pageToken - * @property {string|null} [filter] ListArtifactsRequest filter - * @property {string|null} [orderBy] ListArtifactsRequest orderBy + * @interface ICreateMetadataStoreRequest + * @property {string|null} [parent] CreateMetadataStoreRequest parent + * @property {google.cloud.aiplatform.v1.IMetadataStore|null} [metadataStore] CreateMetadataStoreRequest metadataStore + * @property {string|null} [metadataStoreId] CreateMetadataStoreRequest metadataStoreId */ /** - * Constructs a new ListArtifactsRequest. + * Constructs a new CreateMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListArtifactsRequest. - * @implements IListArtifactsRequest + * @classdesc Represents a CreateMetadataStoreRequest. + * @implements ICreateMetadataStoreRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListArtifactsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest=} [properties] Properties to set */ - function ListArtifactsRequest(properties) { + function CreateMetadataStoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95066,110 +99298,90 @@ } /** - * ListArtifactsRequest parent. + * CreateMetadataStoreRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest - * @instance - */ - ListArtifactsRequest.prototype.parent = ""; - - /** - * ListArtifactsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest - * @instance - */ - ListArtifactsRequest.prototype.pageSize = 0; - - /** - * ListArtifactsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @instance */ - ListArtifactsRequest.prototype.pageToken = ""; + CreateMetadataStoreRequest.prototype.parent = ""; /** - * ListArtifactsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * CreateMetadataStoreRequest metadataStore. + * @member {google.cloud.aiplatform.v1.IMetadataStore|null|undefined} metadataStore + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @instance */ - ListArtifactsRequest.prototype.filter = ""; + CreateMetadataStoreRequest.prototype.metadataStore = null; /** - * ListArtifactsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * CreateMetadataStoreRequest metadataStoreId. + * @member {string} metadataStoreId + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @instance */ - ListArtifactsRequest.prototype.orderBy = ""; + CreateMetadataStoreRequest.prototype.metadataStoreId = ""; /** - * Creates a new ListArtifactsRequest instance using the specified properties. + * Creates a new CreateMetadataStoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IListArtifactsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListArtifactsRequest} ListArtifactsRequest instance + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} CreateMetadataStoreRequest instance */ - ListArtifactsRequest.create = function create(properties) { - return new ListArtifactsRequest(properties); + CreateMetadataStoreRequest.create = function create(properties) { + return new CreateMetadataStoreRequest(properties); }; /** - * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsRequest.verify|verify} messages. + * Encodes the specified CreateMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IListArtifactsRequest} message ListArtifactsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest} message CreateMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsRequest.encode = function encode(message, writer) { + CreateMetadataStoreRequest.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.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.metadataStore != null && Object.hasOwnProperty.call(message, "metadataStore")) + $root.google.cloud.aiplatform.v1.MetadataStore.encode(message.metadataStore, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metadataStoreId != null && Object.hasOwnProperty.call(message, "metadataStoreId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataStoreId); return writer; }; /** - * Encodes the specified ListArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsRequest.verify|verify} messages. + * Encodes the specified CreateMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IListArtifactsRequest} message ListArtifactsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreRequest} message CreateMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer. + * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @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.ListArtifactsRequest} ListArtifactsRequest + * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} CreateMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsRequest.decode = function decode(reader, length) { + CreateMetadataStoreRequest.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.ListArtifactsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateMetadataStoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -95178,19 +99390,11 @@ break; } case 2: { - message.pageSize = reader.int32(); + message.metadataStore = $root.google.cloud.aiplatform.v1.MetadataStore.decode(reader, reader.uint32()); break; } case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); - break; - } - case 5: { - message.orderBy = reader.string(); + message.metadataStoreId = reader.string(); break; } default: @@ -95202,157 +99406,144 @@ }; /** - * Decodes a ListArtifactsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataStoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListArtifactsRequest} ListArtifactsRequest + * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} CreateMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListArtifactsRequest message. + * Verifies a CreateMetadataStoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListArtifactsRequest.verify = function verify(message) { + CreateMetadataStoreRequest.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.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.metadataStore != null && message.hasOwnProperty("metadataStore")) { + var error = $root.google.cloud.aiplatform.v1.MetadataStore.verify(message.metadataStore); + if (error) + return "metadataStore." + error; + } + if (message.metadataStoreId != null && message.hasOwnProperty("metadataStoreId")) + if (!$util.isString(message.metadataStoreId)) + return "metadataStoreId: string expected"; return null; }; /** - * Creates a ListArtifactsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListArtifactsRequest} ListArtifactsRequest + * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} CreateMetadataStoreRequest */ - ListArtifactsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListArtifactsRequest) + CreateMetadataStoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateMetadataStoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListArtifactsRequest(); + var message = new $root.google.cloud.aiplatform.v1.CreateMetadataStoreRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + if (object.metadataStore != null) { + if (typeof object.metadataStore !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateMetadataStoreRequest.metadataStore: object expected"); + message.metadataStore = $root.google.cloud.aiplatform.v1.MetadataStore.fromObject(object.metadataStore); + } + if (object.metadataStoreId != null) + message.metadataStoreId = String(object.metadataStoreId); return message; }; /** - * Creates a plain object from a ListArtifactsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateMetadataStoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.ListArtifactsRequest} message ListArtifactsRequest + * @param {google.cloud.aiplatform.v1.CreateMetadataStoreRequest} message CreateMetadataStoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListArtifactsRequest.toObject = function toObject(message, options) { + CreateMetadataStoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; + object.metadataStore = null; + object.metadataStoreId = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (message.metadataStore != null && message.hasOwnProperty("metadataStore")) + object.metadataStore = $root.google.cloud.aiplatform.v1.MetadataStore.toObject(message.metadataStore, options); + if (message.metadataStoreId != null && message.hasOwnProperty("metadataStoreId")) + object.metadataStoreId = message.metadataStoreId; return object; }; /** - * Converts this ListArtifactsRequest to JSON. + * Converts this CreateMetadataStoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @instance * @returns {Object.} JSON object */ - ListArtifactsRequest.prototype.toJSON = function toJSON() { + CreateMetadataStoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListArtifactsRequest + * Gets the default type url for CreateMetadataStoreRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListArtifactsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListArtifactsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateMetadataStoreRequest"; }; - return ListArtifactsRequest; + return CreateMetadataStoreRequest; })(); - v1.ListArtifactsResponse = (function() { + v1.CreateMetadataStoreOperationMetadata = (function() { /** - * Properties of a ListArtifactsResponse. + * Properties of a CreateMetadataStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IListArtifactsResponse - * @property {Array.|null} [artifacts] ListArtifactsResponse artifacts - * @property {string|null} [nextPageToken] ListArtifactsResponse nextPageToken + * @interface ICreateMetadataStoreOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CreateMetadataStoreOperationMetadata genericMetadata */ /** - * Constructs a new ListArtifactsResponse. + * Constructs a new CreateMetadataStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListArtifactsResponse. - * @implements IListArtifactsResponse + * @classdesc Represents a CreateMetadataStoreOperationMetadata. + * @implements ICreateMetadataStoreOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IListArtifactsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata=} [properties] Properties to set */ - function ListArtifactsResponse(properties) { - this.artifacts = []; + function CreateMetadataStoreOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95360,92 +99551,75 @@ } /** - * ListArtifactsResponse artifacts. - * @member {Array.} artifacts - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse - * @instance - */ - ListArtifactsResponse.prototype.artifacts = $util.emptyArray; - - /** - * ListArtifactsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * CreateMetadataStoreOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @instance */ - ListArtifactsResponse.prototype.nextPageToken = ""; + CreateMetadataStoreOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new ListArtifactsResponse instance using the specified properties. + * Creates a new CreateMetadataStoreOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IListArtifactsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListArtifactsResponse} ListArtifactsResponse instance + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata instance */ - ListArtifactsResponse.create = function create(properties) { - return new ListArtifactsResponse(properties); + CreateMetadataStoreOperationMetadata.create = function create(properties) { + return new CreateMetadataStoreOperationMetadata(properties); }; /** - * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsResponse.verify|verify} messages. + * Encodes the specified CreateMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IListArtifactsResponse} message ListArtifactsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsResponse.encode = function encode(message, writer) { + CreateMetadataStoreOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.artifacts != null && message.artifacts.length) - for (var i = 0; i < message.artifacts.length; ++i) - $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + 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 ListArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsResponse.verify|verify} messages. + * Encodes the specified CreateMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IListArtifactsResponse} message ListArtifactsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListArtifactsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateMetadataStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer. + * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @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.ListArtifactsResponse} ListArtifactsResponse + * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsResponse.decode = function decode(reader, length) { + CreateMetadataStoreOperationMetadata.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.ListArtifactsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.artifacts && message.artifacts.length)) - message.artifacts = []; - message.artifacts.push($root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -95457,150 +99631,127 @@ }; /** - * Decodes a ListArtifactsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListArtifactsResponse} ListArtifactsResponse + * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListArtifactsResponse.decodeDelimited = function decodeDelimited(reader) { + CreateMetadataStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListArtifactsResponse message. + * Verifies a CreateMetadataStoreOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListArtifactsResponse.verify = function verify(message) { + CreateMetadataStoreOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) { - if (!Array.isArray(message.artifacts)) - return "artifacts: array expected"; - for (var i = 0; i < message.artifacts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifacts[i]); - if (error) - return "artifacts." + error; - } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListArtifactsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListArtifactsResponse} ListArtifactsResponse + * @returns {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} CreateMetadataStoreOperationMetadata */ - ListArtifactsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListArtifactsResponse) + CreateMetadataStoreOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.ListArtifactsResponse(); - if (object.artifacts) { - if (!Array.isArray(object.artifacts)) - throw TypeError(".google.cloud.aiplatform.v1.ListArtifactsResponse.artifacts: array expected"); - message.artifacts = []; - for (var i = 0; i < object.artifacts.length; ++i) { - if (typeof object.artifacts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListArtifactsResponse.artifacts: object expected"); - message.artifacts[i] = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifacts[i]); - } + var message = new $root.google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListArtifactsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateMetadataStoreOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ListArtifactsResponse} message ListArtifactsResponse + * @param {google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata} message CreateMetadataStoreOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListArtifactsResponse.toObject = function toObject(message, options) { + CreateMetadataStoreOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.artifacts = []; if (options.defaults) - object.nextPageToken = ""; - if (message.artifacts && message.artifacts.length) { - object.artifacts = []; - for (var j = 0; j < message.artifacts.length; ++j) - object.artifacts[j] = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifacts[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + 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 ListArtifactsResponse to JSON. + * Converts this CreateMetadataStoreOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @instance * @returns {Object.} JSON object */ - ListArtifactsResponse.prototype.toJSON = function toJSON() { + CreateMetadataStoreOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListArtifactsResponse + * Gets the default type url for CreateMetadataStoreOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse + * @memberof google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListArtifactsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateMetadataStoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListArtifactsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateMetadataStoreOperationMetadata"; }; - return ListArtifactsResponse; + return CreateMetadataStoreOperationMetadata; })(); - v1.UpdateArtifactRequest = (function() { + v1.GetMetadataStoreRequest = (function() { /** - * Properties of an UpdateArtifactRequest. + * Properties of a GetMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateArtifactRequest - * @property {google.cloud.aiplatform.v1.IArtifact|null} [artifact] UpdateArtifactRequest artifact - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateArtifactRequest updateMask - * @property {boolean|null} [allowMissing] UpdateArtifactRequest allowMissing + * @interface IGetMetadataStoreRequest + * @property {string|null} [name] GetMetadataStoreRequest name */ /** - * Constructs a new UpdateArtifactRequest. + * Constructs a new GetMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateArtifactRequest. - * @implements IUpdateArtifactRequest + * @classdesc Represents a GetMetadataStoreRequest. + * @implements IGetMetadataStoreRequest * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest=} [properties] Properties to set */ - function UpdateArtifactRequest(properties) { + function GetMetadataStoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95608,103 +99759,75 @@ } /** - * UpdateArtifactRequest artifact. - * @member {google.cloud.aiplatform.v1.IArtifact|null|undefined} artifact - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest - * @instance - */ - UpdateArtifactRequest.prototype.artifact = null; - - /** - * UpdateArtifactRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest - * @instance - */ - UpdateArtifactRequest.prototype.updateMask = null; - - /** - * UpdateArtifactRequest allowMissing. - * @member {boolean} allowMissing - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * GetMetadataStoreRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @instance */ - UpdateArtifactRequest.prototype.allowMissing = false; + GetMetadataStoreRequest.prototype.name = ""; /** - * Creates a new UpdateArtifactRequest instance using the specified properties. + * Creates a new GetMetadataStoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateArtifactRequest} UpdateArtifactRequest instance + * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetMetadataStoreRequest} GetMetadataStoreRequest instance */ - UpdateArtifactRequest.create = function create(properties) { - return new UpdateArtifactRequest(properties); + GetMetadataStoreRequest.create = function create(properties) { + return new GetMetadataStoreRequest(properties); }; /** - * Encodes the specified UpdateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateArtifactRequest.verify|verify} messages. + * Encodes the specified GetMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataStoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest} message UpdateArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest} message GetMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateArtifactRequest.encode = function encode(message, writer) { + GetMetadataStoreRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) - $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifact, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateArtifactRequest.verify|verify} messages. + * Encodes the specified GetMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataStoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest} message UpdateArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetMetadataStoreRequest} message GetMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateArtifactRequest message from the specified reader or buffer. + * Decodes a GetMetadataStoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @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.UpdateArtifactRequest} UpdateArtifactRequest + * @returns {google.cloud.aiplatform.v1.GetMetadataStoreRequest} GetMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateArtifactRequest.decode = function decode(reader, length) { + GetMetadataStoreRequest.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.UpdateArtifactRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetMetadataStoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.artifact = $root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32()); - break; - } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - case 3: { - message.allowMissing = reader.bool(); + message.name = reader.string(); break; } default: @@ -95716,150 +99839,124 @@ }; /** - * Decodes an UpdateArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a GetMetadataStoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateArtifactRequest} UpdateArtifactRequest + * @returns {google.cloud.aiplatform.v1.GetMetadataStoreRequest} GetMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateArtifactRequest.decodeDelimited = function decodeDelimited(reader) { + GetMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateArtifactRequest message. + * Verifies a GetMetadataStoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateArtifactRequest.verify = function verify(message) { + GetMetadataStoreRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.artifact != null && message.hasOwnProperty("artifact")) { - var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifact); - if (error) - return "artifact." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - if (typeof message.allowMissing !== "boolean") - return "allowMissing: boolean expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateArtifactRequest} UpdateArtifactRequest + * @returns {google.cloud.aiplatform.v1.GetMetadataStoreRequest} GetMetadataStoreRequest */ - UpdateArtifactRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateArtifactRequest) + GetMetadataStoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetMetadataStoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateArtifactRequest(); - if (object.artifact != null) { - if (typeof object.artifact !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateArtifactRequest.artifact: object expected"); - message.artifact = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifact); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateArtifactRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - if (object.allowMissing != null) - message.allowMissing = Boolean(object.allowMissing); + var message = new $root.google.cloud.aiplatform.v1.GetMetadataStoreRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateArtifactRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetMetadataStoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.UpdateArtifactRequest} message UpdateArtifactRequest + * @param {google.cloud.aiplatform.v1.GetMetadataStoreRequest} message GetMetadataStoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateArtifactRequest.toObject = function toObject(message, options) { + GetMetadataStoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.artifact = null; - object.updateMask = null; - object.allowMissing = false; - } - if (message.artifact != null && message.hasOwnProperty("artifact")) - object.artifact = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifact, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - object.allowMissing = message.allowMissing; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateArtifactRequest to JSON. + * Converts this GetMetadataStoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @instance * @returns {Object.} JSON object */ - UpdateArtifactRequest.prototype.toJSON = function toJSON() { + GetMetadataStoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateArtifactRequest + * Gets the default type url for GetMetadataStoreRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest + * @memberof google.cloud.aiplatform.v1.GetMetadataStoreRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateArtifactRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetMetadataStoreRequest"; }; - return UpdateArtifactRequest; + return GetMetadataStoreRequest; })(); - v1.DeleteArtifactRequest = (function() { + v1.ListMetadataStoresRequest = (function() { /** - * Properties of a DeleteArtifactRequest. + * Properties of a ListMetadataStoresRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteArtifactRequest - * @property {string|null} [name] DeleteArtifactRequest name - * @property {string|null} [etag] DeleteArtifactRequest etag + * @interface IListMetadataStoresRequest + * @property {string|null} [parent] ListMetadataStoresRequest parent + * @property {number|null} [pageSize] ListMetadataStoresRequest pageSize + * @property {string|null} [pageToken] ListMetadataStoresRequest pageToken */ /** - * Constructs a new DeleteArtifactRequest. + * Constructs a new ListMetadataStoresRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteArtifactRequest. - * @implements IDeleteArtifactRequest + * @classdesc Represents a ListMetadataStoresRequest. + * @implements IListMetadataStoresRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest=} [properties] Properties to set */ - function DeleteArtifactRequest(properties) { + function ListMetadataStoresRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -95867,89 +99964,103 @@ } /** - * DeleteArtifactRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * ListMetadataStoresRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @instance */ - DeleteArtifactRequest.prototype.name = ""; + ListMetadataStoresRequest.prototype.parent = ""; /** - * DeleteArtifactRequest etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * ListMetadataStoresRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @instance */ - DeleteArtifactRequest.prototype.etag = ""; + ListMetadataStoresRequest.prototype.pageSize = 0; /** - * Creates a new DeleteArtifactRequest instance using the specified properties. + * ListMetadataStoresRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest + * @instance + */ + ListMetadataStoresRequest.prototype.pageToken = ""; + + /** + * Creates a new ListMetadataStoresRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteArtifactRequest} DeleteArtifactRequest instance + * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListMetadataStoresRequest} ListMetadataStoresRequest instance */ - DeleteArtifactRequest.create = function create(properties) { - return new DeleteArtifactRequest(properties); + ListMetadataStoresRequest.create = function create(properties) { + return new ListMetadataStoresRequest(properties); }; /** - * Encodes the specified DeleteArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteArtifactRequest.verify|verify} messages. + * Encodes the specified ListMetadataStoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest} message DeleteArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest} message ListMetadataStoresRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteArtifactRequest.encode = function encode(message, writer) { + ListMetadataStoresRequest.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); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified DeleteArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteArtifactRequest.verify|verify} messages. + * Encodes the specified ListMetadataStoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest} message DeleteArtifactRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListMetadataStoresRequest} message ListMetadataStoresRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListMetadataStoresRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteArtifactRequest message from the specified reader or buffer. + * Decodes a ListMetadataStoresRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @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.DeleteArtifactRequest} DeleteArtifactRequest + * @returns {google.cloud.aiplatform.v1.ListMetadataStoresRequest} ListMetadataStoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteArtifactRequest.decode = function decode(reader, length) { + ListMetadataStoresRequest.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.DeleteArtifactRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListMetadataStoresRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.etag = reader.string(); + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); break; } default: @@ -95961,133 +100072,141 @@ }; /** - * Decodes a DeleteArtifactRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataStoresRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteArtifactRequest} DeleteArtifactRequest + * @returns {google.cloud.aiplatform.v1.ListMetadataStoresRequest} ListMetadataStoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteArtifactRequest.decodeDelimited = function decodeDelimited(reader) { + ListMetadataStoresRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteArtifactRequest message. + * Verifies a ListMetadataStoresRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteArtifactRequest.verify = function verify(message) { + ListMetadataStoresRequest.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"; - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a DeleteArtifactRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataStoresRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteArtifactRequest} DeleteArtifactRequest + * @returns {google.cloud.aiplatform.v1.ListMetadataStoresRequest} ListMetadataStoresRequest */ - DeleteArtifactRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteArtifactRequest) + ListMetadataStoresRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListMetadataStoresRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteArtifactRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.etag != null) - message.etag = String(object.etag); + var message = new $root.google.cloud.aiplatform.v1.ListMetadataStoresRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a DeleteArtifactRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMetadataStoresRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @static - * @param {google.cloud.aiplatform.v1.DeleteArtifactRequest} message DeleteArtifactRequest + * @param {google.cloud.aiplatform.v1.ListMetadataStoresRequest} message ListMetadataStoresRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteArtifactRequest.toObject = function toObject(message, options) { + ListMetadataStoresRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.etag = ""; + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this DeleteArtifactRequest to JSON. + * Converts this ListMetadataStoresRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @instance * @returns {Object.} JSON object */ - DeleteArtifactRequest.prototype.toJSON = function toJSON() { + ListMetadataStoresRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteArtifactRequest + * Gets the default type url for ListMetadataStoresRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListMetadataStoresRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteArtifactRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListMetadataStoresRequest"; }; - return DeleteArtifactRequest; + return ListMetadataStoresRequest; })(); - v1.PurgeArtifactsRequest = (function() { + v1.ListMetadataStoresResponse = (function() { /** - * Properties of a PurgeArtifactsRequest. + * Properties of a ListMetadataStoresResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeArtifactsRequest - * @property {string|null} [parent] PurgeArtifactsRequest parent - * @property {string|null} [filter] PurgeArtifactsRequest filter - * @property {boolean|null} [force] PurgeArtifactsRequest force + * @interface IListMetadataStoresResponse + * @property {Array.|null} [metadataStores] ListMetadataStoresResponse metadataStores + * @property {string|null} [nextPageToken] ListMetadataStoresResponse nextPageToken */ /** - * Constructs a new PurgeArtifactsRequest. + * Constructs a new ListMetadataStoresResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeArtifactsRequest. - * @implements IPurgeArtifactsRequest + * @classdesc Represents a ListMetadataStoresResponse. + * @implements IListMetadataStoresResponse * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListMetadataStoresResponse=} [properties] Properties to set */ - function PurgeArtifactsRequest(properties) { + function ListMetadataStoresResponse(properties) { + this.metadataStores = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96095,103 +100214,92 @@ } /** - * PurgeArtifactsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest - * @instance - */ - PurgeArtifactsRequest.prototype.parent = ""; - - /** - * PurgeArtifactsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * ListMetadataStoresResponse metadataStores. + * @member {Array.} metadataStores + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @instance */ - PurgeArtifactsRequest.prototype.filter = ""; + ListMetadataStoresResponse.prototype.metadataStores = $util.emptyArray; /** - * PurgeArtifactsRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * ListMetadataStoresResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @instance */ - PurgeArtifactsRequest.prototype.force = false; + ListMetadataStoresResponse.prototype.nextPageToken = ""; /** - * Creates a new PurgeArtifactsRequest instance using the specified properties. + * Creates a new ListMetadataStoresResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsRequest} PurgeArtifactsRequest instance + * @param {google.cloud.aiplatform.v1.IListMetadataStoresResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListMetadataStoresResponse} ListMetadataStoresResponse instance */ - PurgeArtifactsRequest.create = function create(properties) { - return new PurgeArtifactsRequest(properties); + ListMetadataStoresResponse.create = function create(properties) { + return new ListMetadataStoresResponse(properties); }; /** - * Encodes the specified PurgeArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsRequest.verify|verify} messages. + * Encodes the specified ListMetadataStoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest} message PurgeArtifactsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListMetadataStoresResponse} message ListMetadataStoresResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsRequest.encode = function encode(message, writer) { + ListMetadataStoresResponse.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.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); + if (message.metadataStores != null && message.metadataStores.length) + for (var i = 0; i < message.metadataStores.length; ++i) + $root.google.cloud.aiplatform.v1.MetadataStore.encode(message.metadataStores[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified PurgeArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsRequest.verify|verify} messages. + * Encodes the specified ListMetadataStoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataStoresResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest} message PurgeArtifactsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListMetadataStoresResponse} message ListMetadataStoresResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListMetadataStoresResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeArtifactsRequest message from the specified reader or buffer. + * Decodes a ListMetadataStoresResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @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.PurgeArtifactsRequest} PurgeArtifactsRequest + * @returns {google.cloud.aiplatform.v1.ListMetadataStoresResponse} ListMetadataStoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsRequest.decode = function decode(reader, length) { + ListMetadataStoresResponse.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.PurgeArtifactsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListMetadataStoresResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.metadataStores && message.metadataStores.length)) + message.metadataStores = []; + message.metadataStores.push($root.google.cloud.aiplatform.v1.MetadataStore.decode(reader, reader.uint32())); break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.force = reader.bool(); + message.nextPageToken = reader.string(); break; } default: @@ -96203,141 +100311,149 @@ }; /** - * Decodes a PurgeArtifactsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataStoresResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsRequest} PurgeArtifactsRequest + * @returns {google.cloud.aiplatform.v1.ListMetadataStoresResponse} ListMetadataStoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsRequest.decodeDelimited = function decodeDelimited(reader) { + ListMetadataStoresResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeArtifactsRequest message. + * Verifies a ListMetadataStoresResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeArtifactsRequest.verify = function verify(message) { + ListMetadataStoresResponse.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.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.metadataStores != null && message.hasOwnProperty("metadataStores")) { + if (!Array.isArray(message.metadataStores)) + return "metadataStores: array expected"; + for (var i = 0; i < message.metadataStores.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.MetadataStore.verify(message.metadataStores[i]); + if (error) + return "metadataStores." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a PurgeArtifactsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataStoresResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsRequest} PurgeArtifactsRequest + * @returns {google.cloud.aiplatform.v1.ListMetadataStoresResponse} ListMetadataStoresResponse */ - PurgeArtifactsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeArtifactsRequest) + ListMetadataStoresResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListMetadataStoresResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.force != null) - message.force = Boolean(object.force); + var message = new $root.google.cloud.aiplatform.v1.ListMetadataStoresResponse(); + if (object.metadataStores) { + if (!Array.isArray(object.metadataStores)) + throw TypeError(".google.cloud.aiplatform.v1.ListMetadataStoresResponse.metadataStores: array expected"); + message.metadataStores = []; + for (var i = 0; i < object.metadataStores.length; ++i) { + if (typeof object.metadataStores[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListMetadataStoresResponse.metadataStores: object expected"); + message.metadataStores[i] = $root.google.cloud.aiplatform.v1.MetadataStore.fromObject(object.metadataStores[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a PurgeArtifactsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMetadataStoresResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @static - * @param {google.cloud.aiplatform.v1.PurgeArtifactsRequest} message PurgeArtifactsRequest + * @param {google.cloud.aiplatform.v1.ListMetadataStoresResponse} message ListMetadataStoresResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeArtifactsRequest.toObject = function toObject(message, options) { + ListMetadataStoresResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.force = false; + if (options.arrays || options.defaults) + object.metadataStores = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.metadataStores && message.metadataStores.length) { + object.metadataStores = []; + for (var j = 0; j < message.metadataStores.length; ++j) + object.metadataStores[j] = $root.google.cloud.aiplatform.v1.MetadataStore.toObject(message.metadataStores[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this PurgeArtifactsRequest to JSON. + * Converts this ListMetadataStoresResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @instance * @returns {Object.} JSON object */ - PurgeArtifactsRequest.prototype.toJSON = function toJSON() { + ListMetadataStoresResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeArtifactsRequest + * Gets the default type url for ListMetadataStoresResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataStoresResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeArtifactsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListMetadataStoresResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeArtifactsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListMetadataStoresResponse"; }; - return PurgeArtifactsRequest; + return ListMetadataStoresResponse; })(); - v1.PurgeArtifactsResponse = (function() { + v1.DeleteMetadataStoreRequest = (function() { /** - * Properties of a PurgeArtifactsResponse. + * Properties of a DeleteMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeArtifactsResponse - * @property {number|Long|null} [purgeCount] PurgeArtifactsResponse purgeCount - * @property {Array.|null} [purgeSample] PurgeArtifactsResponse purgeSample + * @interface IDeleteMetadataStoreRequest + * @property {string|null} [name] DeleteMetadataStoreRequest name + * @property {boolean|null} [force] DeleteMetadataStoreRequest force */ /** - * Constructs a new PurgeArtifactsResponse. + * Constructs a new DeleteMetadataStoreRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeArtifactsResponse. - * @implements IPurgeArtifactsResponse + * @classdesc Represents a DeleteMetadataStoreRequest. + * @implements IDeleteMetadataStoreRequest * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest=} [properties] Properties to set */ - function PurgeArtifactsResponse(properties) { - this.purgeSample = []; + function DeleteMetadataStoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96345,92 +100461,89 @@ } /** - * PurgeArtifactsResponse purgeCount. - * @member {number|Long} purgeCount - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * DeleteMetadataStoreRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @instance */ - PurgeArtifactsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeleteMetadataStoreRequest.prototype.name = ""; /** - * PurgeArtifactsResponse purgeSample. - * @member {Array.} purgeSample - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * DeleteMetadataStoreRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @instance */ - PurgeArtifactsResponse.prototype.purgeSample = $util.emptyArray; + DeleteMetadataStoreRequest.prototype.force = false; /** - * Creates a new PurgeArtifactsResponse instance using the specified properties. + * Creates a new DeleteMetadataStoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsResponse} PurgeArtifactsResponse instance + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest instance */ - PurgeArtifactsResponse.create = function create(properties) { - return new PurgeArtifactsResponse(properties); + DeleteMetadataStoreRequest.create = function create(properties) { + return new DeleteMetadataStoreRequest(properties); }; /** - * Encodes the specified PurgeArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsResponse.verify|verify} messages. + * Encodes the specified DeleteMetadataStoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsResponse} message PurgeArtifactsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest} message DeleteMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsResponse.encode = function encode(message, writer) { + DeleteMetadataStoreRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); - if (message.purgeSample != null && message.purgeSample.length) - for (var i = 0; i < message.purgeSample.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified PurgeArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsResponse.verify|verify} messages. + * Encodes the specified DeleteMetadataStoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsResponse} message PurgeArtifactsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreRequest} message DeleteMetadataStoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteMetadataStoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeArtifactsResponse message from the specified reader or buffer. + * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @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.PurgeArtifactsResponse} PurgeArtifactsResponse + * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsResponse.decode = function decode(reader, length) { + DeleteMetadataStoreRequest.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.PurgeArtifactsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.purgeCount = reader.int64(); + message.name = reader.string(); break; } case 2: { - if (!(message.purgeSample && message.purgeSample.length)) - message.purgeSample = []; - message.purgeSample.push(reader.string()); + message.force = reader.bool(); break; } default: @@ -96442,157 +100555,131 @@ }; /** - * Decodes a PurgeArtifactsResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteMetadataStoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsResponse} PurgeArtifactsResponse + * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteMetadataStoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeArtifactsResponse message. + * Verifies a DeleteMetadataStoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeArtifactsResponse.verify = function verify(message) { + DeleteMetadataStoreRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) - return "purgeCount: integer|Long expected"; - if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { - if (!Array.isArray(message.purgeSample)) - return "purgeSample: array expected"; - for (var i = 0; i < message.purgeSample.length; ++i) - if (!$util.isString(message.purgeSample[i])) - return "purgeSample: string[] expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a PurgeArtifactsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMetadataStoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsResponse} PurgeArtifactsResponse + * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} DeleteMetadataStoreRequest */ - PurgeArtifactsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeArtifactsResponse) + DeleteMetadataStoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsResponse(); - if (object.purgeCount != null) - if ($util.Long) - (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; - else if (typeof object.purgeCount === "string") - message.purgeCount = parseInt(object.purgeCount, 10); - else if (typeof object.purgeCount === "number") - message.purgeCount = object.purgeCount; - else if (typeof object.purgeCount === "object") - message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); - if (object.purgeSample) { - if (!Array.isArray(object.purgeSample)) - throw TypeError(".google.cloud.aiplatform.v1.PurgeArtifactsResponse.purgeSample: array expected"); - message.purgeSample = []; - for (var i = 0; i < object.purgeSample.length; ++i) - message.purgeSample[i] = String(object.purgeSample[i]); - } + var message = new $root.google.cloud.aiplatform.v1.DeleteMetadataStoreRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a PurgeArtifactsResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteMetadataStoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @static - * @param {google.cloud.aiplatform.v1.PurgeArtifactsResponse} message PurgeArtifactsResponse + * @param {google.cloud.aiplatform.v1.DeleteMetadataStoreRequest} message DeleteMetadataStoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeArtifactsResponse.toObject = function toObject(message, options) { + DeleteMetadataStoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.purgeSample = []; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.purgeCount = options.longs === String ? "0" : 0; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (typeof message.purgeCount === "number") - object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; - else - object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; - if (message.purgeSample && message.purgeSample.length) { - object.purgeSample = []; - for (var j = 0; j < message.purgeSample.length; ++j) - object.purgeSample[j] = message.purgeSample[j]; + if (options.defaults) { + object.name = ""; + object.force = false; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this PurgeArtifactsResponse to JSON. + * Converts this DeleteMetadataStoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @instance * @returns {Object.} JSON object */ - PurgeArtifactsResponse.prototype.toJSON = function toJSON() { + DeleteMetadataStoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeArtifactsResponse + * Gets the default type url for DeleteMetadataStoreRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeArtifactsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteMetadataStoreRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeArtifactsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteMetadataStoreRequest"; }; - return PurgeArtifactsResponse; + return DeleteMetadataStoreRequest; })(); - v1.PurgeArtifactsMetadata = (function() { + v1.DeleteMetadataStoreOperationMetadata = (function() { /** - * Properties of a PurgeArtifactsMetadata. + * Properties of a DeleteMetadataStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeArtifactsMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] PurgeArtifactsMetadata genericMetadata + * @interface IDeleteMetadataStoreOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] DeleteMetadataStoreOperationMetadata genericMetadata */ /** - * Constructs a new PurgeArtifactsMetadata. + * Constructs a new DeleteMetadataStoreOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeArtifactsMetadata. - * @implements IPurgeArtifactsMetadata + * @classdesc Represents a DeleteMetadataStoreOperationMetadata. + * @implements IDeleteMetadataStoreOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata=} [properties] Properties to set */ - function PurgeArtifactsMetadata(properties) { + function DeleteMetadataStoreOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96600,35 +100687,35 @@ } /** - * PurgeArtifactsMetadata genericMetadata. + * DeleteMetadataStoreOperationMetadata genericMetadata. * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @instance */ - PurgeArtifactsMetadata.prototype.genericMetadata = null; + DeleteMetadataStoreOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new PurgeArtifactsMetadata instance using the specified properties. + * Creates a new DeleteMetadataStoreOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} PurgeArtifactsMetadata instance + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata instance */ - PurgeArtifactsMetadata.create = function create(properties) { - return new PurgeArtifactsMetadata(properties); + DeleteMetadataStoreOperationMetadata.create = function create(properties) { + return new DeleteMetadataStoreOperationMetadata(properties); }; /** - * Encodes the specified PurgeArtifactsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsMetadata.verify|verify} messages. + * Encodes the specified DeleteMetadataStoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsMetadata} message PurgeArtifactsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsMetadata.encode = function encode(message, writer) { + DeleteMetadataStoreOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) @@ -96637,33 +100724,33 @@ }; /** - * Encodes the specified PurgeArtifactsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsMetadata.verify|verify} messages. + * Encodes the specified DeleteMetadataStoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IPurgeArtifactsMetadata} message PurgeArtifactsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeArtifactsMetadata.encodeDelimited = function encodeDelimited(message, writer) { + DeleteMetadataStoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer. + * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @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.PurgeArtifactsMetadata} PurgeArtifactsMetadata + * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsMetadata.decode = function decode(reader, length) { + DeleteMetadataStoreOperationMetadata.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.PurgeArtifactsMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -96680,30 +100767,30 @@ }; /** - * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeleteMetadataStoreOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} PurgeArtifactsMetadata + * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeArtifactsMetadata.decodeDelimited = function decodeDelimited(reader) { + DeleteMetadataStoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeArtifactsMetadata message. + * Verifies a DeleteMetadataStoreOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeArtifactsMetadata.verify = function verify(message) { + DeleteMetadataStoreOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { @@ -96715,35 +100802,35 @@ }; /** - * Creates a PurgeArtifactsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteMetadataStoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} PurgeArtifactsMetadata + * @returns {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} DeleteMetadataStoreOperationMetadata */ - PurgeArtifactsMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeArtifactsMetadata) + DeleteMetadataStoreOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsMetadata(); + var message = new $root.google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata(); if (object.genericMetadata != null) { if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PurgeArtifactsMetadata.genericMetadata: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata.genericMetadata: object expected"); message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a PurgeArtifactsMetadata message. Also converts values to other types if specified. + * Creates a plain object from a DeleteMetadataStoreOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} message PurgeArtifactsMetadata + * @param {google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata} message DeleteMetadataStoreOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeArtifactsMetadata.toObject = function toObject(message, options) { + DeleteMetadataStoreOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -96755,54 +100842,54 @@ }; /** - * Converts this PurgeArtifactsMetadata to JSON. + * Converts this DeleteMetadataStoreOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @instance * @returns {Object.} JSON object */ - PurgeArtifactsMetadata.prototype.toJSON = function toJSON() { + DeleteMetadataStoreOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeArtifactsMetadata + * Gets the default type url for DeleteMetadataStoreOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata + * @memberof google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeArtifactsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteMetadataStoreOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeArtifactsMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteMetadataStoreOperationMetadata"; }; - return PurgeArtifactsMetadata; + return DeleteMetadataStoreOperationMetadata; })(); - v1.CreateContextRequest = (function() { + v1.CreateArtifactRequest = (function() { /** - * Properties of a CreateContextRequest. + * Properties of a CreateArtifactRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateContextRequest - * @property {string|null} [parent] CreateContextRequest parent - * @property {google.cloud.aiplatform.v1.IContext|null} [context] CreateContextRequest context - * @property {string|null} [contextId] CreateContextRequest contextId + * @interface ICreateArtifactRequest + * @property {string|null} [parent] CreateArtifactRequest parent + * @property {google.cloud.aiplatform.v1.IArtifact|null} [artifact] CreateArtifactRequest artifact + * @property {string|null} [artifactId] CreateArtifactRequest artifactId */ /** - * Constructs a new CreateContextRequest. + * Constructs a new CreateArtifactRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateContextRequest. - * @implements ICreateContextRequest + * @classdesc Represents a CreateArtifactRequest. + * @implements ICreateArtifactRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICreateContextRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest=} [properties] Properties to set */ - function CreateContextRequest(properties) { + function CreateArtifactRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -96810,90 +100897,90 @@ } /** - * CreateContextRequest parent. + * CreateArtifactRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @instance */ - CreateContextRequest.prototype.parent = ""; + CreateArtifactRequest.prototype.parent = ""; /** - * CreateContextRequest context. - * @member {google.cloud.aiplatform.v1.IContext|null|undefined} context - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * CreateArtifactRequest artifact. + * @member {google.cloud.aiplatform.v1.IArtifact|null|undefined} artifact + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @instance */ - CreateContextRequest.prototype.context = null; + CreateArtifactRequest.prototype.artifact = null; /** - * CreateContextRequest contextId. - * @member {string} contextId - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * CreateArtifactRequest artifactId. + * @member {string} artifactId + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @instance */ - CreateContextRequest.prototype.contextId = ""; + CreateArtifactRequest.prototype.artifactId = ""; /** - * Creates a new CreateContextRequest instance using the specified properties. + * Creates a new CreateArtifactRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateContextRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateContextRequest} CreateContextRequest instance + * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateArtifactRequest} CreateArtifactRequest instance */ - CreateContextRequest.create = function create(properties) { - return new CreateContextRequest(properties); + CreateArtifactRequest.create = function create(properties) { + return new CreateArtifactRequest(properties); }; /** - * Encodes the specified CreateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateContextRequest.verify|verify} messages. + * Encodes the specified CreateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateArtifactRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateContextRequest} message CreateContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest} message CreateArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateContextRequest.encode = function encode(message, writer) { + CreateArtifactRequest.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.context != null && Object.hasOwnProperty.call(message, "context")) - $root.google.cloud.aiplatform.v1.Context.encode(message.context, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.contextId != null && Object.hasOwnProperty.call(message, "contextId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.contextId); + if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) + $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifact, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.artifactId); return writer; }; /** - * Encodes the specified CreateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateContextRequest.verify|verify} messages. + * Encodes the specified CreateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateArtifactRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.ICreateContextRequest} message CreateContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateArtifactRequest} message CreateArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateContextRequest message from the specified reader or buffer. + * Decodes a CreateArtifactRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @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.CreateContextRequest} CreateContextRequest + * @returns {google.cloud.aiplatform.v1.CreateArtifactRequest} CreateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateContextRequest.decode = function decode(reader, length) { + CreateArtifactRequest.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.CreateContextRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateArtifactRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -96902,11 +100989,11 @@ break; } case 2: { - message.context = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); + message.artifact = $root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32()); break; } case 3: { - message.contextId = reader.string(); + message.artifactId = reader.string(); break; } default: @@ -96918,144 +101005,144 @@ }; /** - * Decodes a CreateContextRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateArtifactRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateContextRequest} CreateContextRequest + * @returns {google.cloud.aiplatform.v1.CreateArtifactRequest} CreateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateContextRequest.decodeDelimited = function decodeDelimited(reader) { + CreateArtifactRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateContextRequest message. + * Verifies a CreateArtifactRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateContextRequest.verify = function verify(message) { + CreateArtifactRequest.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.context != null && message.hasOwnProperty("context")) { - var error = $root.google.cloud.aiplatform.v1.Context.verify(message.context); + if (message.artifact != null && message.hasOwnProperty("artifact")) { + var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifact); if (error) - return "context." + error; + return "artifact." + error; } - if (message.contextId != null && message.hasOwnProperty("contextId")) - if (!$util.isString(message.contextId)) - return "contextId: string expected"; + if (message.artifactId != null && message.hasOwnProperty("artifactId")) + if (!$util.isString(message.artifactId)) + return "artifactId: string expected"; return null; }; /** - * Creates a CreateContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateArtifactRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateContextRequest} CreateContextRequest + * @returns {google.cloud.aiplatform.v1.CreateArtifactRequest} CreateArtifactRequest */ - CreateContextRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateContextRequest) + CreateArtifactRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateArtifactRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateContextRequest(); + var message = new $root.google.cloud.aiplatform.v1.CreateArtifactRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.context != null) { - if (typeof object.context !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateContextRequest.context: object expected"); - message.context = $root.google.cloud.aiplatform.v1.Context.fromObject(object.context); + if (object.artifact != null) { + if (typeof object.artifact !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateArtifactRequest.artifact: object expected"); + message.artifact = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifact); } - if (object.contextId != null) - message.contextId = String(object.contextId); + if (object.artifactId != null) + message.artifactId = String(object.artifactId); return message; }; /** - * Creates a plain object from a CreateContextRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateArtifactRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.CreateContextRequest} message CreateContextRequest + * @param {google.cloud.aiplatform.v1.CreateArtifactRequest} message CreateArtifactRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateContextRequest.toObject = function toObject(message, options) { + CreateArtifactRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.context = null; - object.contextId = ""; + object.artifact = null; + object.artifactId = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.context != null && message.hasOwnProperty("context")) - object.context = $root.google.cloud.aiplatform.v1.Context.toObject(message.context, options); - if (message.contextId != null && message.hasOwnProperty("contextId")) - object.contextId = message.contextId; + if (message.artifact != null && message.hasOwnProperty("artifact")) + object.artifact = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifact, options); + if (message.artifactId != null && message.hasOwnProperty("artifactId")) + object.artifactId = message.artifactId; return object; }; /** - * Converts this CreateContextRequest to JSON. + * Converts this CreateArtifactRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @instance * @returns {Object.} JSON object */ - CreateContextRequest.prototype.toJSON = function toJSON() { + CreateArtifactRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateContextRequest + * Gets the default type url for CreateArtifactRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateContextRequest + * @memberof google.cloud.aiplatform.v1.CreateArtifactRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateContextRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateArtifactRequest"; }; - return CreateContextRequest; + return CreateArtifactRequest; })(); - v1.GetContextRequest = (function() { + v1.GetArtifactRequest = (function() { /** - * Properties of a GetContextRequest. + * Properties of a GetArtifactRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetContextRequest - * @property {string|null} [name] GetContextRequest name + * @interface IGetArtifactRequest + * @property {string|null} [name] GetArtifactRequest name */ /** - * Constructs a new GetContextRequest. + * Constructs a new GetArtifactRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetContextRequest. - * @implements IGetContextRequest + * @classdesc Represents a GetArtifactRequest. + * @implements IGetArtifactRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetContextRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetArtifactRequest=} [properties] Properties to set */ - function GetContextRequest(properties) { + function GetArtifactRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97063,35 +101150,35 @@ } /** - * GetContextRequest name. + * GetArtifactRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @instance */ - GetContextRequest.prototype.name = ""; + GetArtifactRequest.prototype.name = ""; /** - * Creates a new GetContextRequest instance using the specified properties. + * Creates a new GetArtifactRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IGetContextRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetContextRequest} GetContextRequest instance + * @param {google.cloud.aiplatform.v1.IGetArtifactRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetArtifactRequest} GetArtifactRequest instance */ - GetContextRequest.create = function create(properties) { - return new GetContextRequest(properties); + GetArtifactRequest.create = function create(properties) { + return new GetArtifactRequest(properties); }; /** - * Encodes the specified GetContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetContextRequest.verify|verify} messages. + * Encodes the specified GetArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetArtifactRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IGetContextRequest} message GetContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetArtifactRequest} message GetArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetContextRequest.encode = function encode(message, writer) { + GetArtifactRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -97100,33 +101187,33 @@ }; /** - * Encodes the specified GetContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetContextRequest.verify|verify} messages. + * Encodes the specified GetArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetArtifactRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IGetContextRequest} message GetContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetArtifactRequest} message GetArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetContextRequest message from the specified reader or buffer. + * Decodes a GetArtifactRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @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.GetContextRequest} GetContextRequest + * @returns {google.cloud.aiplatform.v1.GetArtifactRequest} GetArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetContextRequest.decode = function decode(reader, length) { + GetArtifactRequest.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.GetContextRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetArtifactRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -97143,30 +101230,30 @@ }; /** - * Decodes a GetContextRequest message from the specified reader or buffer, length delimited. + * Decodes a GetArtifactRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetContextRequest} GetContextRequest + * @returns {google.cloud.aiplatform.v1.GetArtifactRequest} GetArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetContextRequest.decodeDelimited = function decodeDelimited(reader) { + GetArtifactRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetContextRequest message. + * Verifies a GetArtifactRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetContextRequest.verify = function verify(message) { + GetArtifactRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -97176,32 +101263,32 @@ }; /** - * Creates a GetContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetArtifactRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetContextRequest} GetContextRequest + * @returns {google.cloud.aiplatform.v1.GetArtifactRequest} GetArtifactRequest */ - GetContextRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetContextRequest) + GetArtifactRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetArtifactRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetContextRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetArtifactRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetContextRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetArtifactRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.GetContextRequest} message GetContextRequest + * @param {google.cloud.aiplatform.v1.GetArtifactRequest} message GetArtifactRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetContextRequest.toObject = function toObject(message, options) { + GetArtifactRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -97213,56 +101300,56 @@ }; /** - * Converts this GetContextRequest to JSON. + * Converts this GetArtifactRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @instance * @returns {Object.} JSON object */ - GetContextRequest.prototype.toJSON = function toJSON() { + GetArtifactRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetContextRequest + * Gets the default type url for GetArtifactRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @memberof google.cloud.aiplatform.v1.GetArtifactRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetContextRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetArtifactRequest"; }; - return GetContextRequest; + return GetArtifactRequest; })(); - v1.ListContextsRequest = (function() { + v1.ListArtifactsRequest = (function() { /** - * Properties of a ListContextsRequest. + * Properties of a ListArtifactsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListContextsRequest - * @property {string|null} [parent] ListContextsRequest parent - * @property {number|null} [pageSize] ListContextsRequest pageSize - * @property {string|null} [pageToken] ListContextsRequest pageToken - * @property {string|null} [filter] ListContextsRequest filter - * @property {string|null} [orderBy] ListContextsRequest orderBy + * @interface IListArtifactsRequest + * @property {string|null} [parent] ListArtifactsRequest parent + * @property {number|null} [pageSize] ListArtifactsRequest pageSize + * @property {string|null} [pageToken] ListArtifactsRequest pageToken + * @property {string|null} [filter] ListArtifactsRequest filter + * @property {string|null} [orderBy] ListArtifactsRequest orderBy */ /** - * Constructs a new ListContextsRequest. + * Constructs a new ListArtifactsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListContextsRequest. - * @implements IListContextsRequest + * @classdesc Represents a ListArtifactsRequest. + * @implements IListArtifactsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListContextsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListArtifactsRequest=} [properties] Properties to set */ - function ListContextsRequest(properties) { + function ListArtifactsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97270,67 +101357,67 @@ } /** - * ListContextsRequest parent. + * ListArtifactsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @instance */ - ListContextsRequest.prototype.parent = ""; + ListArtifactsRequest.prototype.parent = ""; /** - * ListContextsRequest pageSize. + * ListArtifactsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @instance */ - ListContextsRequest.prototype.pageSize = 0; + ListArtifactsRequest.prototype.pageSize = 0; /** - * ListContextsRequest pageToken. + * ListArtifactsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @instance */ - ListContextsRequest.prototype.pageToken = ""; + ListArtifactsRequest.prototype.pageToken = ""; /** - * ListContextsRequest filter. + * ListArtifactsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @instance */ - ListContextsRequest.prototype.filter = ""; + ListArtifactsRequest.prototype.filter = ""; /** - * ListContextsRequest orderBy. + * ListArtifactsRequest orderBy. * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @instance */ - ListContextsRequest.prototype.orderBy = ""; + ListArtifactsRequest.prototype.orderBy = ""; /** - * Creates a new ListContextsRequest instance using the specified properties. + * Creates a new ListArtifactsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1.IListContextsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListContextsRequest} ListContextsRequest instance + * @param {google.cloud.aiplatform.v1.IListArtifactsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListArtifactsRequest} ListArtifactsRequest instance */ - ListContextsRequest.create = function create(properties) { - return new ListContextsRequest(properties); + ListArtifactsRequest.create = function create(properties) { + return new ListArtifactsRequest(properties); }; /** - * Encodes the specified ListContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsRequest.verify|verify} messages. + * Encodes the specified ListArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1.IListContextsRequest} message ListContextsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListArtifactsRequest} message ListArtifactsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContextsRequest.encode = function encode(message, writer) { + ListArtifactsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -97347,33 +101434,33 @@ }; /** - * Encodes the specified ListContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsRequest.verify|verify} messages. + * Encodes the specified ListArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1.IListContextsRequest} message ListContextsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListArtifactsRequest} message ListArtifactsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContextsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListArtifactsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListContextsRequest message from the specified reader or buffer. + * Decodes a ListArtifactsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @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.ListContextsRequest} ListContextsRequest + * @returns {google.cloud.aiplatform.v1.ListArtifactsRequest} ListArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContextsRequest.decode = function decode(reader, length) { + ListArtifactsRequest.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.ListContextsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListArtifactsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -97406,30 +101493,30 @@ }; /** - * Decodes a ListContextsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListArtifactsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListContextsRequest} ListContextsRequest + * @returns {google.cloud.aiplatform.v1.ListArtifactsRequest} ListArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContextsRequest.decodeDelimited = function decodeDelimited(reader) { + ListArtifactsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListContextsRequest message. + * Verifies a ListArtifactsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListContextsRequest.verify = function verify(message) { + ListArtifactsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -97451,17 +101538,17 @@ }; /** - * Creates a ListContextsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListArtifactsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListContextsRequest} ListContextsRequest + * @returns {google.cloud.aiplatform.v1.ListArtifactsRequest} ListArtifactsRequest */ - ListContextsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListContextsRequest) + ListArtifactsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListArtifactsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListContextsRequest(); + var message = new $root.google.cloud.aiplatform.v1.ListArtifactsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -97476,15 +101563,15 @@ }; /** - * Creates a plain object from a ListContextsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListArtifactsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1.ListContextsRequest} message ListContextsRequest + * @param {google.cloud.aiplatform.v1.ListArtifactsRequest} message ListArtifactsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListContextsRequest.toObject = function toObject(message, options) { + ListArtifactsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -97509,54 +101596,54 @@ }; /** - * Converts this ListContextsRequest to JSON. + * Converts this ListArtifactsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @instance * @returns {Object.} JSON object */ - ListContextsRequest.prototype.toJSON = function toJSON() { + ListArtifactsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListContextsRequest + * Gets the default type url for ListArtifactsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @memberof google.cloud.aiplatform.v1.ListArtifactsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListContextsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListArtifactsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListContextsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListArtifactsRequest"; }; - return ListContextsRequest; + return ListArtifactsRequest; })(); - v1.ListContextsResponse = (function() { + v1.ListArtifactsResponse = (function() { /** - * Properties of a ListContextsResponse. + * Properties of a ListArtifactsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IListContextsResponse - * @property {Array.|null} [contexts] ListContextsResponse contexts - * @property {string|null} [nextPageToken] ListContextsResponse nextPageToken + * @interface IListArtifactsResponse + * @property {Array.|null} [artifacts] ListArtifactsResponse artifacts + * @property {string|null} [nextPageToken] ListArtifactsResponse nextPageToken */ /** - * Constructs a new ListContextsResponse. + * Constructs a new ListArtifactsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListContextsResponse. - * @implements IListContextsResponse + * @classdesc Represents a ListArtifactsResponse. + * @implements IListArtifactsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListContextsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListArtifactsResponse=} [properties] Properties to set */ - function ListContextsResponse(properties) { - this.contexts = []; + function ListArtifactsResponse(properties) { + this.artifacts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97564,88 +101651,88 @@ } /** - * ListContextsResponse contexts. - * @member {Array.} contexts - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * ListArtifactsResponse artifacts. + * @member {Array.} artifacts + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @instance */ - ListContextsResponse.prototype.contexts = $util.emptyArray; + ListArtifactsResponse.prototype.artifacts = $util.emptyArray; /** - * ListContextsResponse nextPageToken. + * ListArtifactsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @instance */ - ListContextsResponse.prototype.nextPageToken = ""; + ListArtifactsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListContextsResponse instance using the specified properties. + * Creates a new ListArtifactsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1.IListContextsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListContextsResponse} ListContextsResponse instance + * @param {google.cloud.aiplatform.v1.IListArtifactsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListArtifactsResponse} ListArtifactsResponse instance */ - ListContextsResponse.create = function create(properties) { - return new ListContextsResponse(properties); + ListArtifactsResponse.create = function create(properties) { + return new ListArtifactsResponse(properties); }; /** - * Encodes the specified ListContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsResponse.verify|verify} messages. + * Encodes the specified ListArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1.IListContextsResponse} message ListContextsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListArtifactsResponse} message ListArtifactsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContextsResponse.encode = function encode(message, writer) { + ListArtifactsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.contexts != null && message.contexts.length) - for (var i = 0; i < message.contexts.length; ++i) - $root.google.cloud.aiplatform.v1.Context.encode(message.contexts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsResponse.verify|verify} messages. + * Encodes the specified ListArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListArtifactsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1.IListContextsResponse} message ListContextsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListArtifactsResponse} message ListArtifactsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListContextsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListArtifactsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListContextsResponse message from the specified reader or buffer. + * Decodes a ListArtifactsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @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.ListContextsResponse} ListContextsResponse + * @returns {google.cloud.aiplatform.v1.ListArtifactsResponse} ListArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContextsResponse.decode = function decode(reader, length) { + ListArtifactsResponse.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.ListContextsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListArtifactsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.contexts && message.contexts.length)) - message.contexts = []; - message.contexts.push($root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32())); + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push($root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32())); break; } case 2: { @@ -97661,39 +101748,39 @@ }; /** - * Decodes a ListContextsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListArtifactsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListContextsResponse} ListContextsResponse + * @returns {google.cloud.aiplatform.v1.ListArtifactsResponse} ListArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListContextsResponse.decodeDelimited = function decodeDelimited(reader) { + ListArtifactsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListContextsResponse message. + * Verifies a ListArtifactsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListContextsResponse.verify = function verify(message) { + ListArtifactsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.contexts != null && message.hasOwnProperty("contexts")) { - if (!Array.isArray(message.contexts)) - return "contexts: array expected"; - for (var i = 0; i < message.contexts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Context.verify(message.contexts[i]); + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifacts[i]); if (error) - return "contexts." + error; + return "artifacts." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -97703,25 +101790,25 @@ }; /** - * Creates a ListContextsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListArtifactsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListContextsResponse} ListContextsResponse + * @returns {google.cloud.aiplatform.v1.ListArtifactsResponse} ListArtifactsResponse */ - ListContextsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListContextsResponse) + ListArtifactsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListArtifactsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ListContextsResponse(); - if (object.contexts) { - if (!Array.isArray(object.contexts)) - throw TypeError(".google.cloud.aiplatform.v1.ListContextsResponse.contexts: array expected"); - message.contexts = []; - for (var i = 0; i < object.contexts.length; ++i) { - if (typeof object.contexts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListContextsResponse.contexts: object expected"); - message.contexts[i] = $root.google.cloud.aiplatform.v1.Context.fromObject(object.contexts[i]); + var message = new $root.google.cloud.aiplatform.v1.ListArtifactsResponse(); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1.ListArtifactsResponse.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) { + if (typeof object.artifacts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListArtifactsResponse.artifacts: object expected"); + message.artifacts[i] = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifacts[i]); } } if (object.nextPageToken != null) @@ -97730,26 +101817,26 @@ }; /** - * Creates a plain object from a ListContextsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListArtifactsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1.ListContextsResponse} message ListContextsResponse + * @param {google.cloud.aiplatform.v1.ListArtifactsResponse} message ListArtifactsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListContextsResponse.toObject = function toObject(message, options) { + ListArtifactsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.contexts = []; + object.artifacts = []; if (options.defaults) object.nextPageToken = ""; - if (message.contexts && message.contexts.length) { - object.contexts = []; - for (var j = 0; j < message.contexts.length; ++j) - object.contexts[j] = $root.google.cloud.aiplatform.v1.Context.toObject(message.contexts[j], options); + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifacts[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -97757,54 +101844,54 @@ }; /** - * Converts this ListContextsResponse to JSON. + * Converts this ListArtifactsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @instance * @returns {Object.} JSON object */ - ListContextsResponse.prototype.toJSON = function toJSON() { + ListArtifactsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListContextsResponse + * Gets the default type url for ListArtifactsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @memberof google.cloud.aiplatform.v1.ListArtifactsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListContextsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListArtifactsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListContextsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListArtifactsResponse"; }; - return ListContextsResponse; + return ListArtifactsResponse; })(); - v1.UpdateContextRequest = (function() { + v1.UpdateArtifactRequest = (function() { /** - * Properties of an UpdateContextRequest. + * Properties of an UpdateArtifactRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateContextRequest - * @property {google.cloud.aiplatform.v1.IContext|null} [context] UpdateContextRequest context - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateContextRequest updateMask - * @property {boolean|null} [allowMissing] UpdateContextRequest allowMissing + * @interface IUpdateArtifactRequest + * @property {google.cloud.aiplatform.v1.IArtifact|null} [artifact] UpdateArtifactRequest artifact + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateArtifactRequest updateMask + * @property {boolean|null} [allowMissing] UpdateArtifactRequest allowMissing */ /** - * Constructs a new UpdateContextRequest. + * Constructs a new UpdateArtifactRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateContextRequest. - * @implements IUpdateContextRequest + * @classdesc Represents an UpdateArtifactRequest. + * @implements IUpdateArtifactRequest * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateContextRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest=} [properties] Properties to set */ - function UpdateContextRequest(properties) { + function UpdateArtifactRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -97812,55 +101899,55 @@ } /** - * UpdateContextRequest context. - * @member {google.cloud.aiplatform.v1.IContext|null|undefined} context - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * UpdateArtifactRequest artifact. + * @member {google.cloud.aiplatform.v1.IArtifact|null|undefined} artifact + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @instance */ - UpdateContextRequest.prototype.context = null; + UpdateArtifactRequest.prototype.artifact = null; /** - * UpdateContextRequest updateMask. + * UpdateArtifactRequest updateMask. * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @instance */ - UpdateContextRequest.prototype.updateMask = null; + UpdateArtifactRequest.prototype.updateMask = null; /** - * UpdateContextRequest allowMissing. + * UpdateArtifactRequest allowMissing. * @member {boolean} allowMissing - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @instance */ - UpdateContextRequest.prototype.allowMissing = false; + UpdateArtifactRequest.prototype.allowMissing = false; /** - * Creates a new UpdateContextRequest instance using the specified properties. + * Creates a new UpdateArtifactRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateContextRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateContextRequest} UpdateContextRequest instance + * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateArtifactRequest} UpdateArtifactRequest instance */ - UpdateContextRequest.create = function create(properties) { - return new UpdateContextRequest(properties); + UpdateArtifactRequest.create = function create(properties) { + return new UpdateArtifactRequest(properties); }; /** - * Encodes the specified UpdateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateContextRequest.verify|verify} messages. + * Encodes the specified UpdateArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateArtifactRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateContextRequest} message UpdateContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest} message UpdateArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateContextRequest.encode = function encode(message, writer) { + UpdateArtifactRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - $root.google.cloud.aiplatform.v1.Context.encode(message.context, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) + $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifact, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) @@ -97869,38 +101956,38 @@ }; /** - * Encodes the specified UpdateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateContextRequest.verify|verify} messages. + * Encodes the specified UpdateArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateArtifactRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateContextRequest} message UpdateContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateArtifactRequest} message UpdateArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateContextRequest message from the specified reader or buffer. + * Decodes an UpdateArtifactRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @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.UpdateContextRequest} UpdateContextRequest + * @returns {google.cloud.aiplatform.v1.UpdateArtifactRequest} UpdateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateContextRequest.decode = function decode(reader, length) { + UpdateArtifactRequest.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.UpdateContextRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateArtifactRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.context = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); + message.artifact = $root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32()); break; } case 2: { @@ -97920,36 +102007,36 @@ }; /** - * Decodes an UpdateContextRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateArtifactRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateContextRequest} UpdateContextRequest + * @returns {google.cloud.aiplatform.v1.UpdateArtifactRequest} UpdateArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateContextRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateArtifactRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateContextRequest message. + * Verifies an UpdateArtifactRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateContextRequest.verify = function verify(message) { + UpdateArtifactRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) { - var error = $root.google.cloud.aiplatform.v1.Context.verify(message.context); + if (message.artifact != null && message.hasOwnProperty("artifact")) { + var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifact); if (error) - return "context." + error; + return "artifact." + error; } if (message.updateMask != null && message.hasOwnProperty("updateMask")) { var error = $root.google.protobuf.FieldMask.verify(message.updateMask); @@ -97963,25 +102050,25 @@ }; /** - * Creates an UpdateContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateArtifactRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateContextRequest} UpdateContextRequest + * @returns {google.cloud.aiplatform.v1.UpdateArtifactRequest} UpdateArtifactRequest */ - UpdateContextRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateContextRequest) + UpdateArtifactRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateArtifactRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateContextRequest(); - if (object.context != null) { - if (typeof object.context !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateContextRequest.context: object expected"); - message.context = $root.google.cloud.aiplatform.v1.Context.fromObject(object.context); + var message = new $root.google.cloud.aiplatform.v1.UpdateArtifactRequest(); + if (object.artifact != null) { + if (typeof object.artifact !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateArtifactRequest.artifact: object expected"); + message.artifact = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifact); } if (object.updateMask != null) { if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateContextRequest.updateMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.UpdateArtifactRequest.updateMask: object expected"); message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } if (object.allowMissing != null) @@ -97990,25 +102077,25 @@ }; /** - * Creates a plain object from an UpdateContextRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateArtifactRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.UpdateContextRequest} message UpdateContextRequest + * @param {google.cloud.aiplatform.v1.UpdateArtifactRequest} message UpdateArtifactRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateContextRequest.toObject = function toObject(message, options) { + UpdateArtifactRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.context = null; + object.artifact = null; object.updateMask = null; object.allowMissing = false; } - if (message.context != null && message.hasOwnProperty("context")) - object.context = $root.google.cloud.aiplatform.v1.Context.toObject(message.context, options); + if (message.artifact != null && message.hasOwnProperty("artifact")) + object.artifact = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifact, options); if (message.updateMask != null && message.hasOwnProperty("updateMask")) object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) @@ -98017,54 +102104,53 @@ }; /** - * Converts this UpdateContextRequest to JSON. + * Converts this UpdateArtifactRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @instance * @returns {Object.} JSON object */ - UpdateContextRequest.prototype.toJSON = function toJSON() { + UpdateArtifactRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateContextRequest + * Gets the default type url for UpdateArtifactRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @memberof google.cloud.aiplatform.v1.UpdateArtifactRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateContextRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateArtifactRequest"; }; - return UpdateContextRequest; + return UpdateArtifactRequest; })(); - v1.DeleteContextRequest = (function() { + v1.DeleteArtifactRequest = (function() { /** - * Properties of a DeleteContextRequest. + * Properties of a DeleteArtifactRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteContextRequest - * @property {string|null} [name] DeleteContextRequest name - * @property {boolean|null} [force] DeleteContextRequest force - * @property {string|null} [etag] DeleteContextRequest etag + * @interface IDeleteArtifactRequest + * @property {string|null} [name] DeleteArtifactRequest name + * @property {string|null} [etag] DeleteArtifactRequest etag */ /** - * Constructs a new DeleteContextRequest. + * Constructs a new DeleteArtifactRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteContextRequest. - * @implements IDeleteContextRequest + * @classdesc Represents a DeleteArtifactRequest. + * @implements IDeleteArtifactRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteContextRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest=} [properties] Properties to set */ - function DeleteContextRequest(properties) { + function DeleteArtifactRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -98072,90 +102158,80 @@ } /** - * DeleteContextRequest name. + * DeleteArtifactRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest - * @instance - */ - DeleteContextRequest.prototype.name = ""; - - /** - * DeleteContextRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @instance */ - DeleteContextRequest.prototype.force = false; + DeleteArtifactRequest.prototype.name = ""; /** - * DeleteContextRequest etag. + * DeleteArtifactRequest etag. * @member {string} etag - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @instance */ - DeleteContextRequest.prototype.etag = ""; + DeleteArtifactRequest.prototype.etag = ""; /** - * Creates a new DeleteContextRequest instance using the specified properties. + * Creates a new DeleteArtifactRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteContextRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteContextRequest} DeleteContextRequest instance + * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteArtifactRequest} DeleteArtifactRequest instance */ - DeleteContextRequest.create = function create(properties) { - return new DeleteContextRequest(properties); + DeleteArtifactRequest.create = function create(properties) { + return new DeleteArtifactRequest(properties); }; /** - * Encodes the specified DeleteContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteContextRequest.verify|verify} messages. + * Encodes the specified DeleteArtifactRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteArtifactRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteContextRequest} message DeleteContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest} message DeleteArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteContextRequest.encode = function encode(message, writer) { + DeleteArtifactRequest.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); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); + writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); return writer; }; /** - * Encodes the specified DeleteContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteContextRequest.verify|verify} messages. + * Encodes the specified DeleteArtifactRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteArtifactRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.IDeleteContextRequest} message DeleteContextRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteArtifactRequest} message DeleteArtifactRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteContextRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteArtifactRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteContextRequest message from the specified reader or buffer. + * Decodes a DeleteArtifactRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @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.DeleteContextRequest} DeleteContextRequest + * @returns {google.cloud.aiplatform.v1.DeleteArtifactRequest} DeleteArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteContextRequest.decode = function decode(reader, length) { + DeleteArtifactRequest.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.DeleteContextRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteArtifactRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -98164,10 +102240,6 @@ break; } case 2: { - message.force = reader.bool(); - break; - } - case 3: { message.etag = reader.string(); break; } @@ -98180,38 +102252,35 @@ }; /** - * Decodes a DeleteContextRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteArtifactRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteContextRequest} DeleteContextRequest + * @returns {google.cloud.aiplatform.v1.DeleteArtifactRequest} DeleteArtifactRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteContextRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteArtifactRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteContextRequest message. + * Verifies a DeleteArtifactRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteContextRequest.verify = function verify(message) { + DeleteArtifactRequest.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"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; if (message.etag != null && message.hasOwnProperty("etag")) if (!$util.isString(message.etag)) return "etag: string expected"; @@ -98219,102 +102288,97 @@ }; /** - * Creates a DeleteContextRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteArtifactRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteContextRequest} DeleteContextRequest + * @returns {google.cloud.aiplatform.v1.DeleteArtifactRequest} DeleteArtifactRequest */ - DeleteContextRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteContextRequest) + DeleteArtifactRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteArtifactRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteContextRequest(); + var message = new $root.google.cloud.aiplatform.v1.DeleteArtifactRequest(); if (object.name != null) message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); if (object.etag != null) message.etag = String(object.etag); return message; }; /** - * Creates a plain object from a DeleteContextRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteArtifactRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @static - * @param {google.cloud.aiplatform.v1.DeleteContextRequest} message DeleteContextRequest + * @param {google.cloud.aiplatform.v1.DeleteArtifactRequest} message DeleteArtifactRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteContextRequest.toObject = function toObject(message, options) { + DeleteArtifactRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.force = false; object.etag = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; if (message.etag != null && message.hasOwnProperty("etag")) object.etag = message.etag; return object; }; /** - * Converts this DeleteContextRequest to JSON. + * Converts this DeleteArtifactRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @instance * @returns {Object.} JSON object */ - DeleteContextRequest.prototype.toJSON = function toJSON() { + DeleteArtifactRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteContextRequest + * Gets the default type url for DeleteArtifactRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @memberof google.cloud.aiplatform.v1.DeleteArtifactRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteArtifactRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteContextRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteArtifactRequest"; }; - return DeleteContextRequest; + return DeleteArtifactRequest; })(); - v1.PurgeContextsRequest = (function() { + v1.PurgeArtifactsRequest = (function() { /** - * Properties of a PurgeContextsRequest. + * Properties of a PurgeArtifactsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeContextsRequest - * @property {string|null} [parent] PurgeContextsRequest parent - * @property {string|null} [filter] PurgeContextsRequest filter - * @property {boolean|null} [force] PurgeContextsRequest force + * @interface IPurgeArtifactsRequest + * @property {string|null} [parent] PurgeArtifactsRequest parent + * @property {string|null} [filter] PurgeArtifactsRequest filter + * @property {boolean|null} [force] PurgeArtifactsRequest force */ /** - * Constructs a new PurgeContextsRequest. + * Constructs a new PurgeArtifactsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeContextsRequest. - * @implements IPurgeContextsRequest + * @classdesc Represents a PurgeArtifactsRequest. + * @implements IPurgeArtifactsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest=} [properties] Properties to set */ - function PurgeContextsRequest(properties) { + function PurgeArtifactsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -98322,51 +102386,51 @@ } /** - * PurgeContextsRequest parent. + * PurgeArtifactsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @instance */ - PurgeContextsRequest.prototype.parent = ""; + PurgeArtifactsRequest.prototype.parent = ""; /** - * PurgeContextsRequest filter. + * PurgeArtifactsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @instance */ - PurgeContextsRequest.prototype.filter = ""; + PurgeArtifactsRequest.prototype.filter = ""; /** - * PurgeContextsRequest force. + * PurgeArtifactsRequest force. * @member {boolean} force - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @instance */ - PurgeContextsRequest.prototype.force = false; + PurgeArtifactsRequest.prototype.force = false; /** - * Creates a new PurgeContextsRequest instance using the specified properties. + * Creates a new PurgeArtifactsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeContextsRequest} PurgeContextsRequest instance + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsRequest} PurgeArtifactsRequest instance */ - PurgeContextsRequest.create = function create(properties) { - return new PurgeContextsRequest(properties); + PurgeArtifactsRequest.create = function create(properties) { + return new PurgeArtifactsRequest(properties); }; /** - * Encodes the specified PurgeContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsRequest.verify|verify} messages. + * Encodes the specified PurgeArtifactsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest} message PurgeContextsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest} message PurgeArtifactsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsRequest.encode = function encode(message, writer) { + PurgeArtifactsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -98379,33 +102443,33 @@ }; /** - * Encodes the specified PurgeContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsRequest.verify|verify} messages. + * Encodes the specified PurgeArtifactsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest} message PurgeContextsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsRequest} message PurgeArtifactsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeArtifactsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeContextsRequest message from the specified reader or buffer. + * Decodes a PurgeArtifactsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @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.PurgeContextsRequest} PurgeContextsRequest + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsRequest} PurgeArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsRequest.decode = function decode(reader, length) { + PurgeArtifactsRequest.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.PurgeContextsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -98430,30 +102494,30 @@ }; /** - * Decodes a PurgeContextsRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeContextsRequest} PurgeContextsRequest + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsRequest} PurgeArtifactsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeArtifactsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeContextsRequest message. + * Verifies a PurgeArtifactsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeContextsRequest.verify = function verify(message) { + PurgeArtifactsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -98469,17 +102533,17 @@ }; /** - * Creates a PurgeContextsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeContextsRequest} PurgeContextsRequest + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsRequest} PurgeArtifactsRequest */ - PurgeContextsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeContextsRequest) + PurgeArtifactsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeArtifactsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeContextsRequest(); + var message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -98490,15 +102554,15 @@ }; /** - * Creates a plain object from a PurgeContextsRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeArtifactsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @static - * @param {google.cloud.aiplatform.v1.PurgeContextsRequest} message PurgeContextsRequest + * @param {google.cloud.aiplatform.v1.PurgeArtifactsRequest} message PurgeArtifactsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeContextsRequest.toObject = function toObject(message, options) { + PurgeArtifactsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -98517,53 +102581,53 @@ }; /** - * Converts this PurgeContextsRequest to JSON. + * Converts this PurgeArtifactsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @instance * @returns {Object.} JSON object */ - PurgeContextsRequest.prototype.toJSON = function toJSON() { + PurgeArtifactsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeContextsRequest + * Gets the default type url for PurgeArtifactsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeContextsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeArtifactsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeContextsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeArtifactsRequest"; }; - return PurgeContextsRequest; + return PurgeArtifactsRequest; })(); - v1.PurgeContextsResponse = (function() { + v1.PurgeArtifactsResponse = (function() { /** - * Properties of a PurgeContextsResponse. + * Properties of a PurgeArtifactsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeContextsResponse - * @property {number|Long|null} [purgeCount] PurgeContextsResponse purgeCount - * @property {Array.|null} [purgeSample] PurgeContextsResponse purgeSample + * @interface IPurgeArtifactsResponse + * @property {number|Long|null} [purgeCount] PurgeArtifactsResponse purgeCount + * @property {Array.|null} [purgeSample] PurgeArtifactsResponse purgeSample */ /** - * Constructs a new PurgeContextsResponse. + * Constructs a new PurgeArtifactsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeContextsResponse. - * @implements IPurgeContextsResponse + * @classdesc Represents a PurgeArtifactsResponse. + * @implements IPurgeArtifactsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeContextsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsResponse=} [properties] Properties to set */ - function PurgeContextsResponse(properties) { + function PurgeArtifactsResponse(properties) { this.purgeSample = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -98572,43 +102636,43 @@ } /** - * PurgeContextsResponse purgeCount. + * PurgeArtifactsResponse purgeCount. * @member {number|Long} purgeCount - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @instance */ - PurgeContextsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + PurgeArtifactsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * PurgeContextsResponse purgeSample. + * PurgeArtifactsResponse purgeSample. * @member {Array.} purgeSample - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @instance */ - PurgeContextsResponse.prototype.purgeSample = $util.emptyArray; + PurgeArtifactsResponse.prototype.purgeSample = $util.emptyArray; /** - * Creates a new PurgeContextsResponse instance using the specified properties. + * Creates a new PurgeArtifactsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeContextsResponse} PurgeContextsResponse instance + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsResponse} PurgeArtifactsResponse instance */ - PurgeContextsResponse.create = function create(properties) { - return new PurgeContextsResponse(properties); + PurgeArtifactsResponse.create = function create(properties) { + return new PurgeArtifactsResponse(properties); }; /** - * Encodes the specified PurgeContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsResponse.verify|verify} messages. + * Encodes the specified PurgeArtifactsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsResponse} message PurgeContextsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsResponse} message PurgeArtifactsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsResponse.encode = function encode(message, writer) { + PurgeArtifactsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) @@ -98620,33 +102684,33 @@ }; /** - * Encodes the specified PurgeContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsResponse.verify|verify} messages. + * Encodes the specified PurgeArtifactsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsResponse} message PurgeContextsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsResponse} message PurgeArtifactsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsResponse.encodeDelimited = function encodeDelimited(message, writer) { + PurgeArtifactsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeContextsResponse message from the specified reader or buffer. + * Decodes a PurgeArtifactsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @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.PurgeContextsResponse} PurgeContextsResponse + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsResponse} PurgeArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsResponse.decode = function decode(reader, length) { + PurgeArtifactsResponse.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.PurgeContextsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -98669,30 +102733,30 @@ }; /** - * Decodes a PurgeContextsResponse message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeContextsResponse} PurgeContextsResponse + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsResponse} PurgeArtifactsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsResponse.decodeDelimited = function decodeDelimited(reader) { + PurgeArtifactsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeContextsResponse message. + * Verifies a PurgeArtifactsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeContextsResponse.verify = function verify(message) { + PurgeArtifactsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) @@ -98709,17 +102773,17 @@ }; /** - * Creates a PurgeContextsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeContextsResponse} PurgeContextsResponse + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsResponse} PurgeArtifactsResponse */ - PurgeContextsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeContextsResponse) + PurgeArtifactsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeArtifactsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeContextsResponse(); + var message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsResponse(); if (object.purgeCount != null) if ($util.Long) (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; @@ -98731,7 +102795,7 @@ message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); if (object.purgeSample) { if (!Array.isArray(object.purgeSample)) - throw TypeError(".google.cloud.aiplatform.v1.PurgeContextsResponse.purgeSample: array expected"); + throw TypeError(".google.cloud.aiplatform.v1.PurgeArtifactsResponse.purgeSample: array expected"); message.purgeSample = []; for (var i = 0; i < object.purgeSample.length; ++i) message.purgeSample[i] = String(object.purgeSample[i]); @@ -98740,15 +102804,15 @@ }; /** - * Creates a plain object from a PurgeContextsResponse message. Also converts values to other types if specified. + * Creates a plain object from a PurgeArtifactsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @static - * @param {google.cloud.aiplatform.v1.PurgeContextsResponse} message PurgeContextsResponse + * @param {google.cloud.aiplatform.v1.PurgeArtifactsResponse} message PurgeArtifactsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeContextsResponse.toObject = function toObject(message, options) { + PurgeArtifactsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -98774,52 +102838,52 @@ }; /** - * Converts this PurgeContextsResponse to JSON. + * Converts this PurgeArtifactsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @instance * @returns {Object.} JSON object */ - PurgeContextsResponse.prototype.toJSON = function toJSON() { + PurgeArtifactsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeContextsResponse + * Gets the default type url for PurgeArtifactsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeContextsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeArtifactsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeContextsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeArtifactsResponse"; }; - return PurgeContextsResponse; + return PurgeArtifactsResponse; })(); - v1.PurgeContextsMetadata = (function() { + v1.PurgeArtifactsMetadata = (function() { /** - * Properties of a PurgeContextsMetadata. + * Properties of a PurgeArtifactsMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeContextsMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] PurgeContextsMetadata genericMetadata + * @interface IPurgeArtifactsMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] PurgeArtifactsMetadata genericMetadata */ /** - * Constructs a new PurgeContextsMetadata. + * Constructs a new PurgeArtifactsMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeContextsMetadata. - * @implements IPurgeContextsMetadata + * @classdesc Represents a PurgeArtifactsMetadata. + * @implements IPurgeArtifactsMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeContextsMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsMetadata=} [properties] Properties to set */ - function PurgeContextsMetadata(properties) { + function PurgeArtifactsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -98827,35 +102891,35 @@ } /** - * PurgeContextsMetadata genericMetadata. + * PurgeArtifactsMetadata genericMetadata. * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @instance */ - PurgeContextsMetadata.prototype.genericMetadata = null; + PurgeArtifactsMetadata.prototype.genericMetadata = null; /** - * Creates a new PurgeContextsMetadata instance using the specified properties. + * Creates a new PurgeArtifactsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeContextsMetadata} PurgeContextsMetadata instance + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} PurgeArtifactsMetadata instance */ - PurgeContextsMetadata.create = function create(properties) { - return new PurgeContextsMetadata(properties); + PurgeArtifactsMetadata.create = function create(properties) { + return new PurgeArtifactsMetadata(properties); }; /** - * Encodes the specified PurgeContextsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsMetadata.verify|verify} messages. + * Encodes the specified PurgeArtifactsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsMetadata} message PurgeContextsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsMetadata} message PurgeArtifactsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsMetadata.encode = function encode(message, writer) { + PurgeArtifactsMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) @@ -98864,33 +102928,33 @@ }; /** - * Encodes the specified PurgeContextsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsMetadata.verify|verify} messages. + * Encodes the specified PurgeArtifactsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeArtifactsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @static - * @param {google.cloud.aiplatform.v1.IPurgeContextsMetadata} message PurgeContextsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeArtifactsMetadata} message PurgeArtifactsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeContextsMetadata.encodeDelimited = function encodeDelimited(message, writer) { + PurgeArtifactsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeContextsMetadata message from the specified reader or buffer. + * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @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.PurgeContextsMetadata} PurgeContextsMetadata + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} PurgeArtifactsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsMetadata.decode = function decode(reader, length) { + PurgeArtifactsMetadata.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.PurgeContextsMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -98907,30 +102971,30 @@ }; /** - * Decodes a PurgeContextsMetadata message from the specified reader or buffer, length delimited. + * Decodes a PurgeArtifactsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeContextsMetadata} PurgeContextsMetadata + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} PurgeArtifactsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeContextsMetadata.decodeDelimited = function decodeDelimited(reader) { + PurgeArtifactsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeContextsMetadata message. + * Verifies a PurgeArtifactsMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeContextsMetadata.verify = function verify(message) { + PurgeArtifactsMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { @@ -98942,35 +103006,35 @@ }; /** - * Creates a PurgeContextsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeArtifactsMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeContextsMetadata} PurgeContextsMetadata + * @returns {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} PurgeArtifactsMetadata */ - PurgeContextsMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeContextsMetadata) + PurgeArtifactsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeArtifactsMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeContextsMetadata(); + var message = new $root.google.cloud.aiplatform.v1.PurgeArtifactsMetadata(); if (object.genericMetadata != null) { if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PurgeContextsMetadata.genericMetadata: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.PurgeArtifactsMetadata.genericMetadata: object expected"); message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a PurgeContextsMetadata message. Also converts values to other types if specified. + * Creates a plain object from a PurgeArtifactsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @static - * @param {google.cloud.aiplatform.v1.PurgeContextsMetadata} message PurgeContextsMetadata + * @param {google.cloud.aiplatform.v1.PurgeArtifactsMetadata} message PurgeArtifactsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeContextsMetadata.toObject = function toObject(message, options) { + PurgeArtifactsMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -98982,56 +103046,54 @@ }; /** - * Converts this PurgeContextsMetadata to JSON. + * Converts this PurgeArtifactsMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @instance * @returns {Object.} JSON object */ - PurgeContextsMetadata.prototype.toJSON = function toJSON() { + PurgeArtifactsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeContextsMetadata + * Gets the default type url for PurgeArtifactsMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata + * @memberof google.cloud.aiplatform.v1.PurgeArtifactsMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeContextsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeArtifactsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeContextsMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeArtifactsMetadata"; }; - return PurgeContextsMetadata; + return PurgeArtifactsMetadata; })(); - v1.AddContextArtifactsAndExecutionsRequest = (function() { + v1.CreateContextRequest = (function() { /** - * Properties of an AddContextArtifactsAndExecutionsRequest. + * Properties of a CreateContextRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IAddContextArtifactsAndExecutionsRequest - * @property {string|null} [context] AddContextArtifactsAndExecutionsRequest context - * @property {Array.|null} [artifacts] AddContextArtifactsAndExecutionsRequest artifacts - * @property {Array.|null} [executions] AddContextArtifactsAndExecutionsRequest executions + * @interface ICreateContextRequest + * @property {string|null} [parent] CreateContextRequest parent + * @property {google.cloud.aiplatform.v1.IContext|null} [context] CreateContextRequest context + * @property {string|null} [contextId] CreateContextRequest contextId */ /** - * Constructs a new AddContextArtifactsAndExecutionsRequest. + * Constructs a new CreateContextRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an AddContextArtifactsAndExecutionsRequest. - * @implements IAddContextArtifactsAndExecutionsRequest + * @classdesc Represents a CreateContextRequest. + * @implements ICreateContextRequest * @constructor - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateContextRequest=} [properties] Properties to set */ - function AddContextArtifactsAndExecutionsRequest(properties) { - this.artifacts = []; - this.executions = []; + function CreateContextRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99039,109 +103101,103 @@ } /** - * AddContextArtifactsAndExecutionsRequest context. - * @member {string} context - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * CreateContextRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @instance */ - AddContextArtifactsAndExecutionsRequest.prototype.context = ""; + CreateContextRequest.prototype.parent = ""; /** - * AddContextArtifactsAndExecutionsRequest artifacts. - * @member {Array.} artifacts - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * CreateContextRequest context. + * @member {google.cloud.aiplatform.v1.IContext|null|undefined} context + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @instance */ - AddContextArtifactsAndExecutionsRequest.prototype.artifacts = $util.emptyArray; + CreateContextRequest.prototype.context = null; /** - * AddContextArtifactsAndExecutionsRequest executions. - * @member {Array.} executions - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * CreateContextRequest contextId. + * @member {string} contextId + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @instance */ - AddContextArtifactsAndExecutionsRequest.prototype.executions = $util.emptyArray; + CreateContextRequest.prototype.contextId = ""; /** - * Creates a new AddContextArtifactsAndExecutionsRequest instance using the specified properties. + * Creates a new CreateContextRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest instance + * @param {google.cloud.aiplatform.v1.ICreateContextRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateContextRequest} CreateContextRequest instance */ - AddContextArtifactsAndExecutionsRequest.create = function create(properties) { - return new AddContextArtifactsAndExecutionsRequest(properties); + CreateContextRequest.create = function create(properties) { + return new CreateContextRequest(properties); }; /** - * Encodes the specified AddContextArtifactsAndExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. + * Encodes the specified CreateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateContextRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateContextRequest} message CreateContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextArtifactsAndExecutionsRequest.encode = function encode(message, writer) { + CreateContextRequest.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.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); - if (message.artifacts != null && message.artifacts.length) - for (var i = 0; i < message.artifacts.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.artifacts[i]); - if (message.executions != null && message.executions.length) - for (var i = 0; i < message.executions.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.executions[i]); + $root.google.cloud.aiplatform.v1.Context.encode(message.context, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.contextId != null && Object.hasOwnProperty.call(message, "contextId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.contextId); return writer; }; /** - * Encodes the specified AddContextArtifactsAndExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. + * Encodes the specified CreateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateContextRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateContextRequest} message CreateContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextArtifactsAndExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateContextRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer. + * Decodes a CreateContextRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @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.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest + * @returns {google.cloud.aiplatform.v1.CreateContextRequest} CreateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextArtifactsAndExecutionsRequest.decode = function decode(reader, length) { + CreateContextRequest.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.AddContextArtifactsAndExecutionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateContextRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.context = reader.string(); + message.parent = reader.string(); break; } case 2: { - if (!(message.artifacts && message.artifacts.length)) - message.artifacts = []; - message.artifacts.push(reader.string()); + message.context = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); break; } case 3: { - if (!(message.executions && message.executions.length)) - message.executions = []; - message.executions.push(reader.string()); + message.contextId = reader.string(); break; } default: @@ -99153,163 +103209,144 @@ }; /** - * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateContextRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest + * @returns {google.cloud.aiplatform.v1.CreateContextRequest} CreateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextArtifactsAndExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateContextRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddContextArtifactsAndExecutionsRequest message. + * Verifies a CreateContextRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddContextArtifactsAndExecutionsRequest.verify = function verify(message) { + CreateContextRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) - if (!$util.isString(message.context)) - return "context: string expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) { - if (!Array.isArray(message.artifacts)) - return "artifacts: array expected"; - for (var i = 0; i < message.artifacts.length; ++i) - if (!$util.isString(message.artifacts[i])) - return "artifacts: string[] expected"; - } - if (message.executions != null && message.hasOwnProperty("executions")) { - if (!Array.isArray(message.executions)) - return "executions: array expected"; - for (var i = 0; i < message.executions.length; ++i) - if (!$util.isString(message.executions[i])) - return "executions: string[] expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.context != null && message.hasOwnProperty("context")) { + var error = $root.google.cloud.aiplatform.v1.Context.verify(message.context); + if (error) + return "context." + error; } + if (message.contextId != null && message.hasOwnProperty("contextId")) + if (!$util.isString(message.contextId)) + return "contextId: string expected"; return null; }; /** - * Creates an AddContextArtifactsAndExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateContextRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest + * @returns {google.cloud.aiplatform.v1.CreateContextRequest} CreateContextRequest */ - AddContextArtifactsAndExecutionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest) + CreateContextRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateContextRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest(); - if (object.context != null) - message.context = String(object.context); - if (object.artifacts) { - if (!Array.isArray(object.artifacts)) - throw TypeError(".google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.artifacts: array expected"); - message.artifacts = []; - for (var i = 0; i < object.artifacts.length; ++i) - message.artifacts[i] = String(object.artifacts[i]); - } - if (object.executions) { - if (!Array.isArray(object.executions)) - throw TypeError(".google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.executions: array expected"); - message.executions = []; - for (var i = 0; i < object.executions.length; ++i) - message.executions[i] = String(object.executions[i]); + var message = new $root.google.cloud.aiplatform.v1.CreateContextRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.context != null) { + if (typeof object.context !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateContextRequest.context: object expected"); + message.context = $root.google.cloud.aiplatform.v1.Context.fromObject(object.context); } + if (object.contextId != null) + message.contextId = String(object.contextId); return message; }; /** - * Creates a plain object from an AddContextArtifactsAndExecutionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateContextRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @static - * @param {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest + * @param {google.cloud.aiplatform.v1.CreateContextRequest} message CreateContextRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddContextArtifactsAndExecutionsRequest.toObject = function toObject(message, options) { + CreateContextRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.artifacts = []; - object.executions = []; + if (options.defaults) { + object.parent = ""; + object.context = null; + object.contextId = ""; } - if (options.defaults) - object.context = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; if (message.context != null && message.hasOwnProperty("context")) - object.context = message.context; - if (message.artifacts && message.artifacts.length) { - object.artifacts = []; - for (var j = 0; j < message.artifacts.length; ++j) - object.artifacts[j] = message.artifacts[j]; - } - if (message.executions && message.executions.length) { - object.executions = []; - for (var j = 0; j < message.executions.length; ++j) - object.executions[j] = message.executions[j]; - } + object.context = $root.google.cloud.aiplatform.v1.Context.toObject(message.context, options); + if (message.contextId != null && message.hasOwnProperty("contextId")) + object.contextId = message.contextId; return object; }; /** - * Converts this AddContextArtifactsAndExecutionsRequest to JSON. + * Converts this CreateContextRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @instance * @returns {Object.} JSON object */ - AddContextArtifactsAndExecutionsRequest.prototype.toJSON = function toJSON() { + CreateContextRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddContextArtifactsAndExecutionsRequest + * Gets the default type url for CreateContextRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest + * @memberof google.cloud.aiplatform.v1.CreateContextRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddContextArtifactsAndExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateContextRequest"; }; - return AddContextArtifactsAndExecutionsRequest; + return CreateContextRequest; })(); - v1.AddContextArtifactsAndExecutionsResponse = (function() { + v1.GetContextRequest = (function() { /** - * Properties of an AddContextArtifactsAndExecutionsResponse. + * Properties of a GetContextRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IAddContextArtifactsAndExecutionsResponse + * @interface IGetContextRequest + * @property {string|null} [name] GetContextRequest name */ /** - * Constructs a new AddContextArtifactsAndExecutionsResponse. + * Constructs a new GetContextRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an AddContextArtifactsAndExecutionsResponse. - * @implements IAddContextArtifactsAndExecutionsResponse + * @classdesc Represents a GetContextRequest. + * @implements IGetContextRequest * @constructor - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetContextRequest=} [properties] Properties to set */ - function AddContextArtifactsAndExecutionsResponse(properties) { + function GetContextRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99317,63 +103354,77 @@ } /** - * Creates a new AddContextArtifactsAndExecutionsResponse instance using the specified properties. + * GetContextRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetContextRequest + * @instance + */ + GetContextRequest.prototype.name = ""; + + /** + * Creates a new GetContextRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse instance + * @param {google.cloud.aiplatform.v1.IGetContextRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetContextRequest} GetContextRequest instance */ - AddContextArtifactsAndExecutionsResponse.create = function create(properties) { - return new AddContextArtifactsAndExecutionsResponse(properties); + GetContextRequest.create = function create(properties) { + return new GetContextRequest(properties); }; /** - * Encodes the specified AddContextArtifactsAndExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. + * Encodes the specified GetContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetContextRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetContextRequest} message GetContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextArtifactsAndExecutionsResponse.encode = function encode(message, writer) { + GetContextRequest.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 AddContextArtifactsAndExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. + * Encodes the specified GetContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetContextRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetContextRequest} message GetContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextArtifactsAndExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetContextRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer. + * Decodes a GetContextRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @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.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse + * @returns {google.cloud.aiplatform.v1.GetContextRequest} GetContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextArtifactsAndExecutionsResponse.decode = function decode(reader, length) { + GetContextRequest.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.AddContextArtifactsAndExecutionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetContextRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -99383,111 +103434,126 @@ }; /** - * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetContextRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse + * @returns {google.cloud.aiplatform.v1.GetContextRequest} GetContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextArtifactsAndExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { + GetContextRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddContextArtifactsAndExecutionsResponse message. + * Verifies a GetContextRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddContextArtifactsAndExecutionsResponse.verify = function verify(message) { + GetContextRequest.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 an AddContextArtifactsAndExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetContextRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse + * @returns {google.cloud.aiplatform.v1.GetContextRequest} GetContextRequest */ - AddContextArtifactsAndExecutionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse) + GetContextRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetContextRequest) return object; - return new $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse(); + var message = new $root.google.cloud.aiplatform.v1.GetContextRequest(); + if (object.name != null) + message.name = String(object.name); + return message; }; /** - * Creates a plain object from an AddContextArtifactsAndExecutionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetContextRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @static - * @param {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse + * @param {google.cloud.aiplatform.v1.GetContextRequest} message GetContextRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddContextArtifactsAndExecutionsResponse.toObject = function toObject() { - return {}; + GetContextRequest.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 AddContextArtifactsAndExecutionsResponse to JSON. + * Converts this GetContextRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @instance * @returns {Object.} JSON object */ - AddContextArtifactsAndExecutionsResponse.prototype.toJSON = function toJSON() { + GetContextRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddContextArtifactsAndExecutionsResponse + * Gets the default type url for GetContextRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse + * @memberof google.cloud.aiplatform.v1.GetContextRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddContextArtifactsAndExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetContextRequest"; }; - return AddContextArtifactsAndExecutionsResponse; + return GetContextRequest; })(); - v1.AddContextChildrenRequest = (function() { + v1.ListContextsRequest = (function() { /** - * Properties of an AddContextChildrenRequest. + * Properties of a ListContextsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IAddContextChildrenRequest - * @property {string|null} [context] AddContextChildrenRequest context - * @property {Array.|null} [childContexts] AddContextChildrenRequest childContexts + * @interface IListContextsRequest + * @property {string|null} [parent] ListContextsRequest parent + * @property {number|null} [pageSize] ListContextsRequest pageSize + * @property {string|null} [pageToken] ListContextsRequest pageToken + * @property {string|null} [filter] ListContextsRequest filter + * @property {string|null} [orderBy] ListContextsRequest orderBy */ /** - * Constructs a new AddContextChildrenRequest. + * Constructs a new ListContextsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an AddContextChildrenRequest. - * @implements IAddContextChildrenRequest + * @classdesc Represents a ListContextsRequest. + * @implements IListContextsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListContextsRequest=} [properties] Properties to set */ - function AddContextChildrenRequest(properties) { - this.childContexts = []; + function ListContextsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99495,92 +103561,131 @@ } /** - * AddContextChildrenRequest context. - * @member {string} context - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * ListContextsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @instance */ - AddContextChildrenRequest.prototype.context = ""; + ListContextsRequest.prototype.parent = ""; /** - * AddContextChildrenRequest childContexts. - * @member {Array.} childContexts - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * ListContextsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @instance */ - AddContextChildrenRequest.prototype.childContexts = $util.emptyArray; + ListContextsRequest.prototype.pageSize = 0; /** - * Creates a new AddContextChildrenRequest instance using the specified properties. + * ListContextsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @instance + */ + ListContextsRequest.prototype.pageToken = ""; + + /** + * ListContextsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @instance + */ + ListContextsRequest.prototype.filter = ""; + + /** + * ListContextsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListContextsRequest + * @instance + */ + ListContextsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListContextsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.AddContextChildrenRequest} AddContextChildrenRequest instance + * @param {google.cloud.aiplatform.v1.IListContextsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListContextsRequest} ListContextsRequest instance */ - AddContextChildrenRequest.create = function create(properties) { - return new AddContextChildrenRequest(properties); + ListContextsRequest.create = function create(properties) { + return new ListContextsRequest(properties); }; /** - * Encodes the specified AddContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenRequest.verify|verify} messages. + * Encodes the specified ListContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest} message AddContextChildrenRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListContextsRequest} message ListContextsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextChildrenRequest.encode = function encode(message, writer) { + ListContextsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); - if (message.childContexts != null && message.childContexts.length) - for (var i = 0; i < message.childContexts.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.childContexts[i]); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified AddContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenRequest.verify|verify} messages. + * Encodes the specified ListContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @static - * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest} message AddContextChildrenRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListContextsRequest} message ListContextsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextChildrenRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListContextsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddContextChildrenRequest message from the specified reader or buffer. + * Decodes a ListContextsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @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.AddContextChildrenRequest} AddContextChildrenRequest + * @returns {google.cloud.aiplatform.v1.ListContextsRequest} ListContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextChildrenRequest.decode = function decode(reader, length) { + ListContextsRequest.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.AddContextChildrenRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListContextsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.context = reader.string(); + message.parent = reader.string(); break; } case 2: { - if (!(message.childContexts && message.childContexts.length)) - message.childContexts = []; - message.childContexts.push(reader.string()); + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -99592,142 +103697,157 @@ }; /** - * Decodes an AddContextChildrenRequest message from the specified reader or buffer, length delimited. + * Decodes a ListContextsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.AddContextChildrenRequest} AddContextChildrenRequest + * @returns {google.cloud.aiplatform.v1.ListContextsRequest} ListContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextChildrenRequest.decodeDelimited = function decodeDelimited(reader) { + ListContextsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddContextChildrenRequest message. + * Verifies a ListContextsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddContextChildrenRequest.verify = function verify(message) { + ListContextsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) - if (!$util.isString(message.context)) - return "context: string expected"; - if (message.childContexts != null && message.hasOwnProperty("childContexts")) { - if (!Array.isArray(message.childContexts)) - return "childContexts: array expected"; - for (var i = 0; i < message.childContexts.length; ++i) - if (!$util.isString(message.childContexts[i])) - return "childContexts: string[] expected"; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates an AddContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListContextsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.AddContextChildrenRequest} AddContextChildrenRequest + * @returns {google.cloud.aiplatform.v1.ListContextsRequest} ListContextsRequest */ - AddContextChildrenRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.AddContextChildrenRequest) + ListContextsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListContextsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.AddContextChildrenRequest(); - if (object.context != null) - message.context = String(object.context); - if (object.childContexts) { - if (!Array.isArray(object.childContexts)) - throw TypeError(".google.cloud.aiplatform.v1.AddContextChildrenRequest.childContexts: array expected"); - message.childContexts = []; - for (var i = 0; i < object.childContexts.length; ++i) - message.childContexts[i] = String(object.childContexts[i]); - } + var message = new $root.google.cloud.aiplatform.v1.ListContextsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from an AddContextChildrenRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListContextsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @static - * @param {google.cloud.aiplatform.v1.AddContextChildrenRequest} message AddContextChildrenRequest + * @param {google.cloud.aiplatform.v1.ListContextsRequest} message ListContextsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddContextChildrenRequest.toObject = function toObject(message, options) { + ListContextsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.childContexts = []; - if (options.defaults) - object.context = ""; - if (message.context != null && message.hasOwnProperty("context")) - object.context = message.context; - if (message.childContexts && message.childContexts.length) { - object.childContexts = []; - for (var j = 0; j < message.childContexts.length; ++j) - object.childContexts[j] = message.childContexts[j]; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this AddContextChildrenRequest to JSON. + * Converts this ListContextsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @instance * @returns {Object.} JSON object */ - AddContextChildrenRequest.prototype.toJSON = function toJSON() { + ListContextsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddContextChildrenRequest + * Gets the default type url for ListContextsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.ListContextsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddContextChildrenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListContextsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddContextChildrenRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListContextsRequest"; }; - return AddContextChildrenRequest; + return ListContextsRequest; })(); - v1.AddContextChildrenResponse = (function() { + v1.ListContextsResponse = (function() { /** - * Properties of an AddContextChildrenResponse. + * Properties of a ListContextsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IAddContextChildrenResponse + * @interface IListContextsResponse + * @property {Array.|null} [contexts] ListContextsResponse contexts + * @property {string|null} [nextPageToken] ListContextsResponse nextPageToken */ /** - * Constructs a new AddContextChildrenResponse. + * Constructs a new ListContextsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an AddContextChildrenResponse. - * @implements IAddContextChildrenResponse + * @classdesc Represents a ListContextsResponse. + * @implements IListContextsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IAddContextChildrenResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListContextsResponse=} [properties] Properties to set */ - function AddContextChildrenResponse(properties) { + function ListContextsResponse(properties) { + this.contexts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99735,63 +103855,94 @@ } /** - * Creates a new AddContextChildrenResponse instance using the specified properties. + * ListContextsResponse contexts. + * @member {Array.} contexts + * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @instance + */ + ListContextsResponse.prototype.contexts = $util.emptyArray; + + /** + * ListContextsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListContextsResponse + * @instance + */ + ListContextsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListContextsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @static - * @param {google.cloud.aiplatform.v1.IAddContextChildrenResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.AddContextChildrenResponse} AddContextChildrenResponse instance + * @param {google.cloud.aiplatform.v1.IListContextsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListContextsResponse} ListContextsResponse instance */ - AddContextChildrenResponse.create = function create(properties) { - return new AddContextChildrenResponse(properties); + ListContextsResponse.create = function create(properties) { + return new ListContextsResponse(properties); }; /** - * Encodes the specified AddContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenResponse.verify|verify} messages. + * Encodes the specified ListContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @static - * @param {google.cloud.aiplatform.v1.IAddContextChildrenResponse} message AddContextChildrenResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListContextsResponse} message ListContextsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextChildrenResponse.encode = function encode(message, writer) { + ListContextsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.contexts != null && message.contexts.length) + for (var i = 0; i < message.contexts.length; ++i) + $root.google.cloud.aiplatform.v1.Context.encode(message.contexts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified AddContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenResponse.verify|verify} messages. + * Encodes the specified ListContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListContextsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @static - * @param {google.cloud.aiplatform.v1.IAddContextChildrenResponse} message AddContextChildrenResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListContextsResponse} message ListContextsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddContextChildrenResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListContextsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddContextChildrenResponse message from the specified reader or buffer. + * Decodes a ListContextsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @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.AddContextChildrenResponse} AddContextChildrenResponse + * @returns {google.cloud.aiplatform.v1.ListContextsResponse} ListContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextChildrenResponse.decode = function decode(reader, length) { + ListContextsResponse.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.AddContextChildrenResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListContextsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + if (!(message.contexts && message.contexts.length)) + message.contexts = []; + message.contexts.push($root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -99801,111 +103952,150 @@ }; /** - * Decodes an AddContextChildrenResponse message from the specified reader or buffer, length delimited. + * Decodes a ListContextsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.AddContextChildrenResponse} AddContextChildrenResponse + * @returns {google.cloud.aiplatform.v1.ListContextsResponse} ListContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddContextChildrenResponse.decodeDelimited = function decodeDelimited(reader) { + ListContextsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddContextChildrenResponse message. + * Verifies a ListContextsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddContextChildrenResponse.verify = function verify(message) { + ListContextsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.contexts != null && message.hasOwnProperty("contexts")) { + if (!Array.isArray(message.contexts)) + return "contexts: array expected"; + for (var i = 0; i < message.contexts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Context.verify(message.contexts[i]); + if (error) + return "contexts." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an AddContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListContextsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.AddContextChildrenResponse} AddContextChildrenResponse + * @returns {google.cloud.aiplatform.v1.ListContextsResponse} ListContextsResponse */ - AddContextChildrenResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.AddContextChildrenResponse) + ListContextsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListContextsResponse) return object; - return new $root.google.cloud.aiplatform.v1.AddContextChildrenResponse(); + var message = new $root.google.cloud.aiplatform.v1.ListContextsResponse(); + if (object.contexts) { + if (!Array.isArray(object.contexts)) + throw TypeError(".google.cloud.aiplatform.v1.ListContextsResponse.contexts: array expected"); + message.contexts = []; + for (var i = 0; i < object.contexts.length; ++i) { + if (typeof object.contexts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListContextsResponse.contexts: object expected"); + message.contexts[i] = $root.google.cloud.aiplatform.v1.Context.fromObject(object.contexts[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; }; /** - * Creates a plain object from an AddContextChildrenResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListContextsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @static - * @param {google.cloud.aiplatform.v1.AddContextChildrenResponse} message AddContextChildrenResponse + * @param {google.cloud.aiplatform.v1.ListContextsResponse} message ListContextsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddContextChildrenResponse.toObject = function toObject() { - return {}; + ListContextsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.contexts = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.contexts && message.contexts.length) { + object.contexts = []; + for (var j = 0; j < message.contexts.length; ++j) + object.contexts[j] = $root.google.cloud.aiplatform.v1.Context.toObject(message.contexts[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; }; /** - * Converts this AddContextChildrenResponse to JSON. + * Converts this ListContextsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @instance * @returns {Object.} JSON object */ - AddContextChildrenResponse.prototype.toJSON = function toJSON() { + ListContextsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddContextChildrenResponse + * Gets the default type url for ListContextsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.ListContextsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddContextChildrenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListContextsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddContextChildrenResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListContextsResponse"; }; - return AddContextChildrenResponse; + return ListContextsResponse; })(); - v1.RemoveContextChildrenRequest = (function() { + v1.UpdateContextRequest = (function() { /** - * Properties of a RemoveContextChildrenRequest. + * Properties of an UpdateContextRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IRemoveContextChildrenRequest - * @property {string|null} [context] RemoveContextChildrenRequest context - * @property {Array.|null} [childContexts] RemoveContextChildrenRequest childContexts + * @interface IUpdateContextRequest + * @property {google.cloud.aiplatform.v1.IContext|null} [context] UpdateContextRequest context + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateContextRequest updateMask + * @property {boolean|null} [allowMissing] UpdateContextRequest allowMissing */ /** - * Constructs a new RemoveContextChildrenRequest. + * Constructs a new UpdateContextRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a RemoveContextChildrenRequest. - * @implements IRemoveContextChildrenRequest + * @classdesc Represents an UpdateContextRequest. + * @implements IUpdateContextRequest * @constructor - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateContextRequest=} [properties] Properties to set */ - function RemoveContextChildrenRequest(properties) { - this.childContexts = []; + function UpdateContextRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -99913,92 +104103,103 @@ } /** - * RemoveContextChildrenRequest context. - * @member {string} context - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * UpdateContextRequest context. + * @member {google.cloud.aiplatform.v1.IContext|null|undefined} context + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @instance */ - RemoveContextChildrenRequest.prototype.context = ""; + UpdateContextRequest.prototype.context = null; /** - * RemoveContextChildrenRequest childContexts. - * @member {Array.} childContexts - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * UpdateContextRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @instance */ - RemoveContextChildrenRequest.prototype.childContexts = $util.emptyArray; + UpdateContextRequest.prototype.updateMask = null; /** - * Creates a new RemoveContextChildrenRequest instance using the specified properties. + * UpdateContextRequest allowMissing. + * @member {boolean} allowMissing + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest + * @instance + */ + UpdateContextRequest.prototype.allowMissing = false; + + /** + * Creates a new UpdateContextRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @static - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest instance + * @param {google.cloud.aiplatform.v1.IUpdateContextRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateContextRequest} UpdateContextRequest instance */ - RemoveContextChildrenRequest.create = function create(properties) { - return new RemoveContextChildrenRequest(properties); + UpdateContextRequest.create = function create(properties) { + return new UpdateContextRequest(properties); }; /** - * Encodes the specified RemoveContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. + * Encodes the specified UpdateContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateContextRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @static - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} message RemoveContextChildrenRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateContextRequest} message UpdateContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveContextChildrenRequest.encode = function encode(message, writer) { + UpdateContextRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); - if (message.childContexts != null && message.childContexts.length) - for (var i = 0; i < message.childContexts.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.childContexts[i]); + $root.google.cloud.aiplatform.v1.Context.encode(message.context, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); return writer; }; /** - * Encodes the specified RemoveContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. + * Encodes the specified UpdateContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateContextRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @static - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} message RemoveContextChildrenRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateContextRequest} message UpdateContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveContextChildrenRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateContextRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer. + * Decodes an UpdateContextRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @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.RemoveContextChildrenRequest} RemoveContextChildrenRequest + * @returns {google.cloud.aiplatform.v1.UpdateContextRequest} UpdateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveContextChildrenRequest.decode = function decode(reader, length) { + UpdateContextRequest.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.RemoveContextChildrenRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateContextRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.context = reader.string(); + message.context = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); break; } case 2: { - if (!(message.childContexts && message.childContexts.length)) - message.childContexts = []; - message.childContexts.push(reader.string()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 3: { + message.allowMissing = reader.bool(); break; } default: @@ -100010,142 +104211,151 @@ }; /** - * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateContextRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest + * @returns {google.cloud.aiplatform.v1.UpdateContextRequest} UpdateContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveContextChildrenRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateContextRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveContextChildrenRequest message. + * Verifies an UpdateContextRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveContextChildrenRequest.verify = function verify(message) { + UpdateContextRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) - if (!$util.isString(message.context)) - return "context: string expected"; - if (message.childContexts != null && message.hasOwnProperty("childContexts")) { - if (!Array.isArray(message.childContexts)) - return "childContexts: array expected"; - for (var i = 0; i < message.childContexts.length; ++i) - if (!$util.isString(message.childContexts[i])) - return "childContexts: string[] expected"; + if (message.context != null && message.hasOwnProperty("context")) { + var error = $root.google.cloud.aiplatform.v1.Context.verify(message.context); + if (error) + return "context." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + if (typeof message.allowMissing !== "boolean") + return "allowMissing: boolean expected"; return null; }; /** - * Creates a RemoveContextChildrenRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateContextRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest + * @returns {google.cloud.aiplatform.v1.UpdateContextRequest} UpdateContextRequest */ - RemoveContextChildrenRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest) + UpdateContextRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateContextRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest(); - if (object.context != null) - message.context = String(object.context); - if (object.childContexts) { - if (!Array.isArray(object.childContexts)) - throw TypeError(".google.cloud.aiplatform.v1.RemoveContextChildrenRequest.childContexts: array expected"); - message.childContexts = []; - for (var i = 0; i < object.childContexts.length; ++i) - message.childContexts[i] = String(object.childContexts[i]); + var message = new $root.google.cloud.aiplatform.v1.UpdateContextRequest(); + if (object.context != null) { + if (typeof object.context !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateContextRequest.context: object expected"); + message.context = $root.google.cloud.aiplatform.v1.Context.fromObject(object.context); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateContextRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } + if (object.allowMissing != null) + message.allowMissing = Boolean(object.allowMissing); return message; }; /** - * Creates a plain object from a RemoveContextChildrenRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateContextRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @static - * @param {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} message RemoveContextChildrenRequest + * @param {google.cloud.aiplatform.v1.UpdateContextRequest} message UpdateContextRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveContextChildrenRequest.toObject = function toObject(message, options) { + UpdateContextRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.childContexts = []; - if (options.defaults) - object.context = ""; - if (message.context != null && message.hasOwnProperty("context")) - object.context = message.context; - if (message.childContexts && message.childContexts.length) { - object.childContexts = []; - for (var j = 0; j < message.childContexts.length; ++j) - object.childContexts[j] = message.childContexts[j]; + if (options.defaults) { + object.context = null; + object.updateMask = null; + object.allowMissing = false; } + if (message.context != null && message.hasOwnProperty("context")) + object.context = $root.google.cloud.aiplatform.v1.Context.toObject(message.context, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + object.allowMissing = message.allowMissing; return object; }; /** - * Converts this RemoveContextChildrenRequest to JSON. + * Converts this UpdateContextRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @instance * @returns {Object.} JSON object */ - RemoveContextChildrenRequest.prototype.toJSON = function toJSON() { + UpdateContextRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveContextChildrenRequest + * Gets the default type url for UpdateContextRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest + * @memberof google.cloud.aiplatform.v1.UpdateContextRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveContextChildrenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.RemoveContextChildrenRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateContextRequest"; }; - return RemoveContextChildrenRequest; + return UpdateContextRequest; })(); - v1.RemoveContextChildrenResponse = (function() { + v1.DeleteContextRequest = (function() { /** - * Properties of a RemoveContextChildrenResponse. + * Properties of a DeleteContextRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IRemoveContextChildrenResponse + * @interface IDeleteContextRequest + * @property {string|null} [name] DeleteContextRequest name + * @property {boolean|null} [force] DeleteContextRequest force + * @property {string|null} [etag] DeleteContextRequest etag */ /** - * Constructs a new RemoveContextChildrenResponse. + * Constructs a new DeleteContextRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a RemoveContextChildrenResponse. - * @implements IRemoveContextChildrenResponse + * @classdesc Represents a DeleteContextRequest. + * @implements IDeleteContextRequest * @constructor - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteContextRequest=} [properties] Properties to set */ - function RemoveContextChildrenResponse(properties) { + function DeleteContextRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100153,63 +104363,105 @@ } /** - * Creates a new RemoveContextChildrenResponse instance using the specified properties. + * DeleteContextRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @instance + */ + DeleteContextRequest.prototype.name = ""; + + /** + * DeleteContextRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @instance + */ + DeleteContextRequest.prototype.force = false; + + /** + * DeleteContextRequest etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest + * @instance + */ + DeleteContextRequest.prototype.etag = ""; + + /** + * Creates a new DeleteContextRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @static - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse instance + * @param {google.cloud.aiplatform.v1.IDeleteContextRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteContextRequest} DeleteContextRequest instance */ - RemoveContextChildrenResponse.create = function create(properties) { - return new RemoveContextChildrenResponse(properties); + DeleteContextRequest.create = function create(properties) { + return new DeleteContextRequest(properties); }; /** - * Encodes the specified RemoveContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. + * Encodes the specified DeleteContextRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteContextRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @static - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse} message RemoveContextChildrenResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteContextRequest} message DeleteContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveContextChildrenResponse.encode = function encode(message, writer) { + DeleteContextRequest.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); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.etag); return writer; }; /** - * Encodes the specified RemoveContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. + * Encodes the specified DeleteContextRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteContextRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @static - * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse} message RemoveContextChildrenResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteContextRequest} message DeleteContextRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveContextChildrenResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteContextRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer. + * Decodes a DeleteContextRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @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.RemoveContextChildrenResponse} RemoveContextChildrenResponse + * @returns {google.cloud.aiplatform.v1.DeleteContextRequest} DeleteContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveContextChildrenResponse.decode = function decode(reader, length) { + DeleteContextRequest.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.RemoveContextChildrenResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteContextRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.force = reader.bool(); + break; + } + case 3: { + message.etag = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -100219,109 +104471,141 @@ }; /** - * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteContextRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse + * @returns {google.cloud.aiplatform.v1.DeleteContextRequest} DeleteContextRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveContextChildrenResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteContextRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveContextChildrenResponse message. + * Verifies a DeleteContextRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveContextChildrenResponse.verify = function verify(message) { + DeleteContextRequest.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"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; /** - * Creates a RemoveContextChildrenResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteContextRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse + * @returns {google.cloud.aiplatform.v1.DeleteContextRequest} DeleteContextRequest */ - RemoveContextChildrenResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse) + DeleteContextRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteContextRequest) return object; - return new $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse(); + var message = new $root.google.cloud.aiplatform.v1.DeleteContextRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); + if (object.etag != null) + message.etag = String(object.etag); + return message; }; /** - * Creates a plain object from a RemoveContextChildrenResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteContextRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @static - * @param {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} message RemoveContextChildrenResponse + * @param {google.cloud.aiplatform.v1.DeleteContextRequest} message DeleteContextRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveContextChildrenResponse.toObject = function toObject() { - return {}; + DeleteContextRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.force = false; + object.etag = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + return object; }; /** - * Converts this RemoveContextChildrenResponse to JSON. + * Converts this DeleteContextRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @instance * @returns {Object.} JSON object */ - RemoveContextChildrenResponse.prototype.toJSON = function toJSON() { + DeleteContextRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveContextChildrenResponse + * Gets the default type url for DeleteContextRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse + * @memberof google.cloud.aiplatform.v1.DeleteContextRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveContextChildrenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteContextRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.RemoveContextChildrenResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteContextRequest"; }; - return RemoveContextChildrenResponse; + return DeleteContextRequest; })(); - v1.QueryContextLineageSubgraphRequest = (function() { + v1.PurgeContextsRequest = (function() { /** - * Properties of a QueryContextLineageSubgraphRequest. + * Properties of a PurgeContextsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IQueryContextLineageSubgraphRequest - * @property {string|null} [context] QueryContextLineageSubgraphRequest context + * @interface IPurgeContextsRequest + * @property {string|null} [parent] PurgeContextsRequest parent + * @property {string|null} [filter] PurgeContextsRequest filter + * @property {boolean|null} [force] PurgeContextsRequest force */ /** - * Constructs a new QueryContextLineageSubgraphRequest. + * Constructs a new PurgeContextsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a QueryContextLineageSubgraphRequest. - * @implements IQueryContextLineageSubgraphRequest + * @classdesc Represents a PurgeContextsRequest. + * @implements IPurgeContextsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest=} [properties] Properties to set */ - function QueryContextLineageSubgraphRequest(properties) { + function PurgeContextsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100329,75 +104613,103 @@ } /** - * QueryContextLineageSubgraphRequest context. - * @member {string} context - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * PurgeContextsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @instance */ - QueryContextLineageSubgraphRequest.prototype.context = ""; + PurgeContextsRequest.prototype.parent = ""; /** - * Creates a new QueryContextLineageSubgraphRequest instance using the specified properties. + * PurgeContextsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @instance + */ + PurgeContextsRequest.prototype.filter = ""; + + /** + * PurgeContextsRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest + * @instance + */ + PurgeContextsRequest.prototype.force = false; + + /** + * Creates a new PurgeContextsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @static - * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest instance + * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeContextsRequest} PurgeContextsRequest instance */ - QueryContextLineageSubgraphRequest.create = function create(properties) { - return new QueryContextLineageSubgraphRequest(properties); + PurgeContextsRequest.create = function create(properties) { + return new PurgeContextsRequest(properties); }; /** - * Encodes the specified QueryContextLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest.verify|verify} messages. + * Encodes the specified PurgeContextsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @static - * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest} message PurgeContextsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryContextLineageSubgraphRequest.encode = function encode(message, writer) { + PurgeContextsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.context != null && Object.hasOwnProperty.call(message, "context")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); return writer; }; /** - * Encodes the specified QueryContextLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest.verify|verify} messages. + * Encodes the specified PurgeContextsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @static - * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeContextsRequest} message PurgeContextsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryContextLineageSubgraphRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeContextsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer. + * Decodes a PurgeContextsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @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.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsRequest} PurgeContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryContextLineageSubgraphRequest.decode = function decode(reader, length) { + PurgeContextsRequest.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.QueryContextLineageSubgraphRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeContextsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.context = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.force = reader.bool(); break; } default: @@ -100409,124 +104721,141 @@ }; /** - * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsRequest} PurgeContextsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryContextLineageSubgraphRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeContextsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryContextLineageSubgraphRequest message. + * Verifies a PurgeContextsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryContextLineageSubgraphRequest.verify = function verify(message) { + PurgeContextsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.context != null && message.hasOwnProperty("context")) - if (!$util.isString(message.context)) - return "context: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a QueryContextLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsRequest} PurgeContextsRequest */ - QueryContextLineageSubgraphRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest) + PurgeContextsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeContextsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest(); - if (object.context != null) - message.context = String(object.context); + var message = new $root.google.cloud.aiplatform.v1.PurgeContextsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a QueryContextLineageSubgraphRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeContextsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @static - * @param {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest + * @param {google.cloud.aiplatform.v1.PurgeContextsRequest} message PurgeContextsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryContextLineageSubgraphRequest.toObject = function toObject(message, options) { + PurgeContextsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.context = ""; - if (message.context != null && message.hasOwnProperty("context")) - object.context = message.context; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.force = false; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this QueryContextLineageSubgraphRequest to JSON. + * Converts this PurgeContextsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @instance * @returns {Object.} JSON object */ - QueryContextLineageSubgraphRequest.prototype.toJSON = function toJSON() { + PurgeContextsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QueryContextLineageSubgraphRequest + * Gets the default type url for PurgeContextsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QueryContextLineageSubgraphRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeContextsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeContextsRequest"; }; - return QueryContextLineageSubgraphRequest; + return PurgeContextsRequest; })(); - v1.CreateExecutionRequest = (function() { + v1.PurgeContextsResponse = (function() { /** - * Properties of a CreateExecutionRequest. + * Properties of a PurgeContextsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateExecutionRequest - * @property {string|null} [parent] CreateExecutionRequest parent - * @property {google.cloud.aiplatform.v1.IExecution|null} [execution] CreateExecutionRequest execution - * @property {string|null} [executionId] CreateExecutionRequest executionId + * @interface IPurgeContextsResponse + * @property {number|Long|null} [purgeCount] PurgeContextsResponse purgeCount + * @property {Array.|null} [purgeSample] PurgeContextsResponse purgeSample */ /** - * Constructs a new CreateExecutionRequest. + * Constructs a new PurgeContextsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateExecutionRequest. - * @implements ICreateExecutionRequest + * @classdesc Represents a PurgeContextsResponse. + * @implements IPurgeContextsResponse * @constructor - * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeContextsResponse=} [properties] Properties to set */ - function CreateExecutionRequest(properties) { + function PurgeContextsResponse(properties) { + this.purgeSample = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100534,103 +104863,92 @@ } /** - * CreateExecutionRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest - * @instance - */ - CreateExecutionRequest.prototype.parent = ""; - - /** - * CreateExecutionRequest execution. - * @member {google.cloud.aiplatform.v1.IExecution|null|undefined} execution - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * PurgeContextsResponse purgeCount. + * @member {number|Long} purgeCount + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @instance */ - CreateExecutionRequest.prototype.execution = null; + PurgeContextsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * CreateExecutionRequest executionId. - * @member {string} executionId - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * PurgeContextsResponse purgeSample. + * @member {Array.} purgeSample + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @instance */ - CreateExecutionRequest.prototype.executionId = ""; + PurgeContextsResponse.prototype.purgeSample = $util.emptyArray; /** - * Creates a new CreateExecutionRequest instance using the specified properties. + * Creates a new PurgeContextsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateExecutionRequest} CreateExecutionRequest instance + * @param {google.cloud.aiplatform.v1.IPurgeContextsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeContextsResponse} PurgeContextsResponse instance */ - CreateExecutionRequest.create = function create(properties) { - return new CreateExecutionRequest(properties); + PurgeContextsResponse.create = function create(properties) { + return new PurgeContextsResponse(properties); }; /** - * Encodes the specified CreateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateExecutionRequest.verify|verify} messages. + * Encodes the specified PurgeContextsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest} message CreateExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeContextsResponse} message PurgeContextsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateExecutionRequest.encode = function encode(message, writer) { + PurgeContextsResponse.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.execution != null && Object.hasOwnProperty.call(message, "execution")) - $root.google.cloud.aiplatform.v1.Execution.encode(message.execution, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.executionId != null && Object.hasOwnProperty.call(message, "executionId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.executionId); + if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); + if (message.purgeSample != null && message.purgeSample.length) + for (var i = 0; i < message.purgeSample.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); return writer; }; /** - * Encodes the specified CreateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateExecutionRequest.verify|verify} messages. + * Encodes the specified PurgeContextsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest} message CreateExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeContextsResponse} message PurgeContextsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeContextsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateExecutionRequest message from the specified reader or buffer. + * Decodes a PurgeContextsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @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.CreateExecutionRequest} CreateExecutionRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsResponse} PurgeContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateExecutionRequest.decode = function decode(reader, length) { + PurgeContextsResponse.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.CreateExecutionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeContextsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.purgeCount = reader.int64(); break; } case 2: { - message.execution = $root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32()); - break; - } - case 3: { - message.executionId = reader.string(); + if (!(message.purgeSample && message.purgeSample.length)) + message.purgeSample = []; + message.purgeSample.push(reader.string()); break; } default: @@ -100642,144 +104960,157 @@ }; /** - * Decodes a CreateExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateExecutionRequest} CreateExecutionRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsResponse} PurgeContextsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateExecutionRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeContextsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateExecutionRequest message. + * Verifies a PurgeContextsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateExecutionRequest.verify = function verify(message) { + PurgeContextsResponse.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.execution != null && message.hasOwnProperty("execution")) { - var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.execution); - if (error) - return "execution." + error; + if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) + return "purgeCount: integer|Long expected"; + if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { + if (!Array.isArray(message.purgeSample)) + return "purgeSample: array expected"; + for (var i = 0; i < message.purgeSample.length; ++i) + if (!$util.isString(message.purgeSample[i])) + return "purgeSample: string[] expected"; } - if (message.executionId != null && message.hasOwnProperty("executionId")) - if (!$util.isString(message.executionId)) - return "executionId: string expected"; return null; }; /** - * Creates a CreateExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateExecutionRequest} CreateExecutionRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsResponse} PurgeContextsResponse */ - CreateExecutionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateExecutionRequest) + PurgeContextsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeContextsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateExecutionRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.execution != null) { - if (typeof object.execution !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateExecutionRequest.execution: object expected"); - message.execution = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.execution); + var message = new $root.google.cloud.aiplatform.v1.PurgeContextsResponse(); + if (object.purgeCount != null) + if ($util.Long) + (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; + else if (typeof object.purgeCount === "string") + message.purgeCount = parseInt(object.purgeCount, 10); + else if (typeof object.purgeCount === "number") + message.purgeCount = object.purgeCount; + else if (typeof object.purgeCount === "object") + message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); + if (object.purgeSample) { + if (!Array.isArray(object.purgeSample)) + throw TypeError(".google.cloud.aiplatform.v1.PurgeContextsResponse.purgeSample: array expected"); + message.purgeSample = []; + for (var i = 0; i < object.purgeSample.length; ++i) + message.purgeSample[i] = String(object.purgeSample[i]); } - if (object.executionId != null) - message.executionId = String(object.executionId); return message; }; /** - * Creates a plain object from a CreateExecutionRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeContextsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @static - * @param {google.cloud.aiplatform.v1.CreateExecutionRequest} message CreateExecutionRequest + * @param {google.cloud.aiplatform.v1.PurgeContextsResponse} message PurgeContextsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateExecutionRequest.toObject = function toObject(message, options) { + PurgeContextsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.execution = null; - object.executionId = ""; + if (options.arrays || options.defaults) + object.purgeSample = []; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.purgeCount = options.longs === String ? "0" : 0; + if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (typeof message.purgeCount === "number") + object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; + else + object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; + if (message.purgeSample && message.purgeSample.length) { + object.purgeSample = []; + for (var j = 0; j < message.purgeSample.length; ++j) + object.purgeSample[j] = message.purgeSample[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = $root.google.cloud.aiplatform.v1.Execution.toObject(message.execution, options); - if (message.executionId != null && message.hasOwnProperty("executionId")) - object.executionId = message.executionId; return object; }; /** - * Converts this CreateExecutionRequest to JSON. + * Converts this PurgeContextsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @instance * @returns {Object.} JSON object */ - CreateExecutionRequest.prototype.toJSON = function toJSON() { + PurgeContextsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateExecutionRequest + * Gets the default type url for PurgeContextsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeContextsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateExecutionRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeContextsResponse"; }; - return CreateExecutionRequest; + return PurgeContextsResponse; })(); - v1.GetExecutionRequest = (function() { + v1.PurgeContextsMetadata = (function() { /** - * Properties of a GetExecutionRequest. + * Properties of a PurgeContextsMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IGetExecutionRequest - * @property {string|null} [name] GetExecutionRequest name + * @interface IPurgeContextsMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] PurgeContextsMetadata genericMetadata */ /** - * Constructs a new GetExecutionRequest. + * Constructs a new PurgeContextsMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetExecutionRequest. - * @implements IGetExecutionRequest + * @classdesc Represents a PurgeContextsMetadata. + * @implements IPurgeContextsMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IGetExecutionRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeContextsMetadata=} [properties] Properties to set */ - function GetExecutionRequest(properties) { + function PurgeContextsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100787,75 +105118,75 @@ } /** - * GetExecutionRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * PurgeContextsMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @instance */ - GetExecutionRequest.prototype.name = ""; + PurgeContextsMetadata.prototype.genericMetadata = null; /** - * Creates a new GetExecutionRequest instance using the specified properties. + * Creates a new PurgeContextsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @static - * @param {google.cloud.aiplatform.v1.IGetExecutionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetExecutionRequest} GetExecutionRequest instance + * @param {google.cloud.aiplatform.v1.IPurgeContextsMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeContextsMetadata} PurgeContextsMetadata instance */ - GetExecutionRequest.create = function create(properties) { - return new GetExecutionRequest(properties); + PurgeContextsMetadata.create = function create(properties) { + return new PurgeContextsMetadata(properties); }; /** - * Encodes the specified GetExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetExecutionRequest.verify|verify} messages. + * Encodes the specified PurgeContextsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @static - * @param {google.cloud.aiplatform.v1.IGetExecutionRequest} message GetExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeContextsMetadata} message PurgeContextsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetExecutionRequest.encode = function encode(message, writer) { + PurgeContextsMetadata.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); + 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 GetExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetExecutionRequest.verify|verify} messages. + * Encodes the specified PurgeContextsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeContextsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @static - * @param {google.cloud.aiplatform.v1.IGetExecutionRequest} message GetExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeContextsMetadata} message PurgeContextsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeContextsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetExecutionRequest message from the specified reader or buffer. + * Decodes a PurgeContextsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @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.GetExecutionRequest} GetExecutionRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsMetadata} PurgeContextsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetExecutionRequest.decode = function decode(reader, length) { + PurgeContextsMetadata.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.GetExecutionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeContextsMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -100867,126 +105198,131 @@ }; /** - * Decodes a GetExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeContextsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetExecutionRequest} GetExecutionRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsMetadata} PurgeContextsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetExecutionRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeContextsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetExecutionRequest message. + * Verifies a PurgeContextsMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetExecutionRequest.verify = function verify(message) { + PurgeContextsMetadata.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"; + 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 GetExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeContextsMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetExecutionRequest} GetExecutionRequest + * @returns {google.cloud.aiplatform.v1.PurgeContextsMetadata} PurgeContextsMetadata */ - GetExecutionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetExecutionRequest) + PurgeContextsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeContextsMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.GetExecutionRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.PurgeContextsMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PurgeContextsMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } return message; }; /** - * Creates a plain object from a GetExecutionRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeContextsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @static - * @param {google.cloud.aiplatform.v1.GetExecutionRequest} message GetExecutionRequest + * @param {google.cloud.aiplatform.v1.PurgeContextsMetadata} message PurgeContextsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetExecutionRequest.toObject = function toObject(message, options) { + PurgeContextsMetadata.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; + 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 GetExecutionRequest to JSON. + * Converts this PurgeContextsMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @instance * @returns {Object.} JSON object */ - GetExecutionRequest.prototype.toJSON = function toJSON() { + PurgeContextsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetExecutionRequest + * Gets the default type url for PurgeContextsMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @memberof google.cloud.aiplatform.v1.PurgeContextsMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeContextsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetExecutionRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeContextsMetadata"; }; - return GetExecutionRequest; + return PurgeContextsMetadata; })(); - v1.ListExecutionsRequest = (function() { + v1.AddContextArtifactsAndExecutionsRequest = (function() { /** - * Properties of a ListExecutionsRequest. + * Properties of an AddContextArtifactsAndExecutionsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListExecutionsRequest - * @property {string|null} [parent] ListExecutionsRequest parent - * @property {number|null} [pageSize] ListExecutionsRequest pageSize - * @property {string|null} [pageToken] ListExecutionsRequest pageToken - * @property {string|null} [filter] ListExecutionsRequest filter - * @property {string|null} [orderBy] ListExecutionsRequest orderBy + * @interface IAddContextArtifactsAndExecutionsRequest + * @property {string|null} [context] AddContextArtifactsAndExecutionsRequest context + * @property {Array.|null} [artifacts] AddContextArtifactsAndExecutionsRequest artifacts + * @property {Array.|null} [executions] AddContextArtifactsAndExecutionsRequest executions */ /** - * Constructs a new ListExecutionsRequest. + * Constructs a new AddContextArtifactsAndExecutionsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListExecutionsRequest. - * @implements IListExecutionsRequest + * @classdesc Represents an AddContextArtifactsAndExecutionsRequest. + * @implements IAddContextArtifactsAndExecutionsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListExecutionsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest=} [properties] Properties to set */ - function ListExecutionsRequest(properties) { + function AddContextArtifactsAndExecutionsRequest(properties) { + this.artifacts = []; + this.executions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -100994,131 +105330,109 @@ } /** - * ListExecutionsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest - * @instance - */ - ListExecutionsRequest.prototype.parent = ""; - - /** - * ListExecutionsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest - * @instance - */ - ListExecutionsRequest.prototype.pageSize = 0; - - /** - * ListExecutionsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * AddContextArtifactsAndExecutionsRequest context. + * @member {string} context + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @instance */ - ListExecutionsRequest.prototype.pageToken = ""; + AddContextArtifactsAndExecutionsRequest.prototype.context = ""; /** - * ListExecutionsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * AddContextArtifactsAndExecutionsRequest artifacts. + * @member {Array.} artifacts + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @instance */ - ListExecutionsRequest.prototype.filter = ""; + AddContextArtifactsAndExecutionsRequest.prototype.artifacts = $util.emptyArray; /** - * ListExecutionsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * AddContextArtifactsAndExecutionsRequest executions. + * @member {Array.} executions + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @instance */ - ListExecutionsRequest.prototype.orderBy = ""; + AddContextArtifactsAndExecutionsRequest.prototype.executions = $util.emptyArray; /** - * Creates a new ListExecutionsRequest instance using the specified properties. + * Creates a new AddContextArtifactsAndExecutionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IListExecutionsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListExecutionsRequest} ListExecutionsRequest instance + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest instance */ - ListExecutionsRequest.create = function create(properties) { - return new ListExecutionsRequest(properties); + AddContextArtifactsAndExecutionsRequest.create = function create(properties) { + return new AddContextArtifactsAndExecutionsRequest(properties); }; /** - * Encodes the specified ListExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsRequest.verify|verify} messages. + * Encodes the specified AddContextArtifactsAndExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IListExecutionsRequest} message ListExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExecutionsRequest.encode = function encode(message, writer) { + AddContextArtifactsAndExecutionsRequest.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.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); + if (message.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.artifacts[i]); + if (message.executions != null && message.executions.length) + for (var i = 0; i < message.executions.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.executions[i]); return writer; }; /** - * Encodes the specified ListExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsRequest.verify|verify} messages. + * Encodes the specified AddContextArtifactsAndExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IListExecutionsRequest} message ListExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddContextArtifactsAndExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListExecutionsRequest message from the specified reader or buffer. + * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @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.ListExecutionsRequest} ListExecutionsRequest + * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExecutionsRequest.decode = function decode(reader, length) { + AddContextArtifactsAndExecutionsRequest.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.ListExecutionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.context = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push(reader.string()); break; } case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); - break; - } - case 5: { - message.orderBy = reader.string(); + if (!(message.executions && message.executions.length)) + message.executions = []; + message.executions.push(reader.string()); break; } default: @@ -101130,157 +105444,163 @@ }; /** - * Decodes a ListExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextArtifactsAndExecutionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListExecutionsRequest} ListExecutionsRequest + * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { + AddContextArtifactsAndExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListExecutionsRequest message. + * Verifies an AddContextArtifactsAndExecutionsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListExecutionsRequest.verify = function verify(message) { + AddContextArtifactsAndExecutionsRequest.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.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.context != null && message.hasOwnProperty("context")) + if (!$util.isString(message.context)) + return "context: string expected"; + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) + if (!$util.isString(message.artifacts[i])) + return "artifacts: string[] expected"; + } + if (message.executions != null && message.hasOwnProperty("executions")) { + if (!Array.isArray(message.executions)) + return "executions: array expected"; + for (var i = 0; i < message.executions.length; ++i) + if (!$util.isString(message.executions[i])) + return "executions: string[] expected"; + } return null; }; /** - * Creates a ListExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextArtifactsAndExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListExecutionsRequest} ListExecutionsRequest + * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} AddContextArtifactsAndExecutionsRequest */ - ListExecutionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListExecutionsRequest) + AddContextArtifactsAndExecutionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListExecutionsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + var message = new $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest(); + if (object.context != null) + message.context = String(object.context); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) + message.artifacts[i] = String(object.artifacts[i]); + } + if (object.executions) { + if (!Array.isArray(object.executions)) + throw TypeError(".google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest.executions: array expected"); + message.executions = []; + for (var i = 0; i < object.executions.length; ++i) + message.executions[i] = String(object.executions[i]); + } return message; }; /** - * Creates a plain object from a ListExecutionsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddContextArtifactsAndExecutionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.ListExecutionsRequest} message ListExecutionsRequest + * @param {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest} message AddContextArtifactsAndExecutionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListExecutionsRequest.toObject = function toObject(message, options) { + AddContextArtifactsAndExecutionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.orderBy = ""; + if (options.arrays || options.defaults) { + object.artifacts = []; + object.executions = []; + } + if (options.defaults) + object.context = ""; + if (message.context != null && message.hasOwnProperty("context")) + object.context = message.context; + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = message.artifacts[j]; + } + if (message.executions && message.executions.length) { + object.executions = []; + for (var j = 0; j < message.executions.length; ++j) + object.executions[j] = message.executions[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; return object; }; /** - * Converts this ListExecutionsRequest to JSON. + * Converts this AddContextArtifactsAndExecutionsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @instance * @returns {Object.} JSON object */ - ListExecutionsRequest.prototype.toJSON = function toJSON() { + AddContextArtifactsAndExecutionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListExecutionsRequest + * Gets the default type url for AddContextArtifactsAndExecutionsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AddContextArtifactsAndExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListExecutionsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest"; }; - return ListExecutionsRequest; + return AddContextArtifactsAndExecutionsRequest; })(); - v1.ListExecutionsResponse = (function() { + v1.AddContextArtifactsAndExecutionsResponse = (function() { /** - * Properties of a ListExecutionsResponse. + * Properties of an AddContextArtifactsAndExecutionsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IListExecutionsResponse - * @property {Array.|null} [executions] ListExecutionsResponse executions - * @property {string|null} [nextPageToken] ListExecutionsResponse nextPageToken + * @interface IAddContextArtifactsAndExecutionsResponse */ /** - * Constructs a new ListExecutionsResponse. + * Constructs a new AddContextArtifactsAndExecutionsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListExecutionsResponse. - * @implements IListExecutionsResponse + * @classdesc Represents an AddContextArtifactsAndExecutionsResponse. + * @implements IAddContextArtifactsAndExecutionsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListExecutionsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse=} [properties] Properties to set */ - function ListExecutionsResponse(properties) { - this.executions = []; + function AddContextArtifactsAndExecutionsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101288,94 +105608,63 @@ } /** - * ListExecutionsResponse executions. - * @member {Array.} executions - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse - * @instance - */ - ListExecutionsResponse.prototype.executions = $util.emptyArray; - - /** - * ListExecutionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse - * @instance - */ - ListExecutionsResponse.prototype.nextPageToken = ""; - - /** - * Creates a new ListExecutionsResponse instance using the specified properties. + * Creates a new AddContextArtifactsAndExecutionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.IListExecutionsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListExecutionsResponse} ListExecutionsResponse instance + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse instance */ - ListExecutionsResponse.create = function create(properties) { - return new ListExecutionsResponse(properties); + AddContextArtifactsAndExecutionsResponse.create = function create(properties) { + return new AddContextArtifactsAndExecutionsResponse(properties); }; /** - * Encodes the specified ListExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsResponse.verify|verify} messages. + * Encodes the specified AddContextArtifactsAndExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.IListExecutionsResponse} message ListExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExecutionsResponse.encode = function encode(message, writer) { + AddContextArtifactsAndExecutionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.executions != null && message.executions.length) - for (var i = 0; i < message.executions.length; ++i) - $root.google.cloud.aiplatform.v1.Execution.encode(message.executions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsResponse.verify|verify} messages. + * Encodes the specified AddContextArtifactsAndExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.IListExecutionsResponse} message ListExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IAddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + AddContextArtifactsAndExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListExecutionsResponse message from the specified reader or buffer. + * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @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.ListExecutionsResponse} ListExecutionsResponse + * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExecutionsResponse.decode = function decode(reader, length) { + AddContextArtifactsAndExecutionsResponse.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.ListExecutionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.executions && message.executions.length)) - message.executions = []; - message.executions.push($root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -101385,150 +105674,111 @@ }; /** - * Decodes a ListExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes an AddContextArtifactsAndExecutionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListExecutionsResponse} ListExecutionsResponse + * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { + AddContextArtifactsAndExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListExecutionsResponse message. + * Verifies an AddContextArtifactsAndExecutionsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListExecutionsResponse.verify = function verify(message) { + AddContextArtifactsAndExecutionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.executions != null && message.hasOwnProperty("executions")) { - if (!Array.isArray(message.executions)) - return "executions: array expected"; - for (var i = 0; i < message.executions.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.executions[i]); - if (error) - return "executions." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextArtifactsAndExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListExecutionsResponse} ListExecutionsResponse + * @returns {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} AddContextArtifactsAndExecutionsResponse */ - ListExecutionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListExecutionsResponse) + AddContextArtifactsAndExecutionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ListExecutionsResponse(); - if (object.executions) { - if (!Array.isArray(object.executions)) - throw TypeError(".google.cloud.aiplatform.v1.ListExecutionsResponse.executions: array expected"); - message.executions = []; - for (var i = 0; i < object.executions.length; ++i) { - if (typeof object.executions[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListExecutionsResponse.executions: object expected"); - message.executions[i] = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.executions[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; + return new $root.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse(); }; /** - * Creates a plain object from a ListExecutionsResponse message. Also converts values to other types if specified. + * Creates a plain object from an AddContextArtifactsAndExecutionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.ListExecutionsResponse} message ListExecutionsResponse + * @param {google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse} message AddContextArtifactsAndExecutionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListExecutionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.executions = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.executions && message.executions.length) { - object.executions = []; - for (var j = 0; j < message.executions.length; ++j) - object.executions[j] = $root.google.cloud.aiplatform.v1.Execution.toObject(message.executions[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; + AddContextArtifactsAndExecutionsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ListExecutionsResponse to JSON. + * Converts this AddContextArtifactsAndExecutionsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @instance * @returns {Object.} JSON object */ - ListExecutionsResponse.prototype.toJSON = function toJSON() { + AddContextArtifactsAndExecutionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListExecutionsResponse + * Gets the default type url for AddContextArtifactsAndExecutionsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse + * @memberof google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AddContextArtifactsAndExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListExecutionsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsResponse"; }; - return ListExecutionsResponse; + return AddContextArtifactsAndExecutionsResponse; })(); - v1.UpdateExecutionRequest = (function() { + v1.AddContextChildrenRequest = (function() { /** - * Properties of an UpdateExecutionRequest. + * Properties of an AddContextChildrenRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateExecutionRequest - * @property {google.cloud.aiplatform.v1.IExecution|null} [execution] UpdateExecutionRequest execution - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExecutionRequest updateMask - * @property {boolean|null} [allowMissing] UpdateExecutionRequest allowMissing + * @interface IAddContextChildrenRequest + * @property {string|null} [context] AddContextChildrenRequest context + * @property {Array.|null} [childContexts] AddContextChildrenRequest childContexts */ /** - * Constructs a new UpdateExecutionRequest. + * Constructs a new AddContextChildrenRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateExecutionRequest. - * @implements IUpdateExecutionRequest + * @classdesc Represents an AddContextChildrenRequest. + * @implements IAddContextChildrenRequest * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest=} [properties] Properties to set */ - function UpdateExecutionRequest(properties) { + function AddContextChildrenRequest(properties) { + this.childContexts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101536,103 +105786,92 @@ } /** - * UpdateExecutionRequest execution. - * @member {google.cloud.aiplatform.v1.IExecution|null|undefined} execution - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest - * @instance - */ - UpdateExecutionRequest.prototype.execution = null; - - /** - * UpdateExecutionRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * AddContextChildrenRequest context. + * @member {string} context + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @instance */ - UpdateExecutionRequest.prototype.updateMask = null; + AddContextChildrenRequest.prototype.context = ""; /** - * UpdateExecutionRequest allowMissing. - * @member {boolean} allowMissing - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * AddContextChildrenRequest childContexts. + * @member {Array.} childContexts + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @instance */ - UpdateExecutionRequest.prototype.allowMissing = false; + AddContextChildrenRequest.prototype.childContexts = $util.emptyArray; /** - * Creates a new UpdateExecutionRequest instance using the specified properties. + * Creates a new AddContextChildrenRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateExecutionRequest} UpdateExecutionRequest instance + * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.AddContextChildrenRequest} AddContextChildrenRequest instance */ - UpdateExecutionRequest.create = function create(properties) { - return new UpdateExecutionRequest(properties); + AddContextChildrenRequest.create = function create(properties) { + return new AddContextChildrenRequest(properties); }; /** - * Encodes the specified UpdateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateExecutionRequest.verify|verify} messages. + * Encodes the specified AddContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest} message UpdateExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest} message AddContextChildrenRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExecutionRequest.encode = function encode(message, writer) { + AddContextChildrenRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - $root.google.cloud.aiplatform.v1.Execution.encode(message.execution, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); + if (message.childContexts != null && message.childContexts.length) + for (var i = 0; i < message.childContexts.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childContexts[i]); return writer; }; /** - * Encodes the specified UpdateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateExecutionRequest.verify|verify} messages. + * Encodes the specified AddContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest} message UpdateExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IAddContextChildrenRequest} message AddContextChildrenRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddContextChildrenRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateExecutionRequest message from the specified reader or buffer. + * Decodes an AddContextChildrenRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @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.UpdateExecutionRequest} UpdateExecutionRequest + * @returns {google.cloud.aiplatform.v1.AddContextChildrenRequest} AddContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExecutionRequest.decode = function decode(reader, length) { + AddContextChildrenRequest.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.UpdateExecutionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.AddContextChildrenRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.execution = $root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32()); + message.context = reader.string(); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - case 3: { - message.allowMissing = reader.bool(); + if (!(message.childContexts && message.childContexts.length)) + message.childContexts = []; + message.childContexts.push(reader.string()); break; } default: @@ -101644,150 +105883,142 @@ }; /** - * Decodes an UpdateExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextChildrenRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateExecutionRequest} UpdateExecutionRequest + * @returns {google.cloud.aiplatform.v1.AddContextChildrenRequest} AddContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateExecutionRequest.decodeDelimited = function decodeDelimited(reader) { + AddContextChildrenRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateExecutionRequest message. + * Verifies an AddContextChildrenRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateExecutionRequest.verify = function verify(message) { + AddContextChildrenRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.execution != null && message.hasOwnProperty("execution")) { - var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.execution); - if (error) - return "execution." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.context != null && message.hasOwnProperty("context")) + if (!$util.isString(message.context)) + return "context: string expected"; + if (message.childContexts != null && message.hasOwnProperty("childContexts")) { + if (!Array.isArray(message.childContexts)) + return "childContexts: array expected"; + for (var i = 0; i < message.childContexts.length; ++i) + if (!$util.isString(message.childContexts[i])) + return "childContexts: string[] expected"; } - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - if (typeof message.allowMissing !== "boolean") - return "allowMissing: boolean expected"; return null; }; /** - * Creates an UpdateExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextChildrenRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateExecutionRequest} UpdateExecutionRequest + * @returns {google.cloud.aiplatform.v1.AddContextChildrenRequest} AddContextChildrenRequest */ - UpdateExecutionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateExecutionRequest) + AddContextChildrenRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.AddContextChildrenRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateExecutionRequest(); - if (object.execution != null) { - if (typeof object.execution !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateExecutionRequest.execution: object expected"); - message.execution = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.execution); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateExecutionRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.aiplatform.v1.AddContextChildrenRequest(); + if (object.context != null) + message.context = String(object.context); + if (object.childContexts) { + if (!Array.isArray(object.childContexts)) + throw TypeError(".google.cloud.aiplatform.v1.AddContextChildrenRequest.childContexts: array expected"); + message.childContexts = []; + for (var i = 0; i < object.childContexts.length; ++i) + message.childContexts[i] = String(object.childContexts[i]); } - if (object.allowMissing != null) - message.allowMissing = Boolean(object.allowMissing); return message; }; /** - * Creates a plain object from an UpdateExecutionRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddContextChildrenRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1.UpdateExecutionRequest} message UpdateExecutionRequest + * @param {google.cloud.aiplatform.v1.AddContextChildrenRequest} message AddContextChildrenRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateExecutionRequest.toObject = function toObject(message, options) { + AddContextChildrenRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.execution = null; - object.updateMask = null; - object.allowMissing = false; + if (options.arrays || options.defaults) + object.childContexts = []; + if (options.defaults) + object.context = ""; + if (message.context != null && message.hasOwnProperty("context")) + object.context = message.context; + if (message.childContexts && message.childContexts.length) { + object.childContexts = []; + for (var j = 0; j < message.childContexts.length; ++j) + object.childContexts[j] = message.childContexts[j]; } - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = $root.google.cloud.aiplatform.v1.Execution.toObject(message.execution, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) - object.allowMissing = message.allowMissing; return object; }; /** - * Converts this UpdateExecutionRequest to JSON. + * Converts this AddContextChildrenRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @instance * @returns {Object.} JSON object */ - UpdateExecutionRequest.prototype.toJSON = function toJSON() { + AddContextChildrenRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateExecutionRequest + * Gets the default type url for AddContextChildrenRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AddContextChildrenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateExecutionRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddContextChildrenRequest"; }; - return UpdateExecutionRequest; + return AddContextChildrenRequest; })(); - v1.DeleteExecutionRequest = (function() { + v1.AddContextChildrenResponse = (function() { /** - * Properties of a DeleteExecutionRequest. + * Properties of an AddContextChildrenResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteExecutionRequest - * @property {string|null} [name] DeleteExecutionRequest name - * @property {string|null} [etag] DeleteExecutionRequest etag + * @interface IAddContextChildrenResponse */ /** - * Constructs a new DeleteExecutionRequest. + * Constructs a new AddContextChildrenResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteExecutionRequest. - * @implements IDeleteExecutionRequest + * @classdesc Represents an AddContextChildrenResponse. + * @implements IAddContextChildrenResponse * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IAddContextChildrenResponse=} [properties] Properties to set */ - function DeleteExecutionRequest(properties) { + function AddContextChildrenResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -101795,91 +106026,63 @@ } /** - * DeleteExecutionRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest - * @instance - */ - DeleteExecutionRequest.prototype.name = ""; - - /** - * DeleteExecutionRequest etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest - * @instance - */ - DeleteExecutionRequest.prototype.etag = ""; - - /** - * Creates a new DeleteExecutionRequest instance using the specified properties. + * Creates a new AddContextChildrenResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteExecutionRequest} DeleteExecutionRequest instance + * @param {google.cloud.aiplatform.v1.IAddContextChildrenResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.AddContextChildrenResponse} AddContextChildrenResponse instance */ - DeleteExecutionRequest.create = function create(properties) { - return new DeleteExecutionRequest(properties); + AddContextChildrenResponse.create = function create(properties) { + return new AddContextChildrenResponse(properties); }; /** - * Encodes the specified DeleteExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteExecutionRequest.verify|verify} messages. + * Encodes the specified AddContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest} message DeleteExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IAddContextChildrenResponse} message AddContextChildrenResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteExecutionRequest.encode = function encode(message, writer) { + AddContextChildrenResponse.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); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); return writer; }; /** - * Encodes the specified DeleteExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteExecutionRequest.verify|verify} messages. + * Encodes the specified AddContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddContextChildrenResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest} message DeleteExecutionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IAddContextChildrenResponse} message AddContextChildrenResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { + AddContextChildrenResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteExecutionRequest message from the specified reader or buffer. + * Decodes an AddContextChildrenResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @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.DeleteExecutionRequest} DeleteExecutionRequest + * @returns {google.cloud.aiplatform.v1.AddContextChildrenResponse} AddContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteExecutionRequest.decode = function decode(reader, length) { + AddContextChildrenResponse.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.DeleteExecutionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.AddContextChildrenResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.etag = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -101889,133 +106092,111 @@ }; /** - * Decodes a DeleteExecutionRequest message from the specified reader or buffer, length delimited. + * Decodes an AddContextChildrenResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteExecutionRequest} DeleteExecutionRequest + * @returns {google.cloud.aiplatform.v1.AddContextChildrenResponse} AddContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteExecutionRequest.decodeDelimited = function decodeDelimited(reader) { + AddContextChildrenResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteExecutionRequest message. + * Verifies an AddContextChildrenResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteExecutionRequest.verify = function verify(message) { + AddContextChildrenResponse.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"; - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; return null; }; /** - * Creates a DeleteExecutionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AddContextChildrenResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteExecutionRequest} DeleteExecutionRequest + * @returns {google.cloud.aiplatform.v1.AddContextChildrenResponse} AddContextChildrenResponse */ - DeleteExecutionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteExecutionRequest) + AddContextChildrenResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.AddContextChildrenResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteExecutionRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.etag != null) - message.etag = String(object.etag); - return message; + return new $root.google.cloud.aiplatform.v1.AddContextChildrenResponse(); }; /** - * Creates a plain object from a DeleteExecutionRequest message. Also converts values to other types if specified. + * Creates a plain object from an AddContextChildrenResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1.DeleteExecutionRequest} message DeleteExecutionRequest + * @param {google.cloud.aiplatform.v1.AddContextChildrenResponse} message AddContextChildrenResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteExecutionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.etag = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - return object; + AddContextChildrenResponse.toObject = function toObject() { + return {}; }; /** - * Converts this DeleteExecutionRequest to JSON. + * Converts this AddContextChildrenResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @instance * @returns {Object.} JSON object */ - DeleteExecutionRequest.prototype.toJSON = function toJSON() { + AddContextChildrenResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteExecutionRequest + * Gets the default type url for AddContextChildrenResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest + * @memberof google.cloud.aiplatform.v1.AddContextChildrenResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AddContextChildrenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteExecutionRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddContextChildrenResponse"; }; - return DeleteExecutionRequest; + return AddContextChildrenResponse; })(); - v1.PurgeExecutionsRequest = (function() { + v1.RemoveContextChildrenRequest = (function() { /** - * Properties of a PurgeExecutionsRequest. + * Properties of a RemoveContextChildrenRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeExecutionsRequest - * @property {string|null} [parent] PurgeExecutionsRequest parent - * @property {string|null} [filter] PurgeExecutionsRequest filter - * @property {boolean|null} [force] PurgeExecutionsRequest force + * @interface IRemoveContextChildrenRequest + * @property {string|null} [context] RemoveContextChildrenRequest context + * @property {Array.|null} [childContexts] RemoveContextChildrenRequest childContexts */ /** - * Constructs a new PurgeExecutionsRequest. + * Constructs a new RemoveContextChildrenRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeExecutionsRequest. - * @implements IPurgeExecutionsRequest + * @classdesc Represents a RemoveContextChildrenRequest. + * @implements IRemoveContextChildrenRequest * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest=} [properties] Properties to set */ - function PurgeExecutionsRequest(properties) { + function RemoveContextChildrenRequest(properties) { + this.childContexts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102023,103 +106204,92 @@ } /** - * PurgeExecutionsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest - * @instance - */ - PurgeExecutionsRequest.prototype.parent = ""; - - /** - * PurgeExecutionsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * RemoveContextChildrenRequest context. + * @member {string} context + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @instance */ - PurgeExecutionsRequest.prototype.filter = ""; + RemoveContextChildrenRequest.prototype.context = ""; /** - * PurgeExecutionsRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * RemoveContextChildrenRequest childContexts. + * @member {Array.} childContexts + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @instance */ - PurgeExecutionsRequest.prototype.force = false; + RemoveContextChildrenRequest.prototype.childContexts = $util.emptyArray; /** - * Creates a new PurgeExecutionsRequest instance using the specified properties. + * Creates a new RemoveContextChildrenRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsRequest} PurgeExecutionsRequest instance + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest instance */ - PurgeExecutionsRequest.create = function create(properties) { - return new PurgeExecutionsRequest(properties); + RemoveContextChildrenRequest.create = function create(properties) { + return new RemoveContextChildrenRequest(properties); }; /** - * Encodes the specified PurgeExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsRequest.verify|verify} messages. + * Encodes the specified RemoveContextChildrenRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest} message PurgeExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} message RemoveContextChildrenRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeExecutionsRequest.encode = function encode(message, writer) { + RemoveContextChildrenRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); + if (message.childContexts != null && message.childContexts.length) + for (var i = 0; i < message.childContexts.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childContexts[i]); return writer; }; /** - * Encodes the specified PurgeExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsRequest.verify|verify} messages. + * Encodes the specified RemoveContextChildrenRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest} message PurgeExecutionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenRequest} message RemoveContextChildrenRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + RemoveContextChildrenRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeExecutionsRequest message from the specified reader or buffer. + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @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.PurgeExecutionsRequest} PurgeExecutionsRequest + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeExecutionsRequest.decode = function decode(reader, length) { + RemoveContextChildrenRequest.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.PurgeExecutionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.context = reader.string(); break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.force = reader.bool(); + if (!(message.childContexts && message.childContexts.length)) + message.childContexts = []; + message.childContexts.push(reader.string()); break; } default: @@ -102131,141 +106301,142 @@ }; /** - * Decodes a PurgeExecutionsRequest message from the specified reader or buffer, length delimited. + * Decodes a RemoveContextChildrenRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsRequest} PurgeExecutionsRequest + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { + RemoveContextChildrenRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeExecutionsRequest message. + * Verifies a RemoveContextChildrenRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeExecutionsRequest.verify = function verify(message) { + RemoveContextChildrenRequest.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.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.context != null && message.hasOwnProperty("context")) + if (!$util.isString(message.context)) + return "context: string expected"; + if (message.childContexts != null && message.hasOwnProperty("childContexts")) { + if (!Array.isArray(message.childContexts)) + return "childContexts: array expected"; + for (var i = 0; i < message.childContexts.length; ++i) + if (!$util.isString(message.childContexts[i])) + return "childContexts: string[] expected"; + } return null; }; /** - * Creates a PurgeExecutionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveContextChildrenRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsRequest} PurgeExecutionsRequest + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} RemoveContextChildrenRequest */ - PurgeExecutionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeExecutionsRequest) + RemoveContextChildrenRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.force != null) - message.force = Boolean(object.force); + var message = new $root.google.cloud.aiplatform.v1.RemoveContextChildrenRequest(); + if (object.context != null) + message.context = String(object.context); + if (object.childContexts) { + if (!Array.isArray(object.childContexts)) + throw TypeError(".google.cloud.aiplatform.v1.RemoveContextChildrenRequest.childContexts: array expected"); + message.childContexts = []; + for (var i = 0; i < object.childContexts.length; ++i) + message.childContexts[i] = String(object.childContexts[i]); + } return message; }; /** - * Creates a plain object from a PurgeExecutionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a RemoveContextChildrenRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @static - * @param {google.cloud.aiplatform.v1.PurgeExecutionsRequest} message PurgeExecutionsRequest + * @param {google.cloud.aiplatform.v1.RemoveContextChildrenRequest} message RemoveContextChildrenRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeExecutionsRequest.toObject = function toObject(message, options) { + RemoveContextChildrenRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.force = false; + if (options.arrays || options.defaults) + object.childContexts = []; + if (options.defaults) + object.context = ""; + if (message.context != null && message.hasOwnProperty("context")) + object.context = message.context; + if (message.childContexts && message.childContexts.length) { + object.childContexts = []; + for (var j = 0; j < message.childContexts.length; ++j) + object.childContexts[j] = message.childContexts[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; return object; }; /** - * Converts this PurgeExecutionsRequest to JSON. + * Converts this RemoveContextChildrenRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @instance * @returns {Object.} JSON object */ - PurgeExecutionsRequest.prototype.toJSON = function toJSON() { + RemoveContextChildrenRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeExecutionsRequest + * Gets the default type url for RemoveContextChildrenRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveContextChildrenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeExecutionsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RemoveContextChildrenRequest"; }; - return PurgeExecutionsRequest; + return RemoveContextChildrenRequest; })(); - v1.PurgeExecutionsResponse = (function() { + v1.RemoveContextChildrenResponse = (function() { /** - * Properties of a PurgeExecutionsResponse. + * Properties of a RemoveContextChildrenResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeExecutionsResponse - * @property {number|Long|null} [purgeCount] PurgeExecutionsResponse purgeCount - * @property {Array.|null} [purgeSample] PurgeExecutionsResponse purgeSample + * @interface IRemoveContextChildrenResponse */ /** - * Constructs a new PurgeExecutionsResponse. + * Constructs a new RemoveContextChildrenResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeExecutionsResponse. - * @implements IPurgeExecutionsResponse + * @classdesc Represents a RemoveContextChildrenResponse. + * @implements IRemoveContextChildrenResponse * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse=} [properties] Properties to set */ - function PurgeExecutionsResponse(properties) { - this.purgeSample = []; + function RemoveContextChildrenResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102273,94 +106444,63 @@ } /** - * PurgeExecutionsResponse purgeCount. - * @member {number|Long} purgeCount - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse - * @instance - */ - PurgeExecutionsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * PurgeExecutionsResponse purgeSample. - * @member {Array.} purgeSample - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse - * @instance - */ - PurgeExecutionsResponse.prototype.purgeSample = $util.emptyArray; - - /** - * Creates a new PurgeExecutionsResponse instance using the specified properties. + * Creates a new RemoveContextChildrenResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsResponse} PurgeExecutionsResponse instance + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse instance */ - PurgeExecutionsResponse.create = function create(properties) { - return new PurgeExecutionsResponse(properties); + RemoveContextChildrenResponse.create = function create(properties) { + return new RemoveContextChildrenResponse(properties); }; /** - * Encodes the specified PurgeExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsResponse.verify|verify} messages. + * Encodes the specified RemoveContextChildrenResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsResponse} message PurgeExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse} message RemoveContextChildrenResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeExecutionsResponse.encode = function encode(message, writer) { + RemoveContextChildrenResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); - if (message.purgeSample != null && message.purgeSample.length) - for (var i = 0; i < message.purgeSample.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); return writer; }; /** - * Encodes the specified PurgeExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsResponse.verify|verify} messages. + * Encodes the specified RemoveContextChildrenResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RemoveContextChildrenResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsResponse} message PurgeExecutionsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IRemoveContextChildrenResponse} message RemoveContextChildrenResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + RemoveContextChildrenResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeExecutionsResponse message from the specified reader or buffer. + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @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.PurgeExecutionsResponse} PurgeExecutionsResponse + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeExecutionsResponse.decode = function decode(reader, length) { + RemoveContextChildrenResponse.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.PurgeExecutionsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.purgeCount = reader.int64(); - break; - } - case 2: { - if (!(message.purgeSample && message.purgeSample.length)) - message.purgeSample = []; - message.purgeSample.push(reader.string()); - break; - } default: reader.skipType(tag & 7); break; @@ -102370,157 +106510,109 @@ }; /** - * Decodes a PurgeExecutionsResponse message from the specified reader or buffer, length delimited. + * Decodes a RemoveContextChildrenResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsResponse} PurgeExecutionsResponse + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { + RemoveContextChildrenResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeExecutionsResponse message. + * Verifies a RemoveContextChildrenResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeExecutionsResponse.verify = function verify(message) { + RemoveContextChildrenResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) - return "purgeCount: integer|Long expected"; - if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { - if (!Array.isArray(message.purgeSample)) - return "purgeSample: array expected"; - for (var i = 0; i < message.purgeSample.length; ++i) - if (!$util.isString(message.purgeSample[i])) - return "purgeSample: string[] expected"; - } return null; }; /** - * Creates a PurgeExecutionsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveContextChildrenResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsResponse} PurgeExecutionsResponse + * @returns {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} RemoveContextChildrenResponse */ - PurgeExecutionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeExecutionsResponse) + RemoveContextChildrenResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsResponse(); - if (object.purgeCount != null) - if ($util.Long) - (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; - else if (typeof object.purgeCount === "string") - message.purgeCount = parseInt(object.purgeCount, 10); - else if (typeof object.purgeCount === "number") - message.purgeCount = object.purgeCount; - else if (typeof object.purgeCount === "object") - message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); - if (object.purgeSample) { - if (!Array.isArray(object.purgeSample)) - throw TypeError(".google.cloud.aiplatform.v1.PurgeExecutionsResponse.purgeSample: array expected"); - message.purgeSample = []; - for (var i = 0; i < object.purgeSample.length; ++i) - message.purgeSample[i] = String(object.purgeSample[i]); - } - return message; + return new $root.google.cloud.aiplatform.v1.RemoveContextChildrenResponse(); }; /** - * Creates a plain object from a PurgeExecutionsResponse message. Also converts values to other types if specified. + * Creates a plain object from a RemoveContextChildrenResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @static - * @param {google.cloud.aiplatform.v1.PurgeExecutionsResponse} message PurgeExecutionsResponse + * @param {google.cloud.aiplatform.v1.RemoveContextChildrenResponse} message RemoveContextChildrenResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeExecutionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.purgeSample = []; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.purgeCount = options.longs === String ? "0" : 0; - if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) - if (typeof message.purgeCount === "number") - object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; - else - object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; - if (message.purgeSample && message.purgeSample.length) { - object.purgeSample = []; - for (var j = 0; j < message.purgeSample.length; ++j) - object.purgeSample[j] = message.purgeSample[j]; - } - return object; + RemoveContextChildrenResponse.toObject = function toObject() { + return {}; }; /** - * Converts this PurgeExecutionsResponse to JSON. + * Converts this RemoveContextChildrenResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @instance * @returns {Object.} JSON object */ - PurgeExecutionsResponse.prototype.toJSON = function toJSON() { + RemoveContextChildrenResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeExecutionsResponse + * Gets the default type url for RemoveContextChildrenResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse + * @memberof google.cloud.aiplatform.v1.RemoveContextChildrenResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveContextChildrenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeExecutionsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RemoveContextChildrenResponse"; }; - return PurgeExecutionsResponse; + return RemoveContextChildrenResponse; })(); - v1.PurgeExecutionsMetadata = (function() { + v1.QueryContextLineageSubgraphRequest = (function() { /** - * Properties of a PurgeExecutionsMetadata. + * Properties of a QueryContextLineageSubgraphRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IPurgeExecutionsMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] PurgeExecutionsMetadata genericMetadata + * @interface IQueryContextLineageSubgraphRequest + * @property {string|null} [context] QueryContextLineageSubgraphRequest context */ /** - * Constructs a new PurgeExecutionsMetadata. + * Constructs a new QueryContextLineageSubgraphRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PurgeExecutionsMetadata. - * @implements IPurgeExecutionsMetadata + * @classdesc Represents a QueryContextLineageSubgraphRequest. + * @implements IQueryContextLineageSubgraphRequest * @constructor - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest=} [properties] Properties to set */ - function PurgeExecutionsMetadata(properties) { + function QueryContextLineageSubgraphRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102528,75 +106620,75 @@ } /** - * PurgeExecutionsMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * QueryContextLineageSubgraphRequest context. + * @member {string} context + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @instance */ - PurgeExecutionsMetadata.prototype.genericMetadata = null; + QueryContextLineageSubgraphRequest.prototype.context = ""; /** - * Creates a new PurgeExecutionsMetadata instance using the specified properties. + * Creates a new QueryContextLineageSubgraphRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} PurgeExecutionsMetadata instance + * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest instance */ - PurgeExecutionsMetadata.create = function create(properties) { - return new PurgeExecutionsMetadata(properties); + QueryContextLineageSubgraphRequest.create = function create(properties) { + return new QueryContextLineageSubgraphRequest(properties); }; /** - * Encodes the specified PurgeExecutionsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsMetadata.verify|verify} messages. + * Encodes the specified QueryContextLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsMetadata} message PurgeExecutionsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeExecutionsMetadata.encode = function encode(message, writer) { + QueryContextLineageSubgraphRequest.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(); + if (message.context != null && Object.hasOwnProperty.call(message, "context")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.context); return writer; }; /** - * Encodes the specified PurgeExecutionsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsMetadata.verify|verify} messages. + * Encodes the specified QueryContextLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1.IPurgeExecutionsMetadata} message PurgeExecutionsMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IQueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PurgeExecutionsMetadata.encodeDelimited = function encodeDelimited(message, writer) { + QueryContextLineageSubgraphRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer. + * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @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.PurgeExecutionsMetadata} PurgeExecutionsMetadata + * @returns {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeExecutionsMetadata.decode = function decode(reader, length) { + QueryContextLineageSubgraphRequest.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.PurgeExecutionsMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest(); 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()); + message.context = reader.string(); break; } default: @@ -102608,129 +106700,124 @@ }; /** - * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer, length delimited. + * Decodes a QueryContextLineageSubgraphRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} PurgeExecutionsMetadata + * @returns {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PurgeExecutionsMetadata.decodeDelimited = function decodeDelimited(reader) { + QueryContextLineageSubgraphRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PurgeExecutionsMetadata message. + * Verifies a QueryContextLineageSubgraphRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PurgeExecutionsMetadata.verify = function verify(message) { + QueryContextLineageSubgraphRequest.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; - } + if (message.context != null && message.hasOwnProperty("context")) + if (!$util.isString(message.context)) + return "context: string expected"; return null; }; /** - * Creates a PurgeExecutionsMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a QueryContextLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} PurgeExecutionsMetadata + * @returns {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} QueryContextLineageSubgraphRequest */ - PurgeExecutionsMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PurgeExecutionsMetadata) + QueryContextLineageSubgraphRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PurgeExecutionsMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); - } + var message = new $root.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest(); + if (object.context != null) + message.context = String(object.context); return message; }; /** - * Creates a plain object from a PurgeExecutionsMetadata message. Also converts values to other types if specified. + * Creates a plain object from a QueryContextLineageSubgraphRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} message PurgeExecutionsMetadata + * @param {google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest} message QueryContextLineageSubgraphRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PurgeExecutionsMetadata.toObject = function toObject(message, options) { + QueryContextLineageSubgraphRequest.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); + object.context = ""; + if (message.context != null && message.hasOwnProperty("context")) + object.context = message.context; return object; }; /** - * Converts this PurgeExecutionsMetadata to JSON. + * Converts this QueryContextLineageSubgraphRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @instance * @returns {Object.} JSON object */ - PurgeExecutionsMetadata.prototype.toJSON = function toJSON() { + QueryContextLineageSubgraphRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PurgeExecutionsMetadata + * Gets the default type url for QueryContextLineageSubgraphRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata + * @memberof google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PurgeExecutionsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryContextLineageSubgraphRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeExecutionsMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest"; }; - return PurgeExecutionsMetadata; + return QueryContextLineageSubgraphRequest; })(); - v1.AddExecutionEventsRequest = (function() { + v1.CreateExecutionRequest = (function() { /** - * Properties of an AddExecutionEventsRequest. + * Properties of a CreateExecutionRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IAddExecutionEventsRequest - * @property {string|null} [execution] AddExecutionEventsRequest execution - * @property {Array.|null} [events] AddExecutionEventsRequest events + * @interface ICreateExecutionRequest + * @property {string|null} [parent] CreateExecutionRequest parent + * @property {google.cloud.aiplatform.v1.IExecution|null} [execution] CreateExecutionRequest execution + * @property {string|null} [executionId] CreateExecutionRequest executionId */ /** - * Constructs a new AddExecutionEventsRequest. + * Constructs a new CreateExecutionRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an AddExecutionEventsRequest. - * @implements IAddExecutionEventsRequest + * @classdesc Represents a CreateExecutionRequest. + * @implements ICreateExecutionRequest * @constructor - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest=} [properties] Properties to set */ - function AddExecutionEventsRequest(properties) { - this.events = []; + function CreateExecutionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102738,92 +106825,103 @@ } /** - * AddExecutionEventsRequest execution. - * @member {string} execution - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * CreateExecutionRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @instance */ - AddExecutionEventsRequest.prototype.execution = ""; + CreateExecutionRequest.prototype.parent = ""; /** - * AddExecutionEventsRequest events. - * @member {Array.} events - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * CreateExecutionRequest execution. + * @member {google.cloud.aiplatform.v1.IExecution|null|undefined} execution + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @instance */ - AddExecutionEventsRequest.prototype.events = $util.emptyArray; + CreateExecutionRequest.prototype.execution = null; /** - * Creates a new AddExecutionEventsRequest instance using the specified properties. + * CreateExecutionRequest executionId. + * @member {string} executionId + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest + * @instance + */ + CreateExecutionRequest.prototype.executionId = ""; + + /** + * Creates a new CreateExecutionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.AddExecutionEventsRequest} AddExecutionEventsRequest instance + * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateExecutionRequest} CreateExecutionRequest instance */ - AddExecutionEventsRequest.create = function create(properties) { - return new AddExecutionEventsRequest(properties); + CreateExecutionRequest.create = function create(properties) { + return new CreateExecutionRequest(properties); }; /** - * Encodes the specified AddExecutionEventsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsRequest.verify|verify} messages. + * Encodes the specified CreateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateExecutionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest} message AddExecutionEventsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest} message CreateExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddExecutionEventsRequest.encode = function encode(message, writer) { + CreateExecutionRequest.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.execution != null && Object.hasOwnProperty.call(message, "execution")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.execution); - if (message.events != null && message.events.length) - for (var i = 0; i < message.events.length; ++i) - $root.google.cloud.aiplatform.v1.Event.encode(message.events[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.aiplatform.v1.Execution.encode(message.execution, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.executionId != null && Object.hasOwnProperty.call(message, "executionId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.executionId); return writer; }; /** - * Encodes the specified AddExecutionEventsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsRequest.verify|verify} messages. + * Encodes the specified CreateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateExecutionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest} message AddExecutionEventsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateExecutionRequest} message CreateExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddExecutionEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddExecutionEventsRequest message from the specified reader or buffer. + * Decodes a CreateExecutionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @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.AddExecutionEventsRequest} AddExecutionEventsRequest + * @returns {google.cloud.aiplatform.v1.CreateExecutionRequest} CreateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddExecutionEventsRequest.decode = function decode(reader, length) { + CreateExecutionRequest.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.AddExecutionEventsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateExecutionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.execution = reader.string(); + message.parent = reader.string(); break; } case 2: { - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.google.cloud.aiplatform.v1.Event.decode(reader, reader.uint32())); + message.execution = $root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32()); + break; + } + case 3: { + message.executionId = reader.string(); break; } default: @@ -102835,147 +106933,144 @@ }; /** - * Decodes an AddExecutionEventsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateExecutionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.AddExecutionEventsRequest} AddExecutionEventsRequest + * @returns {google.cloud.aiplatform.v1.CreateExecutionRequest} CreateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddExecutionEventsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateExecutionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddExecutionEventsRequest message. + * Verifies a CreateExecutionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddExecutionEventsRequest.verify = function verify(message) { + CreateExecutionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.execution != null && message.hasOwnProperty("execution")) - if (!$util.isString(message.execution)) - return "execution: string expected"; - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; - for (var i = 0; i < message.events.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Event.verify(message.events[i]); - if (error) - return "events." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.execution != null && message.hasOwnProperty("execution")) { + var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.execution); + if (error) + return "execution." + error; } + if (message.executionId != null && message.hasOwnProperty("executionId")) + if (!$util.isString(message.executionId)) + return "executionId: string expected"; return null; }; /** - * Creates an AddExecutionEventsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateExecutionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.AddExecutionEventsRequest} AddExecutionEventsRequest + * @returns {google.cloud.aiplatform.v1.CreateExecutionRequest} CreateExecutionRequest */ - AddExecutionEventsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.AddExecutionEventsRequest) + CreateExecutionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateExecutionRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.AddExecutionEventsRequest(); - if (object.execution != null) - message.execution = String(object.execution); - if (object.events) { - if (!Array.isArray(object.events)) - throw TypeError(".google.cloud.aiplatform.v1.AddExecutionEventsRequest.events: array expected"); - message.events = []; - for (var i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.AddExecutionEventsRequest.events: object expected"); - message.events[i] = $root.google.cloud.aiplatform.v1.Event.fromObject(object.events[i]); - } + var message = new $root.google.cloud.aiplatform.v1.CreateExecutionRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.execution != null) { + if (typeof object.execution !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateExecutionRequest.execution: object expected"); + message.execution = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.execution); } + if (object.executionId != null) + message.executionId = String(object.executionId); return message; }; /** - * Creates a plain object from an AddExecutionEventsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateExecutionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.AddExecutionEventsRequest} message AddExecutionEventsRequest + * @param {google.cloud.aiplatform.v1.CreateExecutionRequest} message CreateExecutionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddExecutionEventsRequest.toObject = function toObject(message, options) { + CreateExecutionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.events = []; - if (options.defaults) - object.execution = ""; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = message.execution; - if (message.events && message.events.length) { - object.events = []; - for (var j = 0; j < message.events.length; ++j) - object.events[j] = $root.google.cloud.aiplatform.v1.Event.toObject(message.events[j], options); + if (options.defaults) { + object.parent = ""; + object.execution = null; + object.executionId = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = $root.google.cloud.aiplatform.v1.Execution.toObject(message.execution, options); + if (message.executionId != null && message.hasOwnProperty("executionId")) + object.executionId = message.executionId; return object; }; /** - * Converts this AddExecutionEventsRequest to JSON. + * Converts this CreateExecutionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @instance * @returns {Object.} JSON object */ - AddExecutionEventsRequest.prototype.toJSON = function toJSON() { + CreateExecutionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddExecutionEventsRequest + * Gets the default type url for CreateExecutionRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @memberof google.cloud.aiplatform.v1.CreateExecutionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddExecutionEventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddExecutionEventsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateExecutionRequest"; }; - return AddExecutionEventsRequest; + return CreateExecutionRequest; })(); - v1.AddExecutionEventsResponse = (function() { + v1.GetExecutionRequest = (function() { /** - * Properties of an AddExecutionEventsResponse. + * Properties of a GetExecutionRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IAddExecutionEventsResponse + * @interface IGetExecutionRequest + * @property {string|null} [name] GetExecutionRequest name */ /** - * Constructs a new AddExecutionEventsResponse. + * Constructs a new GetExecutionRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an AddExecutionEventsResponse. - * @implements IAddExecutionEventsResponse + * @classdesc Represents a GetExecutionRequest. + * @implements IGetExecutionRequest * @constructor - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetExecutionRequest=} [properties] Properties to set */ - function AddExecutionEventsResponse(properties) { + function GetExecutionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -102983,63 +107078,77 @@ } /** - * Creates a new AddExecutionEventsResponse instance using the specified properties. + * GetExecutionRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest + * @instance + */ + GetExecutionRequest.prototype.name = ""; + + /** + * Creates a new GetExecutionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.AddExecutionEventsResponse} AddExecutionEventsResponse instance + * @param {google.cloud.aiplatform.v1.IGetExecutionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetExecutionRequest} GetExecutionRequest instance */ - AddExecutionEventsResponse.create = function create(properties) { - return new AddExecutionEventsResponse(properties); + GetExecutionRequest.create = function create(properties) { + return new GetExecutionRequest(properties); }; /** - * Encodes the specified AddExecutionEventsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsResponse.verify|verify} messages. + * Encodes the specified GetExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetExecutionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsResponse} message AddExecutionEventsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetExecutionRequest} message GetExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddExecutionEventsResponse.encode = function encode(message, writer) { + GetExecutionRequest.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 AddExecutionEventsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsResponse.verify|verify} messages. + * Encodes the specified GetExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetExecutionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IAddExecutionEventsResponse} message AddExecutionEventsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetExecutionRequest} message GetExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AddExecutionEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AddExecutionEventsResponse message from the specified reader or buffer. + * Decodes a GetExecutionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @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.AddExecutionEventsResponse} AddExecutionEventsResponse + * @returns {google.cloud.aiplatform.v1.GetExecutionRequest} GetExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddExecutionEventsResponse.decode = function decode(reader, length) { + GetExecutionRequest.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.AddExecutionEventsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetExecutionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -103049,109 +107158,126 @@ }; /** - * Decodes an AddExecutionEventsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetExecutionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.AddExecutionEventsResponse} AddExecutionEventsResponse + * @returns {google.cloud.aiplatform.v1.GetExecutionRequest} GetExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AddExecutionEventsResponse.decodeDelimited = function decodeDelimited(reader) { + GetExecutionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AddExecutionEventsResponse message. + * Verifies a GetExecutionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AddExecutionEventsResponse.verify = function verify(message) { + GetExecutionRequest.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 an AddExecutionEventsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetExecutionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.AddExecutionEventsResponse} AddExecutionEventsResponse + * @returns {google.cloud.aiplatform.v1.GetExecutionRequest} GetExecutionRequest */ - AddExecutionEventsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.AddExecutionEventsResponse) + GetExecutionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetExecutionRequest) return object; - return new $root.google.cloud.aiplatform.v1.AddExecutionEventsResponse(); + var message = new $root.google.cloud.aiplatform.v1.GetExecutionRequest(); + if (object.name != null) + message.name = String(object.name); + return message; }; /** - * Creates a plain object from an AddExecutionEventsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetExecutionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.AddExecutionEventsResponse} message AddExecutionEventsResponse + * @param {google.cloud.aiplatform.v1.GetExecutionRequest} message GetExecutionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AddExecutionEventsResponse.toObject = function toObject() { - return {}; + GetExecutionRequest.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 AddExecutionEventsResponse to JSON. + * Converts this GetExecutionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @instance * @returns {Object.} JSON object */ - AddExecutionEventsResponse.prototype.toJSON = function toJSON() { + GetExecutionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for AddExecutionEventsResponse + * Gets the default type url for GetExecutionRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @memberof google.cloud.aiplatform.v1.GetExecutionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - AddExecutionEventsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddExecutionEventsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetExecutionRequest"; }; - return AddExecutionEventsResponse; + return GetExecutionRequest; })(); - v1.QueryExecutionInputsAndOutputsRequest = (function() { + v1.ListExecutionsRequest = (function() { /** - * Properties of a QueryExecutionInputsAndOutputsRequest. + * Properties of a ListExecutionsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IQueryExecutionInputsAndOutputsRequest - * @property {string|null} [execution] QueryExecutionInputsAndOutputsRequest execution + * @interface IListExecutionsRequest + * @property {string|null} [parent] ListExecutionsRequest parent + * @property {number|null} [pageSize] ListExecutionsRequest pageSize + * @property {string|null} [pageToken] ListExecutionsRequest pageToken + * @property {string|null} [filter] ListExecutionsRequest filter + * @property {string|null} [orderBy] ListExecutionsRequest orderBy */ /** - * Constructs a new QueryExecutionInputsAndOutputsRequest. + * Constructs a new ListExecutionsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a QueryExecutionInputsAndOutputsRequest. - * @implements IQueryExecutionInputsAndOutputsRequest + * @classdesc Represents a ListExecutionsRequest. + * @implements IListExecutionsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListExecutionsRequest=} [properties] Properties to set */ - function QueryExecutionInputsAndOutputsRequest(properties) { + function ListExecutionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103159,75 +107285,131 @@ } /** - * QueryExecutionInputsAndOutputsRequest execution. - * @member {string} execution - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * ListExecutionsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @instance */ - QueryExecutionInputsAndOutputsRequest.prototype.execution = ""; + ListExecutionsRequest.prototype.parent = ""; /** - * Creates a new QueryExecutionInputsAndOutputsRequest instance using the specified properties. + * ListExecutionsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @instance + */ + ListExecutionsRequest.prototype.pageSize = 0; + + /** + * ListExecutionsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @instance + */ + ListExecutionsRequest.prototype.pageToken = ""; + + /** + * ListExecutionsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @instance + */ + ListExecutionsRequest.prototype.filter = ""; + + /** + * ListExecutionsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest + * @instance + */ + ListExecutionsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListExecutionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest instance + * @param {google.cloud.aiplatform.v1.IListExecutionsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListExecutionsRequest} ListExecutionsRequest instance */ - QueryExecutionInputsAndOutputsRequest.create = function create(properties) { - return new QueryExecutionInputsAndOutputsRequest(properties); + ListExecutionsRequest.create = function create(properties) { + return new ListExecutionsRequest(properties); }; /** - * Encodes the specified QueryExecutionInputsAndOutputsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. + * Encodes the specified ListExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListExecutionsRequest} message ListExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryExecutionInputsAndOutputsRequest.encode = function encode(message, writer) { + ListExecutionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.execution); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); return writer; }; /** - * Encodes the specified QueryExecutionInputsAndOutputsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. + * Encodes the specified ListExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListExecutionsRequest} message ListExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryExecutionInputsAndOutputsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer. + * Decodes a ListExecutionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @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.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest + * @returns {google.cloud.aiplatform.v1.ListExecutionsRequest} ListExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryExecutionInputsAndOutputsRequest.decode = function decode(reader, length) { + ListExecutionsRequest.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.QueryExecutionInputsAndOutputsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListExecutionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.execution = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.orderBy = reader.string(); break; } default: @@ -103239,124 +107421,157 @@ }; /** - * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExecutionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest + * @returns {google.cloud.aiplatform.v1.ListExecutionsRequest} ListExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryExecutionInputsAndOutputsRequest.decodeDelimited = function decodeDelimited(reader) { + ListExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryExecutionInputsAndOutputsRequest message. + * Verifies a ListExecutionsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryExecutionInputsAndOutputsRequest.verify = function verify(message) { + ListExecutionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.execution != null && message.hasOwnProperty("execution")) - if (!$util.isString(message.execution)) - return "execution: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a QueryExecutionInputsAndOutputsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest + * @returns {google.cloud.aiplatform.v1.ListExecutionsRequest} ListExecutionsRequest */ - QueryExecutionInputsAndOutputsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest) + ListExecutionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListExecutionsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest(); - if (object.execution != null) - message.execution = String(object.execution); + var message = new $root.google.cloud.aiplatform.v1.ListExecutionsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a QueryExecutionInputsAndOutputsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListExecutionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest + * @param {google.cloud.aiplatform.v1.ListExecutionsRequest} message ListExecutionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryExecutionInputsAndOutputsRequest.toObject = function toObject(message, options) { + ListExecutionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.execution = ""; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = message.execution; + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this QueryExecutionInputsAndOutputsRequest to JSON. + * Converts this ListExecutionsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @instance * @returns {Object.} JSON object */ - QueryExecutionInputsAndOutputsRequest.prototype.toJSON = function toJSON() { + ListExecutionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QueryExecutionInputsAndOutputsRequest + * Gets the default type url for ListExecutionsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QueryExecutionInputsAndOutputsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListExecutionsRequest"; }; - return QueryExecutionInputsAndOutputsRequest; + return ListExecutionsRequest; })(); - v1.CreateMetadataSchemaRequest = (function() { + v1.ListExecutionsResponse = (function() { /** - * Properties of a CreateMetadataSchemaRequest. + * Properties of a ListExecutionsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface ICreateMetadataSchemaRequest - * @property {string|null} [parent] CreateMetadataSchemaRequest parent - * @property {google.cloud.aiplatform.v1.IMetadataSchema|null} [metadataSchema] CreateMetadataSchemaRequest metadataSchema - * @property {string|null} [metadataSchemaId] CreateMetadataSchemaRequest metadataSchemaId + * @interface IListExecutionsResponse + * @property {Array.|null} [executions] ListExecutionsResponse executions + * @property {string|null} [nextPageToken] ListExecutionsResponse nextPageToken */ /** - * Constructs a new CreateMetadataSchemaRequest. + * Constructs a new ListExecutionsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateMetadataSchemaRequest. - * @implements ICreateMetadataSchemaRequest + * @classdesc Represents a ListExecutionsResponse. + * @implements IListExecutionsResponse * @constructor - * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListExecutionsResponse=} [properties] Properties to set */ - function CreateMetadataSchemaRequest(properties) { + function ListExecutionsResponse(properties) { + this.executions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103364,103 +107579,92 @@ } /** - * CreateMetadataSchemaRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest - * @instance - */ - CreateMetadataSchemaRequest.prototype.parent = ""; - - /** - * CreateMetadataSchemaRequest metadataSchema. - * @member {google.cloud.aiplatform.v1.IMetadataSchema|null|undefined} metadataSchema - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * ListExecutionsResponse executions. + * @member {Array.} executions + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @instance */ - CreateMetadataSchemaRequest.prototype.metadataSchema = null; + ListExecutionsResponse.prototype.executions = $util.emptyArray; /** - * CreateMetadataSchemaRequest metadataSchemaId. - * @member {string} metadataSchemaId - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * ListExecutionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @instance */ - CreateMetadataSchemaRequest.prototype.metadataSchemaId = ""; + ListExecutionsResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateMetadataSchemaRequest instance using the specified properties. + * Creates a new ListExecutionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest instance + * @param {google.cloud.aiplatform.v1.IListExecutionsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListExecutionsResponse} ListExecutionsResponse instance */ - CreateMetadataSchemaRequest.create = function create(properties) { - return new CreateMetadataSchemaRequest(properties); + ListExecutionsResponse.create = function create(properties) { + return new ListExecutionsResponse(properties); }; /** - * Encodes the specified CreateMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.verify|verify} messages. + * Encodes the specified ListExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest} message CreateMetadataSchemaRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListExecutionsResponse} message ListExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataSchemaRequest.encode = function encode(message, writer) { + ListExecutionsResponse.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.metadataSchema != null && Object.hasOwnProperty.call(message, "metadataSchema")) - $root.google.cloud.aiplatform.v1.MetadataSchema.encode(message.metadataSchema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadataSchemaId != null && Object.hasOwnProperty.call(message, "metadataSchemaId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataSchemaId); + if (message.executions != null && message.executions.length) + for (var i = 0; i < message.executions.length; ++i) + $root.google.cloud.aiplatform.v1.Execution.encode(message.executions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CreateMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.verify|verify} messages. + * Encodes the specified ListExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListExecutionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest} message CreateMetadataSchemaRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListExecutionsResponse} message ListExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateMetadataSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer. + * Decodes a ListExecutionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @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.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1.ListExecutionsResponse} ListExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataSchemaRequest.decode = function decode(reader, length) { + ListExecutionsResponse.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.CreateMetadataSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListExecutionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.executions && message.executions.length)) + message.executions = []; + message.executions.push($root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32())); break; } case 2: { - message.metadataSchema = $root.google.cloud.aiplatform.v1.MetadataSchema.decode(reader, reader.uint32()); - break; - } - case 3: { - message.metadataSchemaId = reader.string(); + message.nextPageToken = reader.string(); break; } default: @@ -103472,144 +107676,150 @@ }; /** - * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes a ListExecutionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1.ListExecutionsResponse} ListExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateMetadataSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + ListExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateMetadataSchemaRequest message. + * Verifies a ListExecutionsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateMetadataSchemaRequest.verify = function verify(message) { + ListExecutionsResponse.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.metadataSchema != null && message.hasOwnProperty("metadataSchema")) { - var error = $root.google.cloud.aiplatform.v1.MetadataSchema.verify(message.metadataSchema); - if (error) - return "metadataSchema." + error; + if (message.executions != null && message.hasOwnProperty("executions")) { + if (!Array.isArray(message.executions)) + return "executions: array expected"; + for (var i = 0; i < message.executions.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.executions[i]); + if (error) + return "executions." + error; + } } - if (message.metadataSchemaId != null && message.hasOwnProperty("metadataSchemaId")) - if (!$util.isString(message.metadataSchemaId)) - return "metadataSchemaId: string expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1.ListExecutionsResponse} ListExecutionsResponse */ - CreateMetadataSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest) + ListExecutionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListExecutionsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.metadataSchema != null) { - if (typeof object.metadataSchema !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.metadataSchema: object expected"); - message.metadataSchema = $root.google.cloud.aiplatform.v1.MetadataSchema.fromObject(object.metadataSchema); + var message = new $root.google.cloud.aiplatform.v1.ListExecutionsResponse(); + if (object.executions) { + if (!Array.isArray(object.executions)) + throw TypeError(".google.cloud.aiplatform.v1.ListExecutionsResponse.executions: array expected"); + message.executions = []; + for (var i = 0; i < object.executions.length; ++i) { + if (typeof object.executions[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListExecutionsResponse.executions: object expected"); + message.executions[i] = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.executions[i]); + } } - if (object.metadataSchemaId != null) - message.metadataSchemaId = String(object.metadataSchemaId); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateMetadataSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListExecutionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} message CreateMetadataSchemaRequest + * @param {google.cloud.aiplatform.v1.ListExecutionsResponse} message ListExecutionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateMetadataSchemaRequest.toObject = function toObject(message, options) { + ListExecutionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.metadataSchema = null; - object.metadataSchemaId = ""; + if (options.arrays || options.defaults) + object.executions = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.executions && message.executions.length) { + object.executions = []; + for (var j = 0; j < message.executions.length; ++j) + object.executions[j] = $root.google.cloud.aiplatform.v1.Execution.toObject(message.executions[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.metadataSchema != null && message.hasOwnProperty("metadataSchema")) - object.metadataSchema = $root.google.cloud.aiplatform.v1.MetadataSchema.toObject(message.metadataSchema, options); - if (message.metadataSchemaId != null && message.hasOwnProperty("metadataSchemaId")) - object.metadataSchemaId = message.metadataSchemaId; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateMetadataSchemaRequest to JSON. + * Converts this ListExecutionsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @instance * @returns {Object.} JSON object */ - CreateMetadataSchemaRequest.prototype.toJSON = function toJSON() { + ListExecutionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateMetadataSchemaRequest + * Gets the default type url for ListExecutionsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.ListExecutionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateMetadataSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateMetadataSchemaRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListExecutionsResponse"; }; - return CreateMetadataSchemaRequest; + return ListExecutionsResponse; })(); - v1.GetMetadataSchemaRequest = (function() { + v1.UpdateExecutionRequest = (function() { /** - * Properties of a GetMetadataSchemaRequest. + * Properties of an UpdateExecutionRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetMetadataSchemaRequest - * @property {string|null} [name] GetMetadataSchemaRequest name + * @interface IUpdateExecutionRequest + * @property {google.cloud.aiplatform.v1.IExecution|null} [execution] UpdateExecutionRequest execution + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateExecutionRequest updateMask + * @property {boolean|null} [allowMissing] UpdateExecutionRequest allowMissing */ /** - * Constructs a new GetMetadataSchemaRequest. + * Constructs a new UpdateExecutionRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetMetadataSchemaRequest. - * @implements IGetMetadataSchemaRequest + * @classdesc Represents an UpdateExecutionRequest. + * @implements IUpdateExecutionRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest=} [properties] Properties to set */ - function GetMetadataSchemaRequest(properties) { + function UpdateExecutionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103617,75 +107827,103 @@ } /** - * GetMetadataSchemaRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * UpdateExecutionRequest execution. + * @member {google.cloud.aiplatform.v1.IExecution|null|undefined} execution + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @instance */ - GetMetadataSchemaRequest.prototype.name = ""; + UpdateExecutionRequest.prototype.execution = null; /** - * Creates a new GetMetadataSchemaRequest instance using the specified properties. + * UpdateExecutionRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @instance + */ + UpdateExecutionRequest.prototype.updateMask = null; + + /** + * UpdateExecutionRequest allowMissing. + * @member {boolean} allowMissing + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest + * @instance + */ + UpdateExecutionRequest.prototype.allowMissing = false; + + /** + * Creates a new UpdateExecutionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} GetMetadataSchemaRequest instance + * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateExecutionRequest} UpdateExecutionRequest instance */ - GetMetadataSchemaRequest.create = function create(properties) { - return new GetMetadataSchemaRequest(properties); + UpdateExecutionRequest.create = function create(properties) { + return new UpdateExecutionRequest(properties); }; /** - * Encodes the specified GetMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataSchemaRequest.verify|verify} messages. + * Encodes the specified UpdateExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateExecutionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest} message GetMetadataSchemaRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest} message UpdateExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMetadataSchemaRequest.encode = function encode(message, writer) { + UpdateExecutionRequest.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); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + $root.google.cloud.aiplatform.v1.Execution.encode(message.execution, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.allowMissing != null && Object.hasOwnProperty.call(message, "allowMissing")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allowMissing); return writer; }; /** - * Encodes the specified GetMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataSchemaRequest.verify|verify} messages. + * Encodes the specified UpdateExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateExecutionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest} message GetMetadataSchemaRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateExecutionRequest} message UpdateExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetMetadataSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer. + * Decodes an UpdateExecutionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @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.GetMetadataSchemaRequest} GetMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1.UpdateExecutionRequest} UpdateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMetadataSchemaRequest.decode = function decode(reader, length) { + UpdateExecutionRequest.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.GetMetadataSchemaRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateExecutionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.execution = $root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 3: { + message.allowMissing = reader.bool(); break; } default: @@ -103697,125 +107935,150 @@ }; /** - * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateExecutionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} GetMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1.UpdateExecutionRequest} UpdateExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetMetadataSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateExecutionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetMetadataSchemaRequest message. + * Verifies an UpdateExecutionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetMetadataSchemaRequest.verify = function verify(message) { + UpdateExecutionRequest.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"; + if (message.execution != null && message.hasOwnProperty("execution")) { + var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.execution); + if (error) + return "execution." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + if (typeof message.allowMissing !== "boolean") + return "allowMissing: boolean expected"; return null; }; /** - * Creates a GetMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateExecutionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} GetMetadataSchemaRequest + * @returns {google.cloud.aiplatform.v1.UpdateExecutionRequest} UpdateExecutionRequest */ - GetMetadataSchemaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetMetadataSchemaRequest) + UpdateExecutionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateExecutionRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetMetadataSchemaRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.UpdateExecutionRequest(); + if (object.execution != null) { + if (typeof object.execution !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateExecutionRequest.execution: object expected"); + message.execution = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.execution); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateExecutionRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } + if (object.allowMissing != null) + message.allowMissing = Boolean(object.allowMissing); return message; }; /** - * Creates a plain object from a GetMetadataSchemaRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateExecutionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} message GetMetadataSchemaRequest + * @param {google.cloud.aiplatform.v1.UpdateExecutionRequest} message UpdateExecutionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetMetadataSchemaRequest.toObject = function toObject(message, options) { + UpdateExecutionRequest.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; + if (options.defaults) { + object.execution = null; + object.updateMask = null; + object.allowMissing = false; + } + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = $root.google.cloud.aiplatform.v1.Execution.toObject(message.execution, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.allowMissing != null && message.hasOwnProperty("allowMissing")) + object.allowMissing = message.allowMissing; return object; }; /** - * Converts this GetMetadataSchemaRequest to JSON. + * Converts this UpdateExecutionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @instance * @returns {Object.} JSON object */ - GetMetadataSchemaRequest.prototype.toJSON = function toJSON() { + UpdateExecutionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetMetadataSchemaRequest + * Gets the default type url for UpdateExecutionRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @memberof google.cloud.aiplatform.v1.UpdateExecutionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetMetadataSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetMetadataSchemaRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateExecutionRequest"; }; - return GetMetadataSchemaRequest; + return UpdateExecutionRequest; })(); - v1.ListMetadataSchemasRequest = (function() { + v1.DeleteExecutionRequest = (function() { /** - * Properties of a ListMetadataSchemasRequest. + * Properties of a DeleteExecutionRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListMetadataSchemasRequest - * @property {string|null} [parent] ListMetadataSchemasRequest parent - * @property {number|null} [pageSize] ListMetadataSchemasRequest pageSize - * @property {string|null} [pageToken] ListMetadataSchemasRequest pageToken - * @property {string|null} [filter] ListMetadataSchemasRequest filter + * @interface IDeleteExecutionRequest + * @property {string|null} [name] DeleteExecutionRequest name + * @property {string|null} [etag] DeleteExecutionRequest etag */ /** - * Constructs a new ListMetadataSchemasRequest. + * Constructs a new DeleteExecutionRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListMetadataSchemasRequest. - * @implements IListMetadataSchemasRequest + * @classdesc Represents a DeleteExecutionRequest. + * @implements IDeleteExecutionRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest=} [properties] Properties to set */ - function ListMetadataSchemasRequest(properties) { + function DeleteExecutionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -103823,117 +108086,89 @@ } /** - * ListMetadataSchemasRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest - * @instance - */ - ListMetadataSchemasRequest.prototype.parent = ""; - - /** - * ListMetadataSchemasRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest - * @instance - */ - ListMetadataSchemasRequest.prototype.pageSize = 0; - - /** - * ListMetadataSchemasRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * DeleteExecutionRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @instance */ - ListMetadataSchemasRequest.prototype.pageToken = ""; + DeleteExecutionRequest.prototype.name = ""; /** - * ListMetadataSchemasRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * DeleteExecutionRequest etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @instance */ - ListMetadataSchemasRequest.prototype.filter = ""; + DeleteExecutionRequest.prototype.etag = ""; /** - * Creates a new ListMetadataSchemasRequest instance using the specified properties. + * Creates a new DeleteExecutionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} ListMetadataSchemasRequest instance + * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteExecutionRequest} DeleteExecutionRequest instance */ - ListMetadataSchemasRequest.create = function create(properties) { - return new ListMetadataSchemasRequest(properties); + DeleteExecutionRequest.create = function create(properties) { + return new DeleteExecutionRequest(properties); }; /** - * Encodes the specified ListMetadataSchemasRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasRequest.verify|verify} messages. + * Encodes the specified DeleteExecutionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteExecutionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest} message ListMetadataSchemasRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest} message DeleteExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataSchemasRequest.encode = function encode(message, writer) { + DeleteExecutionRequest.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.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.etag); return writer; }; /** - * Encodes the specified ListMetadataSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasRequest.verify|verify} messages. + * Encodes the specified DeleteExecutionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteExecutionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest} message ListMetadataSchemasRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteExecutionRequest} message DeleteExecutionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataSchemasRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteExecutionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer. + * Decodes a DeleteExecutionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @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.ListMetadataSchemasRequest} ListMetadataSchemasRequest + * @returns {google.cloud.aiplatform.v1.DeleteExecutionRequest} DeleteExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataSchemasRequest.decode = function decode(reader, length) { + DeleteExecutionRequest.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.ListMetadataSchemasRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteExecutionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); + message.etag = reader.string(); break; } default: @@ -103945,149 +108180,133 @@ }; /** - * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteExecutionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} ListMetadataSchemasRequest + * @returns {google.cloud.aiplatform.v1.DeleteExecutionRequest} DeleteExecutionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataSchemasRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteExecutionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListMetadataSchemasRequest message. + * Verifies a DeleteExecutionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListMetadataSchemasRequest.verify = function verify(message) { + DeleteExecutionRequest.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.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; /** - * Creates a ListMetadataSchemasRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteExecutionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} ListMetadataSchemasRequest + * @returns {google.cloud.aiplatform.v1.DeleteExecutionRequest} DeleteExecutionRequest */ - ListMetadataSchemasRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListMetadataSchemasRequest) + DeleteExecutionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteExecutionRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListMetadataSchemasRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); + var message = new $root.google.cloud.aiplatform.v1.DeleteExecutionRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.etag != null) + message.etag = String(object.etag); return message; }; /** - * Creates a plain object from a ListMetadataSchemasRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteExecutionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @static - * @param {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} message ListMetadataSchemasRequest + * @param {google.cloud.aiplatform.v1.DeleteExecutionRequest} message DeleteExecutionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListMetadataSchemasRequest.toObject = function toObject(message, options) { + DeleteExecutionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; + object.name = ""; + object.etag = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; return object; }; /** - * Converts this ListMetadataSchemasRequest to JSON. + * Converts this DeleteExecutionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @instance * @returns {Object.} JSON object */ - ListMetadataSchemasRequest.prototype.toJSON = function toJSON() { + DeleteExecutionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListMetadataSchemasRequest + * Gets the default type url for DeleteExecutionRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @memberof google.cloud.aiplatform.v1.DeleteExecutionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListMetadataSchemasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteExecutionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListMetadataSchemasRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteExecutionRequest"; }; - return ListMetadataSchemasRequest; + return DeleteExecutionRequest; })(); - v1.ListMetadataSchemasResponse = (function() { + v1.PurgeExecutionsRequest = (function() { /** - * Properties of a ListMetadataSchemasResponse. + * Properties of a PurgeExecutionsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListMetadataSchemasResponse - * @property {Array.|null} [metadataSchemas] ListMetadataSchemasResponse metadataSchemas - * @property {string|null} [nextPageToken] ListMetadataSchemasResponse nextPageToken + * @interface IPurgeExecutionsRequest + * @property {string|null} [parent] PurgeExecutionsRequest parent + * @property {string|null} [filter] PurgeExecutionsRequest filter + * @property {boolean|null} [force] PurgeExecutionsRequest force */ /** - * Constructs a new ListMetadataSchemasResponse. + * Constructs a new PurgeExecutionsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListMetadataSchemasResponse. - * @implements IListMetadataSchemasResponse + * @classdesc Represents a PurgeExecutionsRequest. + * @implements IPurgeExecutionsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest=} [properties] Properties to set */ - function ListMetadataSchemasResponse(properties) { - this.metadataSchemas = []; + function PurgeExecutionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104095,92 +108314,103 @@ } /** - * ListMetadataSchemasResponse metadataSchemas. - * @member {Array.} metadataSchemas - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * PurgeExecutionsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @instance */ - ListMetadataSchemasResponse.prototype.metadataSchemas = $util.emptyArray; + PurgeExecutionsRequest.prototype.parent = ""; /** - * ListMetadataSchemasResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * PurgeExecutionsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @instance */ - ListMetadataSchemasResponse.prototype.nextPageToken = ""; + PurgeExecutionsRequest.prototype.filter = ""; /** - * Creates a new ListMetadataSchemasResponse instance using the specified properties. + * PurgeExecutionsRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest + * @instance + */ + PurgeExecutionsRequest.prototype.force = false; + + /** + * Creates a new PurgeExecutionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} ListMetadataSchemasResponse instance + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsRequest} PurgeExecutionsRequest instance */ - ListMetadataSchemasResponse.create = function create(properties) { - return new ListMetadataSchemasResponse(properties); + PurgeExecutionsRequest.create = function create(properties) { + return new PurgeExecutionsRequest(properties); }; /** - * Encodes the specified ListMetadataSchemasResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasResponse.verify|verify} messages. + * Encodes the specified PurgeExecutionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasResponse} message ListMetadataSchemasResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest} message PurgeExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataSchemasResponse.encode = function encode(message, writer) { + PurgeExecutionsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.metadataSchemas != null && message.metadataSchemas.length) - for (var i = 0; i < message.metadataSchemas.length; ++i) - $root.google.cloud.aiplatform.v1.MetadataSchema.encode(message.metadataSchemas[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); return writer; }; /** - * Encodes the specified ListMetadataSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasResponse.verify|verify} messages. + * Encodes the specified PurgeExecutionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.IListMetadataSchemasResponse} message ListMetadataSchemasResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsRequest} message PurgeExecutionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListMetadataSchemasResponse.encodeDelimited = function encodeDelimited(message, writer) { + PurgeExecutionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer. + * Decodes a PurgeExecutionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @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.ListMetadataSchemasResponse} ListMetadataSchemasResponse + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsRequest} PurgeExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataSchemasResponse.decode = function decode(reader, length) { + PurgeExecutionsRequest.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.ListMetadataSchemasResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.metadataSchemas && message.metadataSchemas.length)) - message.metadataSchemas = []; - message.metadataSchemas.push($root.google.cloud.aiplatform.v1.MetadataSchema.decode(reader, reader.uint32())); + message.parent = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.filter = reader.string(); + break; + } + case 3: { + message.force = reader.bool(); break; } default: @@ -104192,150 +108422,141 @@ }; /** - * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} ListMetadataSchemasResponse + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsRequest} PurgeExecutionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListMetadataSchemasResponse.decodeDelimited = function decodeDelimited(reader) { + PurgeExecutionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListMetadataSchemasResponse message. + * Verifies a PurgeExecutionsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListMetadataSchemasResponse.verify = function verify(message) { + PurgeExecutionsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.metadataSchemas != null && message.hasOwnProperty("metadataSchemas")) { - if (!Array.isArray(message.metadataSchemas)) - return "metadataSchemas: array expected"; - for (var i = 0; i < message.metadataSchemas.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.MetadataSchema.verify(message.metadataSchemas[i]); - if (error) - return "metadataSchemas." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a ListMetadataSchemasResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} ListMetadataSchemasResponse + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsRequest} PurgeExecutionsRequest */ - ListMetadataSchemasResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListMetadataSchemasResponse) + PurgeExecutionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeExecutionsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListMetadataSchemasResponse(); - if (object.metadataSchemas) { - if (!Array.isArray(object.metadataSchemas)) - throw TypeError(".google.cloud.aiplatform.v1.ListMetadataSchemasResponse.metadataSchemas: array expected"); - message.metadataSchemas = []; - for (var i = 0; i < object.metadataSchemas.length; ++i) { - if (typeof object.metadataSchemas[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListMetadataSchemasResponse.metadataSchemas: object expected"); - message.metadataSchemas[i] = $root.google.cloud.aiplatform.v1.MetadataSchema.fromObject(object.metadataSchemas[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a ListMetadataSchemasResponse message. Also converts values to other types if specified. + * Creates a plain object from a PurgeExecutionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @static - * @param {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} message ListMetadataSchemasResponse + * @param {google.cloud.aiplatform.v1.PurgeExecutionsRequest} message PurgeExecutionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListMetadataSchemasResponse.toObject = function toObject(message, options) { + PurgeExecutionsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.metadataSchemas = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.metadataSchemas && message.metadataSchemas.length) { - object.metadataSchemas = []; - for (var j = 0; j < message.metadataSchemas.length; ++j) - object.metadataSchemas[j] = $root.google.cloud.aiplatform.v1.MetadataSchema.toObject(message.metadataSchemas[j], options); + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.force = false; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this ListMetadataSchemasResponse to JSON. + * Converts this PurgeExecutionsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @instance * @returns {Object.} JSON object */ - ListMetadataSchemasResponse.prototype.toJSON = function toJSON() { + PurgeExecutionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListMetadataSchemasResponse + * Gets the default type url for PurgeExecutionsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListMetadataSchemasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeExecutionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListMetadataSchemasResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeExecutionsRequest"; }; - return ListMetadataSchemasResponse; + return PurgeExecutionsRequest; })(); - v1.QueryArtifactLineageSubgraphRequest = (function() { + v1.PurgeExecutionsResponse = (function() { /** - * Properties of a QueryArtifactLineageSubgraphRequest. + * Properties of a PurgeExecutionsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IQueryArtifactLineageSubgraphRequest - * @property {string|null} [artifact] QueryArtifactLineageSubgraphRequest artifact - * @property {number|null} [maxHops] QueryArtifactLineageSubgraphRequest maxHops - * @property {string|null} [filter] QueryArtifactLineageSubgraphRequest filter + * @interface IPurgeExecutionsResponse + * @property {number|Long|null} [purgeCount] PurgeExecutionsResponse purgeCount + * @property {Array.|null} [purgeSample] PurgeExecutionsResponse purgeSample */ /** - * Constructs a new QueryArtifactLineageSubgraphRequest. + * Constructs a new PurgeExecutionsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a QueryArtifactLineageSubgraphRequest. - * @implements IQueryArtifactLineageSubgraphRequest + * @classdesc Represents a PurgeExecutionsResponse. + * @implements IPurgeExecutionsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsResponse=} [properties] Properties to set */ - function QueryArtifactLineageSubgraphRequest(properties) { + function PurgeExecutionsResponse(properties) { + this.purgeSample = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104343,103 +108564,92 @@ } /** - * QueryArtifactLineageSubgraphRequest artifact. - * @member {string} artifact - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest - * @instance - */ - QueryArtifactLineageSubgraphRequest.prototype.artifact = ""; - - /** - * QueryArtifactLineageSubgraphRequest maxHops. - * @member {number} maxHops - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * PurgeExecutionsResponse purgeCount. + * @member {number|Long} purgeCount + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @instance */ - QueryArtifactLineageSubgraphRequest.prototype.maxHops = 0; + PurgeExecutionsResponse.prototype.purgeCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * QueryArtifactLineageSubgraphRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * PurgeExecutionsResponse purgeSample. + * @member {Array.} purgeSample + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @instance */ - QueryArtifactLineageSubgraphRequest.prototype.filter = ""; + PurgeExecutionsResponse.prototype.purgeSample = $util.emptyArray; /** - * Creates a new QueryArtifactLineageSubgraphRequest instance using the specified properties. + * Creates a new PurgeExecutionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest instance + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsResponse} PurgeExecutionsResponse instance */ - QueryArtifactLineageSubgraphRequest.create = function create(properties) { - return new QueryArtifactLineageSubgraphRequest(properties); + PurgeExecutionsResponse.create = function create(properties) { + return new PurgeExecutionsResponse(properties); }; /** - * Encodes the specified QueryArtifactLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * Encodes the specified PurgeExecutionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsResponse} message PurgeExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryArtifactLineageSubgraphRequest.encode = function encode(message, writer) { + PurgeExecutionsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifact); - if (message.maxHops != null && Object.hasOwnProperty.call(message, "maxHops")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxHops); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.filter); + if (message.purgeCount != null && Object.hasOwnProperty.call(message, "purgeCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.purgeCount); + if (message.purgeSample != null && message.purgeSample.length) + for (var i = 0; i < message.purgeSample.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.purgeSample[i]); return writer; }; /** - * Encodes the specified QueryArtifactLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * Encodes the specified PurgeExecutionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsResponse} message PurgeExecutionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - QueryArtifactLineageSubgraphRequest.encodeDelimited = function encodeDelimited(message, writer) { + PurgeExecutionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer. + * Decodes a PurgeExecutionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @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.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsResponse} PurgeExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryArtifactLineageSubgraphRequest.decode = function decode(reader, length) { + PurgeExecutionsResponse.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.QueryArtifactLineageSubgraphRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.artifact = reader.string(); + message.purgeCount = reader.int64(); break; } case 2: { - message.maxHops = reader.int32(); - break; - } - case 3: { - message.filter = reader.string(); + if (!(message.purgeSample && message.purgeSample.length)) + message.purgeSample = []; + message.purgeSample.push(reader.string()); break; } default: @@ -104451,144 +108661,157 @@ }; /** - * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsResponse} PurgeExecutionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - QueryArtifactLineageSubgraphRequest.decodeDelimited = function decodeDelimited(reader) { + PurgeExecutionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a QueryArtifactLineageSubgraphRequest message. + * Verifies a PurgeExecutionsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - QueryArtifactLineageSubgraphRequest.verify = function verify(message) { + PurgeExecutionsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.artifact != null && message.hasOwnProperty("artifact")) - if (!$util.isString(message.artifact)) - return "artifact: string expected"; - if (message.maxHops != null && message.hasOwnProperty("maxHops")) - if (!$util.isInteger(message.maxHops)) - return "maxHops: integer expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; + if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (!$util.isInteger(message.purgeCount) && !(message.purgeCount && $util.isInteger(message.purgeCount.low) && $util.isInteger(message.purgeCount.high))) + return "purgeCount: integer|Long expected"; + if (message.purgeSample != null && message.hasOwnProperty("purgeSample")) { + if (!Array.isArray(message.purgeSample)) + return "purgeSample: array expected"; + for (var i = 0; i < message.purgeSample.length; ++i) + if (!$util.isString(message.purgeSample[i])) + return "purgeSample: string[] expected"; + } return null; }; /** - * Creates a QueryArtifactLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsResponse} PurgeExecutionsResponse */ - QueryArtifactLineageSubgraphRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest) + PurgeExecutionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeExecutionsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest(); - if (object.artifact != null) - message.artifact = String(object.artifact); - if (object.maxHops != null) - message.maxHops = object.maxHops | 0; - if (object.filter != null) - message.filter = String(object.filter); + var message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsResponse(); + if (object.purgeCount != null) + if ($util.Long) + (message.purgeCount = $util.Long.fromValue(object.purgeCount)).unsigned = false; + else if (typeof object.purgeCount === "string") + message.purgeCount = parseInt(object.purgeCount, 10); + else if (typeof object.purgeCount === "number") + message.purgeCount = object.purgeCount; + else if (typeof object.purgeCount === "object") + message.purgeCount = new $util.LongBits(object.purgeCount.low >>> 0, object.purgeCount.high >>> 0).toNumber(); + if (object.purgeSample) { + if (!Array.isArray(object.purgeSample)) + throw TypeError(".google.cloud.aiplatform.v1.PurgeExecutionsResponse.purgeSample: array expected"); + message.purgeSample = []; + for (var i = 0; i < object.purgeSample.length; ++i) + message.purgeSample[i] = String(object.purgeSample[i]); + } return message; }; /** - * Creates a plain object from a QueryArtifactLineageSubgraphRequest message. Also converts values to other types if specified. + * Creates a plain object from a PurgeExecutionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @static - * @param {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest + * @param {google.cloud.aiplatform.v1.PurgeExecutionsResponse} message PurgeExecutionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - QueryArtifactLineageSubgraphRequest.toObject = function toObject(message, options) { + PurgeExecutionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.artifact = ""; - object.maxHops = 0; - object.filter = ""; + if (options.arrays || options.defaults) + object.purgeSample = []; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.purgeCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.purgeCount = options.longs === String ? "0" : 0; + if (message.purgeCount != null && message.hasOwnProperty("purgeCount")) + if (typeof message.purgeCount === "number") + object.purgeCount = options.longs === String ? String(message.purgeCount) : message.purgeCount; + else + object.purgeCount = options.longs === String ? $util.Long.prototype.toString.call(message.purgeCount) : options.longs === Number ? new $util.LongBits(message.purgeCount.low >>> 0, message.purgeCount.high >>> 0).toNumber() : message.purgeCount; + if (message.purgeSample && message.purgeSample.length) { + object.purgeSample = []; + for (var j = 0; j < message.purgeSample.length; ++j) + object.purgeSample[j] = message.purgeSample[j]; } - if (message.artifact != null && message.hasOwnProperty("artifact")) - object.artifact = message.artifact; - if (message.maxHops != null && message.hasOwnProperty("maxHops")) - object.maxHops = message.maxHops; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; return object; }; /** - * Converts this QueryArtifactLineageSubgraphRequest to JSON. + * Converts this PurgeExecutionsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @instance * @returns {Object.} JSON object */ - QueryArtifactLineageSubgraphRequest.prototype.toJSON = function toJSON() { + PurgeExecutionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for QueryArtifactLineageSubgraphRequest + * Gets the default type url for PurgeExecutionsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - QueryArtifactLineageSubgraphRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeExecutionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeExecutionsResponse"; }; - return QueryArtifactLineageSubgraphRequest; + return PurgeExecutionsResponse; })(); - v1.MetadataStore = (function() { + v1.PurgeExecutionsMetadata = (function() { /** - * Properties of a MetadataStore. + * Properties of a PurgeExecutionsMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IMetadataStore - * @property {string|null} [name] MetadataStore name - * @property {google.protobuf.ITimestamp|null} [createTime] MetadataStore createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] MetadataStore updateTime - * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] MetadataStore encryptionSpec - * @property {string|null} [description] MetadataStore description - * @property {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState|null} [state] MetadataStore state + * @interface IPurgeExecutionsMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] PurgeExecutionsMetadata genericMetadata */ /** - * Constructs a new MetadataStore. + * Constructs a new PurgeExecutionsMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MetadataStore. - * @implements IMetadataStore + * @classdesc Represents a PurgeExecutionsMetadata. + * @implements IPurgeExecutionsMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IMetadataStore=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsMetadata=} [properties] Properties to set */ - function MetadataStore(properties) { + function PurgeExecutionsMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -104596,145 +108819,75 @@ } /** - * MetadataStore name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.MetadataStore - * @instance - */ - MetadataStore.prototype.name = ""; - - /** - * MetadataStore createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.MetadataStore - * @instance - */ - MetadataStore.prototype.createTime = null; - - /** - * MetadataStore updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.MetadataStore - * @instance - */ - MetadataStore.prototype.updateTime = null; - - /** - * MetadataStore encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.MetadataStore - * @instance - */ - MetadataStore.prototype.encryptionSpec = null; - - /** - * MetadataStore description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1.MetadataStore - * @instance - */ - MetadataStore.prototype.description = ""; - - /** - * MetadataStore state. - * @member {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState|null|undefined} state - * @memberof google.cloud.aiplatform.v1.MetadataStore + * PurgeExecutionsMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @instance */ - MetadataStore.prototype.state = null; + PurgeExecutionsMetadata.prototype.genericMetadata = null; /** - * Creates a new MetadataStore instance using the specified properties. + * Creates a new PurgeExecutionsMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @static - * @param {google.cloud.aiplatform.v1.IMetadataStore=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MetadataStore} MetadataStore instance + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} PurgeExecutionsMetadata instance */ - MetadataStore.create = function create(properties) { - return new MetadataStore(properties); + PurgeExecutionsMetadata.create = function create(properties) { + return new PurgeExecutionsMetadata(properties); }; /** - * Encodes the specified MetadataStore message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.verify|verify} messages. + * Encodes the specified PurgeExecutionsMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @static - * @param {google.cloud.aiplatform.v1.IMetadataStore} message MetadataStore message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsMetadata} message PurgeExecutionsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetadataStore.encode = function encode(message, writer) { + PurgeExecutionsMetadata.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); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.encode(message.state, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + 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 MetadataStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.verify|verify} messages. + * Encodes the specified PurgeExecutionsMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PurgeExecutionsMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @static - * @param {google.cloud.aiplatform.v1.IMetadataStore} message MetadataStore message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPurgeExecutionsMetadata} message PurgeExecutionsMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MetadataStore.encodeDelimited = function encodeDelimited(message, writer) { + PurgeExecutionsMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MetadataStore message from the specified reader or buffer. + * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @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.MetadataStore} MetadataStore + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} PurgeExecutionsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetadataStore.decode = function decode(reader, length) { + PurgeExecutionsMetadata.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.MetadataStore(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 3: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 4: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); - break; - } - case 6: { - message.description = reader.string(); - break; - } - case 7: { - message.state = $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.decode(reader, reader.uint32()); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -104746,405 +108899,374 @@ }; /** - * Decodes a MetadataStore message from the specified reader or buffer, length delimited. + * Decodes a PurgeExecutionsMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MetadataStore} MetadataStore + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} PurgeExecutionsMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MetadataStore.decodeDelimited = function decodeDelimited(reader) { + PurgeExecutionsMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MetadataStore message. + * Verifies a PurgeExecutionsMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MetadataStore.verify = function verify(message) { + PurgeExecutionsMetadata.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"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.state != null && message.hasOwnProperty("state")) { - var error = $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify(message.state); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "state." + error; + return "genericMetadata." + error; } return null; }; /** - * Creates a MetadataStore message from a plain object. Also converts values to their respective internal types. + * Creates a PurgeExecutionsMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MetadataStore} MetadataStore + * @returns {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} PurgeExecutionsMetadata */ - MetadataStore.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MetadataStore) + PurgeExecutionsMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PurgeExecutionsMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.MetadataStore(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MetadataStore.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MetadataStore.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MetadataStore.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); - } - if (object.description != null) - message.description = String(object.description); - if (object.state != null) { - if (typeof object.state !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MetadataStore.state: object expected"); - message.state = $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.fromObject(object.state); + var message = new $root.google.cloud.aiplatform.v1.PurgeExecutionsMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PurgeExecutionsMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a MetadataStore message. Also converts values to other types if specified. + * Creates a plain object from a PurgeExecutionsMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @static - * @param {google.cloud.aiplatform.v1.MetadataStore} message MetadataStore + * @param {google.cloud.aiplatform.v1.PurgeExecutionsMetadata} message PurgeExecutionsMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MetadataStore.toObject = function toObject(message, options) { + PurgeExecutionsMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.encryptionSpec = null; - object.description = ""; - object.state = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.state != null && message.hasOwnProperty("state")) - object.state = $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.toObject(message.state, options); + 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 MetadataStore to JSON. + * Converts this PurgeExecutionsMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @instance * @returns {Object.} JSON object */ - MetadataStore.prototype.toJSON = function toJSON() { + PurgeExecutionsMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MetadataStore + * Gets the default type url for PurgeExecutionsMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MetadataStore + * @memberof google.cloud.aiplatform.v1.PurgeExecutionsMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MetadataStore.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PurgeExecutionsMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MetadataStore"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PurgeExecutionsMetadata"; }; - MetadataStore.MetadataStoreState = (function() { - - /** - * Properties of a MetadataStoreState. - * @memberof google.cloud.aiplatform.v1.MetadataStore - * @interface IMetadataStoreState - * @property {number|Long|null} [diskUtilizationBytes] MetadataStoreState diskUtilizationBytes - */ + return PurgeExecutionsMetadata; + })(); - /** - * Constructs a new MetadataStoreState. - * @memberof google.cloud.aiplatform.v1.MetadataStore - * @classdesc Represents a MetadataStoreState. - * @implements IMetadataStoreState - * @constructor - * @param {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState=} [properties] Properties to set - */ - function MetadataStoreState(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]]; - } + v1.AddExecutionEventsRequest = (function() { - /** - * MetadataStoreState diskUtilizationBytes. - * @member {number|Long} diskUtilizationBytes - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @instance - */ - MetadataStoreState.prototype.diskUtilizationBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Properties of an AddExecutionEventsRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IAddExecutionEventsRequest + * @property {string|null} [execution] AddExecutionEventsRequest execution + * @property {Array.|null} [events] AddExecutionEventsRequest events + */ - /** - * Creates a new MetadataStoreState instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @static - * @param {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} MetadataStoreState instance - */ - MetadataStoreState.create = function create(properties) { - return new MetadataStoreState(properties); - }; + /** + * Constructs a new AddExecutionEventsRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an AddExecutionEventsRequest. + * @implements IAddExecutionEventsRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest=} [properties] Properties to set + */ + function AddExecutionEventsRequest(properties) { + this.events = []; + 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]]; + } - /** - * Encodes the specified MetadataStoreState message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @static - * @param {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState} message MetadataStoreState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetadataStoreState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.diskUtilizationBytes != null && Object.hasOwnProperty.call(message, "diskUtilizationBytes")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.diskUtilizationBytes); - return writer; - }; + /** + * AddExecutionEventsRequest execution. + * @member {string} execution + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @instance + */ + AddExecutionEventsRequest.prototype.execution = ""; - /** - * Encodes the specified MetadataStoreState message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @static - * @param {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState} message MetadataStoreState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetadataStoreState.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * AddExecutionEventsRequest events. + * @member {Array.} events + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @instance + */ + AddExecutionEventsRequest.prototype.events = $util.emptyArray; - /** - * Decodes a MetadataStoreState message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @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.MetadataStore.MetadataStoreState} MetadataStoreState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetadataStoreState.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.MetadataStore.MetadataStoreState(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.diskUtilizationBytes = reader.int64(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Creates a new AddExecutionEventsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @static + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.AddExecutionEventsRequest} AddExecutionEventsRequest instance + */ + AddExecutionEventsRequest.create = function create(properties) { + return new AddExecutionEventsRequest(properties); + }; + + /** + * Encodes the specified AddExecutionEventsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @static + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest} message AddExecutionEventsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddExecutionEventsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.execution); + if (message.events != null && message.events.length) + for (var i = 0; i < message.events.length; ++i) + $root.google.cloud.aiplatform.v1.Event.encode(message.events[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AddExecutionEventsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @static + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsRequest} message AddExecutionEventsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AddExecutionEventsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AddExecutionEventsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @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.AddExecutionEventsRequest} AddExecutionEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddExecutionEventsRequest.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.AddExecutionEventsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.execution = reader.string(); + break; + } + case 2: { + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.google.cloud.aiplatform.v1.Event.decode(reader, reader.uint32())); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a MetadataStoreState message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} MetadataStoreState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetadataStoreState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a MetadataStoreState message. - * @function verify - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MetadataStoreState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.diskUtilizationBytes != null && message.hasOwnProperty("diskUtilizationBytes")) - if (!$util.isInteger(message.diskUtilizationBytes) && !(message.diskUtilizationBytes && $util.isInteger(message.diskUtilizationBytes.low) && $util.isInteger(message.diskUtilizationBytes.high))) - return "diskUtilizationBytes: integer|Long expected"; - return null; - }; + /** + * Decodes an AddExecutionEventsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.AddExecutionEventsRequest} AddExecutionEventsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AddExecutionEventsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a MetadataStoreState message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} MetadataStoreState - */ - MetadataStoreState.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState) - return object; - var message = new $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState(); - if (object.diskUtilizationBytes != null) - if ($util.Long) - (message.diskUtilizationBytes = $util.Long.fromValue(object.diskUtilizationBytes)).unsigned = false; - else if (typeof object.diskUtilizationBytes === "string") - message.diskUtilizationBytes = parseInt(object.diskUtilizationBytes, 10); - else if (typeof object.diskUtilizationBytes === "number") - message.diskUtilizationBytes = object.diskUtilizationBytes; - else if (typeof object.diskUtilizationBytes === "object") - message.diskUtilizationBytes = new $util.LongBits(object.diskUtilizationBytes.low >>> 0, object.diskUtilizationBytes.high >>> 0).toNumber(); - return message; - }; + /** + * Verifies an AddExecutionEventsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AddExecutionEventsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.execution != null && message.hasOwnProperty("execution")) + if (!$util.isString(message.execution)) + return "execution: string expected"; + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Event.verify(message.events[i]); + if (error) + return "events." + error; + } + } + return null; + }; - /** - * Creates a plain object from a MetadataStoreState message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @static - * @param {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} message MetadataStoreState - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MetadataStoreState.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.diskUtilizationBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.diskUtilizationBytes = options.longs === String ? "0" : 0; - if (message.diskUtilizationBytes != null && message.hasOwnProperty("diskUtilizationBytes")) - if (typeof message.diskUtilizationBytes === "number") - object.diskUtilizationBytes = options.longs === String ? String(message.diskUtilizationBytes) : message.diskUtilizationBytes; - else - object.diskUtilizationBytes = options.longs === String ? $util.Long.prototype.toString.call(message.diskUtilizationBytes) : options.longs === Number ? new $util.LongBits(message.diskUtilizationBytes.low >>> 0, message.diskUtilizationBytes.high >>> 0).toNumber() : message.diskUtilizationBytes; + /** + * Creates an AddExecutionEventsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.AddExecutionEventsRequest} AddExecutionEventsRequest + */ + AddExecutionEventsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.AddExecutionEventsRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1.AddExecutionEventsRequest(); + if (object.execution != null) + message.execution = String(object.execution); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".google.cloud.aiplatform.v1.AddExecutionEventsRequest.events: array expected"); + message.events = []; + for (var i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.AddExecutionEventsRequest.events: object expected"); + message.events[i] = $root.google.cloud.aiplatform.v1.Event.fromObject(object.events[i]); + } + } + return message; + }; - /** - * Converts this MetadataStoreState to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @instance - * @returns {Object.} JSON object - */ - MetadataStoreState.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an AddExecutionEventsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @static + * @param {google.cloud.aiplatform.v1.AddExecutionEventsRequest} message AddExecutionEventsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AddExecutionEventsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.events = []; + if (options.defaults) + object.execution = ""; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = message.execution; + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.google.cloud.aiplatform.v1.Event.toObject(message.events[j], options); + } + return object; + }; - /** - * Gets the default type url for MetadataStoreState - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MetadataStoreState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState"; - }; + /** + * Converts this AddExecutionEventsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @instance + * @returns {Object.} JSON object + */ + AddExecutionEventsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return MetadataStoreState; - })(); + /** + * Gets the default type url for AddExecutionEventsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AddExecutionEventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddExecutionEventsRequest"; + }; - return MetadataStore; + return AddExecutionEventsRequest; })(); - v1.MigratableResource = (function() { + v1.AddExecutionEventsResponse = (function() { /** - * Properties of a MigratableResource. + * Properties of an AddExecutionEventsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IMigratableResource - * @property {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion|null} [mlEngineModelVersion] MigratableResource mlEngineModelVersion - * @property {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel|null} [automlModel] MigratableResource automlModel - * @property {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset|null} [automlDataset] MigratableResource automlDataset - * @property {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset|null} [dataLabelingDataset] MigratableResource dataLabelingDataset - * @property {google.protobuf.ITimestamp|null} [lastMigrateTime] MigratableResource lastMigrateTime - * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] MigratableResource lastUpdateTime + * @interface IAddExecutionEventsResponse */ /** - * Constructs a new MigratableResource. + * Constructs a new AddExecutionEventsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MigratableResource. - * @implements IMigratableResource + * @classdesc Represents an AddExecutionEventsResponse. + * @implements IAddExecutionEventsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IMigratableResource=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsResponse=} [properties] Properties to set */ - function MigratableResource(properties) { + function AddExecutionEventsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -105152,159 +109274,251 @@ } /** - * MigratableResource mlEngineModelVersion. - * @member {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion|null|undefined} mlEngineModelVersion - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @instance + * Creates a new AddExecutionEventsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @static + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.AddExecutionEventsResponse} AddExecutionEventsResponse instance */ - MigratableResource.prototype.mlEngineModelVersion = null; + AddExecutionEventsResponse.create = function create(properties) { + return new AddExecutionEventsResponse(properties); + }; /** - * MigratableResource automlModel. - * @member {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel|null|undefined} automlModel - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @instance + * Encodes the specified AddExecutionEventsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @static + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsResponse} message AddExecutionEventsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MigratableResource.prototype.automlModel = null; + AddExecutionEventsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * MigratableResource automlDataset. - * @member {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset|null|undefined} automlDataset - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @instance + * Encodes the specified AddExecutionEventsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.AddExecutionEventsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @static + * @param {google.cloud.aiplatform.v1.IAddExecutionEventsResponse} message AddExecutionEventsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - MigratableResource.prototype.automlDataset = null; + AddExecutionEventsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * MigratableResource dataLabelingDataset. - * @member {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset|null|undefined} dataLabelingDataset - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @instance + * Decodes an AddExecutionEventsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @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.AddExecutionEventsResponse} AddExecutionEventsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigratableResource.prototype.dataLabelingDataset = null; + AddExecutionEventsResponse.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.AddExecutionEventsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * MigratableResource lastMigrateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastMigrateTime - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @instance + * Decodes an AddExecutionEventsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.AddExecutionEventsResponse} AddExecutionEventsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigratableResource.prototype.lastMigrateTime = null; + AddExecutionEventsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * MigratableResource lastUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime - * @memberof google.cloud.aiplatform.v1.MigratableResource + * Verifies an AddExecutionEventsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AddExecutionEventsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an AddExecutionEventsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.AddExecutionEventsResponse} AddExecutionEventsResponse + */ + AddExecutionEventsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.AddExecutionEventsResponse) + return object; + return new $root.google.cloud.aiplatform.v1.AddExecutionEventsResponse(); + }; + + /** + * Creates a plain object from an AddExecutionEventsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @static + * @param {google.cloud.aiplatform.v1.AddExecutionEventsResponse} message AddExecutionEventsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AddExecutionEventsResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this AddExecutionEventsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse * @instance + * @returns {Object.} JSON object */ - MigratableResource.prototype.lastUpdateTime = null; + AddExecutionEventsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Gets the default type url for AddExecutionEventsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.AddExecutionEventsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AddExecutionEventsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.AddExecutionEventsResponse"; + }; + + return AddExecutionEventsResponse; + })(); + + v1.QueryExecutionInputsAndOutputsRequest = (function() { /** - * MigratableResource resource. - * @member {"mlEngineModelVersion"|"automlModel"|"automlDataset"|"dataLabelingDataset"|undefined} resource - * @memberof google.cloud.aiplatform.v1.MigratableResource + * Properties of a QueryExecutionInputsAndOutputsRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IQueryExecutionInputsAndOutputsRequest + * @property {string|null} [execution] QueryExecutionInputsAndOutputsRequest execution + */ + + /** + * Constructs a new QueryExecutionInputsAndOutputsRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a QueryExecutionInputsAndOutputsRequest. + * @implements IQueryExecutionInputsAndOutputsRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest=} [properties] Properties to set + */ + function QueryExecutionInputsAndOutputsRequest(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]]; + } + + /** + * QueryExecutionInputsAndOutputsRequest execution. + * @member {string} execution + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @instance */ - Object.defineProperty(MigratableResource.prototype, "resource", { - get: $util.oneOfGetter($oneOfFields = ["mlEngineModelVersion", "automlModel", "automlDataset", "dataLabelingDataset"]), - set: $util.oneOfSetter($oneOfFields) - }); + QueryExecutionInputsAndOutputsRequest.prototype.execution = ""; /** - * Creates a new MigratableResource instance using the specified properties. + * Creates a new QueryExecutionInputsAndOutputsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @static - * @param {google.cloud.aiplatform.v1.IMigratableResource=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigratableResource} MigratableResource instance + * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest instance */ - MigratableResource.create = function create(properties) { - return new MigratableResource(properties); + QueryExecutionInputsAndOutputsRequest.create = function create(properties) { + return new QueryExecutionInputsAndOutputsRequest(properties); }; /** - * Encodes the specified MigratableResource message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.verify|verify} messages. + * Encodes the specified QueryExecutionInputsAndOutputsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @static - * @param {google.cloud.aiplatform.v1.IMigratableResource} message MigratableResource message or plain object to encode + * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigratableResource.encode = function encode(message, writer) { + QueryExecutionInputsAndOutputsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.mlEngineModelVersion != null && Object.hasOwnProperty.call(message, "mlEngineModelVersion")) - $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.encode(message.mlEngineModelVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.automlModel != null && Object.hasOwnProperty.call(message, "automlModel")) - $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.encode(message.automlModel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.automlDataset != null && Object.hasOwnProperty.call(message, "automlDataset")) - $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.encode(message.automlDataset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.dataLabelingDataset != null && Object.hasOwnProperty.call(message, "dataLabelingDataset")) - $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.encode(message.dataLabelingDataset, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.lastMigrateTime != null && Object.hasOwnProperty.call(message, "lastMigrateTime")) - $root.google.protobuf.Timestamp.encode(message.lastMigrateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) - $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.execution); return writer; }; /** - * Encodes the specified MigratableResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.verify|verify} messages. + * Encodes the specified QueryExecutionInputsAndOutputsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @static - * @param {google.cloud.aiplatform.v1.IMigratableResource} message MigratableResource message or plain object to encode + * @param {google.cloud.aiplatform.v1.IQueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigratableResource.encodeDelimited = function encodeDelimited(message, writer) { + QueryExecutionInputsAndOutputsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigratableResource message from the specified reader or buffer. + * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @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.MigratableResource} MigratableResource + * @returns {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigratableResource.decode = function decode(reader, length) { + QueryExecutionInputsAndOutputsRequest.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.MigratableResource(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.mlEngineModelVersion = $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.decode(reader, reader.uint32()); - break; - } - case 2: { - message.automlModel = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.decode(reader, reader.uint32()); - break; - } - case 3: { - message.automlDataset = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.decode(reader, reader.uint32()); - break; - } - case 4: { - message.dataLabelingDataset = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.decode(reader, reader.uint32()); - break; - } - case 5: { - message.lastMigrateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.execution = reader.string(); break; } default: @@ -105316,1657 +109530,736 @@ }; /** - * Decodes a MigratableResource message from the specified reader or buffer, length delimited. + * Decodes a QueryExecutionInputsAndOutputsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigratableResource} MigratableResource + * @returns {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigratableResource.decodeDelimited = function decodeDelimited(reader) { + QueryExecutionInputsAndOutputsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigratableResource message. + * Verifies a QueryExecutionInputsAndOutputsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigratableResource.verify = function verify(message) { + QueryExecutionInputsAndOutputsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.mlEngineModelVersion != null && message.hasOwnProperty("mlEngineModelVersion")) { - properties.resource = 1; - { - var error = $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify(message.mlEngineModelVersion); - if (error) - return "mlEngineModelVersion." + error; - } - } - if (message.automlModel != null && message.hasOwnProperty("automlModel")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify(message.automlModel); - if (error) - return "automlModel." + error; - } - } - if (message.automlDataset != null && message.hasOwnProperty("automlDataset")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify(message.automlDataset); - if (error) - return "automlDataset." + error; - } - } - if (message.dataLabelingDataset != null && message.hasOwnProperty("dataLabelingDataset")) { - if (properties.resource === 1) - return "resource: multiple values"; - properties.resource = 1; - { - var error = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify(message.dataLabelingDataset); - if (error) - return "dataLabelingDataset." + error; - } - } - if (message.lastMigrateTime != null && message.hasOwnProperty("lastMigrateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastMigrateTime); - if (error) - return "lastMigrateTime." + error; - } - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); - if (error) - return "lastUpdateTime." + error; - } + if (message.execution != null && message.hasOwnProperty("execution")) + if (!$util.isString(message.execution)) + return "execution: string expected"; return null; }; /** - * Creates a MigratableResource message from a plain object. Also converts values to their respective internal types. + * Creates a QueryExecutionInputsAndOutputsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigratableResource} MigratableResource + * @returns {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} QueryExecutionInputsAndOutputsRequest */ - MigratableResource.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource) + QueryExecutionInputsAndOutputsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.MigratableResource(); - if (object.mlEngineModelVersion != null) { - if (typeof object.mlEngineModelVersion !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.mlEngineModelVersion: object expected"); - message.mlEngineModelVersion = $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.fromObject(object.mlEngineModelVersion); - } - if (object.automlModel != null) { - if (typeof object.automlModel !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.automlModel: object expected"); - message.automlModel = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.fromObject(object.automlModel); - } - if (object.automlDataset != null) { - if (typeof object.automlDataset !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.automlDataset: object expected"); - message.automlDataset = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.fromObject(object.automlDataset); - } - if (object.dataLabelingDataset != null) { - if (typeof object.dataLabelingDataset !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.dataLabelingDataset: object expected"); - message.dataLabelingDataset = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.fromObject(object.dataLabelingDataset); - } - if (object.lastMigrateTime != null) { - if (typeof object.lastMigrateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.lastMigrateTime: object expected"); - message.lastMigrateTime = $root.google.protobuf.Timestamp.fromObject(object.lastMigrateTime); - } - if (object.lastUpdateTime != null) { - if (typeof object.lastUpdateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.lastUpdateTime: object expected"); - message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); - } + var message = new $root.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest(); + if (object.execution != null) + message.execution = String(object.execution); return message; }; /** - * Creates a plain object from a MigratableResource message. Also converts values to other types if specified. + * Creates a plain object from a QueryExecutionInputsAndOutputsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @static - * @param {google.cloud.aiplatform.v1.MigratableResource} message MigratableResource + * @param {google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest} message QueryExecutionInputsAndOutputsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigratableResource.toObject = function toObject(message, options) { + QueryExecutionInputsAndOutputsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.lastMigrateTime = null; - object.lastUpdateTime = null; - } - if (message.mlEngineModelVersion != null && message.hasOwnProperty("mlEngineModelVersion")) { - object.mlEngineModelVersion = $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.toObject(message.mlEngineModelVersion, options); - if (options.oneofs) - object.resource = "mlEngineModelVersion"; - } - if (message.automlModel != null && message.hasOwnProperty("automlModel")) { - object.automlModel = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.toObject(message.automlModel, options); - if (options.oneofs) - object.resource = "automlModel"; - } - if (message.automlDataset != null && message.hasOwnProperty("automlDataset")) { - object.automlDataset = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.toObject(message.automlDataset, options); - if (options.oneofs) - object.resource = "automlDataset"; - } - if (message.dataLabelingDataset != null && message.hasOwnProperty("dataLabelingDataset")) { - object.dataLabelingDataset = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.toObject(message.dataLabelingDataset, options); - if (options.oneofs) - object.resource = "dataLabelingDataset"; - } - if (message.lastMigrateTime != null && message.hasOwnProperty("lastMigrateTime")) - object.lastMigrateTime = $root.google.protobuf.Timestamp.toObject(message.lastMigrateTime, options); - if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) - object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + if (options.defaults) + object.execution = ""; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = message.execution; return object; }; /** - * Converts this MigratableResource to JSON. + * Converts this QueryExecutionInputsAndOutputsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @instance * @returns {Object.} JSON object */ - MigratableResource.prototype.toJSON = function toJSON() { + QueryExecutionInputsAndOutputsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigratableResource + * Gets the default type url for QueryExecutionInputsAndOutputsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigratableResource + * @memberof google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigratableResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryExecutionInputsAndOutputsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest"; }; - MigratableResource.MlEngineModelVersion = (function() { - - /** - * Properties of a MlEngineModelVersion. - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @interface IMlEngineModelVersion - * @property {string|null} [endpoint] MlEngineModelVersion endpoint - * @property {string|null} [version] MlEngineModelVersion version - */ + return QueryExecutionInputsAndOutputsRequest; + })(); - /** - * Constructs a new MlEngineModelVersion. - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @classdesc Represents a MlEngineModelVersion. - * @implements IMlEngineModelVersion - * @constructor - * @param {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion=} [properties] Properties to set - */ - function MlEngineModelVersion(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]]; - } + v1.CreateMetadataSchemaRequest = (function() { - /** - * MlEngineModelVersion endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @instance - */ - MlEngineModelVersion.prototype.endpoint = ""; + /** + * Properties of a CreateMetadataSchemaRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateMetadataSchemaRequest + * @property {string|null} [parent] CreateMetadataSchemaRequest parent + * @property {google.cloud.aiplatform.v1.IMetadataSchema|null} [metadataSchema] CreateMetadataSchemaRequest metadataSchema + * @property {string|null} [metadataSchemaId] CreateMetadataSchemaRequest metadataSchemaId + */ - /** - * MlEngineModelVersion version. - * @member {string} version - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @instance - */ - MlEngineModelVersion.prototype.version = ""; + /** + * Constructs a new CreateMetadataSchemaRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateMetadataSchemaRequest. + * @implements ICreateMetadataSchemaRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest=} [properties] Properties to set + */ + function CreateMetadataSchemaRequest(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]]; + } - /** - * Creates a new MlEngineModelVersion instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion instance - */ - MlEngineModelVersion.create = function create(properties) { - return new MlEngineModelVersion(properties); - }; + /** + * CreateMetadataSchemaRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @instance + */ + CreateMetadataSchemaRequest.prototype.parent = ""; - /** - * Encodes the specified MlEngineModelVersion message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion} message MlEngineModelVersion message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MlEngineModelVersion.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); - return writer; - }; + /** + * CreateMetadataSchemaRequest metadataSchema. + * @member {google.cloud.aiplatform.v1.IMetadataSchema|null|undefined} metadataSchema + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @instance + */ + CreateMetadataSchemaRequest.prototype.metadataSchema = null; - /** - * Encodes the specified MlEngineModelVersion message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion} message MlEngineModelVersion message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MlEngineModelVersion.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * CreateMetadataSchemaRequest metadataSchemaId. + * @member {string} metadataSchemaId + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @instance + */ + CreateMetadataSchemaRequest.prototype.metadataSchemaId = ""; - /** - * Decodes a MlEngineModelVersion message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @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.MigratableResource.MlEngineModelVersion} MlEngineModelVersion - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MlEngineModelVersion.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.MigratableResource.MlEngineModelVersion(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.endpoint = reader.string(); - break; - } - case 2: { - message.version = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new CreateMetadataSchemaRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest instance + */ + CreateMetadataSchemaRequest.create = function create(properties) { + return new CreateMetadataSchemaRequest(properties); + }; - /** - * Decodes a MlEngineModelVersion message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MlEngineModelVersion.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MlEngineModelVersion message. - * @function verify - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MlEngineModelVersion.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - return null; - }; + /** + * Encodes the specified CreateMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest} message CreateMetadataSchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateMetadataSchemaRequest.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.metadataSchema != null && Object.hasOwnProperty.call(message, "metadataSchema")) + $root.google.cloud.aiplatform.v1.MetadataSchema.encode(message.metadataSchema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metadataSchemaId != null && Object.hasOwnProperty.call(message, "metadataSchemaId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataSchemaId); + return writer; + }; - /** - * Creates a MlEngineModelVersion message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion - */ - MlEngineModelVersion.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion) - return object; - var message = new $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.version != null) - message.version = String(object.version); - return message; - }; + /** + * Encodes the specified CreateMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateMetadataSchemaRequest} message CreateMetadataSchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateMetadataSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from a MlEngineModelVersion message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} message MlEngineModelVersion - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MlEngineModelVersion.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.endpoint = ""; - object.version = ""; + /** + * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @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.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateMetadataSchemaRequest.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.CreateMetadataSchemaRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.metadataSchema = $root.google.cloud.aiplatform.v1.MetadataSchema.decode(reader, reader.uint32()); + break; + } + case 3: { + message.metadataSchemaId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - return object; - }; + } + return message; + }; - /** - * Converts this MlEngineModelVersion to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @instance - * @returns {Object.} JSON object - */ - MlEngineModelVersion.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a CreateMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateMetadataSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for MlEngineModelVersion - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MlEngineModelVersion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion"; - }; + /** + * Verifies a CreateMetadataSchemaRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateMetadataSchemaRequest.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.metadataSchema != null && message.hasOwnProperty("metadataSchema")) { + var error = $root.google.cloud.aiplatform.v1.MetadataSchema.verify(message.metadataSchema); + if (error) + return "metadataSchema." + error; + } + if (message.metadataSchemaId != null && message.hasOwnProperty("metadataSchemaId")) + if (!$util.isString(message.metadataSchemaId)) + return "metadataSchemaId: string expected"; + return null; + }; - return MlEngineModelVersion; - })(); + /** + * Creates a CreateMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} CreateMetadataSchemaRequest + */ + CreateMetadataSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.metadataSchema != null) { + if (typeof object.metadataSchema !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateMetadataSchemaRequest.metadataSchema: object expected"); + message.metadataSchema = $root.google.cloud.aiplatform.v1.MetadataSchema.fromObject(object.metadataSchema); + } + if (object.metadataSchemaId != null) + message.metadataSchemaId = String(object.metadataSchemaId); + return message; + }; - MigratableResource.AutomlModel = (function() { + /** + * Creates a plain object from a CreateMetadataSchemaRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @static + * @param {google.cloud.aiplatform.v1.CreateMetadataSchemaRequest} message CreateMetadataSchemaRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateMetadataSchemaRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.metadataSchema = null; + object.metadataSchemaId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.metadataSchema != null && message.hasOwnProperty("metadataSchema")) + object.metadataSchema = $root.google.cloud.aiplatform.v1.MetadataSchema.toObject(message.metadataSchema, options); + if (message.metadataSchemaId != null && message.hasOwnProperty("metadataSchemaId")) + object.metadataSchemaId = message.metadataSchemaId; + return object; + }; - /** - * Properties of an AutomlModel. - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @interface IAutomlModel - * @property {string|null} [model] AutomlModel model - * @property {string|null} [modelDisplayName] AutomlModel modelDisplayName - */ + /** + * Converts this CreateMetadataSchemaRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @instance + * @returns {Object.} JSON object + */ + CreateMetadataSchemaRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new AutomlModel. - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @classdesc Represents an AutomlModel. - * @implements IAutomlModel - * @constructor - * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel=} [properties] Properties to set - */ - function AutomlModel(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]]; + /** + * Gets the default type url for CreateMetadataSchemaRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CreateMetadataSchemaRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateMetadataSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateMetadataSchemaRequest"; + }; - /** - * AutomlModel model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @instance - */ - AutomlModel.prototype.model = ""; - - /** - * AutomlModel modelDisplayName. - * @member {string} modelDisplayName - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @instance - */ - AutomlModel.prototype.modelDisplayName = ""; + return CreateMetadataSchemaRequest; + })(); - /** - * Creates a new AutomlModel instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} AutomlModel instance - */ - AutomlModel.create = function create(properties) { - return new AutomlModel(properties); - }; + v1.GetMetadataSchemaRequest = (function() { - /** - * Encodes the specified AutomlModel message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel} message AutomlModel message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomlModel.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); - if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.modelDisplayName); - return writer; - }; + /** + * Properties of a GetMetadataSchemaRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetMetadataSchemaRequest + * @property {string|null} [name] GetMetadataSchemaRequest name + */ - /** - * Encodes the specified AutomlModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel} message AutomlModel message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomlModel.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Constructs a new GetMetadataSchemaRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetMetadataSchemaRequest. + * @implements IGetMetadataSchemaRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest=} [properties] Properties to set + */ + function GetMetadataSchemaRequest(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]]; + } - /** - * Decodes an AutomlModel message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @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.MigratableResource.AutomlModel} AutomlModel - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomlModel.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.MigratableResource.AutomlModel(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.model = reader.string(); - break; - } - case 3: { - message.modelDisplayName = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * GetMetadataSchemaRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @instance + */ + GetMetadataSchemaRequest.prototype.name = ""; - /** - * Decodes an AutomlModel message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} AutomlModel - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomlModel.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new GetMetadataSchemaRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} GetMetadataSchemaRequest instance + */ + GetMetadataSchemaRequest.create = function create(properties) { + return new GetMetadataSchemaRequest(properties); + }; - /** - * Verifies an AutomlModel message. - * @function verify - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AutomlModel.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - if (!$util.isString(message.modelDisplayName)) - return "modelDisplayName: string expected"; - return null; - }; + /** + * Encodes the specified GetMetadataSchemaRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataSchemaRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest} message GetMetadataSchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetMetadataSchemaRequest.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; + }; - /** - * Creates an AutomlModel message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} AutomlModel - */ - AutomlModel.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel) - return object; - var message = new $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel(); - if (object.model != null) - message.model = String(object.model); - if (object.modelDisplayName != null) - message.modelDisplayName = String(object.modelDisplayName); - return message; - }; + /** + * Encodes the specified GetMetadataSchemaRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetMetadataSchemaRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetMetadataSchemaRequest} message GetMetadataSchemaRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetMetadataSchemaRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a plain object from an AutomlModel message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} message AutomlModel - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AutomlModel.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.model = ""; - object.modelDisplayName = ""; + /** + * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @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.GetMetadataSchemaRequest} GetMetadataSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetMetadataSchemaRequest.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.GetMetadataSchemaRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; } - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - object.modelDisplayName = message.modelDisplayName; - return object; - }; + } + return message; + }; - /** - * Converts this AutomlModel to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @instance - * @returns {Object.} JSON object - */ - AutomlModel.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a GetMetadataSchemaRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} GetMetadataSchemaRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetMetadataSchemaRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Gets the default type url for AutomlModel - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AutomlModel.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.AutomlModel"; - }; + /** + * Verifies a GetMetadataSchemaRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetMetadataSchemaRequest.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; + }; - return AutomlModel; - })(); + /** + * Creates a GetMetadataSchemaRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} GetMetadataSchemaRequest + */ + GetMetadataSchemaRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetMetadataSchemaRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.GetMetadataSchemaRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - MigratableResource.AutomlDataset = (function() { + /** + * Creates a plain object from a GetMetadataSchemaRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @static + * @param {google.cloud.aiplatform.v1.GetMetadataSchemaRequest} message GetMetadataSchemaRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetMetadataSchemaRequest.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; + }; - /** - * Properties of an AutomlDataset. - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @interface IAutomlDataset - * @property {string|null} [dataset] AutomlDataset dataset - * @property {string|null} [datasetDisplayName] AutomlDataset datasetDisplayName - */ + /** + * Converts this GetMetadataSchemaRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @instance + * @returns {Object.} JSON object + */ + GetMetadataSchemaRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new AutomlDataset. - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @classdesc Represents an AutomlDataset. - * @implements IAutomlDataset - * @constructor - * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset=} [properties] Properties to set - */ - function AutomlDataset(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]]; + /** + * Gets the default type url for GetMetadataSchemaRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.GetMetadataSchemaRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetMetadataSchemaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetMetadataSchemaRequest"; + }; - /** - * AutomlDataset dataset. - * @member {string} dataset - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @instance - */ - AutomlDataset.prototype.dataset = ""; + return GetMetadataSchemaRequest; + })(); - /** - * AutomlDataset datasetDisplayName. - * @member {string} datasetDisplayName - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @instance - */ - AutomlDataset.prototype.datasetDisplayName = ""; + v1.ListMetadataSchemasRequest = (function() { - /** - * Creates a new AutomlDataset instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} AutomlDataset instance - */ - AutomlDataset.create = function create(properties) { - return new AutomlDataset(properties); - }; + /** + * Properties of a ListMetadataSchemasRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IListMetadataSchemasRequest + * @property {string|null} [parent] ListMetadataSchemasRequest parent + * @property {number|null} [pageSize] ListMetadataSchemasRequest pageSize + * @property {string|null} [pageToken] ListMetadataSchemasRequest pageToken + * @property {string|null} [filter] ListMetadataSchemasRequest filter + */ - /** - * Encodes the specified AutomlDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset} message AutomlDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomlDataset.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); - if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.datasetDisplayName); - return writer; - }; + /** + * Constructs a new ListMetadataSchemasRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListMetadataSchemasRequest. + * @implements IListMetadataSchemasRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest=} [properties] Properties to set + */ + function ListMetadataSchemasRequest(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]]; + } - /** - * Encodes the specified AutomlDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset} message AutomlDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AutomlDataset.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListMetadataSchemasRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @instance + */ + ListMetadataSchemasRequest.prototype.parent = ""; - /** - * Decodes an AutomlDataset message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @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.MigratableResource.AutomlDataset} AutomlDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomlDataset.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.MigratableResource.AutomlDataset(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.dataset = reader.string(); - break; - } - case 4: { - message.datasetDisplayName = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ListMetadataSchemasRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @instance + */ + ListMetadataSchemasRequest.prototype.pageSize = 0; - /** - * Decodes an AutomlDataset message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} AutomlDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AutomlDataset.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * ListMetadataSchemasRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @instance + */ + ListMetadataSchemasRequest.prototype.pageToken = ""; - /** - * Verifies an AutomlDataset message. - * @function verify - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AutomlDataset.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dataset != null && message.hasOwnProperty("dataset")) - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - if (!$util.isString(message.datasetDisplayName)) - return "datasetDisplayName: string expected"; - return null; - }; + /** + * ListMetadataSchemasRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @instance + */ + ListMetadataSchemasRequest.prototype.filter = ""; - /** - * Creates an AutomlDataset message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} AutomlDataset - */ - AutomlDataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset) - return object; - var message = new $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.datasetDisplayName != null) - message.datasetDisplayName = String(object.datasetDisplayName); - return message; - }; + /** + * Creates a new ListMetadataSchemasRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @static + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} ListMetadataSchemasRequest instance + */ + ListMetadataSchemasRequest.create = function create(properties) { + return new ListMetadataSchemasRequest(properties); + }; - /** - * Creates a plain object from an AutomlDataset message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} message AutomlDataset - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AutomlDataset.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.dataset = ""; - object.datasetDisplayName = ""; - } - if (message.dataset != null && message.hasOwnProperty("dataset")) - object.dataset = message.dataset; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - object.datasetDisplayName = message.datasetDisplayName; - return object; - }; + /** + * Encodes the specified ListMetadataSchemasRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @static + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest} message ListMetadataSchemasRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListMetadataSchemasRequest.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.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + return writer; + }; - /** - * Converts this AutomlDataset to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @instance - * @returns {Object.} JSON object - */ - AutomlDataset.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified ListMetadataSchemasRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @static + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasRequest} message ListMetadataSchemasRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListMetadataSchemasRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Gets the default type url for AutomlDataset - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AutomlDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest + * @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.ListMetadataSchemasRequest} ListMetadataSchemasRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListMetadataSchemasRequest.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.ListMetadataSchemasRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.AutomlDataset"; - }; - - return AutomlDataset; - })(); - - MigratableResource.DataLabelingDataset = (function() { - - /** - * Properties of a DataLabelingDataset. - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @interface IDataLabelingDataset - * @property {string|null} [dataset] DataLabelingDataset dataset - * @property {string|null} [datasetDisplayName] DataLabelingDataset datasetDisplayName - * @property {Array.|null} [dataLabelingAnnotatedDatasets] DataLabelingDataset dataLabelingAnnotatedDatasets - */ - - /** - * Constructs a new DataLabelingDataset. - * @memberof google.cloud.aiplatform.v1.MigratableResource - * @classdesc Represents a DataLabelingDataset. - * @implements IDataLabelingDataset - * @constructor - * @param {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset=} [properties] Properties to set - */ - function DataLabelingDataset(properties) { - this.dataLabelingAnnotatedDatasets = []; - 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]]; - } - - /** - * DataLabelingDataset dataset. - * @member {string} dataset - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @instance - */ - DataLabelingDataset.prototype.dataset = ""; - - /** - * DataLabelingDataset datasetDisplayName. - * @member {string} datasetDisplayName - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @instance - */ - DataLabelingDataset.prototype.datasetDisplayName = ""; - - /** - * DataLabelingDataset dataLabelingAnnotatedDatasets. - * @member {Array.} dataLabelingAnnotatedDatasets - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @instance - */ - DataLabelingDataset.prototype.dataLabelingAnnotatedDatasets = $util.emptyArray; - - /** - * Creates a new DataLabelingDataset instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} DataLabelingDataset instance - */ - DataLabelingDataset.create = function create(properties) { - return new DataLabelingDataset(properties); - }; - - /** - * Encodes the specified DataLabelingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset} message DataLabelingDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataLabelingDataset.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); - if (message.dataLabelingAnnotatedDatasets != null && message.dataLabelingAnnotatedDatasets.length) - for (var i = 0; i < message.dataLabelingAnnotatedDatasets.length; ++i) - $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.encode(message.dataLabelingAnnotatedDatasets[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.datasetDisplayName); - return writer; - }; - - /** - * Encodes the specified DataLabelingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset} message DataLabelingDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataLabelingDataset.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DataLabelingDataset message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @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.MigratableResource.DataLabelingDataset} DataLabelingDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataLabelingDataset.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.MigratableResource.DataLabelingDataset(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.dataset = reader.string(); - break; - } - case 4: { - message.datasetDisplayName = reader.string(); - break; - } - case 3: { - if (!(message.dataLabelingAnnotatedDatasets && message.dataLabelingAnnotatedDatasets.length)) - message.dataLabelingAnnotatedDatasets = []; - message.dataLabelingAnnotatedDatasets.push($root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DataLabelingDataset message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} DataLabelingDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataLabelingDataset.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DataLabelingDataset message. - * @function verify - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DataLabelingDataset.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dataset != null && message.hasOwnProperty("dataset")) - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - if (!$util.isString(message.datasetDisplayName)) - return "datasetDisplayName: string expected"; - if (message.dataLabelingAnnotatedDatasets != null && message.hasOwnProperty("dataLabelingAnnotatedDatasets")) { - if (!Array.isArray(message.dataLabelingAnnotatedDatasets)) - return "dataLabelingAnnotatedDatasets: array expected"; - for (var i = 0; i < message.dataLabelingAnnotatedDatasets.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify(message.dataLabelingAnnotatedDatasets[i]); - if (error) - return "dataLabelingAnnotatedDatasets." + error; - } - } - return null; - }; - - /** - * Creates a DataLabelingDataset message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} DataLabelingDataset - */ - DataLabelingDataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset) - return object; - var message = new $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.datasetDisplayName != null) - message.datasetDisplayName = String(object.datasetDisplayName); - if (object.dataLabelingAnnotatedDatasets) { - if (!Array.isArray(object.dataLabelingAnnotatedDatasets)) - throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.dataLabelingAnnotatedDatasets: array expected"); - message.dataLabelingAnnotatedDatasets = []; - for (var i = 0; i < object.dataLabelingAnnotatedDatasets.length; ++i) { - if (typeof object.dataLabelingAnnotatedDatasets[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.dataLabelingAnnotatedDatasets: object expected"); - message.dataLabelingAnnotatedDatasets[i] = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.fromObject(object.dataLabelingAnnotatedDatasets[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a DataLabelingDataset message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} message DataLabelingDataset - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DataLabelingDataset.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.dataLabelingAnnotatedDatasets = []; - if (options.defaults) { - object.dataset = ""; - object.datasetDisplayName = ""; - } - if (message.dataset != null && message.hasOwnProperty("dataset")) - object.dataset = message.dataset; - if (message.dataLabelingAnnotatedDatasets && message.dataLabelingAnnotatedDatasets.length) { - object.dataLabelingAnnotatedDatasets = []; - for (var j = 0; j < message.dataLabelingAnnotatedDatasets.length; ++j) - object.dataLabelingAnnotatedDatasets[j] = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.toObject(message.dataLabelingAnnotatedDatasets[j], options); - } - if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) - object.datasetDisplayName = message.datasetDisplayName; - return object; - }; - - /** - * Converts this DataLabelingDataset to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @instance - * @returns {Object.} JSON object - */ - DataLabelingDataset.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for DataLabelingDataset - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DataLabelingDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset"; - }; - - DataLabelingDataset.DataLabelingAnnotatedDataset = (function() { - - /** - * Properties of a DataLabelingAnnotatedDataset. - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @interface IDataLabelingAnnotatedDataset - * @property {string|null} [annotatedDataset] DataLabelingAnnotatedDataset annotatedDataset - * @property {string|null} [annotatedDatasetDisplayName] DataLabelingAnnotatedDataset annotatedDatasetDisplayName - */ - - /** - * Constructs a new DataLabelingAnnotatedDataset. - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset - * @classdesc Represents a DataLabelingAnnotatedDataset. - * @implements IDataLabelingAnnotatedDataset - * @constructor - * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset=} [properties] Properties to set - */ - function DataLabelingAnnotatedDataset(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]]; - } - - /** - * DataLabelingAnnotatedDataset annotatedDataset. - * @member {string} annotatedDataset - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @instance - */ - DataLabelingAnnotatedDataset.prototype.annotatedDataset = ""; - - /** - * DataLabelingAnnotatedDataset annotatedDatasetDisplayName. - * @member {string} annotatedDatasetDisplayName - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @instance - */ - DataLabelingAnnotatedDataset.prototype.annotatedDatasetDisplayName = ""; - - /** - * Creates a new DataLabelingAnnotatedDataset instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset instance - */ - DataLabelingAnnotatedDataset.create = function create(properties) { - return new DataLabelingAnnotatedDataset(properties); - }; - - /** - * Encodes the specified DataLabelingAnnotatedDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataLabelingAnnotatedDataset.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.annotatedDataset != null && Object.hasOwnProperty.call(message, "annotatedDataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotatedDataset); - if (message.annotatedDatasetDisplayName != null && Object.hasOwnProperty.call(message, "annotatedDatasetDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.annotatedDatasetDisplayName); - return writer; - }; - - /** - * Encodes the specified DataLabelingAnnotatedDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataLabelingAnnotatedDataset.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @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.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataLabelingAnnotatedDataset.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.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.annotatedDataset = reader.string(); - break; - } - case 3: { - message.annotatedDatasetDisplayName = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataLabelingAnnotatedDataset.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DataLabelingAnnotatedDataset message. - * @function verify - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DataLabelingAnnotatedDataset.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) - if (!$util.isString(message.annotatedDataset)) - return "annotatedDataset: string expected"; - if (message.annotatedDatasetDisplayName != null && message.hasOwnProperty("annotatedDatasetDisplayName")) - if (!$util.isString(message.annotatedDatasetDisplayName)) - return "annotatedDatasetDisplayName: string expected"; - return null; - }; - - /** - * Creates a DataLabelingAnnotatedDataset message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset - */ - DataLabelingAnnotatedDataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset) - return object; - var message = new $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset(); - if (object.annotatedDataset != null) - message.annotatedDataset = String(object.annotatedDataset); - if (object.annotatedDatasetDisplayName != null) - message.annotatedDatasetDisplayName = String(object.annotatedDatasetDisplayName); - return message; - }; - - /** - * Creates a plain object from a DataLabelingAnnotatedDataset message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DataLabelingAnnotatedDataset.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.annotatedDataset = ""; - object.annotatedDatasetDisplayName = ""; - } - if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) - object.annotatedDataset = message.annotatedDataset; - if (message.annotatedDatasetDisplayName != null && message.hasOwnProperty("annotatedDatasetDisplayName")) - object.annotatedDatasetDisplayName = message.annotatedDatasetDisplayName; - return object; - }; - - /** - * Converts this DataLabelingAnnotatedDataset to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @instance - * @returns {Object.} JSON object - */ - DataLabelingAnnotatedDataset.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for DataLabelingAnnotatedDataset - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DataLabelingAnnotatedDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset"; - }; - - return DataLabelingAnnotatedDataset; - })(); - - return DataLabelingDataset; - })(); - - return MigratableResource; - })(); - - v1.MigrationService = (function() { - - /** - * Constructs a new MigrationService service. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MigrationService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function MigrationService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (MigrationService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MigrationService; - - /** - * Creates new MigrationService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1.MigrationService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {MigrationService} RPC service. Useful where requests and/or responses are streamed. - */ - MigrationService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MigrationService|searchMigratableResources}. - * @memberof google.cloud.aiplatform.v1.MigrationService - * @typedef SearchMigratableResourcesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} [response] SearchMigratableResourcesResponse - */ - - /** - * Calls SearchMigratableResources. - * @function searchMigratableResources - * @memberof google.cloud.aiplatform.v1.MigrationService - * @instance - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest} request SearchMigratableResourcesRequest message or plain object - * @param {google.cloud.aiplatform.v1.MigrationService.SearchMigratableResourcesCallback} callback Node-style callback called with the error, if any, and SearchMigratableResourcesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MigrationService.prototype.searchMigratableResources = function searchMigratableResources(request, callback) { - return this.rpcCall(searchMigratableResources, $root.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest, $root.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse, request, callback); - }, "name", { value: "SearchMigratableResources" }); - - /** - * Calls SearchMigratableResources. - * @function searchMigratableResources - * @memberof google.cloud.aiplatform.v1.MigrationService - * @instance - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest} request SearchMigratableResourcesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.MigrationService|batchMigrateResources}. - * @memberof google.cloud.aiplatform.v1.MigrationService - * @typedef BatchMigrateResourcesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls BatchMigrateResources. - * @function batchMigrateResources - * @memberof google.cloud.aiplatform.v1.MigrationService - * @instance - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest} request BatchMigrateResourcesRequest message or plain object - * @param {google.cloud.aiplatform.v1.MigrationService.BatchMigrateResourcesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(MigrationService.prototype.batchMigrateResources = function batchMigrateResources(request, callback) { - return this.rpcCall(batchMigrateResources, $root.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "BatchMigrateResources" }); - - /** - * Calls BatchMigrateResources. - * @function batchMigrateResources - * @memberof google.cloud.aiplatform.v1.MigrationService - * @instance - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest} request BatchMigrateResourcesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return MigrationService; - })(); - - v1.SearchMigratableResourcesRequest = (function() { - - /** - * Properties of a SearchMigratableResourcesRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface ISearchMigratableResourcesRequest - * @property {string|null} [parent] SearchMigratableResourcesRequest parent - * @property {number|null} [pageSize] SearchMigratableResourcesRequest pageSize - * @property {string|null} [pageToken] SearchMigratableResourcesRequest pageToken - * @property {string|null} [filter] SearchMigratableResourcesRequest filter - */ - - /** - * Constructs a new SearchMigratableResourcesRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a SearchMigratableResourcesRequest. - * @implements ISearchMigratableResourcesRequest - * @constructor - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest=} [properties] Properties to set - */ - function SearchMigratableResourcesRequest(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]]; - } - - /** - * SearchMigratableResourcesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest - * @instance - */ - SearchMigratableResourcesRequest.prototype.parent = ""; - - /** - * SearchMigratableResourcesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest - * @instance - */ - SearchMigratableResourcesRequest.prototype.pageSize = 0; + } + return message; + }; /** - * SearchMigratableResourcesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest - * @instance - */ - SearchMigratableResourcesRequest.prototype.pageToken = ""; - - /** - * SearchMigratableResourcesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest - * @instance - */ - SearchMigratableResourcesRequest.prototype.filter = ""; - - /** - * Creates a new SearchMigratableResourcesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest - * @static - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest instance - */ - SearchMigratableResourcesRequest.create = function create(properties) { - return new SearchMigratableResourcesRequest(properties); - }; - - /** - * Encodes the specified SearchMigratableResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest - * @static - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest} message SearchMigratableResourcesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SearchMigratableResourcesRequest.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.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - return writer; - }; - - /** - * Encodes the specified SearchMigratableResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest - * @static - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest} message SearchMigratableResourcesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SearchMigratableResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest - * @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.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SearchMigratableResourcesRequest.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.SearchMigratableResourcesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.pageSize = reader.int32(); - break; - } - case 3: { - message.pageToken = reader.string(); - break; - } - case 4: { - message.filter = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataSchemasRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest + * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} ListMetadataSchemasRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchMigratableResourcesRequest.decodeDelimited = function decodeDelimited(reader) { + ListMetadataSchemasRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchMigratableResourcesRequest message. + * Verifies a ListMetadataSchemasRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchMigratableResourcesRequest.verify = function verify(message) { + ListMetadataSchemasRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -106985,17 +110278,17 @@ }; /** - * Creates a SearchMigratableResourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataSchemasRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest + * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} ListMetadataSchemasRequest */ - SearchMigratableResourcesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest) + ListMetadataSchemasRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListMetadataSchemasRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest(); + var message = new $root.google.cloud.aiplatform.v1.ListMetadataSchemasRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.pageSize != null) @@ -107008,15 +110301,15 @@ }; /** - * Creates a plain object from a SearchMigratableResourcesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListMetadataSchemasRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest * @static - * @param {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} message SearchMigratableResourcesRequest + * @param {google.cloud.aiplatform.v1.ListMetadataSchemasRequest} message ListMetadataSchemasRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchMigratableResourcesRequest.toObject = function toObject(message, options) { + ListMetadataSchemasRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -107038,54 +110331,54 @@ }; /** - * Converts this SearchMigratableResourcesRequest to JSON. + * Converts this ListMetadataSchemasRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest * @instance * @returns {Object.} JSON object */ - SearchMigratableResourcesRequest.prototype.toJSON = function toJSON() { + ListMetadataSchemasRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchMigratableResourcesRequest + * Gets the default type url for ListMetadataSchemasRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchMigratableResourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListMetadataSchemasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchMigratableResourcesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListMetadataSchemasRequest"; }; - return SearchMigratableResourcesRequest; + return ListMetadataSchemasRequest; })(); - v1.SearchMigratableResourcesResponse = (function() { + v1.ListMetadataSchemasResponse = (function() { /** - * Properties of a SearchMigratableResourcesResponse. + * Properties of a ListMetadataSchemasResponse. * @memberof google.cloud.aiplatform.v1 - * @interface ISearchMigratableResourcesResponse - * @property {Array.|null} [migratableResources] SearchMigratableResourcesResponse migratableResources - * @property {string|null} [nextPageToken] SearchMigratableResourcesResponse nextPageToken + * @interface IListMetadataSchemasResponse + * @property {Array.|null} [metadataSchemas] ListMetadataSchemasResponse metadataSchemas + * @property {string|null} [nextPageToken] ListMetadataSchemasResponse nextPageToken */ /** - * Constructs a new SearchMigratableResourcesResponse. + * Constructs a new ListMetadataSchemasResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a SearchMigratableResourcesResponse. - * @implements ISearchMigratableResourcesResponse + * @classdesc Represents a ListMetadataSchemasResponse. + * @implements IListMetadataSchemasResponse * @constructor - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasResponse=} [properties] Properties to set */ - function SearchMigratableResourcesResponse(properties) { - this.migratableResources = []; + function ListMetadataSchemasResponse(properties) { + this.metadataSchemas = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107093,88 +110386,88 @@ } /** - * SearchMigratableResourcesResponse migratableResources. - * @member {Array.} migratableResources - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * ListMetadataSchemasResponse metadataSchemas. + * @member {Array.} metadataSchemas + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @instance */ - SearchMigratableResourcesResponse.prototype.migratableResources = $util.emptyArray; + ListMetadataSchemasResponse.prototype.metadataSchemas = $util.emptyArray; /** - * SearchMigratableResourcesResponse nextPageToken. + * ListMetadataSchemasResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @instance */ - SearchMigratableResourcesResponse.prototype.nextPageToken = ""; + ListMetadataSchemasResponse.prototype.nextPageToken = ""; /** - * Creates a new SearchMigratableResourcesResponse instance using the specified properties. + * Creates a new ListMetadataSchemasResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @static - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse instance + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} ListMetadataSchemasResponse instance */ - SearchMigratableResourcesResponse.create = function create(properties) { - return new SearchMigratableResourcesResponse(properties); + ListMetadataSchemasResponse.create = function create(properties) { + return new ListMetadataSchemasResponse(properties); }; /** - * Encodes the specified SearchMigratableResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.verify|verify} messages. + * Encodes the specified ListMetadataSchemasResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @static - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse} message SearchMigratableResourcesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasResponse} message ListMetadataSchemasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchMigratableResourcesResponse.encode = function encode(message, writer) { + ListMetadataSchemasResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.migratableResources != null && message.migratableResources.length) - for (var i = 0; i < message.migratableResources.length; ++i) - $root.google.cloud.aiplatform.v1.MigratableResource.encode(message.migratableResources[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.metadataSchemas != null && message.metadataSchemas.length) + for (var i = 0; i < message.metadataSchemas.length; ++i) + $root.google.cloud.aiplatform.v1.MetadataSchema.encode(message.metadataSchemas[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified SearchMigratableResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.verify|verify} messages. + * Encodes the specified ListMetadataSchemasResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListMetadataSchemasResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @static - * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse} message SearchMigratableResourcesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListMetadataSchemasResponse} message ListMetadataSchemasResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchMigratableResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListMetadataSchemasResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer. + * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @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.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse + * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} ListMetadataSchemasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchMigratableResourcesResponse.decode = function decode(reader, length) { + ListMetadataSchemasResponse.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.SearchMigratableResourcesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListMetadataSchemasResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.migratableResources && message.migratableResources.length)) - message.migratableResources = []; - message.migratableResources.push($root.google.cloud.aiplatform.v1.MigratableResource.decode(reader, reader.uint32())); + if (!(message.metadataSchemas && message.metadataSchemas.length)) + message.metadataSchemas = []; + message.metadataSchemas.push($root.google.cloud.aiplatform.v1.MetadataSchema.decode(reader, reader.uint32())); break; } case 2: { @@ -107190,39 +110483,39 @@ }; /** - * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListMetadataSchemasResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse + * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} ListMetadataSchemasResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchMigratableResourcesResponse.decodeDelimited = function decodeDelimited(reader) { + ListMetadataSchemasResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchMigratableResourcesResponse message. + * Verifies a ListMetadataSchemasResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchMigratableResourcesResponse.verify = function verify(message) { + ListMetadataSchemasResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.migratableResources != null && message.hasOwnProperty("migratableResources")) { - if (!Array.isArray(message.migratableResources)) - return "migratableResources: array expected"; - for (var i = 0; i < message.migratableResources.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.MigratableResource.verify(message.migratableResources[i]); + if (message.metadataSchemas != null && message.hasOwnProperty("metadataSchemas")) { + if (!Array.isArray(message.metadataSchemas)) + return "metadataSchemas: array expected"; + for (var i = 0; i < message.metadataSchemas.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.MetadataSchema.verify(message.metadataSchemas[i]); if (error) - return "migratableResources." + error; + return "metadataSchemas." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -107232,25 +110525,25 @@ }; /** - * Creates a SearchMigratableResourcesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListMetadataSchemasResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse + * @returns {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} ListMetadataSchemasResponse */ - SearchMigratableResourcesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse) + ListMetadataSchemasResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListMetadataSchemasResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse(); - if (object.migratableResources) { - if (!Array.isArray(object.migratableResources)) - throw TypeError(".google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.migratableResources: array expected"); - message.migratableResources = []; - for (var i = 0; i < object.migratableResources.length; ++i) { - if (typeof object.migratableResources[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.migratableResources: object expected"); - message.migratableResources[i] = $root.google.cloud.aiplatform.v1.MigratableResource.fromObject(object.migratableResources[i]); + var message = new $root.google.cloud.aiplatform.v1.ListMetadataSchemasResponse(); + if (object.metadataSchemas) { + if (!Array.isArray(object.metadataSchemas)) + throw TypeError(".google.cloud.aiplatform.v1.ListMetadataSchemasResponse.metadataSchemas: array expected"); + message.metadataSchemas = []; + for (var i = 0; i < object.metadataSchemas.length; ++i) { + if (typeof object.metadataSchemas[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListMetadataSchemasResponse.metadataSchemas: object expected"); + message.metadataSchemas[i] = $root.google.cloud.aiplatform.v1.MetadataSchema.fromObject(object.metadataSchemas[i]); } } if (object.nextPageToken != null) @@ -107259,26 +110552,26 @@ }; /** - * Creates a plain object from a SearchMigratableResourcesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListMetadataSchemasResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @static - * @param {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} message SearchMigratableResourcesResponse + * @param {google.cloud.aiplatform.v1.ListMetadataSchemasResponse} message ListMetadataSchemasResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchMigratableResourcesResponse.toObject = function toObject(message, options) { + ListMetadataSchemasResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.migratableResources = []; + object.metadataSchemas = []; if (options.defaults) object.nextPageToken = ""; - if (message.migratableResources && message.migratableResources.length) { - object.migratableResources = []; - for (var j = 0; j < message.migratableResources.length; ++j) - object.migratableResources[j] = $root.google.cloud.aiplatform.v1.MigratableResource.toObject(message.migratableResources[j], options); + if (message.metadataSchemas && message.metadataSchemas.length) { + object.metadataSchemas = []; + for (var j = 0; j < message.metadataSchemas.length; ++j) + object.metadataSchemas[j] = $root.google.cloud.aiplatform.v1.MetadataSchema.toObject(message.metadataSchemas[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -107286,54 +110579,54 @@ }; /** - * Converts this SearchMigratableResourcesResponse to JSON. + * Converts this ListMetadataSchemasResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @instance * @returns {Object.} JSON object */ - SearchMigratableResourcesResponse.prototype.toJSON = function toJSON() { + ListMetadataSchemasResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchMigratableResourcesResponse + * Gets the default type url for ListMetadataSchemasResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse + * @memberof google.cloud.aiplatform.v1.ListMetadataSchemasResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchMigratableResourcesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListMetadataSchemasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchMigratableResourcesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListMetadataSchemasResponse"; }; - return SearchMigratableResourcesResponse; + return ListMetadataSchemasResponse; })(); - v1.BatchMigrateResourcesRequest = (function() { + v1.QueryArtifactLineageSubgraphRequest = (function() { /** - * Properties of a BatchMigrateResourcesRequest. + * Properties of a QueryArtifactLineageSubgraphRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IBatchMigrateResourcesRequest - * @property {string|null} [parent] BatchMigrateResourcesRequest parent - * @property {Array.|null} [migrateResourceRequests] BatchMigrateResourcesRequest migrateResourceRequests + * @interface IQueryArtifactLineageSubgraphRequest + * @property {string|null} [artifact] QueryArtifactLineageSubgraphRequest artifact + * @property {number|null} [maxHops] QueryArtifactLineageSubgraphRequest maxHops + * @property {string|null} [filter] QueryArtifactLineageSubgraphRequest filter */ /** - * Constructs a new BatchMigrateResourcesRequest. + * Constructs a new QueryArtifactLineageSubgraphRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BatchMigrateResourcesRequest. - * @implements IBatchMigrateResourcesRequest + * @classdesc Represents a QueryArtifactLineageSubgraphRequest. + * @implements IQueryArtifactLineageSubgraphRequest * @constructor - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest=} [properties] Properties to set */ - function BatchMigrateResourcesRequest(properties) { - this.migrateResourceRequests = []; + function QueryArtifactLineageSubgraphRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107341,92 +110634,103 @@ } /** - * BatchMigrateResourcesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * QueryArtifactLineageSubgraphRequest artifact. + * @member {string} artifact + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @instance */ - BatchMigrateResourcesRequest.prototype.parent = ""; + QueryArtifactLineageSubgraphRequest.prototype.artifact = ""; /** - * BatchMigrateResourcesRequest migrateResourceRequests. - * @member {Array.} migrateResourceRequests - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * QueryArtifactLineageSubgraphRequest maxHops. + * @member {number} maxHops + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @instance */ - BatchMigrateResourcesRequest.prototype.migrateResourceRequests = $util.emptyArray; + QueryArtifactLineageSubgraphRequest.prototype.maxHops = 0; /** - * Creates a new BatchMigrateResourcesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest - * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest instance + * QueryArtifactLineageSubgraphRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @instance */ - BatchMigrateResourcesRequest.create = function create(properties) { - return new BatchMigrateResourcesRequest(properties); - }; + QueryArtifactLineageSubgraphRequest.prototype.filter = ""; /** - * Encodes the specified BatchMigrateResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * Creates a new QueryArtifactLineageSubgraphRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest} message BatchMigrateResourcesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest instance + */ + QueryArtifactLineageSubgraphRequest.create = function create(properties) { + return new QueryArtifactLineageSubgraphRequest(properties); + }; + + /** + * Encodes the specified QueryArtifactLineageSubgraphRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest + * @static + * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesRequest.encode = function encode(message, writer) { + QueryArtifactLineageSubgraphRequest.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.migrateResourceRequests != null && message.migrateResourceRequests.length) - for (var i = 0; i < message.migrateResourceRequests.length; ++i) - $root.google.cloud.aiplatform.v1.MigrateResourceRequest.encode(message.migrateResourceRequests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifact); + if (message.maxHops != null && Object.hasOwnProperty.call(message, "maxHops")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxHops); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.filter); return writer; }; /** - * Encodes the specified BatchMigrateResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.verify|verify} messages. + * Encodes the specified QueryArtifactLineageSubgraphRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest} message BatchMigrateResourcesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IQueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { + QueryArtifactLineageSubgraphRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer. + * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @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.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest + * @returns {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesRequest.decode = function decode(reader, length) { + QueryArtifactLineageSubgraphRequest.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.BatchMigrateResourcesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.artifact = reader.string(); break; } case 2: { - if (!(message.migrateResourceRequests && message.migrateResourceRequests.length)) - message.migrateResourceRequests = []; - message.migrateResourceRequests.push($root.google.cloud.aiplatform.v1.MigrateResourceRequest.decode(reader, reader.uint32())); + message.maxHops = reader.int32(); + break; + } + case 3: { + message.filter = reader.string(); break; } default: @@ -107438,151 +110742,144 @@ }; /** - * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer, length delimited. + * Decodes a QueryArtifactLineageSubgraphRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest + * @returns {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesRequest.decodeDelimited = function decodeDelimited(reader) { + QueryArtifactLineageSubgraphRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchMigrateResourcesRequest message. + * Verifies a QueryArtifactLineageSubgraphRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchMigrateResourcesRequest.verify = function verify(message) { + QueryArtifactLineageSubgraphRequest.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.migrateResourceRequests != null && message.hasOwnProperty("migrateResourceRequests")) { - if (!Array.isArray(message.migrateResourceRequests)) - return "migrateResourceRequests: array expected"; - for (var i = 0; i < message.migrateResourceRequests.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.verify(message.migrateResourceRequests[i]); - if (error) - return "migrateResourceRequests." + error; - } - } + if (message.artifact != null && message.hasOwnProperty("artifact")) + if (!$util.isString(message.artifact)) + return "artifact: string expected"; + if (message.maxHops != null && message.hasOwnProperty("maxHops")) + if (!$util.isInteger(message.maxHops)) + return "maxHops: integer expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a BatchMigrateResourcesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a QueryArtifactLineageSubgraphRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest + * @returns {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} QueryArtifactLineageSubgraphRequest */ - BatchMigrateResourcesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest) + QueryArtifactLineageSubgraphRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.migrateResourceRequests) { - if (!Array.isArray(object.migrateResourceRequests)) - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.migrateResourceRequests: array expected"); - message.migrateResourceRequests = []; - for (var i = 0; i < object.migrateResourceRequests.length; ++i) { - if (typeof object.migrateResourceRequests[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.migrateResourceRequests: object expected"); - message.migrateResourceRequests[i] = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.fromObject(object.migrateResourceRequests[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest(); + if (object.artifact != null) + message.artifact = String(object.artifact); + if (object.maxHops != null) + message.maxHops = object.maxHops | 0; + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a BatchMigrateResourcesRequest message. Also converts values to other types if specified. + * Creates a plain object from a QueryArtifactLineageSubgraphRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @static - * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} message BatchMigrateResourcesRequest + * @param {google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest} message QueryArtifactLineageSubgraphRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchMigrateResourcesRequest.toObject = function toObject(message, options) { + QueryArtifactLineageSubgraphRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.migrateResourceRequests = []; - if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.migrateResourceRequests && message.migrateResourceRequests.length) { - object.migrateResourceRequests = []; - for (var j = 0; j < message.migrateResourceRequests.length; ++j) - object.migrateResourceRequests[j] = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.toObject(message.migrateResourceRequests[j], options); + if (options.defaults) { + object.artifact = ""; + object.maxHops = 0; + object.filter = ""; } + if (message.artifact != null && message.hasOwnProperty("artifact")) + object.artifact = message.artifact; + if (message.maxHops != null && message.hasOwnProperty("maxHops")) + object.maxHops = message.maxHops; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this BatchMigrateResourcesRequest to JSON. + * Converts this QueryArtifactLineageSubgraphRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @instance * @returns {Object.} JSON object */ - BatchMigrateResourcesRequest.prototype.toJSON = function toJSON() { + QueryArtifactLineageSubgraphRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchMigrateResourcesRequest + * Gets the default type url for QueryArtifactLineageSubgraphRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest + * @memberof google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchMigrateResourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + QueryArtifactLineageSubgraphRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchMigrateResourcesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest"; }; - return BatchMigrateResourcesRequest; + return QueryArtifactLineageSubgraphRequest; })(); - v1.MigrateResourceRequest = (function() { + v1.MetadataStore = (function() { /** - * Properties of a MigrateResourceRequest. + * Properties of a MetadataStore. * @memberof google.cloud.aiplatform.v1 - * @interface IMigrateResourceRequest - * @property {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null} [migrateMlEngineModelVersionConfig] MigrateResourceRequest migrateMlEngineModelVersionConfig - * @property {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig|null} [migrateAutomlModelConfig] MigrateResourceRequest migrateAutomlModelConfig - * @property {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null} [migrateAutomlDatasetConfig] MigrateResourceRequest migrateAutomlDatasetConfig - * @property {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null} [migrateDataLabelingDatasetConfig] MigrateResourceRequest migrateDataLabelingDatasetConfig + * @interface IMetadataStore + * @property {string|null} [name] MetadataStore name + * @property {google.protobuf.ITimestamp|null} [createTime] MetadataStore createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] MetadataStore updateTime + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] MetadataStore encryptionSpec + * @property {string|null} [description] MetadataStore description + * @property {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState|null} [state] MetadataStore state */ /** - * Constructs a new MigrateResourceRequest. + * Constructs a new MetadataStore. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MigrateResourceRequest. - * @implements IMigrateResourceRequest + * @classdesc Represents a MetadataStore. + * @implements IMetadataStore * @constructor - * @param {google.cloud.aiplatform.v1.IMigrateResourceRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IMetadataStore=} [properties] Properties to set */ - function MigrateResourceRequest(properties) { + function MetadataStore(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107590,131 +110887,145 @@ } /** - * MigrateResourceRequest migrateMlEngineModelVersionConfig. - * @member {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null|undefined} migrateMlEngineModelVersionConfig - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * MetadataStore name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.MetadataStore * @instance */ - MigrateResourceRequest.prototype.migrateMlEngineModelVersionConfig = null; + MetadataStore.prototype.name = ""; /** - * MigrateResourceRequest migrateAutomlModelConfig. - * @member {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig|null|undefined} migrateAutomlModelConfig - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * MetadataStore createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.MetadataStore * @instance */ - MigrateResourceRequest.prototype.migrateAutomlModelConfig = null; + MetadataStore.prototype.createTime = null; /** - * MigrateResourceRequest migrateAutomlDatasetConfig. - * @member {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null|undefined} migrateAutomlDatasetConfig - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * MetadataStore updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.MetadataStore * @instance */ - MigrateResourceRequest.prototype.migrateAutomlDatasetConfig = null; + MetadataStore.prototype.updateTime = null; /** - * MigrateResourceRequest migrateDataLabelingDatasetConfig. - * @member {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null|undefined} migrateDataLabelingDatasetConfig - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * MetadataStore encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.MetadataStore * @instance */ - MigrateResourceRequest.prototype.migrateDataLabelingDatasetConfig = null; + MetadataStore.prototype.encryptionSpec = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * MetadataStore description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1.MetadataStore + * @instance + */ + MetadataStore.prototype.description = ""; /** - * MigrateResourceRequest request. - * @member {"migrateMlEngineModelVersionConfig"|"migrateAutomlModelConfig"|"migrateAutomlDatasetConfig"|"migrateDataLabelingDatasetConfig"|undefined} request - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * MetadataStore state. + * @member {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState|null|undefined} state + * @memberof google.cloud.aiplatform.v1.MetadataStore * @instance */ - Object.defineProperty(MigrateResourceRequest.prototype, "request", { - get: $util.oneOfGetter($oneOfFields = ["migrateMlEngineModelVersionConfig", "migrateAutomlModelConfig", "migrateAutomlDatasetConfig", "migrateDataLabelingDatasetConfig"]), - set: $util.oneOfSetter($oneOfFields) - }); + MetadataStore.prototype.state = null; /** - * Creates a new MigrateResourceRequest instance using the specified properties. + * Creates a new MetadataStore instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @static - * @param {google.cloud.aiplatform.v1.IMigrateResourceRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest} MigrateResourceRequest instance + * @param {google.cloud.aiplatform.v1.IMetadataStore=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MetadataStore} MetadataStore instance */ - MigrateResourceRequest.create = function create(properties) { - return new MigrateResourceRequest(properties); + MetadataStore.create = function create(properties) { + return new MetadataStore(properties); }; /** - * Encodes the specified MigrateResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.verify|verify} messages. + * Encodes the specified MetadataStore message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @static - * @param {google.cloud.aiplatform.v1.IMigrateResourceRequest} message MigrateResourceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMetadataStore} message MetadataStore message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateResourceRequest.encode = function encode(message, writer) { + MetadataStore.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.migrateMlEngineModelVersionConfig != null && Object.hasOwnProperty.call(message, "migrateMlEngineModelVersionConfig")) - $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.encode(message.migrateMlEngineModelVersionConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.migrateAutomlModelConfig != null && Object.hasOwnProperty.call(message, "migrateAutomlModelConfig")) - $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.encode(message.migrateAutomlModelConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.migrateAutomlDatasetConfig != null && Object.hasOwnProperty.call(message, "migrateAutomlDatasetConfig")) - $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.encode(message.migrateAutomlDatasetConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.migrateDataLabelingDatasetConfig != null && Object.hasOwnProperty.call(message, "migrateDataLabelingDatasetConfig")) - $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.encode(message.migrateDataLabelingDatasetConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.description); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.encode(message.state, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified MigrateResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.verify|verify} messages. + * Encodes the specified MetadataStore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @static - * @param {google.cloud.aiplatform.v1.IMigrateResourceRequest} message MigrateResourceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMetadataStore} message MetadataStore message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateResourceRequest.encodeDelimited = function encodeDelimited(message, writer) { + MetadataStore.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateResourceRequest message from the specified reader or buffer. + * Decodes a MetadataStore message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @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.MigrateResourceRequest} MigrateResourceRequest + * @returns {google.cloud.aiplatform.v1.MetadataStore} MetadataStore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateResourceRequest.decode = function decode(reader, length) { + MetadataStore.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.MigrateResourceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MetadataStore(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.decode(reader, reader.uint32()); - break; - } - case 2: { - message.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.decode(reader, reader.uint32()); + message.name = reader.string(); break; } case 3: { - message.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.decode(reader, reader.uint32()); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 4: { - message.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.decode(reader, reader.uint32()); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + case 6: { + message.description = reader.string(); + break; + } + case 7: { + message.state = $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.decode(reader, reader.uint32()); break; } default: @@ -107726,191 +111037,180 @@ }; /** - * Decodes a MigrateResourceRequest message from the specified reader or buffer, length delimited. + * Decodes a MetadataStore message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest} MigrateResourceRequest + * @returns {google.cloud.aiplatform.v1.MetadataStore} MetadataStore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateResourceRequest.decodeDelimited = function decodeDelimited(reader) { + MetadataStore.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateResourceRequest message. + * Verifies a MetadataStore message. * @function verify - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateResourceRequest.verify = function verify(message) { + MetadataStore.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.migrateMlEngineModelVersionConfig != null && message.hasOwnProperty("migrateMlEngineModelVersionConfig")) { - properties.request = 1; - { - var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify(message.migrateMlEngineModelVersionConfig); - if (error) - return "migrateMlEngineModelVersionConfig." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; } - if (message.migrateAutomlModelConfig != null && message.hasOwnProperty("migrateAutomlModelConfig")) { - if (properties.request === 1) - return "request: multiple values"; - properties.request = 1; - { - var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify(message.migrateAutomlModelConfig); - if (error) - return "migrateAutomlModelConfig." + error; - } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; } - if (message.migrateAutomlDatasetConfig != null && message.hasOwnProperty("migrateAutomlDatasetConfig")) { - if (properties.request === 1) - return "request: multiple values"; - properties.request = 1; - { - var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify(message.migrateAutomlDatasetConfig); - if (error) - return "migrateAutomlDatasetConfig." + error; - } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; } - if (message.migrateDataLabelingDatasetConfig != null && message.hasOwnProperty("migrateDataLabelingDatasetConfig")) { - if (properties.request === 1) - return "request: multiple values"; - properties.request = 1; - { - var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify(message.migrateDataLabelingDatasetConfig); - if (error) - return "migrateDataLabelingDatasetConfig." + error; - } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.state != null && message.hasOwnProperty("state")) { + var error = $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify(message.state); + if (error) + return "state." + error; } return null; }; /** - * Creates a MigrateResourceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MetadataStore message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest} MigrateResourceRequest + * @returns {google.cloud.aiplatform.v1.MetadataStore} MetadataStore */ - MigrateResourceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest) + MetadataStore.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MetadataStore) return object; - var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest(); - if (object.migrateMlEngineModelVersionConfig != null) { - if (typeof object.migrateMlEngineModelVersionConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.migrateMlEngineModelVersionConfig: object expected"); - message.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.fromObject(object.migrateMlEngineModelVersionConfig); + var message = new $root.google.cloud.aiplatform.v1.MetadataStore(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MetadataStore.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.migrateAutomlModelConfig != null) { - if (typeof object.migrateAutomlModelConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.migrateAutomlModelConfig: object expected"); - message.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.fromObject(object.migrateAutomlModelConfig); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MetadataStore.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } - if (object.migrateAutomlDatasetConfig != null) { - if (typeof object.migrateAutomlDatasetConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.migrateAutomlDatasetConfig: object expected"); - message.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.fromObject(object.migrateAutomlDatasetConfig); + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MetadataStore.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); } - if (object.migrateDataLabelingDatasetConfig != null) { - if (typeof object.migrateDataLabelingDatasetConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.migrateDataLabelingDatasetConfig: object expected"); - message.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.fromObject(object.migrateDataLabelingDatasetConfig); + if (object.description != null) + message.description = String(object.description); + if (object.state != null) { + if (typeof object.state !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MetadataStore.state: object expected"); + message.state = $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.fromObject(object.state); } return message; }; /** - * Creates a plain object from a MigrateResourceRequest message. Also converts values to other types if specified. + * Creates a plain object from a MetadataStore message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest} message MigrateResourceRequest + * @param {google.cloud.aiplatform.v1.MetadataStore} message MetadataStore * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateResourceRequest.toObject = function toObject(message, options) { + MetadataStore.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.migrateMlEngineModelVersionConfig != null && message.hasOwnProperty("migrateMlEngineModelVersionConfig")) { - object.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.toObject(message.migrateMlEngineModelVersionConfig, options); - if (options.oneofs) - object.request = "migrateMlEngineModelVersionConfig"; - } - if (message.migrateAutomlModelConfig != null && message.hasOwnProperty("migrateAutomlModelConfig")) { - object.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.toObject(message.migrateAutomlModelConfig, options); - if (options.oneofs) - object.request = "migrateAutomlModelConfig"; - } - if (message.migrateAutomlDatasetConfig != null && message.hasOwnProperty("migrateAutomlDatasetConfig")) { - object.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.toObject(message.migrateAutomlDatasetConfig, options); - if (options.oneofs) - object.request = "migrateAutomlDatasetConfig"; - } - if (message.migrateDataLabelingDatasetConfig != null && message.hasOwnProperty("migrateDataLabelingDatasetConfig")) { - object.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.toObject(message.migrateDataLabelingDatasetConfig, options); - if (options.oneofs) - object.request = "migrateDataLabelingDatasetConfig"; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.encryptionSpec = null; + object.description = ""; + object.state = null; } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.state != null && message.hasOwnProperty("state")) + object.state = $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.toObject(message.state, options); return object; }; /** - * Converts this MigrateResourceRequest to JSON. + * Converts this MetadataStore to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @instance * @returns {Object.} JSON object */ - MigrateResourceRequest.prototype.toJSON = function toJSON() { + MetadataStore.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateResourceRequest + * Gets the default type url for MetadataStore * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @memberof google.cloud.aiplatform.v1.MetadataStore * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateResourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MetadataStore.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MetadataStore"; }; - MigrateResourceRequest.MigrateMlEngineModelVersionConfig = (function() { + MetadataStore.MetadataStoreState = (function() { /** - * Properties of a MigrateMlEngineModelVersionConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest - * @interface IMigrateMlEngineModelVersionConfig - * @property {string|null} [endpoint] MigrateMlEngineModelVersionConfig endpoint - * @property {string|null} [modelVersion] MigrateMlEngineModelVersionConfig modelVersion - * @property {string|null} [modelDisplayName] MigrateMlEngineModelVersionConfig modelDisplayName + * Properties of a MetadataStoreState. + * @memberof google.cloud.aiplatform.v1.MetadataStore + * @interface IMetadataStoreState + * @property {number|Long|null} [diskUtilizationBytes] MetadataStoreState diskUtilizationBytes */ /** - * Constructs a new MigrateMlEngineModelVersionConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest - * @classdesc Represents a MigrateMlEngineModelVersionConfig. - * @implements IMigrateMlEngineModelVersionConfig + * Constructs a new MetadataStoreState. + * @memberof google.cloud.aiplatform.v1.MetadataStore + * @classdesc Represents a MetadataStoreState. + * @implements IMetadataStoreState * @constructor - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState=} [properties] Properties to set */ - function MigrateMlEngineModelVersionConfig(properties) { + function MetadataStoreState(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -107918,103 +111218,75 @@ } /** - * MigrateMlEngineModelVersionConfig endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig - * @instance - */ - MigrateMlEngineModelVersionConfig.prototype.endpoint = ""; - - /** - * MigrateMlEngineModelVersionConfig modelVersion. - * @member {string} modelVersion - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig - * @instance - */ - MigrateMlEngineModelVersionConfig.prototype.modelVersion = ""; - - /** - * MigrateMlEngineModelVersionConfig modelDisplayName. - * @member {string} modelDisplayName - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * MetadataStoreState diskUtilizationBytes. + * @member {number|Long} diskUtilizationBytes + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @instance */ - MigrateMlEngineModelVersionConfig.prototype.modelDisplayName = ""; + MetadataStoreState.prototype.diskUtilizationBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new MigrateMlEngineModelVersionConfig instance using the specified properties. + * Creates a new MetadataStoreState instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig instance + * @param {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} MetadataStoreState instance */ - MigrateMlEngineModelVersionConfig.create = function create(properties) { - return new MigrateMlEngineModelVersionConfig(properties); + MetadataStoreState.create = function create(properties) { + return new MetadataStoreState(properties); }; /** - * Encodes the specified MigrateMlEngineModelVersionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * Encodes the specified MetadataStoreState message. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState} message MetadataStoreState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateMlEngineModelVersionConfig.encode = function encode(message, writer) { + MetadataStoreState.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.modelVersion != null && Object.hasOwnProperty.call(message, "modelVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersion); - if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.modelDisplayName); + if (message.diskUtilizationBytes != null && Object.hasOwnProperty.call(message, "diskUtilizationBytes")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.diskUtilizationBytes); return writer; }; /** - * Encodes the specified MigrateMlEngineModelVersionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. + * Encodes the specified MetadataStoreState message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.MetadataStore.IMetadataStoreState} message MetadataStoreState message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateMlEngineModelVersionConfig.encodeDelimited = function encodeDelimited(message, writer) { + MetadataStoreState.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer. + * Decodes a MetadataStoreState message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @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.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig + * @returns {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} MetadataStoreState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateMlEngineModelVersionConfig.decode = function decode(reader, length) { + MetadataStoreState.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.MigrateResourceRequest.MigrateMlEngineModelVersionConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); - break; - } - case 2: { - message.modelVersion = reader.string(); - break; - } - case 3: { - message.modelDisplayName = reader.string(); + message.diskUtilizationBytes = reader.int64(); break; } default: @@ -108026,367 +111298,754 @@ }; /** - * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer, length delimited. + * Decodes a MetadataStoreState message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig + * @returns {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} MetadataStoreState * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateMlEngineModelVersionConfig.decodeDelimited = function decodeDelimited(reader) { + MetadataStoreState.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateMlEngineModelVersionConfig message. + * Verifies a MetadataStoreState message. * @function verify - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateMlEngineModelVersionConfig.verify = function verify(message) { + MetadataStoreState.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) - if (!$util.isString(message.modelVersion)) - return "modelVersion: string expected"; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - if (!$util.isString(message.modelDisplayName)) - return "modelDisplayName: string expected"; + if (message.diskUtilizationBytes != null && message.hasOwnProperty("diskUtilizationBytes")) + if (!$util.isInteger(message.diskUtilizationBytes) && !(message.diskUtilizationBytes && $util.isInteger(message.diskUtilizationBytes.low) && $util.isInteger(message.diskUtilizationBytes.high))) + return "diskUtilizationBytes: integer|Long expected"; return null; }; /** - * Creates a MigrateMlEngineModelVersionConfig message from a plain object. Also converts values to their respective internal types. + * Creates a MetadataStoreState message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig + * @returns {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} MetadataStoreState */ - MigrateMlEngineModelVersionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig) + MetadataStoreState.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState) return object; - var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.modelVersion != null) - message.modelVersion = String(object.modelVersion); - if (object.modelDisplayName != null) - message.modelDisplayName = String(object.modelDisplayName); + var message = new $root.google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState(); + if (object.diskUtilizationBytes != null) + if ($util.Long) + (message.diskUtilizationBytes = $util.Long.fromValue(object.diskUtilizationBytes)).unsigned = false; + else if (typeof object.diskUtilizationBytes === "string") + message.diskUtilizationBytes = parseInt(object.diskUtilizationBytes, 10); + else if (typeof object.diskUtilizationBytes === "number") + message.diskUtilizationBytes = object.diskUtilizationBytes; + else if (typeof object.diskUtilizationBytes === "object") + message.diskUtilizationBytes = new $util.LongBits(object.diskUtilizationBytes.low >>> 0, object.diskUtilizationBytes.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a MigrateMlEngineModelVersionConfig message. Also converts values to other types if specified. + * Creates a plain object from a MetadataStoreState message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig + * @param {google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState} message MetadataStoreState * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateMlEngineModelVersionConfig.toObject = function toObject(message, options) { + MetadataStoreState.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.endpoint = ""; - object.modelVersion = ""; - object.modelDisplayName = ""; - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) - object.modelVersion = message.modelVersion; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - object.modelDisplayName = message.modelDisplayName; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.diskUtilizationBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.diskUtilizationBytes = options.longs === String ? "0" : 0; + if (message.diskUtilizationBytes != null && message.hasOwnProperty("diskUtilizationBytes")) + if (typeof message.diskUtilizationBytes === "number") + object.diskUtilizationBytes = options.longs === String ? String(message.diskUtilizationBytes) : message.diskUtilizationBytes; + else + object.diskUtilizationBytes = options.longs === String ? $util.Long.prototype.toString.call(message.diskUtilizationBytes) : options.longs === Number ? new $util.LongBits(message.diskUtilizationBytes.low >>> 0, message.diskUtilizationBytes.high >>> 0).toNumber() : message.diskUtilizationBytes; return object; }; /** - * Converts this MigrateMlEngineModelVersionConfig to JSON. + * Converts this MetadataStoreState to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @instance * @returns {Object.} JSON object */ - MigrateMlEngineModelVersionConfig.prototype.toJSON = function toJSON() { + MetadataStoreState.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateMlEngineModelVersionConfig + * Gets the default type url for MetadataStoreState * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateMlEngineModelVersionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MetadataStoreState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MetadataStore.MetadataStoreState"; }; - return MigrateMlEngineModelVersionConfig; + return MetadataStoreState; })(); - MigrateResourceRequest.MigrateAutomlModelConfig = (function() { + return MetadataStore; + })(); - /** - * Properties of a MigrateAutomlModelConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest - * @interface IMigrateAutomlModelConfig - * @property {string|null} [model] MigrateAutomlModelConfig model - * @property {string|null} [modelDisplayName] MigrateAutomlModelConfig modelDisplayName - */ + v1.MigratableResource = (function() { - /** - * Constructs a new MigrateAutomlModelConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest - * @classdesc Represents a MigrateAutomlModelConfig. - * @implements IMigrateAutomlModelConfig - * @constructor - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig=} [properties] Properties to set - */ - function MigrateAutomlModelConfig(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]]; - } + /** + * Properties of a MigratableResource. + * @memberof google.cloud.aiplatform.v1 + * @interface IMigratableResource + * @property {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion|null} [mlEngineModelVersion] MigratableResource mlEngineModelVersion + * @property {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel|null} [automlModel] MigratableResource automlModel + * @property {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset|null} [automlDataset] MigratableResource automlDataset + * @property {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset|null} [dataLabelingDataset] MigratableResource dataLabelingDataset + * @property {google.protobuf.ITimestamp|null} [lastMigrateTime] MigratableResource lastMigrateTime + * @property {google.protobuf.ITimestamp|null} [lastUpdateTime] MigratableResource lastUpdateTime + */ - /** - * MigrateAutomlModelConfig model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @instance - */ - MigrateAutomlModelConfig.prototype.model = ""; + /** + * Constructs a new MigratableResource. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a MigratableResource. + * @implements IMigratableResource + * @constructor + * @param {google.cloud.aiplatform.v1.IMigratableResource=} [properties] Properties to set + */ + function MigratableResource(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]]; + } - /** - * MigrateAutomlModelConfig modelDisplayName. - * @member {string} modelDisplayName - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @instance - */ - MigrateAutomlModelConfig.prototype.modelDisplayName = ""; + /** + * MigratableResource mlEngineModelVersion. + * @member {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion|null|undefined} mlEngineModelVersion + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @instance + */ + MigratableResource.prototype.mlEngineModelVersion = null; - /** - * Creates a new MigrateAutomlModelConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig instance - */ - MigrateAutomlModelConfig.create = function create(properties) { - return new MigrateAutomlModelConfig(properties); - }; + /** + * MigratableResource automlModel. + * @member {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel|null|undefined} automlModel + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @instance + */ + MigratableResource.prototype.automlModel = null; - /** - * Encodes the specified MigrateAutomlModelConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig} message MigrateAutomlModelConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigrateAutomlModelConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); - if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelDisplayName); - return writer; - }; + /** + * MigratableResource automlDataset. + * @member {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset|null|undefined} automlDataset + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @instance + */ + MigratableResource.prototype.automlDataset = null; - /** - * Encodes the specified MigrateAutomlModelConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig} message MigrateAutomlModelConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MigrateAutomlModelConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * MigratableResource dataLabelingDataset. + * @member {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset|null|undefined} dataLabelingDataset + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @instance + */ + MigratableResource.prototype.dataLabelingDataset = null; - /** - * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @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.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigrateAutomlModelConfig.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.MigrateResourceRequest.MigrateAutomlModelConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.model = reader.string(); - break; - } - case 2: { - message.modelDisplayName = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * MigratableResource lastMigrateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastMigrateTime + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @instance + */ + MigratableResource.prototype.lastMigrateTime = null; - /** - * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MigrateAutomlModelConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * MigratableResource lastUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} lastUpdateTime + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @instance + */ + MigratableResource.prototype.lastUpdateTime = null; - /** - * Verifies a MigrateAutomlModelConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MigrateAutomlModelConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - if (!$util.isString(message.modelDisplayName)) - return "modelDisplayName: string expected"; - return null; - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Creates a MigrateAutomlModelConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig - */ - MigrateAutomlModelConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig(); - if (object.model != null) - message.model = String(object.model); - if (object.modelDisplayName != null) - message.modelDisplayName = String(object.modelDisplayName); - return message; - }; + /** + * MigratableResource resource. + * @member {"mlEngineModelVersion"|"automlModel"|"automlDataset"|"dataLabelingDataset"|undefined} resource + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @instance + */ + Object.defineProperty(MigratableResource.prototype, "resource", { + get: $util.oneOfGetter($oneOfFields = ["mlEngineModelVersion", "automlModel", "automlDataset", "dataLabelingDataset"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Creates a plain object from a MigrateAutomlModelConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} message MigrateAutomlModelConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MigrateAutomlModelConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.model = ""; - object.modelDisplayName = ""; - } - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - object.modelDisplayName = message.modelDisplayName; - return object; - }; + /** + * Creates a new MigratableResource instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @static + * @param {google.cloud.aiplatform.v1.IMigratableResource=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigratableResource} MigratableResource instance + */ + MigratableResource.create = function create(properties) { + return new MigratableResource(properties); + }; - /** - * Converts this MigrateAutomlModelConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig - * @instance - * @returns {Object.} JSON object - */ - MigrateAutomlModelConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Encodes the specified MigratableResource message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @static + * @param {google.cloud.aiplatform.v1.IMigratableResource} message MigratableResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigratableResource.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.mlEngineModelVersion != null && Object.hasOwnProperty.call(message, "mlEngineModelVersion")) + $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.encode(message.mlEngineModelVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.automlModel != null && Object.hasOwnProperty.call(message, "automlModel")) + $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.encode(message.automlModel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.automlDataset != null && Object.hasOwnProperty.call(message, "automlDataset")) + $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.encode(message.automlDataset, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.dataLabelingDataset != null && Object.hasOwnProperty.call(message, "dataLabelingDataset")) + $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.encode(message.dataLabelingDataset, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.lastMigrateTime != null && Object.hasOwnProperty.call(message, "lastMigrateTime")) + $root.google.protobuf.Timestamp.encode(message.lastMigrateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.lastUpdateTime != null && Object.hasOwnProperty.call(message, "lastUpdateTime")) + $root.google.protobuf.Timestamp.encode(message.lastUpdateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; - /** - * Gets the default type url for MigrateAutomlModelConfig + /** + * Encodes the specified MigratableResource message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @static + * @param {google.cloud.aiplatform.v1.IMigratableResource} message MigratableResource message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigratableResource.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MigratableResource message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @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.MigratableResource} MigratableResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigratableResource.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.MigratableResource(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.mlEngineModelVersion = $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.decode(reader, reader.uint32()); + break; + } + case 2: { + message.automlModel = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.decode(reader, reader.uint32()); + break; + } + case 3: { + message.automlDataset = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.decode(reader, reader.uint32()); + break; + } + case 4: { + message.dataLabelingDataset = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.decode(reader, reader.uint32()); + break; + } + case 5: { + message.lastMigrateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.lastUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MigratableResource message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MigratableResource} MigratableResource + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigratableResource.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MigratableResource message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigratableResource.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.mlEngineModelVersion != null && message.hasOwnProperty("mlEngineModelVersion")) { + properties.resource = 1; + { + var error = $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify(message.mlEngineModelVersion); + if (error) + return "mlEngineModelVersion." + error; + } + } + if (message.automlModel != null && message.hasOwnProperty("automlModel")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify(message.automlModel); + if (error) + return "automlModel." + error; + } + } + if (message.automlDataset != null && message.hasOwnProperty("automlDataset")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify(message.automlDataset); + if (error) + return "automlDataset." + error; + } + } + if (message.dataLabelingDataset != null && message.hasOwnProperty("dataLabelingDataset")) { + if (properties.resource === 1) + return "resource: multiple values"; + properties.resource = 1; + { + var error = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify(message.dataLabelingDataset); + if (error) + return "dataLabelingDataset." + error; + } + } + if (message.lastMigrateTime != null && message.hasOwnProperty("lastMigrateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastMigrateTime); + if (error) + return "lastMigrateTime." + error; + } + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.lastUpdateTime); + if (error) + return "lastUpdateTime." + error; + } + return null; + }; + + /** + * Creates a MigratableResource message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MigratableResource} MigratableResource + */ + MigratableResource.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource) + return object; + var message = new $root.google.cloud.aiplatform.v1.MigratableResource(); + if (object.mlEngineModelVersion != null) { + if (typeof object.mlEngineModelVersion !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.mlEngineModelVersion: object expected"); + message.mlEngineModelVersion = $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.fromObject(object.mlEngineModelVersion); + } + if (object.automlModel != null) { + if (typeof object.automlModel !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.automlModel: object expected"); + message.automlModel = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.fromObject(object.automlModel); + } + if (object.automlDataset != null) { + if (typeof object.automlDataset !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.automlDataset: object expected"); + message.automlDataset = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.fromObject(object.automlDataset); + } + if (object.dataLabelingDataset != null) { + if (typeof object.dataLabelingDataset !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.dataLabelingDataset: object expected"); + message.dataLabelingDataset = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.fromObject(object.dataLabelingDataset); + } + if (object.lastMigrateTime != null) { + if (typeof object.lastMigrateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.lastMigrateTime: object expected"); + message.lastMigrateTime = $root.google.protobuf.Timestamp.fromObject(object.lastMigrateTime); + } + if (object.lastUpdateTime != null) { + if (typeof object.lastUpdateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.lastUpdateTime: object expected"); + message.lastUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastUpdateTime); + } + return message; + }; + + /** + * Creates a plain object from a MigratableResource message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource} message MigratableResource + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigratableResource.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.lastMigrateTime = null; + object.lastUpdateTime = null; + } + if (message.mlEngineModelVersion != null && message.hasOwnProperty("mlEngineModelVersion")) { + object.mlEngineModelVersion = $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.toObject(message.mlEngineModelVersion, options); + if (options.oneofs) + object.resource = "mlEngineModelVersion"; + } + if (message.automlModel != null && message.hasOwnProperty("automlModel")) { + object.automlModel = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel.toObject(message.automlModel, options); + if (options.oneofs) + object.resource = "automlModel"; + } + if (message.automlDataset != null && message.hasOwnProperty("automlDataset")) { + object.automlDataset = $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.toObject(message.automlDataset, options); + if (options.oneofs) + object.resource = "automlDataset"; + } + if (message.dataLabelingDataset != null && message.hasOwnProperty("dataLabelingDataset")) { + object.dataLabelingDataset = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.toObject(message.dataLabelingDataset, options); + if (options.oneofs) + object.resource = "dataLabelingDataset"; + } + if (message.lastMigrateTime != null && message.hasOwnProperty("lastMigrateTime")) + object.lastMigrateTime = $root.google.protobuf.Timestamp.toObject(message.lastMigrateTime, options); + if (message.lastUpdateTime != null && message.hasOwnProperty("lastUpdateTime")) + object.lastUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastUpdateTime, options); + return object; + }; + + /** + * Converts this MigratableResource to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @instance + * @returns {Object.} JSON object + */ + MigratableResource.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MigratableResource + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MigratableResource.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource"; + }; + + MigratableResource.MlEngineModelVersion = (function() { + + /** + * Properties of a MlEngineModelVersion. + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @interface IMlEngineModelVersion + * @property {string|null} [endpoint] MlEngineModelVersion endpoint + * @property {string|null} [version] MlEngineModelVersion version + */ + + /** + * Constructs a new MlEngineModelVersion. + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @classdesc Represents a MlEngineModelVersion. + * @implements IMlEngineModelVersion + * @constructor + * @param {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion=} [properties] Properties to set + */ + function MlEngineModelVersion(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]]; + } + + /** + * MlEngineModelVersion endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @instance + */ + MlEngineModelVersion.prototype.endpoint = ""; + + /** + * MlEngineModelVersion version. + * @member {string} version + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @instance + */ + MlEngineModelVersion.prototype.version = ""; + + /** + * Creates a new MlEngineModelVersion instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion instance + */ + MlEngineModelVersion.create = function create(properties) { + return new MlEngineModelVersion(properties); + }; + + /** + * Encodes the specified MlEngineModelVersion message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion} message MlEngineModelVersion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MlEngineModelVersion.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); + return writer; + }; + + /** + * Encodes the specified MlEngineModelVersion message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource.IMlEngineModelVersion} message MlEngineModelVersion message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MlEngineModelVersion.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MlEngineModelVersion message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @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.MigratableResource.MlEngineModelVersion} MlEngineModelVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MlEngineModelVersion.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.MigratableResource.MlEngineModelVersion(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.endpoint = reader.string(); + break; + } + case 2: { + message.version = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MlEngineModelVersion message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MlEngineModelVersion.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MlEngineModelVersion message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MlEngineModelVersion.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + return null; + }; + + /** + * Creates a MlEngineModelVersion message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} MlEngineModelVersion + */ + MlEngineModelVersion.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion) + return object; + var message = new $root.google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.version != null) + message.version = String(object.version); + return message; + }; + + /** + * Creates a plain object from a MlEngineModelVersion message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion} message MlEngineModelVersion + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MlEngineModelVersion.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.endpoint = ""; + object.version = ""; + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; + + /** + * Converts this MlEngineModelVersion to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion + * @instance + * @returns {Object.} JSON object + */ + MlEngineModelVersion.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MlEngineModelVersion * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateAutomlModelConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MlEngineModelVersion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.MlEngineModelVersion"; }; - return MigrateAutomlModelConfig; + return MlEngineModelVersion; })(); - MigrateResourceRequest.MigrateAutomlDatasetConfig = (function() { + MigratableResource.AutomlModel = (function() { /** - * Properties of a MigrateAutomlDatasetConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest - * @interface IMigrateAutomlDatasetConfig - * @property {string|null} [dataset] MigrateAutomlDatasetConfig dataset - * @property {string|null} [datasetDisplayName] MigrateAutomlDatasetConfig datasetDisplayName + * Properties of an AutomlModel. + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @interface IAutomlModel + * @property {string|null} [model] AutomlModel model + * @property {string|null} [modelDisplayName] AutomlModel modelDisplayName */ /** - * Constructs a new MigrateAutomlDatasetConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest - * @classdesc Represents a MigrateAutomlDatasetConfig. - * @implements IMigrateAutomlDatasetConfig + * Constructs a new AutomlModel. + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @classdesc Represents an AutomlModel. + * @implements IAutomlModel * @constructor - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel=} [properties] Properties to set */ - function MigrateAutomlDatasetConfig(properties) { + function AutomlModel(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -108394,80 +112053,307 @@ } /** - * MigrateAutomlDatasetConfig dataset. + * AutomlModel model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @instance + */ + AutomlModel.prototype.model = ""; + + /** + * AutomlModel modelDisplayName. + * @member {string} modelDisplayName + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @instance + */ + AutomlModel.prototype.modelDisplayName = ""; + + /** + * Creates a new AutomlModel instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} AutomlModel instance + */ + AutomlModel.create = function create(properties) { + return new AutomlModel(properties); + }; + + /** + * Encodes the specified AutomlModel message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel} message AutomlModel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutomlModel.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.modelDisplayName); + return writer; + }; + + /** + * Encodes the specified AutomlModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlModel.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlModel} message AutomlModel message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutomlModel.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutomlModel message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @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.MigratableResource.AutomlModel} AutomlModel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutomlModel.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.MigratableResource.AutomlModel(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.model = reader.string(); + break; + } + case 3: { + message.modelDisplayName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutomlModel message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} AutomlModel + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutomlModel.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutomlModel message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutomlModel.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + if (!$util.isString(message.modelDisplayName)) + return "modelDisplayName: string expected"; + return null; + }; + + /** + * Creates an AutomlModel message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} AutomlModel + */ + AutomlModel.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel) + return object; + var message = new $root.google.cloud.aiplatform.v1.MigratableResource.AutomlModel(); + if (object.model != null) + message.model = String(object.model); + if (object.modelDisplayName != null) + message.modelDisplayName = String(object.modelDisplayName); + return message; + }; + + /** + * Creates a plain object from an AutomlModel message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @static + * @param {google.cloud.aiplatform.v1.MigratableResource.AutomlModel} message AutomlModel + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutomlModel.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.model = ""; + object.modelDisplayName = ""; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + object.modelDisplayName = message.modelDisplayName; + return object; + }; + + /** + * Converts this AutomlModel to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @instance + * @returns {Object.} JSON object + */ + AutomlModel.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for AutomlModel + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlModel + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AutomlModel.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.AutomlModel"; + }; + + return AutomlModel; + })(); + + MigratableResource.AutomlDataset = (function() { + + /** + * Properties of an AutomlDataset. + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @interface IAutomlDataset + * @property {string|null} [dataset] AutomlDataset dataset + * @property {string|null} [datasetDisplayName] AutomlDataset datasetDisplayName + */ + + /** + * Constructs a new AutomlDataset. + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @classdesc Represents an AutomlDataset. + * @implements IAutomlDataset + * @constructor + * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset=} [properties] Properties to set + */ + function AutomlDataset(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]]; + } + + /** + * AutomlDataset dataset. * @member {string} dataset - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @instance */ - MigrateAutomlDatasetConfig.prototype.dataset = ""; + AutomlDataset.prototype.dataset = ""; /** - * MigrateAutomlDatasetConfig datasetDisplayName. + * AutomlDataset datasetDisplayName. * @member {string} datasetDisplayName - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @instance */ - MigrateAutomlDatasetConfig.prototype.datasetDisplayName = ""; + AutomlDataset.prototype.datasetDisplayName = ""; /** - * Creates a new MigrateAutomlDatasetConfig instance using the specified properties. + * Creates a new AutomlDataset instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig instance + * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} AutomlDataset instance */ - MigrateAutomlDatasetConfig.create = function create(properties) { - return new MigrateAutomlDatasetConfig(properties); + AutomlDataset.create = function create(properties) { + return new AutomlDataset(properties); }; /** - * Encodes the specified MigrateAutomlDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * Encodes the specified AutomlDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset} message AutomlDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateAutomlDatasetConfig.encode = function encode(message, writer) { + AutomlDataset.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetDisplayName); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.datasetDisplayName); return writer; }; /** - * Encodes the specified MigrateAutomlDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. + * Encodes the specified AutomlDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.AutomlDataset.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigratableResource.IAutomlDataset} message AutomlDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateAutomlDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + AutomlDataset.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer. + * Decodes an AutomlDataset message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @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.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} AutomlDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateAutomlDatasetConfig.decode = function decode(reader, length) { + AutomlDataset.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.MigrateResourceRequest.MigrateAutomlDatasetConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -108475,7 +112361,7 @@ message.dataset = reader.string(); break; } - case 2: { + case 4: { message.datasetDisplayName = reader.string(); break; } @@ -108488,30 +112374,30 @@ }; /** - * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer, length delimited. + * Decodes an AutomlDataset message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} AutomlDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateAutomlDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + AutomlDataset.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateAutomlDatasetConfig message. + * Verifies an AutomlDataset message. * @function verify - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateAutomlDatasetConfig.verify = function verify(message) { + AutomlDataset.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.dataset != null && message.hasOwnProperty("dataset")) @@ -108524,17 +112410,17 @@ }; /** - * Creates a MigrateAutomlDatasetConfig message from a plain object. Also converts values to their respective internal types. + * Creates an AutomlDataset message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} AutomlDataset */ - MigrateAutomlDatasetConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig) + AutomlDataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset) return object; - var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig(); + var message = new $root.google.cloud.aiplatform.v1.MigratableResource.AutomlDataset(); if (object.dataset != null) message.dataset = String(object.dataset); if (object.datasetDisplayName != null) @@ -108543,15 +112429,15 @@ }; /** - * Creates a plain object from a MigrateAutomlDatasetConfig message. Also converts values to other types if specified. + * Creates a plain object from an AutomlDataset message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig + * @param {google.cloud.aiplatform.v1.MigratableResource.AutomlDataset} message AutomlDataset * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateAutomlDatasetConfig.toObject = function toObject(message, options) { + AutomlDataset.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -108567,55 +112453,55 @@ }; /** - * Converts this MigrateAutomlDatasetConfig to JSON. + * Converts this AutomlDataset to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @instance * @returns {Object.} JSON object */ - MigrateAutomlDatasetConfig.prototype.toJSON = function toJSON() { + AutomlDataset.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateAutomlDatasetConfig + * Gets the default type url for AutomlDataset * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.AutomlDataset * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateAutomlDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + AutomlDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.AutomlDataset"; }; - return MigrateAutomlDatasetConfig; + return AutomlDataset; })(); - MigrateResourceRequest.MigrateDataLabelingDatasetConfig = (function() { + MigratableResource.DataLabelingDataset = (function() { /** - * Properties of a MigrateDataLabelingDatasetConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest - * @interface IMigrateDataLabelingDatasetConfig - * @property {string|null} [dataset] MigrateDataLabelingDatasetConfig dataset - * @property {string|null} [datasetDisplayName] MigrateDataLabelingDatasetConfig datasetDisplayName - * @property {Array.|null} [migrateDataLabelingAnnotatedDatasetConfigs] MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs + * Properties of a DataLabelingDataset. + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @interface IDataLabelingDataset + * @property {string|null} [dataset] DataLabelingDataset dataset + * @property {string|null} [datasetDisplayName] DataLabelingDataset datasetDisplayName + * @property {Array.|null} [dataLabelingAnnotatedDatasets] DataLabelingDataset dataLabelingAnnotatedDatasets */ /** - * Constructs a new MigrateDataLabelingDatasetConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest - * @classdesc Represents a MigrateDataLabelingDatasetConfig. - * @implements IMigrateDataLabelingDatasetConfig + * Constructs a new DataLabelingDataset. + * @memberof google.cloud.aiplatform.v1.MigratableResource + * @classdesc Represents a DataLabelingDataset. + * @implements IDataLabelingDataset * @constructor - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset=} [properties] Properties to set */ - function MigrateDataLabelingDatasetConfig(properties) { - this.migrateDataLabelingAnnotatedDatasetConfigs = []; + function DataLabelingDataset(properties) { + this.dataLabelingAnnotatedDatasets = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -108623,91 +112509,91 @@ } /** - * MigrateDataLabelingDatasetConfig dataset. + * DataLabelingDataset dataset. * @member {string} dataset - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @instance */ - MigrateDataLabelingDatasetConfig.prototype.dataset = ""; + DataLabelingDataset.prototype.dataset = ""; /** - * MigrateDataLabelingDatasetConfig datasetDisplayName. + * DataLabelingDataset datasetDisplayName. * @member {string} datasetDisplayName - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @instance */ - MigrateDataLabelingDatasetConfig.prototype.datasetDisplayName = ""; + DataLabelingDataset.prototype.datasetDisplayName = ""; /** - * MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs. - * @member {Array.} migrateDataLabelingAnnotatedDatasetConfigs - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * DataLabelingDataset dataLabelingAnnotatedDatasets. + * @member {Array.} dataLabelingAnnotatedDatasets + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @instance */ - MigrateDataLabelingDatasetConfig.prototype.migrateDataLabelingAnnotatedDatasetConfigs = $util.emptyArray; + DataLabelingDataset.prototype.dataLabelingAnnotatedDatasets = $util.emptyArray; /** - * Creates a new MigrateDataLabelingDatasetConfig instance using the specified properties. + * Creates a new DataLabelingDataset instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig instance + * @param {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} DataLabelingDataset instance */ - MigrateDataLabelingDatasetConfig.create = function create(properties) { - return new MigrateDataLabelingDatasetConfig(properties); + DataLabelingDataset.create = function create(properties) { + return new DataLabelingDataset(properties); }; /** - * Encodes the specified MigrateDataLabelingDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * Encodes the specified DataLabelingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset} message DataLabelingDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateDataLabelingDatasetConfig.encode = function encode(message, writer) { + DataLabelingDataset.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.dataLabelingAnnotatedDatasets != null && message.dataLabelingAnnotatedDatasets.length) + for (var i = 0; i < message.dataLabelingAnnotatedDatasets.length; ++i) + $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.encode(message.dataLabelingAnnotatedDatasets[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetDisplayName); - if (message.migrateDataLabelingAnnotatedDatasetConfigs != null && message.migrateDataLabelingAnnotatedDatasetConfigs.length) - for (var i = 0; i < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) - $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.encode(message.migrateDataLabelingAnnotatedDatasetConfigs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.datasetDisplayName); return writer; }; /** - * Encodes the specified MigrateDataLabelingDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * Encodes the specified DataLabelingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigratableResource.IDataLabelingDataset} message DataLabelingDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateDataLabelingDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + DataLabelingDataset.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer. + * Decodes a DataLabelingDataset message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @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.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} DataLabelingDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateDataLabelingDatasetConfig.decode = function decode(reader, length) { + DataLabelingDataset.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.MigrateResourceRequest.MigrateDataLabelingDatasetConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -108715,14 +112601,14 @@ message.dataset = reader.string(); break; } - case 2: { + case 4: { message.datasetDisplayName = reader.string(); break; } case 3: { - if (!(message.migrateDataLabelingAnnotatedDatasetConfigs && message.migrateDataLabelingAnnotatedDatasetConfigs.length)) - message.migrateDataLabelingAnnotatedDatasetConfigs = []; - message.migrateDataLabelingAnnotatedDatasetConfigs.push($root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.decode(reader, reader.uint32())); + if (!(message.dataLabelingAnnotatedDatasets && message.dataLabelingAnnotatedDatasets.length)) + message.dataLabelingAnnotatedDatasets = []; + message.dataLabelingAnnotatedDatasets.push($root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.decode(reader, reader.uint32())); break; } default: @@ -108734,30 +112620,30 @@ }; /** - * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer, length delimited. + * Decodes a DataLabelingDataset message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} DataLabelingDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateDataLabelingDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + DataLabelingDataset.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateDataLabelingDatasetConfig message. + * Verifies a DataLabelingDataset message. * @function verify - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateDataLabelingDatasetConfig.verify = function verify(message) { + DataLabelingDataset.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.dataset != null && message.hasOwnProperty("dataset")) @@ -108766,122 +112652,123 @@ if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) if (!$util.isString(message.datasetDisplayName)) return "datasetDisplayName: string expected"; - if (message.migrateDataLabelingAnnotatedDatasetConfigs != null && message.hasOwnProperty("migrateDataLabelingAnnotatedDatasetConfigs")) { - if (!Array.isArray(message.migrateDataLabelingAnnotatedDatasetConfigs)) - return "migrateDataLabelingAnnotatedDatasetConfigs: array expected"; - for (var i = 0; i < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify(message.migrateDataLabelingAnnotatedDatasetConfigs[i]); + if (message.dataLabelingAnnotatedDatasets != null && message.hasOwnProperty("dataLabelingAnnotatedDatasets")) { + if (!Array.isArray(message.dataLabelingAnnotatedDatasets)) + return "dataLabelingAnnotatedDatasets: array expected"; + for (var i = 0; i < message.dataLabelingAnnotatedDatasets.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify(message.dataLabelingAnnotatedDatasets[i]); if (error) - return "migrateDataLabelingAnnotatedDatasetConfigs." + error; + return "dataLabelingAnnotatedDatasets." + error; } } return null; }; /** - * Creates a MigrateDataLabelingDatasetConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DataLabelingDataset message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} DataLabelingDataset */ - MigrateDataLabelingDatasetConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig) + DataLabelingDataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset) return object; - var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig(); + var message = new $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset(); if (object.dataset != null) message.dataset = String(object.dataset); if (object.datasetDisplayName != null) message.datasetDisplayName = String(object.datasetDisplayName); - if (object.migrateDataLabelingAnnotatedDatasetConfigs) { - if (!Array.isArray(object.migrateDataLabelingAnnotatedDatasetConfigs)) - throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.migrateDataLabelingAnnotatedDatasetConfigs: array expected"); - message.migrateDataLabelingAnnotatedDatasetConfigs = []; - for (var i = 0; i < object.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) { - if (typeof object.migrateDataLabelingAnnotatedDatasetConfigs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.migrateDataLabelingAnnotatedDatasetConfigs: object expected"); - message.migrateDataLabelingAnnotatedDatasetConfigs[i] = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.fromObject(object.migrateDataLabelingAnnotatedDatasetConfigs[i]); + if (object.dataLabelingAnnotatedDatasets) { + if (!Array.isArray(object.dataLabelingAnnotatedDatasets)) + throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.dataLabelingAnnotatedDatasets: array expected"); + message.dataLabelingAnnotatedDatasets = []; + for (var i = 0; i < object.dataLabelingAnnotatedDatasets.length; ++i) { + if (typeof object.dataLabelingAnnotatedDatasets[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.dataLabelingAnnotatedDatasets: object expected"); + message.dataLabelingAnnotatedDatasets[i] = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.fromObject(object.dataLabelingAnnotatedDatasets[i]); } } return message; }; /** - * Creates a plain object from a MigrateDataLabelingDatasetConfig message. Also converts values to other types if specified. + * Creates a plain object from a DataLabelingDataset message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig + * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset} message DataLabelingDataset * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateDataLabelingDatasetConfig.toObject = function toObject(message, options) { + DataLabelingDataset.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.migrateDataLabelingAnnotatedDatasetConfigs = []; + object.dataLabelingAnnotatedDatasets = []; if (options.defaults) { object.dataset = ""; object.datasetDisplayName = ""; } if (message.dataset != null && message.hasOwnProperty("dataset")) object.dataset = message.dataset; + if (message.dataLabelingAnnotatedDatasets && message.dataLabelingAnnotatedDatasets.length) { + object.dataLabelingAnnotatedDatasets = []; + for (var j = 0; j < message.dataLabelingAnnotatedDatasets.length; ++j) + object.dataLabelingAnnotatedDatasets[j] = $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.toObject(message.dataLabelingAnnotatedDatasets[j], options); + } if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) object.datasetDisplayName = message.datasetDisplayName; - if (message.migrateDataLabelingAnnotatedDatasetConfigs && message.migrateDataLabelingAnnotatedDatasetConfigs.length) { - object.migrateDataLabelingAnnotatedDatasetConfigs = []; - for (var j = 0; j < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++j) - object.migrateDataLabelingAnnotatedDatasetConfigs[j] = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.toObject(message.migrateDataLabelingAnnotatedDatasetConfigs[j], options); - } return object; }; /** - * Converts this MigrateDataLabelingDatasetConfig to JSON. + * Converts this DataLabelingDataset to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @instance * @returns {Object.} JSON object */ - MigrateDataLabelingDatasetConfig.prototype.toJSON = function toJSON() { + DataLabelingDataset.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateDataLabelingDatasetConfig + * Gets the default type url for DataLabelingDataset * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateDataLabelingDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DataLabelingDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset"; }; - MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig = (function() { + DataLabelingDataset.DataLabelingAnnotatedDataset = (function() { /** - * Properties of a MigrateDataLabelingAnnotatedDatasetConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @interface IMigrateDataLabelingAnnotatedDatasetConfig - * @property {string|null} [annotatedDataset] MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset + * Properties of a DataLabelingAnnotatedDataset. + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset + * @interface IDataLabelingAnnotatedDataset + * @property {string|null} [annotatedDataset] DataLabelingAnnotatedDataset annotatedDataset + * @property {string|null} [annotatedDatasetDisplayName] DataLabelingAnnotatedDataset annotatedDatasetDisplayName */ /** - * Constructs a new MigrateDataLabelingAnnotatedDatasetConfig. - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig - * @classdesc Represents a MigrateDataLabelingAnnotatedDatasetConfig. - * @implements IMigrateDataLabelingAnnotatedDatasetConfig + * Constructs a new DataLabelingAnnotatedDataset. + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset + * @classdesc Represents a DataLabelingAnnotatedDataset. + * @implements IDataLabelingAnnotatedDataset * @constructor - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset=} [properties] Properties to set */ - function MigrateDataLabelingAnnotatedDatasetConfig(properties) { + function DataLabelingAnnotatedDataset(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -108889,70 +112776,80 @@ } /** - * MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset. + * DataLabelingAnnotatedDataset annotatedDataset. * @member {string} annotatedDataset - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @instance */ - MigrateDataLabelingAnnotatedDatasetConfig.prototype.annotatedDataset = ""; + DataLabelingAnnotatedDataset.prototype.annotatedDataset = ""; /** - * Creates a new MigrateDataLabelingAnnotatedDatasetConfig instance using the specified properties. + * DataLabelingAnnotatedDataset annotatedDatasetDisplayName. + * @member {string} annotatedDatasetDisplayName + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset + * @instance + */ + DataLabelingAnnotatedDataset.prototype.annotatedDatasetDisplayName = ""; + + /** + * Creates a new DataLabelingAnnotatedDataset instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig instance + * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset instance */ - MigrateDataLabelingAnnotatedDatasetConfig.create = function create(properties) { - return new MigrateDataLabelingAnnotatedDatasetConfig(properties); + DataLabelingAnnotatedDataset.create = function create(properties) { + return new DataLabelingAnnotatedDataset(properties); }; /** - * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * Encodes the specified DataLabelingAnnotatedDataset message. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateDataLabelingAnnotatedDatasetConfig.encode = function encode(message, writer) { + DataLabelingAnnotatedDataset.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.annotatedDataset != null && Object.hasOwnProperty.call(message, "annotatedDataset")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotatedDataset); + if (message.annotatedDatasetDisplayName != null && Object.hasOwnProperty.call(message, "annotatedDatasetDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.annotatedDatasetDisplayName); return writer; }; /** - * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * Encodes the specified DataLabelingAnnotatedDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.IDataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateDataLabelingAnnotatedDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + DataLabelingAnnotatedDataset.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer. + * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @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.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateDataLabelingAnnotatedDatasetConfig.decode = function decode(reader, length) { + DataLabelingAnnotatedDataset.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.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -108960,6 +112857,10 @@ message.annotatedDataset = reader.string(); break; } + case 3: { + message.annotatedDatasetDisplayName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -108969,129 +112870,241 @@ }; /** - * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer, length delimited. + * Decodes a DataLabelingAnnotatedDataset message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateDataLabelingAnnotatedDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + DataLabelingAnnotatedDataset.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateDataLabelingAnnotatedDatasetConfig message. + * Verifies a DataLabelingAnnotatedDataset message. * @function verify - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateDataLabelingAnnotatedDatasetConfig.verify = function verify(message) { + DataLabelingAnnotatedDataset.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) if (!$util.isString(message.annotatedDataset)) return "annotatedDataset: string expected"; + if (message.annotatedDatasetDisplayName != null && message.hasOwnProperty("annotatedDatasetDisplayName")) + if (!$util.isString(message.annotatedDatasetDisplayName)) + return "annotatedDatasetDisplayName: string expected"; return null; }; /** - * Creates a MigrateDataLabelingAnnotatedDatasetConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DataLabelingAnnotatedDataset message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + * @returns {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} DataLabelingAnnotatedDataset */ - MigrateDataLabelingAnnotatedDatasetConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig) + DataLabelingAnnotatedDataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset) return object; - var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig(); + var message = new $root.google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset(); if (object.annotatedDataset != null) message.annotatedDataset = String(object.annotatedDataset); + if (object.annotatedDatasetDisplayName != null) + message.annotatedDatasetDisplayName = String(object.annotatedDatasetDisplayName); return message; }; /** - * Creates a plain object from a MigrateDataLabelingAnnotatedDatasetConfig message. Also converts values to other types if specified. + * Creates a plain object from a DataLabelingAnnotatedDataset message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig + * @param {google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset} message DataLabelingAnnotatedDataset * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateDataLabelingAnnotatedDatasetConfig.toObject = function toObject(message, options) { + DataLabelingAnnotatedDataset.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.annotatedDataset = ""; + object.annotatedDatasetDisplayName = ""; + } if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) object.annotatedDataset = message.annotatedDataset; + if (message.annotatedDatasetDisplayName != null && message.hasOwnProperty("annotatedDatasetDisplayName")) + object.annotatedDatasetDisplayName = message.annotatedDatasetDisplayName; return object; }; /** - * Converts this MigrateDataLabelingAnnotatedDatasetConfig to JSON. + * Converts this DataLabelingAnnotatedDataset to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @instance * @returns {Object.} JSON object */ - MigrateDataLabelingAnnotatedDatasetConfig.prototype.toJSON = function toJSON() { + DataLabelingAnnotatedDataset.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateDataLabelingAnnotatedDatasetConfig + * Gets the default type url for DataLabelingAnnotatedDataset * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateDataLabelingAnnotatedDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DataLabelingAnnotatedDataset.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigratableResource.DataLabelingDataset.DataLabelingAnnotatedDataset"; }; - return MigrateDataLabelingAnnotatedDatasetConfig; + return DataLabelingAnnotatedDataset; })(); - return MigrateDataLabelingDatasetConfig; + return DataLabelingDataset; })(); - return MigrateResourceRequest; + return MigratableResource; })(); - v1.BatchMigrateResourcesResponse = (function() { + v1.MigrationService = (function() { /** - * Properties of a BatchMigrateResourcesResponse. + * Constructs a new MigrationService service. * @memberof google.cloud.aiplatform.v1 - * @interface IBatchMigrateResourcesResponse - * @property {Array.|null} [migrateResourceResponses] BatchMigrateResourcesResponse migrateResourceResponses + * @classdesc Represents a MigrationService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function MigrationService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (MigrationService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = MigrationService; + + /** + * Creates new MigrationService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.MigrationService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {MigrationService} RPC service. Useful where requests and/or responses are streamed. */ + MigrationService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * Constructs a new BatchMigrateResourcesResponse. + * Callback as used by {@link google.cloud.aiplatform.v1.MigrationService|searchMigratableResources}. + * @memberof google.cloud.aiplatform.v1.MigrationService + * @typedef SearchMigratableResourcesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} [response] SearchMigratableResourcesResponse + */ + + /** + * Calls SearchMigratableResources. + * @function searchMigratableResources + * @memberof google.cloud.aiplatform.v1.MigrationService + * @instance + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest} request SearchMigratableResourcesRequest message or plain object + * @param {google.cloud.aiplatform.v1.MigrationService.SearchMigratableResourcesCallback} callback Node-style callback called with the error, if any, and SearchMigratableResourcesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MigrationService.prototype.searchMigratableResources = function searchMigratableResources(request, callback) { + return this.rpcCall(searchMigratableResources, $root.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest, $root.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse, request, callback); + }, "name", { value: "SearchMigratableResources" }); + + /** + * Calls SearchMigratableResources. + * @function searchMigratableResources + * @memberof google.cloud.aiplatform.v1.MigrationService + * @instance + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest} request SearchMigratableResourcesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.MigrationService|batchMigrateResources}. + * @memberof google.cloud.aiplatform.v1.MigrationService + * @typedef BatchMigrateResourcesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls BatchMigrateResources. + * @function batchMigrateResources + * @memberof google.cloud.aiplatform.v1.MigrationService + * @instance + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest} request BatchMigrateResourcesRequest message or plain object + * @param {google.cloud.aiplatform.v1.MigrationService.BatchMigrateResourcesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(MigrationService.prototype.batchMigrateResources = function batchMigrateResources(request, callback) { + return this.rpcCall(batchMigrateResources, $root.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "BatchMigrateResources" }); + + /** + * Calls BatchMigrateResources. + * @function batchMigrateResources + * @memberof google.cloud.aiplatform.v1.MigrationService + * @instance + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest} request BatchMigrateResourcesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return MigrationService; + })(); + + v1.SearchMigratableResourcesRequest = (function() { + + /** + * Properties of a SearchMigratableResourcesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BatchMigrateResourcesResponse. - * @implements IBatchMigrateResourcesResponse + * @interface ISearchMigratableResourcesRequest + * @property {string|null} [parent] SearchMigratableResourcesRequest parent + * @property {number|null} [pageSize] SearchMigratableResourcesRequest pageSize + * @property {string|null} [pageToken] SearchMigratableResourcesRequest pageToken + * @property {string|null} [filter] SearchMigratableResourcesRequest filter + */ + + /** + * Constructs a new SearchMigratableResourcesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SearchMigratableResourcesRequest. + * @implements ISearchMigratableResourcesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest=} [properties] Properties to set */ - function BatchMigrateResourcesResponse(properties) { - this.migrateResourceResponses = []; + function SearchMigratableResourcesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -109099,78 +113112,117 @@ } /** - * BatchMigrateResourcesResponse migrateResourceResponses. - * @member {Array.} migrateResourceResponses - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * SearchMigratableResourcesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @instance */ - BatchMigrateResourcesResponse.prototype.migrateResourceResponses = $util.emptyArray; + SearchMigratableResourcesRequest.prototype.parent = ""; /** - * Creates a new BatchMigrateResourcesResponse instance using the specified properties. + * SearchMigratableResourcesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @instance + */ + SearchMigratableResourcesRequest.prototype.pageSize = 0; + + /** + * SearchMigratableResourcesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @instance + */ + SearchMigratableResourcesRequest.prototype.pageToken = ""; + + /** + * SearchMigratableResourcesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest + * @instance + */ + SearchMigratableResourcesRequest.prototype.filter = ""; + + /** + * Creates a new SearchMigratableResourcesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse instance + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest instance */ - BatchMigrateResourcesResponse.create = function create(properties) { - return new BatchMigrateResourcesResponse(properties); + SearchMigratableResourcesRequest.create = function create(properties) { + return new SearchMigratableResourcesRequest(properties); }; /** - * Encodes the specified BatchMigrateResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.verify|verify} messages. + * Encodes the specified SearchMigratableResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse} message BatchMigrateResourcesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest} message SearchMigratableResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesResponse.encode = function encode(message, writer) { + SearchMigratableResourcesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.migrateResourceResponses != null && message.migrateResourceResponses.length) - for (var i = 0; i < message.migrateResourceResponses.length; ++i) - $root.google.cloud.aiplatform.v1.MigrateResourceResponse.encode(message.migrateResourceResponses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); return writer; }; /** - * Encodes the specified BatchMigrateResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.verify|verify} messages. + * Encodes the specified SearchMigratableResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse} message BatchMigrateResourcesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesRequest} message SearchMigratableResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { + SearchMigratableResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer. + * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @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.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse + * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesResponse.decode = function decode(reader, length) { + SearchMigratableResourcesRequest.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.BatchMigrateResourcesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.migrateResourceResponses && message.migrateResourceResponses.length)) - message.migrateResourceResponses = []; - message.migrateResourceResponses.push($root.google.cloud.aiplatform.v1.MigrateResourceResponse.decode(reader, reader.uint32())); + message.parent = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); break; } default: @@ -109182,141 +113234,149 @@ }; /** - * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer, length delimited. + * Decodes a SearchMigratableResourcesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse + * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesResponse.decodeDelimited = function decodeDelimited(reader) { + SearchMigratableResourcesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchMigrateResourcesResponse message. + * Verifies a SearchMigratableResourcesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchMigrateResourcesResponse.verify = function verify(message) { + SearchMigratableResourcesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.migrateResourceResponses != null && message.hasOwnProperty("migrateResourceResponses")) { - if (!Array.isArray(message.migrateResourceResponses)) - return "migrateResourceResponses: array expected"; - for (var i = 0; i < message.migrateResourceResponses.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.MigrateResourceResponse.verify(message.migrateResourceResponses[i]); - if (error) - return "migrateResourceResponses." + error; - } - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; return null; }; /** - * Creates a BatchMigrateResourcesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SearchMigratableResourcesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse + * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} SearchMigratableResourcesRequest */ - BatchMigrateResourcesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse) + SearchMigratableResourcesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse(); - if (object.migrateResourceResponses) { - if (!Array.isArray(object.migrateResourceResponses)) - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.migrateResourceResponses: array expected"); - message.migrateResourceResponses = []; - for (var i = 0; i < object.migrateResourceResponses.length; ++i) { - if (typeof object.migrateResourceResponses[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.migrateResourceResponses: object expected"); - message.migrateResourceResponses[i] = $root.google.cloud.aiplatform.v1.MigrateResourceResponse.fromObject(object.migrateResourceResponses[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1.SearchMigratableResourcesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); return message; }; /** - * Creates a plain object from a BatchMigrateResourcesResponse message. Also converts values to other types if specified. + * Creates a plain object from a SearchMigratableResourcesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @static - * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} message BatchMigrateResourcesResponse + * @param {google.cloud.aiplatform.v1.SearchMigratableResourcesRequest} message SearchMigratableResourcesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchMigrateResourcesResponse.toObject = function toObject(message, options) { + SearchMigratableResourcesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.migrateResourceResponses = []; - if (message.migrateResourceResponses && message.migrateResourceResponses.length) { - object.migrateResourceResponses = []; - for (var j = 0; j < message.migrateResourceResponses.length; ++j) - object.migrateResourceResponses[j] = $root.google.cloud.aiplatform.v1.MigrateResourceResponse.toObject(message.migrateResourceResponses[j], options); + if (options.defaults) { + object.parent = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; return object; }; /** - * Converts this BatchMigrateResourcesResponse to JSON. + * Converts this SearchMigratableResourcesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @instance * @returns {Object.} JSON object */ - BatchMigrateResourcesResponse.prototype.toJSON = function toJSON() { + SearchMigratableResourcesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchMigrateResourcesResponse + * Gets the default type url for SearchMigratableResourcesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchMigrateResourcesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SearchMigratableResourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchMigrateResourcesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchMigratableResourcesRequest"; }; - return BatchMigrateResourcesResponse; + return SearchMigratableResourcesRequest; })(); - v1.MigrateResourceResponse = (function() { + v1.SearchMigratableResourcesResponse = (function() { /** - * Properties of a MigrateResourceResponse. + * Properties of a SearchMigratableResourcesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IMigrateResourceResponse - * @property {string|null} [dataset] MigrateResourceResponse dataset - * @property {string|null} [model] MigrateResourceResponse model - * @property {google.cloud.aiplatform.v1.IMigratableResource|null} [migratableResource] MigrateResourceResponse migratableResource + * @interface ISearchMigratableResourcesResponse + * @property {Array.|null} [migratableResources] SearchMigratableResourcesResponse migratableResources + * @property {string|null} [nextPageToken] SearchMigratableResourcesResponse nextPageToken */ /** - * Constructs a new MigrateResourceResponse. + * Constructs a new SearchMigratableResourcesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MigrateResourceResponse. - * @implements IMigrateResourceResponse + * @classdesc Represents a SearchMigratableResourcesResponse. + * @implements ISearchMigratableResourcesResponse * @constructor - * @param {google.cloud.aiplatform.v1.IMigrateResourceResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse=} [properties] Properties to set */ - function MigrateResourceResponse(properties) { + function SearchMigratableResourcesResponse(properties) { + this.migratableResources = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -109324,117 +113384,92 @@ } /** - * MigrateResourceResponse dataset. - * @member {string|null|undefined} dataset - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse - * @instance - */ - MigrateResourceResponse.prototype.dataset = null; - - /** - * MigrateResourceResponse model. - * @member {string|null|undefined} model - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse - * @instance - */ - MigrateResourceResponse.prototype.model = null; - - /** - * MigrateResourceResponse migratableResource. - * @member {google.cloud.aiplatform.v1.IMigratableResource|null|undefined} migratableResource - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * SearchMigratableResourcesResponse migratableResources. + * @member {Array.} migratableResources + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @instance */ - MigrateResourceResponse.prototype.migratableResource = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + SearchMigratableResourcesResponse.prototype.migratableResources = $util.emptyArray; /** - * MigrateResourceResponse migratedResource. - * @member {"dataset"|"model"|undefined} migratedResource - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * SearchMigratableResourcesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @instance */ - Object.defineProperty(MigrateResourceResponse.prototype, "migratedResource", { - get: $util.oneOfGetter($oneOfFields = ["dataset", "model"]), - set: $util.oneOfSetter($oneOfFields) - }); + SearchMigratableResourcesResponse.prototype.nextPageToken = ""; /** - * Creates a new MigrateResourceResponse instance using the specified properties. + * Creates a new SearchMigratableResourcesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @static - * @param {google.cloud.aiplatform.v1.IMigrateResourceResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MigrateResourceResponse} MigrateResourceResponse instance + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse instance */ - MigrateResourceResponse.create = function create(properties) { - return new MigrateResourceResponse(properties); + SearchMigratableResourcesResponse.create = function create(properties) { + return new SearchMigratableResourcesResponse(properties); }; /** - * Encodes the specified MigrateResourceResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceResponse.verify|verify} messages. + * Encodes the specified SearchMigratableResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @static - * @param {google.cloud.aiplatform.v1.IMigrateResourceResponse} message MigrateResourceResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse} message SearchMigratableResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateResourceResponse.encode = function encode(message, writer) { + SearchMigratableResourcesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.model); - if (message.migratableResource != null && Object.hasOwnProperty.call(message, "migratableResource")) - $root.google.cloud.aiplatform.v1.MigratableResource.encode(message.migratableResource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.migratableResources != null && message.migratableResources.length) + for (var i = 0; i < message.migratableResources.length; ++i) + $root.google.cloud.aiplatform.v1.MigratableResource.encode(message.migratableResources[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified MigrateResourceResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceResponse.verify|verify} messages. + * Encodes the specified SearchMigratableResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @static - * @param {google.cloud.aiplatform.v1.IMigrateResourceResponse} message MigrateResourceResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ISearchMigratableResourcesResponse} message SearchMigratableResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MigrateResourceResponse.encodeDelimited = function encodeDelimited(message, writer) { + SearchMigratableResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MigrateResourceResponse message from the specified reader or buffer. + * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @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.MigrateResourceResponse} MigrateResourceResponse + * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateResourceResponse.decode = function decode(reader, length) { + SearchMigratableResourcesResponse.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.MigrateResourceResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.dataset = reader.string(); + if (!(message.migratableResources && message.migratableResources.length)) + message.migratableResources = []; + message.migratableResources.push($root.google.cloud.aiplatform.v1.MigratableResource.decode(reader, reader.uint32())); break; } case 2: { - message.model = reader.string(); - break; - } - case 3: { - message.migratableResource = $root.google.cloud.aiplatform.v1.MigratableResource.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -109446,156 +113481,150 @@ }; /** - * Decodes a MigrateResourceResponse message from the specified reader or buffer, length delimited. + * Decodes a SearchMigratableResourcesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MigrateResourceResponse} MigrateResourceResponse + * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MigrateResourceResponse.decodeDelimited = function decodeDelimited(reader) { + SearchMigratableResourcesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MigrateResourceResponse message. + * Verifies a SearchMigratableResourcesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MigrateResourceResponse.verify = function verify(message) { + SearchMigratableResourcesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - properties.migratedResource = 1; - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - } - if (message.model != null && message.hasOwnProperty("model")) { - if (properties.migratedResource === 1) - return "migratedResource: multiple values"; - properties.migratedResource = 1; - if (!$util.isString(message.model)) - return "model: string expected"; - } - if (message.migratableResource != null && message.hasOwnProperty("migratableResource")) { - var error = $root.google.cloud.aiplatform.v1.MigratableResource.verify(message.migratableResource); - if (error) - return "migratableResource." + error; + if (message.migratableResources != null && message.hasOwnProperty("migratableResources")) { + if (!Array.isArray(message.migratableResources)) + return "migratableResources: array expected"; + for (var i = 0; i < message.migratableResources.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.MigratableResource.verify(message.migratableResources[i]); + if (error) + return "migratableResources." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a MigrateResourceResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SearchMigratableResourcesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MigrateResourceResponse} MigrateResourceResponse + * @returns {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} SearchMigratableResourcesResponse */ - MigrateResourceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceResponse) + SearchMigratableResourcesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.MigrateResourceResponse(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.model != null) - message.model = String(object.model); - if (object.migratableResource != null) { - if (typeof object.migratableResource !== "object") - throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceResponse.migratableResource: object expected"); - message.migratableResource = $root.google.cloud.aiplatform.v1.MigratableResource.fromObject(object.migratableResource); + var message = new $root.google.cloud.aiplatform.v1.SearchMigratableResourcesResponse(); + if (object.migratableResources) { + if (!Array.isArray(object.migratableResources)) + throw TypeError(".google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.migratableResources: array expected"); + message.migratableResources = []; + for (var i = 0; i < object.migratableResources.length; ++i) { + if (typeof object.migratableResources[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SearchMigratableResourcesResponse.migratableResources: object expected"); + message.migratableResources[i] = $root.google.cloud.aiplatform.v1.MigratableResource.fromObject(object.migratableResources[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a MigrateResourceResponse message. Also converts values to other types if specified. + * Creates a plain object from a SearchMigratableResourcesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @static - * @param {google.cloud.aiplatform.v1.MigrateResourceResponse} message MigrateResourceResponse + * @param {google.cloud.aiplatform.v1.SearchMigratableResourcesResponse} message SearchMigratableResourcesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MigrateResourceResponse.toObject = function toObject(message, options) { + SearchMigratableResourcesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.migratableResources = []; if (options.defaults) - object.migratableResource = null; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - object.dataset = message.dataset; - if (options.oneofs) - object.migratedResource = "dataset"; - } - if (message.model != null && message.hasOwnProperty("model")) { - object.model = message.model; - if (options.oneofs) - object.migratedResource = "model"; + object.nextPageToken = ""; + if (message.migratableResources && message.migratableResources.length) { + object.migratableResources = []; + for (var j = 0; j < message.migratableResources.length; ++j) + object.migratableResources[j] = $root.google.cloud.aiplatform.v1.MigratableResource.toObject(message.migratableResources[j], options); } - if (message.migratableResource != null && message.hasOwnProperty("migratableResource")) - object.migratableResource = $root.google.cloud.aiplatform.v1.MigratableResource.toObject(message.migratableResource, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this MigrateResourceResponse to JSON. + * Converts this SearchMigratableResourcesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @instance * @returns {Object.} JSON object */ - MigrateResourceResponse.prototype.toJSON = function toJSON() { + SearchMigratableResourcesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MigrateResourceResponse + * Gets the default type url for SearchMigratableResourcesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @memberof google.cloud.aiplatform.v1.SearchMigratableResourcesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MigrateResourceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SearchMigratableResourcesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.SearchMigratableResourcesResponse"; }; - return MigrateResourceResponse; + return SearchMigratableResourcesResponse; })(); - v1.BatchMigrateResourcesOperationMetadata = (function() { + v1.BatchMigrateResourcesRequest = (function() { /** - * Properties of a BatchMigrateResourcesOperationMetadata. + * Properties of a BatchMigrateResourcesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IBatchMigrateResourcesOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] BatchMigrateResourcesOperationMetadata genericMetadata - * @property {Array.|null} [partialResults] BatchMigrateResourcesOperationMetadata partialResults + * @interface IBatchMigrateResourcesRequest + * @property {string|null} [parent] BatchMigrateResourcesRequest parent + * @property {Array.|null} [migrateResourceRequests] BatchMigrateResourcesRequest migrateResourceRequests */ /** - * Constructs a new BatchMigrateResourcesOperationMetadata. + * Constructs a new BatchMigrateResourcesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BatchMigrateResourcesOperationMetadata. - * @implements IBatchMigrateResourcesOperationMetadata + * @classdesc Represents a BatchMigrateResourcesRequest. + * @implements IBatchMigrateResourcesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest=} [properties] Properties to set */ - function BatchMigrateResourcesOperationMetadata(properties) { - this.partialResults = []; + function BatchMigrateResourcesRequest(properties) { + this.migrateResourceRequests = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -109603,92 +113632,92 @@ } /** - * BatchMigrateResourcesOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * BatchMigrateResourcesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @instance */ - BatchMigrateResourcesOperationMetadata.prototype.genericMetadata = null; + BatchMigrateResourcesRequest.prototype.parent = ""; /** - * BatchMigrateResourcesOperationMetadata partialResults. - * @member {Array.} partialResults - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * BatchMigrateResourcesRequest migrateResourceRequests. + * @member {Array.} migrateResourceRequests + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @instance */ - BatchMigrateResourcesOperationMetadata.prototype.partialResults = $util.emptyArray; + BatchMigrateResourcesRequest.prototype.migrateResourceRequests = $util.emptyArray; /** - * Creates a new BatchMigrateResourcesOperationMetadata instance using the specified properties. + * Creates a new BatchMigrateResourcesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata instance + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest instance */ - BatchMigrateResourcesOperationMetadata.create = function create(properties) { - return new BatchMigrateResourcesOperationMetadata(properties); + BatchMigrateResourcesRequest.create = function create(properties) { + return new BatchMigrateResourcesRequest(properties); }; /** - * Encodes the specified BatchMigrateResourcesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest} message BatchMigrateResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesOperationMetadata.encode = function encode(message, writer) { + BatchMigrateResourcesRequest.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(); - if (message.partialResults != null && message.partialResults.length) - for (var i = 0; i < message.partialResults.length; ++i) - $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.encode(message.partialResults[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.migrateResourceRequests != null && message.migrateResourceRequests.length) + for (var i = 0; i < message.migrateResourceRequests.length; ++i) + $root.google.cloud.aiplatform.v1.MigrateResourceRequest.encode(message.migrateResourceRequests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchMigrateResourcesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesRequest} message BatchMigrateResourcesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchMigrateResourcesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + BatchMigrateResourcesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @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.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesOperationMetadata.decode = function decode(reader, length) { + BatchMigrateResourcesRequest.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.BatchMigrateResourcesOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest(); 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()); + message.parent = reader.string(); break; } case 2: { - if (!(message.partialResults && message.partialResults.length)) - message.partialResults = []; - message.partialResults.push($root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.decode(reader, reader.uint32())); + if (!(message.migrateResourceRequests && message.migrateResourceRequests.length)) + message.migrateResourceRequests = []; + message.migrateResourceRequests.push($root.google.cloud.aiplatform.v1.MigrateResourceRequest.decode(reader, reader.uint32())); break; } default: @@ -109700,701 +113729,283 @@ }; /** - * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchMigrateResourcesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + BatchMigrateResourcesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchMigrateResourcesOperationMetadata message. + * Verifies a BatchMigrateResourcesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchMigrateResourcesOperationMetadata.verify = function verify(message) { + BatchMigrateResourcesRequest.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; - } - if (message.partialResults != null && message.hasOwnProperty("partialResults")) { - if (!Array.isArray(message.partialResults)) - return "partialResults: array expected"; - for (var i = 0; i < message.partialResults.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify(message.partialResults[i]); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.migrateResourceRequests != null && message.hasOwnProperty("migrateResourceRequests")) { + if (!Array.isArray(message.migrateResourceRequests)) + return "migrateResourceRequests: array expected"; + for (var i = 0; i < message.migrateResourceRequests.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.verify(message.migrateResourceRequests[i]); if (error) - return "partialResults." + error; + return "migrateResourceRequests." + error; } } return null; }; /** - * Creates a BatchMigrateResourcesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} BatchMigrateResourcesRequest */ - BatchMigrateResourcesOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata) + BatchMigrateResourcesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.partialResults) { - if (!Array.isArray(object.partialResults)) - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.partialResults: array expected"); - message.partialResults = []; - for (var i = 0; i < object.partialResults.length; ++i) { - if (typeof object.partialResults[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.partialResults: object expected"); - message.partialResults[i] = $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.fromObject(object.partialResults[i]); + var message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.migrateResourceRequests) { + if (!Array.isArray(object.migrateResourceRequests)) + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.migrateResourceRequests: array expected"); + message.migrateResourceRequests = []; + for (var i = 0; i < object.migrateResourceRequests.length; ++i) { + if (typeof object.migrateResourceRequests[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesRequest.migrateResourceRequests: object expected"); + message.migrateResourceRequests[i] = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.fromObject(object.migrateResourceRequests[i]); } } return message; }; /** - * Creates a plain object from a BatchMigrateResourcesOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a BatchMigrateResourcesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @static - * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata + * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesRequest} message BatchMigrateResourcesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchMigrateResourcesOperationMetadata.toObject = function toObject(message, options) { + BatchMigrateResourcesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.partialResults = []; + object.migrateResourceRequests = []; 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); - if (message.partialResults && message.partialResults.length) { - object.partialResults = []; - for (var j = 0; j < message.partialResults.length; ++j) - object.partialResults[j] = $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.toObject(message.partialResults[j], options); + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.migrateResourceRequests && message.migrateResourceRequests.length) { + object.migrateResourceRequests = []; + for (var j = 0; j < message.migrateResourceRequests.length; ++j) + object.migrateResourceRequests[j] = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.toObject(message.migrateResourceRequests[j], options); } return object; }; /** - * Converts this BatchMigrateResourcesOperationMetadata to JSON. + * Converts this BatchMigrateResourcesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @instance * @returns {Object.} JSON object */ - BatchMigrateResourcesOperationMetadata.prototype.toJSON = function toJSON() { + BatchMigrateResourcesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchMigrateResourcesOperationMetadata + * Gets the default type url for BatchMigrateResourcesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchMigrateResourcesOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchMigrateResourcesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchMigrateResourcesRequest"; }; - BatchMigrateResourcesOperationMetadata.PartialResult = (function() { + return BatchMigrateResourcesRequest; + })(); - /** - * Properties of a PartialResult. - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata - * @interface IPartialResult - * @property {google.rpc.IStatus|null} [error] PartialResult error - * @property {string|null} [model] PartialResult model - * @property {string|null} [dataset] PartialResult dataset - * @property {google.cloud.aiplatform.v1.IMigrateResourceRequest|null} [request] PartialResult request - */ + v1.MigrateResourceRequest = (function() { - /** - * Constructs a new PartialResult. - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata - * @classdesc Represents a PartialResult. - * @implements IPartialResult - * @constructor - * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult=} [properties] Properties to set - */ - function PartialResult(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]]; - } + /** + * Properties of a MigrateResourceRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IMigrateResourceRequest + * @property {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null} [migrateMlEngineModelVersionConfig] MigrateResourceRequest migrateMlEngineModelVersionConfig + * @property {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig|null} [migrateAutomlModelConfig] MigrateResourceRequest migrateAutomlModelConfig + * @property {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null} [migrateAutomlDatasetConfig] MigrateResourceRequest migrateAutomlDatasetConfig + * @property {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null} [migrateDataLabelingDatasetConfig] MigrateResourceRequest migrateDataLabelingDatasetConfig + */ - /** - * PartialResult error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - PartialResult.prototype.error = null; + /** + * Constructs a new MigrateResourceRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a MigrateResourceRequest. + * @implements IMigrateResourceRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IMigrateResourceRequest=} [properties] Properties to set + */ + function MigrateResourceRequest(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]]; + } - /** - * PartialResult model. - * @member {string|null|undefined} model - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - PartialResult.prototype.model = null; + /** + * MigrateResourceRequest migrateMlEngineModelVersionConfig. + * @member {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig|null|undefined} migrateMlEngineModelVersionConfig + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @instance + */ + MigrateResourceRequest.prototype.migrateMlEngineModelVersionConfig = null; - /** - * PartialResult dataset. - * @member {string|null|undefined} dataset - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - PartialResult.prototype.dataset = null; + /** + * MigrateResourceRequest migrateAutomlModelConfig. + * @member {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig|null|undefined} migrateAutomlModelConfig + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @instance + */ + MigrateResourceRequest.prototype.migrateAutomlModelConfig = null; - /** - * PartialResult request. - * @member {google.cloud.aiplatform.v1.IMigrateResourceRequest|null|undefined} request - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - PartialResult.prototype.request = null; + /** + * MigrateResourceRequest migrateAutomlDatasetConfig. + * @member {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig|null|undefined} migrateAutomlDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @instance + */ + MigrateResourceRequest.prototype.migrateAutomlDatasetConfig = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * MigrateResourceRequest migrateDataLabelingDatasetConfig. + * @member {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig|null|undefined} migrateDataLabelingDatasetConfig + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @instance + */ + MigrateResourceRequest.prototype.migrateDataLabelingDatasetConfig = null; - /** - * PartialResult result. - * @member {"error"|"model"|"dataset"|undefined} result - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - */ - Object.defineProperty(PartialResult.prototype, "result", { - get: $util.oneOfGetter($oneOfFields = ["error", "model", "dataset"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new PartialResult instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult instance - */ - PartialResult.create = function create(properties) { - return new PartialResult(properties); - }; - - /** - * Encodes the specified PartialResult message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult} message PartialResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PartialResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.request != null && Object.hasOwnProperty.call(message, "request")) - $root.google.cloud.aiplatform.v1.MigrateResourceRequest.encode(message.request, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.dataset); - return writer; - }; - - /** - * Encodes the specified PartialResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult} message PartialResult message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PartialResult.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PartialResult message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @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.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PartialResult.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.BatchMigrateResourcesOperationMetadata.PartialResult(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - case 3: { - message.model = reader.string(); - break; - } - case 4: { - message.dataset = reader.string(); - break; - } - case 1: { - message.request = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PartialResult message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PartialResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PartialResult message. - * @function verify - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PartialResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.error != null && message.hasOwnProperty("error")) { - properties.result = 1; - { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.model != null && message.hasOwnProperty("model")) { - if (properties.result === 1) - return "result: multiple values"; - properties.result = 1; - if (!$util.isString(message.model)) - return "model: string expected"; - } - if (message.dataset != null && message.hasOwnProperty("dataset")) { - if (properties.result === 1) - return "result: multiple values"; - properties.result = 1; - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - } - if (message.request != null && message.hasOwnProperty("request")) { - var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.verify(message.request); - if (error) - return "request." + error; - } - return null; - }; - - /** - * Creates a PartialResult message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult - */ - PartialResult.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult) - return object; - var message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult(); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.model != null) - message.model = String(object.model); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.request != null) { - if (typeof object.request !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.request: object expected"); - message.request = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.fromObject(object.request); - } - return message; - }; - - /** - * Creates a plain object from a PartialResult message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} message PartialResult - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PartialResult.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.request = null; - if (message.request != null && message.hasOwnProperty("request")) - object.request = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.toObject(message.request, options); - if (message.error != null && message.hasOwnProperty("error")) { - object.error = $root.google.rpc.Status.toObject(message.error, options); - if (options.oneofs) - object.result = "error"; - } - if (message.model != null && message.hasOwnProperty("model")) { - object.model = message.model; - if (options.oneofs) - object.result = "model"; - } - if (message.dataset != null && message.hasOwnProperty("dataset")) { - object.dataset = message.dataset; - if (options.oneofs) - object.result = "dataset"; - } - return object; - }; - - /** - * Converts this PartialResult to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @instance - * @returns {Object.} JSON object - */ - PartialResult.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for PartialResult - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PartialResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult"; - }; - - return PartialResult; - })(); - - return BatchMigrateResourcesOperationMetadata; - })(); - - v1.ModelEvaluation = (function() { - - /** - * Properties of a ModelEvaluation. - * @memberof google.cloud.aiplatform.v1 - * @interface IModelEvaluation - * @property {string|null} [name] ModelEvaluation name - * @property {string|null} [displayName] ModelEvaluation displayName - * @property {string|null} [metricsSchemaUri] ModelEvaluation metricsSchemaUri - * @property {google.protobuf.IValue|null} [metrics] ModelEvaluation metrics - * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluation createTime - * @property {Array.|null} [sliceDimensions] ModelEvaluation sliceDimensions - * @property {string|null} [dataItemSchemaUri] ModelEvaluation dataItemSchemaUri - * @property {string|null} [annotationSchemaUri] ModelEvaluation annotationSchemaUri - * @property {google.cloud.aiplatform.v1.IModelExplanation|null} [modelExplanation] ModelEvaluation modelExplanation - * @property {Array.|null} [explanationSpecs] ModelEvaluation explanationSpecs - * @property {google.protobuf.IValue|null} [metadata] ModelEvaluation metadata - */ - - /** - * Constructs a new ModelEvaluation. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelEvaluation. - * @implements IModelEvaluation - * @constructor - * @param {google.cloud.aiplatform.v1.IModelEvaluation=} [properties] Properties to set - */ - function ModelEvaluation(properties) { - this.sliceDimensions = []; - this.explanationSpecs = []; - 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]]; - } - - /** - * ModelEvaluation name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.name = ""; - - /** - * ModelEvaluation displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.displayName = ""; - - /** - * ModelEvaluation metricsSchemaUri. - * @member {string} metricsSchemaUri - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.metricsSchemaUri = ""; - - /** - * ModelEvaluation metrics. - * @member {google.protobuf.IValue|null|undefined} metrics - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.metrics = null; - - /** - * ModelEvaluation createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.createTime = null; - - /** - * ModelEvaluation sliceDimensions. - * @member {Array.} sliceDimensions - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.sliceDimensions = $util.emptyArray; - - /** - * ModelEvaluation dataItemSchemaUri. - * @member {string} dataItemSchemaUri - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.dataItemSchemaUri = ""; - - /** - * ModelEvaluation annotationSchemaUri. - * @member {string} annotationSchemaUri - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.annotationSchemaUri = ""; - - /** - * ModelEvaluation modelExplanation. - * @member {google.cloud.aiplatform.v1.IModelExplanation|null|undefined} modelExplanation - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.modelExplanation = null; - - /** - * ModelEvaluation explanationSpecs. - * @member {Array.} explanationSpecs - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @instance - */ - ModelEvaluation.prototype.explanationSpecs = $util.emptyArray; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * ModelEvaluation metadata. - * @member {google.protobuf.IValue|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * MigrateResourceRequest request. + * @member {"migrateMlEngineModelVersionConfig"|"migrateAutomlModelConfig"|"migrateAutomlDatasetConfig"|"migrateDataLabelingDatasetConfig"|undefined} request + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @instance */ - ModelEvaluation.prototype.metadata = null; + Object.defineProperty(MigrateResourceRequest.prototype, "request", { + get: $util.oneOfGetter($oneOfFields = ["migrateMlEngineModelVersionConfig", "migrateAutomlModelConfig", "migrateAutomlDatasetConfig", "migrateDataLabelingDatasetConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ModelEvaluation instance using the specified properties. + * Creates a new MigrateResourceRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @static - * @param {google.cloud.aiplatform.v1.IModelEvaluation=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelEvaluation} ModelEvaluation instance + * @param {google.cloud.aiplatform.v1.IMigrateResourceRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest} MigrateResourceRequest instance */ - ModelEvaluation.create = function create(properties) { - return new ModelEvaluation(properties); + MigrateResourceRequest.create = function create(properties) { + return new MigrateResourceRequest(properties); }; /** - * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.verify|verify} messages. + * Encodes the specified MigrateResourceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @static - * @param {google.cloud.aiplatform.v1.IModelEvaluation} message ModelEvaluation message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMigrateResourceRequest} message MigrateResourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelEvaluation.encode = function encode(message, writer) { + MigrateResourceRequest.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); - if (message.metricsSchemaUri != null && Object.hasOwnProperty.call(message, "metricsSchemaUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.metricsSchemaUri); - if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) - $root.google.protobuf.Value.encode(message.metrics, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.sliceDimensions != null && message.sliceDimensions.length) - for (var i = 0; i < message.sliceDimensions.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.sliceDimensions[i]); - if (message.dataItemSchemaUri != null && Object.hasOwnProperty.call(message, "dataItemSchemaUri")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.dataItemSchemaUri); - if (message.annotationSchemaUri != null && Object.hasOwnProperty.call(message, "annotationSchemaUri")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.annotationSchemaUri); - if (message.modelExplanation != null && Object.hasOwnProperty.call(message, "modelExplanation")) - $root.google.cloud.aiplatform.v1.ModelExplanation.encode(message.modelExplanation, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.explanationSpecs != null && message.explanationSpecs.length) - for (var i = 0; i < message.explanationSpecs.length; ++i) - $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.encode(message.explanationSpecs[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.displayName); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.migrateMlEngineModelVersionConfig != null && Object.hasOwnProperty.call(message, "migrateMlEngineModelVersionConfig")) + $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.encode(message.migrateMlEngineModelVersionConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.migrateAutomlModelConfig != null && Object.hasOwnProperty.call(message, "migrateAutomlModelConfig")) + $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.encode(message.migrateAutomlModelConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.migrateAutomlDatasetConfig != null && Object.hasOwnProperty.call(message, "migrateAutomlDatasetConfig")) + $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.encode(message.migrateAutomlDatasetConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.migrateDataLabelingDatasetConfig != null && Object.hasOwnProperty.call(message, "migrateDataLabelingDatasetConfig")) + $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.encode(message.migrateDataLabelingDatasetConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.verify|verify} messages. + * Encodes the specified MigrateResourceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @static - * @param {google.cloud.aiplatform.v1.IModelEvaluation} message ModelEvaluation message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMigrateResourceRequest} message MigrateResourceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelEvaluation.encodeDelimited = function encodeDelimited(message, writer) { + MigrateResourceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelEvaluation message from the specified reader or buffer. + * Decodes a MigrateResourceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @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.ModelEvaluation} ModelEvaluation + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest} MigrateResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelEvaluation.decode = function decode(reader, length) { + MigrateResourceRequest.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.ModelEvaluation(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 10: { - message.displayName = reader.string(); + message.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.decode(reader, reader.uint32()); break; } case 2: { - message.metricsSchemaUri = reader.string(); + message.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.decode(reader, reader.uint32()); break; } case 3: { - message.metrics = $root.google.protobuf.Value.decode(reader, reader.uint32()); + message.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.decode(reader, reader.uint32()); break; } case 4: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - if (!(message.sliceDimensions && message.sliceDimensions.length)) - message.sliceDimensions = []; - message.sliceDimensions.push(reader.string()); - break; - } - case 6: { - message.dataItemSchemaUri = reader.string(); - break; - } - case 7: { - message.annotationSchemaUri = reader.string(); - break; - } - case 8: { - message.modelExplanation = $root.google.cloud.aiplatform.v1.ModelExplanation.decode(reader, reader.uint32()); - break; - } - case 9: { - if (!(message.explanationSpecs && message.explanationSpecs.length)) - message.explanationSpecs = []; - message.explanationSpecs.push($root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.decode(reader, reader.uint32())); - break; - } - case 11: { - message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + message.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.decode(reader, reader.uint32()); break; } default: @@ -110406,252 +114017,191 @@ }; /** - * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited. + * Decodes a MigrateResourceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelEvaluation} ModelEvaluation + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest} MigrateResourceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelEvaluation.decodeDelimited = function decodeDelimited(reader) { + MigrateResourceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelEvaluation message. + * Verifies a MigrateResourceRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelEvaluation.verify = function verify(message) { + MigrateResourceRequest.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"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) - if (!$util.isString(message.metricsSchemaUri)) - return "metricsSchemaUri: string expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - var error = $root.google.protobuf.Value.verify(message.metrics); - if (error) - return "metrics." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.sliceDimensions != null && message.hasOwnProperty("sliceDimensions")) { - if (!Array.isArray(message.sliceDimensions)) - return "sliceDimensions: array expected"; - for (var i = 0; i < message.sliceDimensions.length; ++i) - if (!$util.isString(message.sliceDimensions[i])) - return "sliceDimensions: string[] expected"; + var properties = {}; + if (message.migrateMlEngineModelVersionConfig != null && message.hasOwnProperty("migrateMlEngineModelVersionConfig")) { + properties.request = 1; + { + var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify(message.migrateMlEngineModelVersionConfig); + if (error) + return "migrateMlEngineModelVersionConfig." + error; + } } - if (message.dataItemSchemaUri != null && message.hasOwnProperty("dataItemSchemaUri")) - if (!$util.isString(message.dataItemSchemaUri)) - return "dataItemSchemaUri: string expected"; - if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) - if (!$util.isString(message.annotationSchemaUri)) - return "annotationSchemaUri: string expected"; - if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) { - var error = $root.google.cloud.aiplatform.v1.ModelExplanation.verify(message.modelExplanation); - if (error) - return "modelExplanation." + error; + if (message.migrateAutomlModelConfig != null && message.hasOwnProperty("migrateAutomlModelConfig")) { + if (properties.request === 1) + return "request: multiple values"; + properties.request = 1; + { + var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify(message.migrateAutomlModelConfig); + if (error) + return "migrateAutomlModelConfig." + error; + } } - if (message.explanationSpecs != null && message.hasOwnProperty("explanationSpecs")) { - if (!Array.isArray(message.explanationSpecs)) - return "explanationSpecs: array expected"; - for (var i = 0; i < message.explanationSpecs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify(message.explanationSpecs[i]); + if (message.migrateAutomlDatasetConfig != null && message.hasOwnProperty("migrateAutomlDatasetConfig")) { + if (properties.request === 1) + return "request: multiple values"; + properties.request = 1; + { + var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify(message.migrateAutomlDatasetConfig); if (error) - return "explanationSpecs." + error; + return "migrateAutomlDatasetConfig." + error; } } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Value.verify(message.metadata); - if (error) - return "metadata." + error; + if (message.migrateDataLabelingDatasetConfig != null && message.hasOwnProperty("migrateDataLabelingDatasetConfig")) { + if (properties.request === 1) + return "request: multiple values"; + properties.request = 1; + { + var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify(message.migrateDataLabelingDatasetConfig); + if (error) + return "migrateDataLabelingDatasetConfig." + error; + } } return null; }; /** - * Creates a ModelEvaluation message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateResourceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelEvaluation} ModelEvaluation + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest} MigrateResourceRequest */ - ModelEvaluation.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluation) + MigrateResourceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelEvaluation(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.metricsSchemaUri != null) - message.metricsSchemaUri = String(object.metricsSchemaUri); - if (object.metrics != null) { - if (typeof object.metrics !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.metrics: object expected"); - message.metrics = $root.google.protobuf.Value.fromObject(object.metrics); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.sliceDimensions) { - if (!Array.isArray(object.sliceDimensions)) - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.sliceDimensions: array expected"); - message.sliceDimensions = []; - for (var i = 0; i < object.sliceDimensions.length; ++i) - message.sliceDimensions[i] = String(object.sliceDimensions[i]); + var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest(); + if (object.migrateMlEngineModelVersionConfig != null) { + if (typeof object.migrateMlEngineModelVersionConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.migrateMlEngineModelVersionConfig: object expected"); + message.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.fromObject(object.migrateMlEngineModelVersionConfig); } - if (object.dataItemSchemaUri != null) - message.dataItemSchemaUri = String(object.dataItemSchemaUri); - if (object.annotationSchemaUri != null) - message.annotationSchemaUri = String(object.annotationSchemaUri); - if (object.modelExplanation != null) { - if (typeof object.modelExplanation !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.modelExplanation: object expected"); - message.modelExplanation = $root.google.cloud.aiplatform.v1.ModelExplanation.fromObject(object.modelExplanation); + if (object.migrateAutomlModelConfig != null) { + if (typeof object.migrateAutomlModelConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.migrateAutomlModelConfig: object expected"); + message.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.fromObject(object.migrateAutomlModelConfig); } - if (object.explanationSpecs) { - if (!Array.isArray(object.explanationSpecs)) - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.explanationSpecs: array expected"); - message.explanationSpecs = []; - for (var i = 0; i < object.explanationSpecs.length; ++i) { - if (typeof object.explanationSpecs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.explanationSpecs: object expected"); - message.explanationSpecs[i] = $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.fromObject(object.explanationSpecs[i]); - } + if (object.migrateAutomlDatasetConfig != null) { + if (typeof object.migrateAutomlDatasetConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.migrateAutomlDatasetConfig: object expected"); + message.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.fromObject(object.migrateAutomlDatasetConfig); } - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.metadata: object expected"); - message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); + if (object.migrateDataLabelingDatasetConfig != null) { + if (typeof object.migrateDataLabelingDatasetConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.migrateDataLabelingDatasetConfig: object expected"); + message.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.fromObject(object.migrateDataLabelingDatasetConfig); } return message; }; /** - * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified. + * Creates a plain object from a MigrateResourceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluation} message ModelEvaluation + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest} message MigrateResourceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelEvaluation.toObject = function toObject(message, options) { + MigrateResourceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.sliceDimensions = []; - object.explanationSpecs = []; + if (message.migrateMlEngineModelVersionConfig != null && message.hasOwnProperty("migrateMlEngineModelVersionConfig")) { + object.migrateMlEngineModelVersionConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.toObject(message.migrateMlEngineModelVersionConfig, options); + if (options.oneofs) + object.request = "migrateMlEngineModelVersionConfig"; } - if (options.defaults) { - object.name = ""; - object.metricsSchemaUri = ""; - object.metrics = null; - object.createTime = null; - object.dataItemSchemaUri = ""; - object.annotationSchemaUri = ""; - object.modelExplanation = null; - object.displayName = ""; - object.metadata = null; + if (message.migrateAutomlModelConfig != null && message.hasOwnProperty("migrateAutomlModelConfig")) { + object.migrateAutomlModelConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.toObject(message.migrateAutomlModelConfig, options); + if (options.oneofs) + object.request = "migrateAutomlModelConfig"; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) - object.metricsSchemaUri = message.metricsSchemaUri; - if (message.metrics != null && message.hasOwnProperty("metrics")) - 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.sliceDimensions && message.sliceDimensions.length) { - object.sliceDimensions = []; - for (var j = 0; j < message.sliceDimensions.length; ++j) - object.sliceDimensions[j] = message.sliceDimensions[j]; + if (message.migrateAutomlDatasetConfig != null && message.hasOwnProperty("migrateAutomlDatasetConfig")) { + object.migrateAutomlDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.toObject(message.migrateAutomlDatasetConfig, options); + if (options.oneofs) + object.request = "migrateAutomlDatasetConfig"; } - if (message.dataItemSchemaUri != null && message.hasOwnProperty("dataItemSchemaUri")) - object.dataItemSchemaUri = message.dataItemSchemaUri; - if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) - object.annotationSchemaUri = message.annotationSchemaUri; - if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) - object.modelExplanation = $root.google.cloud.aiplatform.v1.ModelExplanation.toObject(message.modelExplanation, options); - if (message.explanationSpecs && message.explanationSpecs.length) { - object.explanationSpecs = []; - for (var j = 0; j < message.explanationSpecs.length; ++j) - object.explanationSpecs[j] = $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.toObject(message.explanationSpecs[j], options); + if (message.migrateDataLabelingDatasetConfig != null && message.hasOwnProperty("migrateDataLabelingDatasetConfig")) { + object.migrateDataLabelingDatasetConfig = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.toObject(message.migrateDataLabelingDatasetConfig, options); + if (options.oneofs) + object.request = "migrateDataLabelingDatasetConfig"; } - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); return object; }; /** - * Converts this ModelEvaluation to JSON. + * Converts this MigrateResourceRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @instance * @returns {Object.} JSON object */ - ModelEvaluation.prototype.toJSON = function toJSON() { + MigrateResourceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelEvaluation + * Gets the default type url for MigrateResourceRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelEvaluation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MigrateResourceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluation"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest"; }; - ModelEvaluation.ModelEvaluationExplanationSpec = (function() { + MigrateResourceRequest.MigrateMlEngineModelVersionConfig = (function() { /** - * Properties of a ModelEvaluationExplanationSpec. - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @interface IModelEvaluationExplanationSpec - * @property {string|null} [explanationType] ModelEvaluationExplanationSpec explanationType - * @property {google.cloud.aiplatform.v1.IExplanationSpec|null} [explanationSpec] ModelEvaluationExplanationSpec explanationSpec + * Properties of a MigrateMlEngineModelVersionConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @interface IMigrateMlEngineModelVersionConfig + * @property {string|null} [endpoint] MigrateMlEngineModelVersionConfig endpoint + * @property {string|null} [modelVersion] MigrateMlEngineModelVersionConfig modelVersion + * @property {string|null} [modelDisplayName] MigrateMlEngineModelVersionConfig modelDisplayName */ /** - * Constructs a new ModelEvaluationExplanationSpec. - * @memberof google.cloud.aiplatform.v1.ModelEvaluation - * @classdesc Represents a ModelEvaluationExplanationSpec. - * @implements IModelEvaluationExplanationSpec + * Constructs a new MigrateMlEngineModelVersionConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @classdesc Represents a MigrateMlEngineModelVersionConfig. + * @implements IMigrateMlEngineModelVersionConfig * @constructor - * @param {google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig=} [properties] Properties to set */ - function ModelEvaluationExplanationSpec(properties) { + function MigrateMlEngineModelVersionConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -110659,89 +114209,103 @@ } /** - * ModelEvaluationExplanationSpec explanationType. - * @member {string} explanationType - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * MigrateMlEngineModelVersionConfig endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @instance */ - ModelEvaluationExplanationSpec.prototype.explanationType = ""; + MigrateMlEngineModelVersionConfig.prototype.endpoint = ""; /** - * ModelEvaluationExplanationSpec explanationSpec. - * @member {google.cloud.aiplatform.v1.IExplanationSpec|null|undefined} explanationSpec - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * MigrateMlEngineModelVersionConfig modelVersion. + * @member {string} modelVersion + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @instance */ - ModelEvaluationExplanationSpec.prototype.explanationSpec = null; + MigrateMlEngineModelVersionConfig.prototype.modelVersion = ""; /** - * Creates a new ModelEvaluationExplanationSpec instance using the specified properties. + * MigrateMlEngineModelVersionConfig modelDisplayName. + * @member {string} modelDisplayName + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig + * @instance + */ + MigrateMlEngineModelVersionConfig.prototype.modelDisplayName = ""; + + /** + * Creates a new MigrateMlEngineModelVersionConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec instance + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig instance */ - ModelEvaluationExplanationSpec.create = function create(properties) { - return new ModelEvaluationExplanationSpec(properties); + MigrateMlEngineModelVersionConfig.create = function create(properties) { + return new MigrateMlEngineModelVersionConfig(properties); }; /** - * Encodes the specified ModelEvaluationExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * Encodes the specified MigrateMlEngineModelVersionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelEvaluationExplanationSpec.encode = function encode(message, writer) { + MigrateMlEngineModelVersionConfig.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.explanationSpec != null && Object.hasOwnProperty.call(message, "explanationSpec")) - $root.google.cloud.aiplatform.v1.ExplanationSpec.encode(message.explanationSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.modelVersion != null && Object.hasOwnProperty.call(message, "modelVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersion); + if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.modelDisplayName); return writer; }; /** - * Encodes the specified ModelEvaluationExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * Encodes the specified MigrateMlEngineModelVersionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelEvaluationExplanationSpec.encodeDelimited = function encodeDelimited(message, writer) { + MigrateMlEngineModelVersionConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer. + * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @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.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelEvaluationExplanationSpec.decode = function decode(reader, length) { + MigrateMlEngineModelVersionConfig.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.ModelEvaluation.ModelEvaluationExplanationSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.explanationType = reader.string(); + message.endpoint = reader.string(); break; } case 2: { - message.explanationSpec = $root.google.cloud.aiplatform.v1.ExplanationSpec.decode(reader, reader.uint32()); + message.modelVersion = reader.string(); + break; + } + case 3: { + message.modelDisplayName = reader.string(); break; } default: @@ -110753,448 +114317,367 @@ }; /** - * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer, length delimited. + * Decodes a MigrateMlEngineModelVersionConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelEvaluationExplanationSpec.decodeDelimited = function decodeDelimited(reader) { + MigrateMlEngineModelVersionConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelEvaluationExplanationSpec message. + * Verifies a MigrateMlEngineModelVersionConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelEvaluationExplanationSpec.verify = function verify(message) { + MigrateMlEngineModelVersionConfig.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.explanationSpec != null && message.hasOwnProperty("explanationSpec")) { - var error = $root.google.cloud.aiplatform.v1.ExplanationSpec.verify(message.explanationSpec); - if (error) - return "explanationSpec." + error; - } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) + if (!$util.isString(message.modelVersion)) + return "modelVersion: string expected"; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + if (!$util.isString(message.modelDisplayName)) + return "modelDisplayName: string expected"; return null; }; /** - * Creates a ModelEvaluationExplanationSpec message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateMlEngineModelVersionConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} MigrateMlEngineModelVersionConfig */ - ModelEvaluationExplanationSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec) + MigrateMlEngineModelVersionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec(); - if (object.explanationType != null) - message.explanationType = String(object.explanationType); - if (object.explanationSpec != null) { - if (typeof object.explanationSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.explanationSpec: object expected"); - message.explanationSpec = $root.google.cloud.aiplatform.v1.ExplanationSpec.fromObject(object.explanationSpec); - } + var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.modelVersion != null) + message.modelVersion = String(object.modelVersion); + if (object.modelDisplayName != null) + message.modelDisplayName = String(object.modelDisplayName); return message; }; /** - * Creates a plain object from a ModelEvaluationExplanationSpec message. Also converts values to other types if specified. + * Creates a plain object from a MigrateMlEngineModelVersionConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig} message MigrateMlEngineModelVersionConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelEvaluationExplanationSpec.toObject = function toObject(message, options) { + MigrateMlEngineModelVersionConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.explanationType = ""; - object.explanationSpec = null; + object.endpoint = ""; + object.modelVersion = ""; + object.modelDisplayName = ""; } - if (message.explanationType != null && message.hasOwnProperty("explanationType")) - object.explanationType = message.explanationType; - if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) - object.explanationSpec = $root.google.cloud.aiplatform.v1.ExplanationSpec.toObject(message.explanationSpec, options); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.modelVersion != null && message.hasOwnProperty("modelVersion")) + object.modelVersion = message.modelVersion; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + object.modelDisplayName = message.modelDisplayName; return object; }; /** - * Converts this ModelEvaluationExplanationSpec to JSON. + * Converts this MigrateMlEngineModelVersionConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @instance * @returns {Object.} JSON object */ - ModelEvaluationExplanationSpec.prototype.toJSON = function toJSON() { + MigrateMlEngineModelVersionConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ModelEvaluationExplanationSpec + * Gets the default type url for MigrateMlEngineModelVersionConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ModelEvaluationExplanationSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MigrateMlEngineModelVersionConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateMlEngineModelVersionConfig"; }; - return ModelEvaluationExplanationSpec; + return MigrateMlEngineModelVersionConfig; })(); - return ModelEvaluation; - })(); - - v1.ModelEvaluationSlice = (function() { + MigrateResourceRequest.MigrateAutomlModelConfig = (function() { - /** - * Properties of a ModelEvaluationSlice. - * @memberof google.cloud.aiplatform.v1 - * @interface IModelEvaluationSlice - * @property {string|null} [name] ModelEvaluationSlice name - * @property {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice|null} [slice] ModelEvaluationSlice slice - * @property {string|null} [metricsSchemaUri] ModelEvaluationSlice metricsSchemaUri - * @property {google.protobuf.IValue|null} [metrics] ModelEvaluationSlice metrics - * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluationSlice createTime - */ + /** + * Properties of a MigrateAutomlModelConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @interface IMigrateAutomlModelConfig + * @property {string|null} [model] MigrateAutomlModelConfig model + * @property {string|null} [modelDisplayName] MigrateAutomlModelConfig modelDisplayName + */ - /** - * Constructs a new ModelEvaluationSlice. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelEvaluationSlice. - * @implements IModelEvaluationSlice - * @constructor - * @param {google.cloud.aiplatform.v1.IModelEvaluationSlice=} [properties] Properties to set - */ - function ModelEvaluationSlice(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]]; - } + /** + * Constructs a new MigrateAutomlModelConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @classdesc Represents a MigrateAutomlModelConfig. + * @implements IMigrateAutomlModelConfig + * @constructor + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig=} [properties] Properties to set + */ + function MigrateAutomlModelConfig(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]]; + } - /** - * ModelEvaluationSlice name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.name = ""; + /** + * MigrateAutomlModelConfig model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @instance + */ + MigrateAutomlModelConfig.prototype.model = ""; - /** - * ModelEvaluationSlice slice. - * @member {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice|null|undefined} slice - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.slice = null; + /** + * MigrateAutomlModelConfig modelDisplayName. + * @member {string} modelDisplayName + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @instance + */ + MigrateAutomlModelConfig.prototype.modelDisplayName = ""; - /** - * ModelEvaluationSlice metricsSchemaUri. - * @member {string} metricsSchemaUri - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.metricsSchemaUri = ""; + /** + * Creates a new MigrateAutomlModelConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig instance + */ + MigrateAutomlModelConfig.create = function create(properties) { + return new MigrateAutomlModelConfig(properties); + }; - /** - * ModelEvaluationSlice metrics. - * @member {google.protobuf.IValue|null|undefined} metrics - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.metrics = null; - - /** - * ModelEvaluationSlice createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @instance - */ - ModelEvaluationSlice.prototype.createTime = null; - - /** - * Creates a new ModelEvaluationSlice instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @static - * @param {google.cloud.aiplatform.v1.IModelEvaluationSlice=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice} ModelEvaluationSlice instance - */ - ModelEvaluationSlice.create = function create(properties) { - return new ModelEvaluationSlice(properties); - }; - - /** - * Encodes the specified ModelEvaluationSlice message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @static - * @param {google.cloud.aiplatform.v1.IModelEvaluationSlice} message ModelEvaluationSlice message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ModelEvaluationSlice.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); - if (message.slice != null && Object.hasOwnProperty.call(message, "slice")) - $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.encode(message.slice, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metricsSchemaUri != null && Object.hasOwnProperty.call(message, "metricsSchemaUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.metricsSchemaUri); - if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) - $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(); - return writer; - }; + /** + * Encodes the specified MigrateAutomlModelConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig} message MigrateAutomlModelConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateAutomlModelConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelDisplayName); + return writer; + }; - /** - * Encodes the specified ModelEvaluationSlice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @static - * @param {google.cloud.aiplatform.v1.IModelEvaluationSlice} message ModelEvaluationSlice message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ModelEvaluationSlice.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MigrateAutomlModelConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlModelConfig} message MigrateAutomlModelConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateAutomlModelConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ModelEvaluationSlice message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @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} ModelEvaluationSlice - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ModelEvaluationSlice.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(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.slice = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.decode(reader, reader.uint32()); - break; - } - case 3: { - message.metricsSchemaUri = reader.string(); - break; - } - case 4: { - message.metrics = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 5: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + /** + * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @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.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateAutomlModelConfig.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.MigrateResourceRequest.MigrateAutomlModelConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.model = reader.string(); + break; + } + case 2: { + message.modelDisplayName = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a ModelEvaluationSlice message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice} ModelEvaluationSlice - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ModelEvaluationSlice.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a MigrateAutomlModelConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateAutomlModelConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ModelEvaluationSlice message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ModelEvaluationSlice.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"; - if (message.slice != null && message.hasOwnProperty("slice")) { - var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify(message.slice); - if (error) - return "slice." + error; - } - if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) - if (!$util.isString(message.metricsSchemaUri)) - return "metricsSchemaUri: string expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - var error = $root.google.protobuf.Value.verify(message.metrics); - if (error) - return "metrics." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - return null; - }; + /** + * Verifies a MigrateAutomlModelConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigrateAutomlModelConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + if (!$util.isString(message.modelDisplayName)) + return "modelDisplayName: string expected"; + return null; + }; - /** - * Creates a ModelEvaluationSlice message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice} ModelEvaluationSlice - */ - ModelEvaluationSlice.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluationSlice) + /** + * Creates a MigrateAutomlModelConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} MigrateAutomlModelConfig + */ + MigrateAutomlModelConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig(); + if (object.model != null) + message.model = String(object.model); + if (object.modelDisplayName != null) + message.modelDisplayName = String(object.modelDisplayName); + return message; + }; + + /** + * Creates a plain object from a MigrateAutomlModelConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig} message MigrateAutomlModelConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigrateAutomlModelConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.model = ""; + object.modelDisplayName = ""; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + object.modelDisplayName = message.modelDisplayName; return object; - var message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice(); - if (object.name != null) - message.name = String(object.name); - if (object.slice != null) { - if (typeof object.slice !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.slice: object expected"); - message.slice = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.fromObject(object.slice); - } - if (object.metricsSchemaUri != null) - message.metricsSchemaUri = String(object.metricsSchemaUri); - if (object.metrics != null) { - if (typeof object.metrics !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics: object expected"); - message.metrics = $root.google.protobuf.Value.fromObject(object.metrics); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - return message; - }; + }; - /** - * Creates a plain object from a ModelEvaluationSlice message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice} message ModelEvaluationSlice - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ModelEvaluationSlice.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.slice = null; - object.metricsSchemaUri = ""; - object.metrics = null; - object.createTime = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.slice != null && message.hasOwnProperty("slice")) - object.slice = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.toObject(message.slice, options); - if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) - object.metricsSchemaUri = message.metricsSchemaUri; - if (message.metrics != null && message.hasOwnProperty("metrics")) - 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); - return object; - }; + /** + * Converts this MigrateAutomlModelConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @instance + * @returns {Object.} JSON object + */ + MigrateAutomlModelConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ModelEvaluationSlice to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @instance - * @returns {Object.} JSON object - */ - ModelEvaluationSlice.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for MigrateAutomlModelConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MigrateAutomlModelConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlModelConfig"; + }; - /** - * Gets the default type url for ModelEvaluationSlice - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ModelEvaluationSlice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluationSlice"; - }; + return MigrateAutomlModelConfig; + })(); - ModelEvaluationSlice.Slice = (function() { + MigrateResourceRequest.MigrateAutomlDatasetConfig = (function() { /** - * Properties of a Slice. - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @interface ISlice - * @property {string|null} [dimension] Slice dimension - * @property {string|null} [value] Slice value + * Properties of a MigrateAutomlDatasetConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @interface IMigrateAutomlDatasetConfig + * @property {string|null} [dataset] MigrateAutomlDatasetConfig dataset + * @property {string|null} [datasetDisplayName] MigrateAutomlDatasetConfig datasetDisplayName */ /** - * Constructs a new Slice. - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice - * @classdesc Represents a Slice. - * @implements ISlice + * Constructs a new MigrateAutomlDatasetConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @classdesc Represents a MigrateAutomlDatasetConfig. + * @implements IMigrateAutomlDatasetConfig * @constructor - * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig=} [properties] Properties to set */ - function Slice(properties) { + function MigrateAutomlDatasetConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -111202,89 +114685,89 @@ } /** - * Slice dimension. - * @member {string} dimension - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * MigrateAutomlDatasetConfig dataset. + * @member {string} dataset + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @instance */ - Slice.prototype.dimension = ""; + MigrateAutomlDatasetConfig.prototype.dataset = ""; /** - * Slice value. - * @member {string} value - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * MigrateAutomlDatasetConfig datasetDisplayName. + * @member {string} datasetDisplayName + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @instance */ - Slice.prototype.value = ""; + MigrateAutomlDatasetConfig.prototype.datasetDisplayName = ""; /** - * Creates a new Slice instance using the specified properties. + * Creates a new MigrateAutomlDatasetConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} Slice instance + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig instance */ - Slice.create = function create(properties) { - return new Slice(properties); + MigrateAutomlDatasetConfig.create = function create(properties) { + return new MigrateAutomlDatasetConfig(properties); }; /** - * Encodes the specified Slice message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify|verify} messages. + * Encodes the specified MigrateAutomlDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice} message Slice message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Slice.encode = function encode(message, writer) { + MigrateAutomlDatasetConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dimension != null && Object.hasOwnProperty.call(message, "dimension")) - 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.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetDisplayName); return writer; }; /** - * Encodes the specified Slice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify|verify} messages. + * Encodes the specified MigrateAutomlDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice} message Slice message or plain object to encode + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Slice.encodeDelimited = function encodeDelimited(message, writer) { + MigrateAutomlDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Slice message from the specified reader or buffer. + * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @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} Slice + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Slice.decode = function decode(reader, length) { + MigrateAutomlDatasetConfig.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(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.dimension = reader.string(); + message.dataset = reader.string(); break; } case 2: { - message.value = reader.string(); + message.datasetDisplayName = reader.string(); break; } default: @@ -111296,668 +114779,610 @@ }; /** - * Decodes a Slice message from the specified reader or buffer, length delimited. + * Decodes a MigrateAutomlDatasetConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} Slice + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Slice.decodeDelimited = function decodeDelimited(reader) { + MigrateAutomlDatasetConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Slice message. + * Verifies a MigrateAutomlDatasetConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Slice.verify = function verify(message) { + MigrateAutomlDatasetConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dimension != null && message.hasOwnProperty("dimension")) - if (!$util.isString(message.dimension)) - return "dimension: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; + if (message.dataset != null && message.hasOwnProperty("dataset")) + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + if (!$util.isString(message.datasetDisplayName)) + return "datasetDisplayName: string expected"; return null; }; /** - * Creates a Slice message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateAutomlDatasetConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} Slice + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} MigrateAutomlDatasetConfig */ - Slice.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice) + MigrateAutomlDatasetConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice(); - if (object.dimension != null) - message.dimension = String(object.dimension); - if (object.value != null) - message.value = String(object.value); + var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.datasetDisplayName != null) + message.datasetDisplayName = String(object.datasetDisplayName); return message; }; /** - * Creates a plain object from a Slice message. Also converts values to other types if specified. + * Creates a plain object from a MigrateAutomlDatasetConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @static - * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} message Slice + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig} message MigrateAutomlDatasetConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Slice.toObject = function toObject(message, options) { + MigrateAutomlDatasetConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.dimension = ""; - object.value = ""; + object.dataset = ""; + object.datasetDisplayName = ""; } - if (message.dimension != null && message.hasOwnProperty("dimension")) - object.dimension = message.dimension; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.dataset != null && message.hasOwnProperty("dataset")) + object.dataset = message.dataset; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + object.datasetDisplayName = message.datasetDisplayName; return object; }; /** - * Converts this Slice to JSON. + * Converts this MigrateAutomlDatasetConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @instance * @returns {Object.} JSON object */ - Slice.prototype.toJSON = function toJSON() { + MigrateAutomlDatasetConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Slice + * Gets the default type url for MigrateAutomlDatasetConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Slice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MigrateAutomlDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateAutomlDatasetConfig"; }; - return Slice; + return MigrateAutomlDatasetConfig; })(); - return ModelEvaluationSlice; - })(); + MigrateResourceRequest.MigrateDataLabelingDatasetConfig = (function() { - v1.ModelService = (function() { + /** + * Properties of a MigrateDataLabelingDatasetConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @interface IMigrateDataLabelingDatasetConfig + * @property {string|null} [dataset] MigrateDataLabelingDatasetConfig dataset + * @property {string|null} [datasetDisplayName] MigrateDataLabelingDatasetConfig datasetDisplayName + * @property {Array.|null} [migrateDataLabelingAnnotatedDatasetConfigs] MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs + */ - /** - * Constructs a new ModelService service. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ModelService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function ModelService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + /** + * Constructs a new MigrateDataLabelingDatasetConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest + * @classdesc Represents a MigrateDataLabelingDatasetConfig. + * @implements IMigrateDataLabelingDatasetConfig + * @constructor + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig=} [properties] Properties to set + */ + function MigrateDataLabelingDatasetConfig(properties) { + this.migrateDataLabelingAnnotatedDatasetConfigs = []; + 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]]; + } - (ModelService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ModelService; + /** + * MigrateDataLabelingDatasetConfig dataset. + * @member {string} dataset + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @instance + */ + MigrateDataLabelingDatasetConfig.prototype.dataset = ""; - /** - * Creates new ModelService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1.ModelService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {ModelService} RPC service. Useful where requests and/or responses are streamed. - */ - ModelService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + /** + * MigrateDataLabelingDatasetConfig datasetDisplayName. + * @member {string} datasetDisplayName + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @instance + */ + MigrateDataLabelingDatasetConfig.prototype.datasetDisplayName = ""; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|uploadModel}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef UploadModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + /** + * MigrateDataLabelingDatasetConfig migrateDataLabelingAnnotatedDatasetConfigs. + * @member {Array.} migrateDataLabelingAnnotatedDatasetConfigs + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @instance + */ + MigrateDataLabelingDatasetConfig.prototype.migrateDataLabelingAnnotatedDatasetConfigs = $util.emptyArray; - /** - * Calls UploadModel. - * @function uploadModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IUploadModelRequest} request UploadModelRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.UploadModelCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.uploadModel = function uploadModel(request, callback) { - return this.rpcCall(uploadModel, $root.google.cloud.aiplatform.v1.UploadModelRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UploadModel" }); + /** + * Creates a new MigrateDataLabelingDatasetConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig instance + */ + MigrateDataLabelingDatasetConfig.create = function create(properties) { + return new MigrateDataLabelingDatasetConfig(properties); + }; - /** - * Calls UploadModel. - * @function uploadModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IUploadModelRequest} request UploadModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified MigrateDataLabelingDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateDataLabelingDatasetConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.datasetDisplayName != null && Object.hasOwnProperty.call(message, "datasetDisplayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.datasetDisplayName); + if (message.migrateDataLabelingAnnotatedDatasetConfigs != null && message.migrateDataLabelingAnnotatedDatasetConfigs.length) + for (var i = 0; i < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) + $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.encode(message.migrateDataLabelingAnnotatedDatasetConfigs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModel}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef GetModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Model} [response] Model - */ + /** + * Encodes the specified MigrateDataLabelingDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.IMigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateDataLabelingDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Calls GetModel. - * @function getModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IGetModelRequest} request GetModelRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.GetModelCallback} callback Node-style callback called with the error, if any, and Model - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.getModel = function getModel(request, callback) { - return this.rpcCall(getModel, $root.google.cloud.aiplatform.v1.GetModelRequest, $root.google.cloud.aiplatform.v1.Model, request, callback); - }, "name", { value: "GetModel" }); + /** + * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @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.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateDataLabelingDatasetConfig.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.MigrateResourceRequest.MigrateDataLabelingDatasetConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.dataset = reader.string(); + break; + } + case 2: { + message.datasetDisplayName = reader.string(); + break; + } + case 3: { + if (!(message.migrateDataLabelingAnnotatedDatasetConfigs && message.migrateDataLabelingAnnotatedDatasetConfigs.length)) + message.migrateDataLabelingAnnotatedDatasetConfigs = []; + message.migrateDataLabelingAnnotatedDatasetConfigs.push($root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls GetModel. - * @function getModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IGetModelRequest} request GetModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Decodes a MigrateDataLabelingDatasetConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateDataLabelingDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModels}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef ListModelsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListModelsResponse} [response] ListModelsResponse - */ + /** + * Verifies a MigrateDataLabelingDatasetConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigrateDataLabelingDatasetConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dataset != null && message.hasOwnProperty("dataset")) + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + if (!$util.isString(message.datasetDisplayName)) + return "datasetDisplayName: string expected"; + if (message.migrateDataLabelingAnnotatedDatasetConfigs != null && message.hasOwnProperty("migrateDataLabelingAnnotatedDatasetConfigs")) { + if (!Array.isArray(message.migrateDataLabelingAnnotatedDatasetConfigs)) + return "migrateDataLabelingAnnotatedDatasetConfigs: array expected"; + for (var i = 0; i < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify(message.migrateDataLabelingAnnotatedDatasetConfigs[i]); + if (error) + return "migrateDataLabelingAnnotatedDatasetConfigs." + error; + } + } + return null; + }; - /** - * Calls ListModels. - * @function listModels - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IListModelsRequest} request ListModelsRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.ListModelsCallback} callback Node-style callback called with the error, if any, and ListModelsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.listModels = function listModels(request, callback) { - return this.rpcCall(listModels, $root.google.cloud.aiplatform.v1.ListModelsRequest, $root.google.cloud.aiplatform.v1.ListModelsResponse, request, callback); - }, "name", { value: "ListModels" }); + /** + * Creates a MigrateDataLabelingDatasetConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} MigrateDataLabelingDatasetConfig + */ + MigrateDataLabelingDatasetConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.datasetDisplayName != null) + message.datasetDisplayName = String(object.datasetDisplayName); + if (object.migrateDataLabelingAnnotatedDatasetConfigs) { + if (!Array.isArray(object.migrateDataLabelingAnnotatedDatasetConfigs)) + throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.migrateDataLabelingAnnotatedDatasetConfigs: array expected"); + message.migrateDataLabelingAnnotatedDatasetConfigs = []; + for (var i = 0; i < object.migrateDataLabelingAnnotatedDatasetConfigs.length; ++i) { + if (typeof object.migrateDataLabelingAnnotatedDatasetConfigs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.migrateDataLabelingAnnotatedDatasetConfigs: object expected"); + message.migrateDataLabelingAnnotatedDatasetConfigs[i] = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.fromObject(object.migrateDataLabelingAnnotatedDatasetConfigs[i]); + } + } + return message; + }; - /** - * Calls ListModels. - * @function listModels - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IListModelsRequest} request ListModelsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a plain object from a MigrateDataLabelingDatasetConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig} message MigrateDataLabelingDatasetConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigrateDataLabelingDatasetConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.migrateDataLabelingAnnotatedDatasetConfigs = []; + if (options.defaults) { + object.dataset = ""; + object.datasetDisplayName = ""; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) + object.dataset = message.dataset; + if (message.datasetDisplayName != null && message.hasOwnProperty("datasetDisplayName")) + object.datasetDisplayName = message.datasetDisplayName; + if (message.migrateDataLabelingAnnotatedDatasetConfigs && message.migrateDataLabelingAnnotatedDatasetConfigs.length) { + object.migrateDataLabelingAnnotatedDatasetConfigs = []; + for (var j = 0; j < message.migrateDataLabelingAnnotatedDatasetConfigs.length; ++j) + object.migrateDataLabelingAnnotatedDatasetConfigs[j] = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.toObject(message.migrateDataLabelingAnnotatedDatasetConfigs[j], options); + } + return object; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelVersions}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef ListModelVersionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListModelVersionsResponse} [response] ListModelVersionsResponse - */ + /** + * Converts this MigrateDataLabelingDatasetConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @instance + * @returns {Object.} JSON object + */ + MigrateDataLabelingDatasetConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls ListModelVersions. - * @function listModelVersions - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} request ListModelVersionsRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.ListModelVersionsCallback} callback Node-style callback called with the error, if any, and ListModelVersionsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.listModelVersions = function listModelVersions(request, callback) { - return this.rpcCall(listModelVersions, $root.google.cloud.aiplatform.v1.ListModelVersionsRequest, $root.google.cloud.aiplatform.v1.ListModelVersionsResponse, request, callback); - }, "name", { value: "ListModelVersions" }); + /** + * Gets the default type url for MigrateDataLabelingDatasetConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MigrateDataLabelingDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig"; + }; - /** - * Calls ListModelVersions. - * @function listModelVersions - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} request ListModelVersionsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig = (function() { - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|updateModel}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef UpdateModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Model} [response] Model - */ + /** + * Properties of a MigrateDataLabelingAnnotatedDatasetConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @interface IMigrateDataLabelingAnnotatedDatasetConfig + * @property {string|null} [annotatedDataset] MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset + */ - /** - * Calls UpdateModel. - * @function updateModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateModelRequest} request UpdateModelRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.UpdateModelCallback} callback Node-style callback called with the error, if any, and Model - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.updateModel = function updateModel(request, callback) { - return this.rpcCall(updateModel, $root.google.cloud.aiplatform.v1.UpdateModelRequest, $root.google.cloud.aiplatform.v1.Model, request, callback); - }, "name", { value: "UpdateModel" }); + /** + * Constructs a new MigrateDataLabelingAnnotatedDatasetConfig. + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig + * @classdesc Represents a MigrateDataLabelingAnnotatedDatasetConfig. + * @implements IMigrateDataLabelingAnnotatedDatasetConfig + * @constructor + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig=} [properties] Properties to set + */ + function MigrateDataLabelingAnnotatedDatasetConfig(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]]; + } - /** - * Calls UpdateModel. - * @function updateModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IUpdateModelRequest} request UpdateModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|deleteModel}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef DeleteModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteModel. - * @function deleteModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteModelRequest} request DeleteModelRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.DeleteModelCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.deleteModel = function deleteModel(request, callback) { - return this.rpcCall(deleteModel, $root.google.cloud.aiplatform.v1.DeleteModelRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteModel" }); - - /** - * Calls DeleteModel. - * @function deleteModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteModelRequest} request DeleteModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|deleteModelVersion}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef DeleteModelVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteModelVersion. - * @function deleteModelVersion - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} request DeleteModelVersionRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.DeleteModelVersionCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.deleteModelVersion = function deleteModelVersion(request, callback) { - return this.rpcCall(deleteModelVersion, $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteModelVersion" }); - - /** - * Calls DeleteModelVersion. - * @function deleteModelVersion - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} request DeleteModelVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|mergeVersionAliases}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef MergeVersionAliasesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.Model} [response] Model - */ - - /** - * Calls MergeVersionAliases. - * @function mergeVersionAliases - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} request MergeVersionAliasesRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.MergeVersionAliasesCallback} callback Node-style callback called with the error, if any, and Model - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.mergeVersionAliases = function mergeVersionAliases(request, callback) { - return this.rpcCall(mergeVersionAliases, $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest, $root.google.cloud.aiplatform.v1.Model, request, callback); - }, "name", { value: "MergeVersionAliases" }); - - /** - * Calls MergeVersionAliases. - * @function mergeVersionAliases - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} request MergeVersionAliasesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|exportModel}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef ExportModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls ExportModel. - * @function exportModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IExportModelRequest} request ExportModelRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.ExportModelCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.exportModel = function exportModel(request, callback) { - return this.rpcCall(exportModel, $root.google.cloud.aiplatform.v1.ExportModelRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ExportModel" }); - - /** - * Calls ExportModel. - * @function exportModel - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IExportModelRequest} request ExportModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|importModelEvaluation}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef ImportModelEvaluationCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ModelEvaluation} [response] ModelEvaluation - */ - - /** - * Calls ImportModelEvaluation. - * @function importModelEvaluation - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest} request ImportModelEvaluationRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.ImportModelEvaluationCallback} callback Node-style callback called with the error, if any, and ModelEvaluation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.importModelEvaluation = function importModelEvaluation(request, callback) { - return this.rpcCall(importModelEvaluation, $root.google.cloud.aiplatform.v1.ImportModelEvaluationRequest, $root.google.cloud.aiplatform.v1.ModelEvaluation, request, callback); - }, "name", { value: "ImportModelEvaluation" }); - - /** - * Calls ImportModelEvaluation. - * @function importModelEvaluation - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest} request ImportModelEvaluationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|batchImportModelEvaluationSlices}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef BatchImportModelEvaluationSlicesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} [response] BatchImportModelEvaluationSlicesResponse - */ - - /** - * Calls BatchImportModelEvaluationSlices. - * @function batchImportModelEvaluationSlices - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} request BatchImportModelEvaluationSlicesRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlicesCallback} callback Node-style callback called with the error, if any, and BatchImportModelEvaluationSlicesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.batchImportModelEvaluationSlices = function batchImportModelEvaluationSlices(request, callback) { - return this.rpcCall(batchImportModelEvaluationSlices, $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest, $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse, request, callback); - }, "name", { value: "BatchImportModelEvaluationSlices" }); - - /** - * Calls BatchImportModelEvaluationSlices. - * @function batchImportModelEvaluationSlices - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} request BatchImportModelEvaluationSlicesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * MigrateDataLabelingAnnotatedDatasetConfig annotatedDataset. + * @member {string} annotatedDataset + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @instance + */ + MigrateDataLabelingAnnotatedDatasetConfig.prototype.annotatedDataset = ""; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModelEvaluation}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef GetModelEvaluationCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ModelEvaluation} [response] ModelEvaluation - */ + /** + * Creates a new MigrateDataLabelingAnnotatedDatasetConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig instance + */ + MigrateDataLabelingAnnotatedDatasetConfig.create = function create(properties) { + return new MigrateDataLabelingAnnotatedDatasetConfig(properties); + }; - /** - * Calls GetModelEvaluation. - * @function getModelEvaluation - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} request GetModelEvaluationRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.GetModelEvaluationCallback} callback Node-style callback called with the error, if any, and ModelEvaluation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.getModelEvaluation = function getModelEvaluation(request, callback) { - return this.rpcCall(getModelEvaluation, $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest, $root.google.cloud.aiplatform.v1.ModelEvaluation, request, callback); - }, "name", { value: "GetModelEvaluation" }); + /** + * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateDataLabelingAnnotatedDatasetConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotatedDataset != null && Object.hasOwnProperty.call(message, "annotatedDataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.annotatedDataset); + return writer; + }; - /** - * Calls GetModelEvaluation. - * @function getModelEvaluation - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} request GetModelEvaluationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified MigrateDataLabelingAnnotatedDatasetConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.IMigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MigrateDataLabelingAnnotatedDatasetConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelEvaluations}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef ListModelEvaluationsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} [response] ListModelEvaluationsResponse - */ + /** + * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @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.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateDataLabelingAnnotatedDatasetConfig.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.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.annotatedDataset = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls ListModelEvaluations. - * @function listModelEvaluations - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} request ListModelEvaluationsRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.ListModelEvaluationsCallback} callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.listModelEvaluations = function listModelEvaluations(request, callback) { - return this.rpcCall(listModelEvaluations, $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest, $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse, request, callback); - }, "name", { value: "ListModelEvaluations" }); + /** + * Decodes a MigrateDataLabelingAnnotatedDatasetConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MigrateDataLabelingAnnotatedDatasetConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Calls ListModelEvaluations. - * @function listModelEvaluations - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} request ListModelEvaluationsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Verifies a MigrateDataLabelingAnnotatedDatasetConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MigrateDataLabelingAnnotatedDatasetConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) + if (!$util.isString(message.annotatedDataset)) + return "annotatedDataset: string expected"; + return null; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModelEvaluationSlice}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef GetModelEvaluationSliceCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice} [response] ModelEvaluationSlice - */ + /** + * Creates a MigrateDataLabelingAnnotatedDatasetConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} MigrateDataLabelingAnnotatedDatasetConfig + */ + MigrateDataLabelingAnnotatedDatasetConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig(); + if (object.annotatedDataset != null) + message.annotatedDataset = String(object.annotatedDataset); + return message; + }; - /** - * Calls GetModelEvaluationSlice. - * @function getModelEvaluationSlice - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} request GetModelEvaluationSliceRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.GetModelEvaluationSliceCallback} callback Node-style callback called with the error, if any, and ModelEvaluationSlice - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.getModelEvaluationSlice = function getModelEvaluationSlice(request, callback) { - return this.rpcCall(getModelEvaluationSlice, $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest, $root.google.cloud.aiplatform.v1.ModelEvaluationSlice, request, callback); - }, "name", { value: "GetModelEvaluationSlice" }); + /** + * Creates a plain object from a MigrateDataLabelingAnnotatedDatasetConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig} message MigrateDataLabelingAnnotatedDatasetConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MigrateDataLabelingAnnotatedDatasetConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.annotatedDataset = ""; + if (message.annotatedDataset != null && message.hasOwnProperty("annotatedDataset")) + object.annotatedDataset = message.annotatedDataset; + return object; + }; - /** - * Calls GetModelEvaluationSlice. - * @function getModelEvaluationSlice - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} request GetModelEvaluationSliceRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Converts this MigrateDataLabelingAnnotatedDatasetConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @instance + * @returns {Object.} JSON object + */ + MigrateDataLabelingAnnotatedDatasetConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelEvaluationSlices}. - * @memberof google.cloud.aiplatform.v1.ModelService - * @typedef ListModelEvaluationSlicesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} [response] ListModelEvaluationSlicesResponse - */ + /** + * Gets the default type url for MigrateDataLabelingAnnotatedDatasetConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MigrateDataLabelingAnnotatedDatasetConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceRequest.MigrateDataLabelingDatasetConfig.MigrateDataLabelingAnnotatedDatasetConfig"; + }; - /** - * Calls ListModelEvaluationSlices. - * @function listModelEvaluationSlices - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} request ListModelEvaluationSlicesRequest message or plain object - * @param {google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlicesCallback} callback Node-style callback called with the error, if any, and ListModelEvaluationSlicesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ModelService.prototype.listModelEvaluationSlices = function listModelEvaluationSlices(request, callback) { - return this.rpcCall(listModelEvaluationSlices, $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest, $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse, request, callback); - }, "name", { value: "ListModelEvaluationSlices" }); + return MigrateDataLabelingAnnotatedDatasetConfig; + })(); - /** - * Calls ListModelEvaluationSlices. - * @function listModelEvaluationSlices - * @memberof google.cloud.aiplatform.v1.ModelService - * @instance - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} request ListModelEvaluationSlicesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + return MigrateDataLabelingDatasetConfig; + })(); - return ModelService; + return MigrateResourceRequest; })(); - v1.UploadModelRequest = (function() { + v1.BatchMigrateResourcesResponse = (function() { /** - * Properties of an UploadModelRequest. + * Properties of a BatchMigrateResourcesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IUploadModelRequest - * @property {string|null} [parent] UploadModelRequest parent - * @property {string|null} [parentModel] UploadModelRequest parentModel - * @property {string|null} [modelId] UploadModelRequest modelId - * @property {google.cloud.aiplatform.v1.IModel|null} [model] UploadModelRequest model - * @property {string|null} [serviceAccount] UploadModelRequest serviceAccount + * @interface IBatchMigrateResourcesResponse + * @property {Array.|null} [migrateResourceResponses] BatchMigrateResourcesResponse migrateResourceResponses */ /** - * Constructs a new UploadModelRequest. + * Constructs a new BatchMigrateResourcesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UploadModelRequest. - * @implements IUploadModelRequest + * @classdesc Represents a BatchMigrateResourcesResponse. + * @implements IBatchMigrateResourcesResponse * @constructor - * @param {google.cloud.aiplatform.v1.IUploadModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse=} [properties] Properties to set */ - function UploadModelRequest(properties) { + function BatchMigrateResourcesResponse(properties) { + this.migrateResourceResponses = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -111965,131 +115390,78 @@ } /** - * UploadModelRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.UploadModelRequest - * @instance - */ - UploadModelRequest.prototype.parent = ""; - - /** - * UploadModelRequest parentModel. - * @member {string} parentModel - * @memberof google.cloud.aiplatform.v1.UploadModelRequest - * @instance - */ - UploadModelRequest.prototype.parentModel = ""; - - /** - * UploadModelRequest modelId. - * @member {string} modelId - * @memberof google.cloud.aiplatform.v1.UploadModelRequest - * @instance - */ - UploadModelRequest.prototype.modelId = ""; - - /** - * UploadModelRequest model. - * @member {google.cloud.aiplatform.v1.IModel|null|undefined} model - * @memberof google.cloud.aiplatform.v1.UploadModelRequest - * @instance - */ - UploadModelRequest.prototype.model = null; - - /** - * UploadModelRequest serviceAccount. - * @member {string} serviceAccount - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * BatchMigrateResourcesResponse migrateResourceResponses. + * @member {Array.} migrateResourceResponses + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @instance */ - UploadModelRequest.prototype.serviceAccount = ""; + BatchMigrateResourcesResponse.prototype.migrateResourceResponses = $util.emptyArray; /** - * Creates a new UploadModelRequest instance using the specified properties. + * Creates a new BatchMigrateResourcesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @static - * @param {google.cloud.aiplatform.v1.IUploadModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UploadModelRequest} UploadModelRequest instance + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse instance */ - UploadModelRequest.create = function create(properties) { - return new UploadModelRequest(properties); + BatchMigrateResourcesResponse.create = function create(properties) { + return new BatchMigrateResourcesResponse(properties); }; /** - * Encodes the specified UploadModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelRequest.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @static - * @param {google.cloud.aiplatform.v1.IUploadModelRequest} message UploadModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse} message BatchMigrateResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelRequest.encode = function encode(message, writer) { + BatchMigrateResourcesResponse.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.model != null && Object.hasOwnProperty.call(message, "model")) - $root.google.cloud.aiplatform.v1.Model.encode(message.model, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.parentModel); - if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.modelId); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.serviceAccount); + if (message.migrateResourceResponses != null && message.migrateResourceResponses.length) + for (var i = 0; i < message.migrateResourceResponses.length; ++i) + $root.google.cloud.aiplatform.v1.MigrateResourceResponse.encode(message.migrateResourceResponses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified UploadModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelRequest.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @static - * @param {google.cloud.aiplatform.v1.IUploadModelRequest} message UploadModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesResponse} message BatchMigrateResourcesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchMigrateResourcesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UploadModelRequest message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @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.UploadModelRequest} UploadModelRequest + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelRequest.decode = function decode(reader, length) { + BatchMigrateResourcesResponse.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.UploadModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 4: { - message.parentModel = reader.string(); - break; - } - case 5: { - message.modelId = reader.string(); - break; - } - case 2: { - message.model = $root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32()); - break; - } - case 6: { - message.serviceAccount = reader.string(); + if (!(message.migrateResourceResponses && message.migrateResourceResponses.length)) + message.migrateResourceResponses = []; + message.migrateResourceResponses.push($root.google.cloud.aiplatform.v1.MigrateResourceResponse.decode(reader, reader.uint32())); break; } default: @@ -112101,160 +115473,141 @@ }; /** - * Decodes an UploadModelRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UploadModelRequest} UploadModelRequest + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelRequest.decodeDelimited = function decodeDelimited(reader) { + BatchMigrateResourcesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UploadModelRequest message. + * Verifies a BatchMigrateResourcesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UploadModelRequest.verify = function verify(message) { + BatchMigrateResourcesResponse.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.parentModel != null && message.hasOwnProperty("parentModel")) - if (!$util.isString(message.parentModel)) - return "parentModel: string expected"; - if (message.modelId != null && message.hasOwnProperty("modelId")) - if (!$util.isString(message.modelId)) - return "modelId: string expected"; - if (message.model != null && message.hasOwnProperty("model")) { - var error = $root.google.cloud.aiplatform.v1.Model.verify(message.model); - if (error) - return "model." + error; + if (message.migrateResourceResponses != null && message.hasOwnProperty("migrateResourceResponses")) { + if (!Array.isArray(message.migrateResourceResponses)) + return "migrateResourceResponses: array expected"; + for (var i = 0; i < message.migrateResourceResponses.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.MigrateResourceResponse.verify(message.migrateResourceResponses[i]); + if (error) + return "migrateResourceResponses." + error; + } } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - if (!$util.isString(message.serviceAccount)) - return "serviceAccount: string expected"; return null; }; /** - * Creates an UploadModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UploadModelRequest} UploadModelRequest + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} BatchMigrateResourcesResponse */ - UploadModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UploadModelRequest) + BatchMigrateResourcesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.UploadModelRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.parentModel != null) - message.parentModel = String(object.parentModel); - if (object.modelId != null) - message.modelId = String(object.modelId); - if (object.model != null) { - if (typeof object.model !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UploadModelRequest.model: object expected"); - message.model = $root.google.cloud.aiplatform.v1.Model.fromObject(object.model); + var message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse(); + if (object.migrateResourceResponses) { + if (!Array.isArray(object.migrateResourceResponses)) + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.migrateResourceResponses: array expected"); + message.migrateResourceResponses = []; + for (var i = 0; i < object.migrateResourceResponses.length; ++i) { + if (typeof object.migrateResourceResponses[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesResponse.migrateResourceResponses: object expected"); + message.migrateResourceResponses[i] = $root.google.cloud.aiplatform.v1.MigrateResourceResponse.fromObject(object.migrateResourceResponses[i]); + } } - if (object.serviceAccount != null) - message.serviceAccount = String(object.serviceAccount); return message; }; /** - * Creates a plain object from an UploadModelRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchMigrateResourcesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @static - * @param {google.cloud.aiplatform.v1.UploadModelRequest} message UploadModelRequest + * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesResponse} message BatchMigrateResourcesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UploadModelRequest.toObject = function toObject(message, options) { + BatchMigrateResourcesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.model = null; - object.parentModel = ""; - object.modelId = ""; - object.serviceAccount = ""; + if (options.arrays || options.defaults) + object.migrateResourceResponses = []; + if (message.migrateResourceResponses && message.migrateResourceResponses.length) { + object.migrateResourceResponses = []; + for (var j = 0; j < message.migrateResourceResponses.length; ++j) + object.migrateResourceResponses[j] = $root.google.cloud.aiplatform.v1.MigrateResourceResponse.toObject(message.migrateResourceResponses[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.model != null && message.hasOwnProperty("model")) - object.model = $root.google.cloud.aiplatform.v1.Model.toObject(message.model, options); - if (message.parentModel != null && message.hasOwnProperty("parentModel")) - object.parentModel = message.parentModel; - if (message.modelId != null && message.hasOwnProperty("modelId")) - object.modelId = message.modelId; - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - object.serviceAccount = message.serviceAccount; return object; }; /** - * Converts this UploadModelRequest to JSON. + * Converts this BatchMigrateResourcesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @instance * @returns {Object.} JSON object */ - UploadModelRequest.prototype.toJSON = function toJSON() { + BatchMigrateResourcesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UploadModelRequest + * Gets the default type url for BatchMigrateResourcesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UploadModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchMigrateResourcesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UploadModelRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchMigrateResourcesResponse"; }; - return UploadModelRequest; + return BatchMigrateResourcesResponse; })(); - v1.UploadModelOperationMetadata = (function() { + v1.MigrateResourceResponse = (function() { /** - * Properties of an UploadModelOperationMetadata. + * Properties of a MigrateResourceResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IUploadModelOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UploadModelOperationMetadata genericMetadata + * @interface IMigrateResourceResponse + * @property {string|null} [dataset] MigrateResourceResponse dataset + * @property {string|null} [model] MigrateResourceResponse model + * @property {google.cloud.aiplatform.v1.IMigratableResource|null} [migratableResource] MigrateResourceResponse migratableResource */ /** - * Constructs a new UploadModelOperationMetadata. + * Constructs a new MigrateResourceResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UploadModelOperationMetadata. - * @implements IUploadModelOperationMetadata + * @classdesc Represents a MigrateResourceResponse. + * @implements IMigrateResourceResponse * @constructor - * @param {google.cloud.aiplatform.v1.IUploadModelOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IMigrateResourceResponse=} [properties] Properties to set */ - function UploadModelOperationMetadata(properties) { + function MigrateResourceResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -112262,75 +115615,117 @@ } /** - * UploadModelOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * MigrateResourceResponse dataset. + * @member {string|null|undefined} dataset + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @instance */ - UploadModelOperationMetadata.prototype.genericMetadata = null; + MigrateResourceResponse.prototype.dataset = null; /** - * Creates a new UploadModelOperationMetadata instance using the specified properties. + * MigrateResourceResponse model. + * @member {string|null|undefined} model + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @instance + */ + MigrateResourceResponse.prototype.model = null; + + /** + * MigrateResourceResponse migratableResource. + * @member {google.cloud.aiplatform.v1.IMigratableResource|null|undefined} migratableResource + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @instance + */ + MigrateResourceResponse.prototype.migratableResource = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MigrateResourceResponse migratedResource. + * @member {"dataset"|"model"|undefined} migratedResource + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse + * @instance + */ + Object.defineProperty(MigrateResourceResponse.prototype, "migratedResource", { + get: $util.oneOfGetter($oneOfFields = ["dataset", "model"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MigrateResourceResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @static - * @param {google.cloud.aiplatform.v1.IUploadModelOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UploadModelOperationMetadata} UploadModelOperationMetadata instance + * @param {google.cloud.aiplatform.v1.IMigrateResourceResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MigrateResourceResponse} MigrateResourceResponse instance */ - UploadModelOperationMetadata.create = function create(properties) { - return new UploadModelOperationMetadata(properties); + MigrateResourceResponse.create = function create(properties) { + return new MigrateResourceResponse(properties); }; /** - * Encodes the specified UploadModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelOperationMetadata.verify|verify} messages. + * Encodes the specified MigrateResourceResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @static - * @param {google.cloud.aiplatform.v1.IUploadModelOperationMetadata} message UploadModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMigrateResourceResponse} message MigrateResourceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelOperationMetadata.encode = function encode(message, writer) { + MigrateResourceResponse.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(); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.dataset); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.model); + if (message.migratableResource != null && Object.hasOwnProperty.call(message, "migratableResource")) + $root.google.cloud.aiplatform.v1.MigratableResource.encode(message.migratableResource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified UploadModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelOperationMetadata.verify|verify} messages. + * Encodes the specified MigrateResourceResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MigrateResourceResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @static - * @param {google.cloud.aiplatform.v1.IUploadModelOperationMetadata} message UploadModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMigrateResourceResponse} message MigrateResourceResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + MigrateResourceResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UploadModelOperationMetadata message from the specified reader or buffer. + * Decodes a MigrateResourceResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @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.UploadModelOperationMetadata} UploadModelOperationMetadata + * @returns {google.cloud.aiplatform.v1.MigrateResourceResponse} MigrateResourceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelOperationMetadata.decode = function decode(reader, length) { + MigrateResourceResponse.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.UploadModelOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MigrateResourceResponse(); 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()); + message.dataset = reader.string(); + break; + } + case 2: { + message.model = reader.string(); + break; + } + case 3: { + message.migratableResource = $root.google.cloud.aiplatform.v1.MigratableResource.decode(reader, reader.uint32()); break; } default: @@ -112342,128 +115737,156 @@ }; /** - * Decodes an UploadModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a MigrateResourceResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UploadModelOperationMetadata} UploadModelOperationMetadata + * @returns {google.cloud.aiplatform.v1.MigrateResourceResponse} MigrateResourceResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + MigrateResourceResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UploadModelOperationMetadata message. + * Verifies a MigrateResourceResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UploadModelOperationMetadata.verify = function verify(message) { + MigrateResourceResponse.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); + var properties = {}; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + properties.migratedResource = 1; + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + } + if (message.model != null && message.hasOwnProperty("model")) { + if (properties.migratedResource === 1) + return "migratedResource: multiple values"; + properties.migratedResource = 1; + if (!$util.isString(message.model)) + return "model: string expected"; + } + if (message.migratableResource != null && message.hasOwnProperty("migratableResource")) { + var error = $root.google.cloud.aiplatform.v1.MigratableResource.verify(message.migratableResource); if (error) - return "genericMetadata." + error; + return "migratableResource." + error; } return null; }; /** - * Creates an UploadModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a MigrateResourceResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UploadModelOperationMetadata} UploadModelOperationMetadata + * @returns {google.cloud.aiplatform.v1.MigrateResourceResponse} MigrateResourceResponse */ - UploadModelOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UploadModelOperationMetadata) + MigrateResourceResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MigrateResourceResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.UploadModelOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UploadModelOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1.MigrateResourceResponse(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.model != null) + message.model = String(object.model); + if (object.migratableResource != null) { + if (typeof object.migratableResource !== "object") + throw TypeError(".google.cloud.aiplatform.v1.MigrateResourceResponse.migratableResource: object expected"); + message.migratableResource = $root.google.cloud.aiplatform.v1.MigratableResource.fromObject(object.migratableResource); } return message; }; /** - * Creates a plain object from an UploadModelOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a MigrateResourceResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @static - * @param {google.cloud.aiplatform.v1.UploadModelOperationMetadata} message UploadModelOperationMetadata + * @param {google.cloud.aiplatform.v1.MigrateResourceResponse} message MigrateResourceResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UploadModelOperationMetadata.toObject = function toObject(message, options) { + MigrateResourceResponse.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); + object.migratableResource = null; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + object.dataset = message.dataset; + if (options.oneofs) + object.migratedResource = "dataset"; + } + if (message.model != null && message.hasOwnProperty("model")) { + object.model = message.model; + if (options.oneofs) + object.migratedResource = "model"; + } + if (message.migratableResource != null && message.hasOwnProperty("migratableResource")) + object.migratableResource = $root.google.cloud.aiplatform.v1.MigratableResource.toObject(message.migratableResource, options); return object; }; /** - * Converts this UploadModelOperationMetadata to JSON. + * Converts this MigrateResourceResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @instance * @returns {Object.} JSON object */ - UploadModelOperationMetadata.prototype.toJSON = function toJSON() { + MigrateResourceResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UploadModelOperationMetadata + * Gets the default type url for MigrateResourceResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.MigrateResourceResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UploadModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MigrateResourceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UploadModelOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MigrateResourceResponse"; }; - return UploadModelOperationMetadata; + return MigrateResourceResponse; })(); - v1.UploadModelResponse = (function() { + v1.BatchMigrateResourcesOperationMetadata = (function() { /** - * Properties of an UploadModelResponse. + * Properties of a BatchMigrateResourcesOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IUploadModelResponse - * @property {string|null} [model] UploadModelResponse model - * @property {string|null} [modelVersionId] UploadModelResponse modelVersionId + * @interface IBatchMigrateResourcesOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] BatchMigrateResourcesOperationMetadata genericMetadata + * @property {Array.|null} [partialResults] BatchMigrateResourcesOperationMetadata partialResults */ /** - * Constructs a new UploadModelResponse. + * Constructs a new BatchMigrateResourcesOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UploadModelResponse. - * @implements IUploadModelResponse + * @classdesc Represents a BatchMigrateResourcesOperationMetadata. + * @implements IBatchMigrateResourcesOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IUploadModelResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata=} [properties] Properties to set */ - function UploadModelResponse(properties) { + function BatchMigrateResourcesOperationMetadata(properties) { + this.partialResults = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -112471,89 +115894,92 @@ } /** - * UploadModelResponse model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * BatchMigrateResourcesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @instance */ - UploadModelResponse.prototype.model = ""; + BatchMigrateResourcesOperationMetadata.prototype.genericMetadata = null; /** - * UploadModelResponse modelVersionId. - * @member {string} modelVersionId - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * BatchMigrateResourcesOperationMetadata partialResults. + * @member {Array.} partialResults + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @instance */ - UploadModelResponse.prototype.modelVersionId = ""; + BatchMigrateResourcesOperationMetadata.prototype.partialResults = $util.emptyArray; /** - * Creates a new UploadModelResponse instance using the specified properties. + * Creates a new BatchMigrateResourcesOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IUploadModelResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UploadModelResponse} UploadModelResponse instance + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata instance */ - UploadModelResponse.create = function create(properties) { - return new UploadModelResponse(properties); + BatchMigrateResourcesOperationMetadata.create = function create(properties) { + return new BatchMigrateResourcesOperationMetadata(properties); }; /** - * Encodes the specified UploadModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelResponse.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IUploadModelResponse} message UploadModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelResponse.encode = function encode(message, writer) { + BatchMigrateResourcesOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); - if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersionId); + 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(); + if (message.partialResults != null && message.partialResults.length) + for (var i = 0; i < message.partialResults.length; ++i) + $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.encode(message.partialResults[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UploadModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelResponse.verify|verify} messages. + * Encodes the specified BatchMigrateResourcesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IUploadModelResponse} message UploadModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IBatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UploadModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + BatchMigrateResourcesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UploadModelResponse message from the specified reader or buffer. + * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @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.UploadModelResponse} UploadModelResponse + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelResponse.decode = function decode(reader, length) { + BatchMigrateResourcesOperationMetadata.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.UploadModelResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.model = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } case 2: { - message.modelVersionId = reader.string(); + if (!(message.partialResults && message.partialResults.length)) + message.partialResults = []; + message.partialResults.push($root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.decode(reader, reader.uint32())); break; } default: @@ -112565,339 +115991,479 @@ }; /** - * Decodes an UploadModelResponse message from the specified reader or buffer, length delimited. + * Decodes a BatchMigrateResourcesOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UploadModelResponse} UploadModelResponse + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UploadModelResponse.decodeDelimited = function decodeDelimited(reader) { + BatchMigrateResourcesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UploadModelResponse message. + * Verifies a BatchMigrateResourcesOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UploadModelResponse.verify = function verify(message) { + BatchMigrateResourcesOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - if (!$util.isString(message.modelVersionId)) - return "modelVersionId: string expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + if (message.partialResults != null && message.hasOwnProperty("partialResults")) { + if (!Array.isArray(message.partialResults)) + return "partialResults: array expected"; + for (var i = 0; i < message.partialResults.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify(message.partialResults[i]); + if (error) + return "partialResults." + error; + } + } return null; }; /** - * Creates an UploadModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a BatchMigrateResourcesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UploadModelResponse} UploadModelResponse + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} BatchMigrateResourcesOperationMetadata */ - UploadModelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UploadModelResponse) + BatchMigrateResourcesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.UploadModelResponse(); - if (object.model != null) - message.model = String(object.model); - if (object.modelVersionId != null) - message.modelVersionId = String(object.modelVersionId); + var message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.partialResults) { + if (!Array.isArray(object.partialResults)) + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.partialResults: array expected"); + message.partialResults = []; + for (var i = 0; i < object.partialResults.length; ++i) { + if (typeof object.partialResults[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.partialResults: object expected"); + message.partialResults[i] = $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.fromObject(object.partialResults[i]); + } + } return message; }; /** - * Creates a plain object from an UploadModelResponse message. Also converts values to other types if specified. + * Creates a plain object from a BatchMigrateResourcesOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.UploadModelResponse} message UploadModelResponse + * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata} message BatchMigrateResourcesOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UploadModelResponse.toObject = function toObject(message, options) { + BatchMigrateResourcesOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.model = ""; - object.modelVersionId = ""; + if (options.arrays || options.defaults) + object.partialResults = []; + 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); + if (message.partialResults && message.partialResults.length) { + object.partialResults = []; + for (var j = 0; j < message.partialResults.length; ++j) + object.partialResults[j] = $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.toObject(message.partialResults[j], options); } - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - object.modelVersionId = message.modelVersionId; return object; }; /** - * Converts this UploadModelResponse to JSON. + * Converts this BatchMigrateResourcesOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @instance * @returns {Object.} JSON object */ - UploadModelResponse.prototype.toJSON = function toJSON() { + BatchMigrateResourcesOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UploadModelResponse + * Gets the default type url for BatchMigrateResourcesOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UploadModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchMigrateResourcesOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UploadModelResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata"; }; - return UploadModelResponse; - })(); + BatchMigrateResourcesOperationMetadata.PartialResult = (function() { - v1.GetModelRequest = (function() { + /** + * Properties of a PartialResult. + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @interface IPartialResult + * @property {google.rpc.IStatus|null} [error] PartialResult error + * @property {string|null} [model] PartialResult model + * @property {string|null} [dataset] PartialResult dataset + * @property {google.cloud.aiplatform.v1.IMigrateResourceRequest|null} [request] PartialResult request + */ - /** - * Properties of a GetModelRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IGetModelRequest - * @property {string|null} [name] GetModelRequest name - */ + /** + * Constructs a new PartialResult. + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata + * @classdesc Represents a PartialResult. + * @implements IPartialResult + * @constructor + * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult=} [properties] Properties to set + */ + function PartialResult(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]]; + } - /** - * Constructs a new GetModelRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetModelRequest. - * @implements IGetModelRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IGetModelRequest=} [properties] Properties to set - */ - function GetModelRequest(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]]; - } + /** + * PartialResult error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + */ + PartialResult.prototype.error = null; - /** - * GetModelRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @instance - */ - GetModelRequest.prototype.name = ""; + /** + * PartialResult model. + * @member {string|null|undefined} model + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + */ + PartialResult.prototype.model = null; - /** - * Creates a new GetModelRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetModelRequest} GetModelRequest instance - */ - GetModelRequest.create = function create(properties) { - return new GetModelRequest(properties); - }; + /** + * PartialResult dataset. + * @member {string|null|undefined} dataset + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + */ + PartialResult.prototype.dataset = null; - /** - * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetModelRequest} message GetModelRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetModelRequest.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; - }; + /** + * PartialResult request. + * @member {google.cloud.aiplatform.v1.IMigrateResourceRequest|null|undefined} request + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + */ + PartialResult.prototype.request = null; - /** - * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetModelRequest} message GetModelRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetModelRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Decodes a GetModelRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @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.GetModelRequest} GetModelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetModelRequest.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.GetModelRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * PartialResult result. + * @member {"error"|"model"|"dataset"|undefined} result + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + */ + Object.defineProperty(PartialResult.prototype, "result", { + get: $util.oneOfGetter($oneOfFields = ["error", "model", "dataset"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PartialResult instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult instance + */ + PartialResult.create = function create(properties) { + return new PartialResult(properties); + }; + + /** + * Encodes the specified PartialResult message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult} message PartialResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PartialResult.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.request != null && Object.hasOwnProperty.call(message, "request")) + $root.google.cloud.aiplatform.v1.MigrateResourceRequest.encode(message.request, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.dataset); + return writer; + }; + + /** + * Encodes the specified PartialResult message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.IPartialResult} message PartialResult message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PartialResult.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PartialResult message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @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.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PartialResult.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.BatchMigrateResourcesOperationMetadata.PartialResult(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 3: { + message.model = reader.string(); + break; + } + case 4: { + message.dataset = reader.string(); + break; + } + case 1: { + message.request = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a GetModelRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetModelRequest} GetModelRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetModelRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a PartialResult message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PartialResult.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a GetModelRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetModelRequest.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; - }; + /** + * Verifies a PartialResult message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PartialResult.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.error != null && message.hasOwnProperty("error")) { + properties.result = 1; + { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + } + if (message.model != null && message.hasOwnProperty("model")) { + if (properties.result === 1) + return "result: multiple values"; + properties.result = 1; + if (!$util.isString(message.model)) + return "model: string expected"; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) { + if (properties.result === 1) + return "result: multiple values"; + properties.result = 1; + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + } + if (message.request != null && message.hasOwnProperty("request")) { + var error = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.verify(message.request); + if (error) + return "request." + error; + } + return null; + }; - /** - * Creates a GetModelRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetModelRequest} GetModelRequest - */ - GetModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetModelRequest) + /** + * Creates a PartialResult message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} PartialResult + */ + PartialResult.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult) + return object; + var message = new $root.google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult(); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.model != null) + message.model = String(object.model); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.request != null) { + if (typeof object.request !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult.request: object expected"); + message.request = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.fromObject(object.request); + } + return message; + }; + + /** + * Creates a plain object from a PartialResult message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult} message PartialResult + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PartialResult.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.request = null; + if (message.request != null && message.hasOwnProperty("request")) + object.request = $root.google.cloud.aiplatform.v1.MigrateResourceRequest.toObject(message.request, options); + if (message.error != null && message.hasOwnProperty("error")) { + object.error = $root.google.rpc.Status.toObject(message.error, options); + if (options.oneofs) + object.result = "error"; + } + if (message.model != null && message.hasOwnProperty("model")) { + object.model = message.model; + if (options.oneofs) + object.result = "model"; + } + if (message.dataset != null && message.hasOwnProperty("dataset")) { + object.dataset = message.dataset; + if (options.oneofs) + object.result = "dataset"; + } return object; - var message = new $root.google.cloud.aiplatform.v1.GetModelRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + }; - /** - * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @static - * @param {google.cloud.aiplatform.v1.GetModelRequest} message GetModelRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetModelRequest.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 PartialResult to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @instance + * @returns {Object.} JSON object + */ + PartialResult.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this GetModelRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @instance - * @returns {Object.} JSON object - */ - GetModelRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for PartialResult + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PartialResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchMigrateResourcesOperationMetadata.PartialResult"; + }; - /** - * Gets the default type url for GetModelRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetModelRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - GetModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelRequest"; - }; + return PartialResult; + })(); - return GetModelRequest; + return BatchMigrateResourcesOperationMetadata; })(); - v1.ListModelsRequest = (function() { + v1.ModelEvaluation = (function() { /** - * Properties of a ListModelsRequest. + * Properties of a ModelEvaluation. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelsRequest - * @property {string|null} [parent] ListModelsRequest parent - * @property {string|null} [filter] ListModelsRequest filter - * @property {number|null} [pageSize] ListModelsRequest pageSize - * @property {string|null} [pageToken] ListModelsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelsRequest readMask - * @property {string|null} [orderBy] ListModelsRequest orderBy + * @interface IModelEvaluation + * @property {string|null} [name] ModelEvaluation name + * @property {string|null} [displayName] ModelEvaluation displayName + * @property {string|null} [metricsSchemaUri] ModelEvaluation metricsSchemaUri + * @property {google.protobuf.IValue|null} [metrics] ModelEvaluation metrics + * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluation createTime + * @property {Array.|null} [sliceDimensions] ModelEvaluation sliceDimensions + * @property {string|null} [dataItemSchemaUri] ModelEvaluation dataItemSchemaUri + * @property {string|null} [annotationSchemaUri] ModelEvaluation annotationSchemaUri + * @property {google.cloud.aiplatform.v1.IModelExplanation|null} [modelExplanation] ModelEvaluation modelExplanation + * @property {Array.|null} [explanationSpecs] ModelEvaluation explanationSpecs + * @property {google.protobuf.IValue|null} [metadata] ModelEvaluation metadata */ /** - * Constructs a new ListModelsRequest. + * Constructs a new ModelEvaluation. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelsRequest. - * @implements IListModelsRequest + * @classdesc Represents a ModelEvaluation. + * @implements IModelEvaluation * @constructor - * @param {google.cloud.aiplatform.v1.IListModelsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IModelEvaluation=} [properties] Properties to set */ - function ListModelsRequest(properties) { + function ModelEvaluation(properties) { + this.sliceDimensions = []; + this.explanationSpecs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -112905,145 +116471,221 @@ } /** - * ListModelsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * ModelEvaluation name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @instance */ - ListModelsRequest.prototype.parent = ""; + ModelEvaluation.prototype.name = ""; /** - * ListModelsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * ModelEvaluation displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @instance */ - ListModelsRequest.prototype.filter = ""; + ModelEvaluation.prototype.displayName = ""; /** - * ListModelsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * ModelEvaluation metricsSchemaUri. + * @member {string} metricsSchemaUri + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @instance */ - ListModelsRequest.prototype.pageSize = 0; + ModelEvaluation.prototype.metricsSchemaUri = ""; /** - * ListModelsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * ModelEvaluation metrics. + * @member {google.protobuf.IValue|null|undefined} metrics + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @instance */ - ListModelsRequest.prototype.pageToken = ""; + ModelEvaluation.prototype.metrics = null; /** - * ListModelsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * ModelEvaluation createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @instance */ - ListModelsRequest.prototype.readMask = null; + ModelEvaluation.prototype.createTime = null; /** - * ListModelsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * ModelEvaluation sliceDimensions. + * @member {Array.} sliceDimensions + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @instance */ - ListModelsRequest.prototype.orderBy = ""; + ModelEvaluation.prototype.sliceDimensions = $util.emptyArray; /** - * Creates a new ListModelsRequest instance using the specified properties. + * ModelEvaluation dataItemSchemaUri. + * @member {string} dataItemSchemaUri + * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @instance + */ + ModelEvaluation.prototype.dataItemSchemaUri = ""; + + /** + * ModelEvaluation annotationSchemaUri. + * @member {string} annotationSchemaUri + * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @instance + */ + ModelEvaluation.prototype.annotationSchemaUri = ""; + + /** + * ModelEvaluation modelExplanation. + * @member {google.cloud.aiplatform.v1.IModelExplanation|null|undefined} modelExplanation + * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @instance + */ + ModelEvaluation.prototype.modelExplanation = null; + + /** + * ModelEvaluation explanationSpecs. + * @member {Array.} explanationSpecs + * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @instance + */ + ModelEvaluation.prototype.explanationSpecs = $util.emptyArray; + + /** + * ModelEvaluation metadata. + * @member {google.protobuf.IValue|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @instance + */ + ModelEvaluation.prototype.metadata = null; + + /** + * Creates a new ModelEvaluation instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @static - * @param {google.cloud.aiplatform.v1.IListModelsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelsRequest} ListModelsRequest instance + * @param {google.cloud.aiplatform.v1.IModelEvaluation=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelEvaluation} ModelEvaluation instance */ - ListModelsRequest.create = function create(properties) { - return new ListModelsRequest(properties); + ModelEvaluation.create = function create(properties) { + return new ModelEvaluation(properties); }; /** - * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsRequest.verify|verify} messages. + * Encodes the specified ModelEvaluation message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @static - * @param {google.cloud.aiplatform.v1.IListModelsRequest} message ListModelsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelEvaluation} message ModelEvaluation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelsRequest.encode = function encode(message, writer) { + ModelEvaluation.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.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.metricsSchemaUri != null && Object.hasOwnProperty.call(message, "metricsSchemaUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.metricsSchemaUri); + if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) + $root.google.protobuf.Value.encode(message.metrics, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.sliceDimensions != null && message.sliceDimensions.length) + for (var i = 0; i < message.sliceDimensions.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.sliceDimensions[i]); + if (message.dataItemSchemaUri != null && Object.hasOwnProperty.call(message, "dataItemSchemaUri")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.dataItemSchemaUri); + if (message.annotationSchemaUri != null && Object.hasOwnProperty.call(message, "annotationSchemaUri")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.annotationSchemaUri); + if (message.modelExplanation != null && Object.hasOwnProperty.call(message, "modelExplanation")) + $root.google.cloud.aiplatform.v1.ModelExplanation.encode(message.modelExplanation, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.explanationSpecs != null && message.explanationSpecs.length) + for (var i = 0; i < message.explanationSpecs.length; ++i) + $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.encode(message.explanationSpecs[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.displayName); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsRequest.verify|verify} messages. + * Encodes the specified ModelEvaluation message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @static - * @param {google.cloud.aiplatform.v1.IListModelsRequest} message ListModelsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelEvaluation} message ModelEvaluation message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ModelEvaluation.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelsRequest message from the specified reader or buffer. + * Decodes a ModelEvaluation message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @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.ListModelsRequest} ListModelsRequest + * @returns {google.cloud.aiplatform.v1.ModelEvaluation} ModelEvaluation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelsRequest.decode = function decode(reader, length) { + ModelEvaluation.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.ListModelsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelEvaluation(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); + break; + } + case 10: { + message.displayName = reader.string(); break; } case 2: { - message.filter = reader.string(); + message.metricsSchemaUri = reader.string(); break; } case 3: { - message.pageSize = reader.int32(); + message.metrics = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } case 4: { - message.pageToken = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + if (!(message.sliceDimensions && message.sliceDimensions.length)) + message.sliceDimensions = []; + message.sliceDimensions.push(reader.string()); break; } case 6: { - message.orderBy = reader.string(); + message.dataItemSchemaUri = reader.string(); + break; + } + case 7: { + message.annotationSchemaUri = reader.string(); + break; + } + case 8: { + message.modelExplanation = $root.google.cloud.aiplatform.v1.ModelExplanation.decode(reader, reader.uint32()); + break; + } + case 9: { + if (!(message.explanationSpecs && message.explanationSpecs.length)) + message.explanationSpecs = []; + message.explanationSpecs.push($root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.decode(reader, reader.uint32())); + break; + } + case 11: { + message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } default: @@ -113055,421 +116697,490 @@ }; /** - * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelEvaluation message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelsRequest} ListModelsRequest + * @returns {google.cloud.aiplatform.v1.ModelEvaluation} ModelEvaluation * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelsRequest.decodeDelimited = function decodeDelimited(reader) { + ModelEvaluation.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelsRequest message. + * Verifies a ModelEvaluation message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelsRequest.verify = function verify(message) { + ModelEvaluation.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.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) + if (!$util.isString(message.metricsSchemaUri)) + return "metricsSchemaUri: string expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + var error = $root.google.protobuf.Value.verify(message.metrics); if (error) - return "readMask." + error; + return "metrics." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.sliceDimensions != null && message.hasOwnProperty("sliceDimensions")) { + if (!Array.isArray(message.sliceDimensions)) + return "sliceDimensions: array expected"; + for (var i = 0; i < message.sliceDimensions.length; ++i) + if (!$util.isString(message.sliceDimensions[i])) + return "sliceDimensions: string[] expected"; + } + if (message.dataItemSchemaUri != null && message.hasOwnProperty("dataItemSchemaUri")) + if (!$util.isString(message.dataItemSchemaUri)) + return "dataItemSchemaUri: string expected"; + if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) + if (!$util.isString(message.annotationSchemaUri)) + return "annotationSchemaUri: string expected"; + if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) { + var error = $root.google.cloud.aiplatform.v1.ModelExplanation.verify(message.modelExplanation); + if (error) + return "modelExplanation." + error; + } + if (message.explanationSpecs != null && message.hasOwnProperty("explanationSpecs")) { + if (!Array.isArray(message.explanationSpecs)) + return "explanationSpecs: array expected"; + for (var i = 0; i < message.explanationSpecs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify(message.explanationSpecs[i]); + if (error) + return "explanationSpecs." + error; + } + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Value.verify(message.metadata); + if (error) + return "metadata." + error; } - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; return null; }; /** - * Creates a ListModelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelEvaluation message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelsRequest} ListModelsRequest + * @returns {google.cloud.aiplatform.v1.ModelEvaluation} ModelEvaluation */ - ListModelsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelsRequest) + ModelEvaluation.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluation) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1.ModelEvaluation(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.metricsSchemaUri != null) + message.metricsSchemaUri = String(object.metricsSchemaUri); + if (object.metrics != null) { + if (typeof object.metrics !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.metrics: object expected"); + message.metrics = $root.google.protobuf.Value.fromObject(object.metrics); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.sliceDimensions) { + if (!Array.isArray(object.sliceDimensions)) + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.sliceDimensions: array expected"); + message.sliceDimensions = []; + for (var i = 0; i < object.sliceDimensions.length; ++i) + message.sliceDimensions[i] = String(object.sliceDimensions[i]); + } + if (object.dataItemSchemaUri != null) + message.dataItemSchemaUri = String(object.dataItemSchemaUri); + if (object.annotationSchemaUri != null) + message.annotationSchemaUri = String(object.annotationSchemaUri); + if (object.modelExplanation != null) { + if (typeof object.modelExplanation !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.modelExplanation: object expected"); + message.modelExplanation = $root.google.cloud.aiplatform.v1.ModelExplanation.fromObject(object.modelExplanation); + } + if (object.explanationSpecs) { + if (!Array.isArray(object.explanationSpecs)) + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.explanationSpecs: array expected"); + message.explanationSpecs = []; + for (var i = 0; i < object.explanationSpecs.length; ++i) { + if (typeof object.explanationSpecs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.explanationSpecs: object expected"); + message.explanationSpecs[i] = $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.fromObject(object.explanationSpecs[i]); + } + } + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.metadata: object expected"); + message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); } - if (object.orderBy != null) - message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ModelEvaluation message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @static - * @param {google.cloud.aiplatform.v1.ListModelsRequest} message ListModelsRequest + * @param {google.cloud.aiplatform.v1.ModelEvaluation} message ModelEvaluation * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelsRequest.toObject = function toObject(message, options) { + ModelEvaluation.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.sliceDimensions = []; + object.explanationSpecs = []; + } if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - object.orderBy = ""; + object.name = ""; + object.metricsSchemaUri = ""; + object.metrics = null; + object.createTime = null; + object.dataItemSchemaUri = ""; + object.annotationSchemaUri = ""; + object.modelExplanation = null; + object.displayName = ""; + object.metadata = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) + object.metricsSchemaUri = message.metricsSchemaUri; + if (message.metrics != null && message.hasOwnProperty("metrics")) + 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.sliceDimensions && message.sliceDimensions.length) { + object.sliceDimensions = []; + for (var j = 0; j < message.sliceDimensions.length; ++j) + object.sliceDimensions[j] = message.sliceDimensions[j]; + } + if (message.dataItemSchemaUri != null && message.hasOwnProperty("dataItemSchemaUri")) + object.dataItemSchemaUri = message.dataItemSchemaUri; + if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) + object.annotationSchemaUri = message.annotationSchemaUri; + if (message.modelExplanation != null && message.hasOwnProperty("modelExplanation")) + object.modelExplanation = $root.google.cloud.aiplatform.v1.ModelExplanation.toObject(message.modelExplanation, options); + if (message.explanationSpecs && message.explanationSpecs.length) { + object.explanationSpecs = []; + for (var j = 0; j < message.explanationSpecs.length; ++j) + object.explanationSpecs[j] = $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.toObject(message.explanationSpecs[j], options); + } + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); return object; }; /** - * Converts this ListModelsRequest to JSON. + * Converts this ModelEvaluation to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @instance * @returns {Object.} JSON object */ - ListModelsRequest.prototype.toJSON = function toJSON() { + ModelEvaluation.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelsRequest + * Gets the default type url for ModelEvaluation * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluation * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelEvaluation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluation"; }; - return ListModelsRequest; - })(); - - v1.ListModelsResponse = (function() { + ModelEvaluation.ModelEvaluationExplanationSpec = (function() { - /** - * Properties of a ListModelsResponse. - * @memberof google.cloud.aiplatform.v1 - * @interface IListModelsResponse - * @property {Array.|null} [models] ListModelsResponse models - * @property {string|null} [nextPageToken] ListModelsResponse nextPageToken - */ + /** + * Properties of a ModelEvaluationExplanationSpec. + * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @interface IModelEvaluationExplanationSpec + * @property {string|null} [explanationType] ModelEvaluationExplanationSpec explanationType + * @property {google.cloud.aiplatform.v1.IExplanationSpec|null} [explanationSpec] ModelEvaluationExplanationSpec explanationSpec + */ - /** - * Constructs a new ListModelsResponse. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelsResponse. - * @implements IListModelsResponse - * @constructor - * @param {google.cloud.aiplatform.v1.IListModelsResponse=} [properties] Properties to set - */ - function ListModelsResponse(properties) { - this.models = []; - 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]]; - } + /** + * Constructs a new ModelEvaluationExplanationSpec. + * @memberof google.cloud.aiplatform.v1.ModelEvaluation + * @classdesc Represents a ModelEvaluationExplanationSpec. + * @implements IModelEvaluationExplanationSpec + * @constructor + * @param {google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec=} [properties] Properties to set + */ + function ModelEvaluationExplanationSpec(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]]; + } - /** - * ListModelsResponse models. - * @member {Array.} models - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @instance - */ - ListModelsResponse.prototype.models = $util.emptyArray; + /** + * ModelEvaluationExplanationSpec explanationType. + * @member {string} explanationType + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @instance + */ + ModelEvaluationExplanationSpec.prototype.explanationType = ""; - /** - * ListModelsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @instance - */ - ListModelsResponse.prototype.nextPageToken = ""; + /** + * ModelEvaluationExplanationSpec explanationSpec. + * @member {google.cloud.aiplatform.v1.IExplanationSpec|null|undefined} explanationSpec + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @instance + */ + ModelEvaluationExplanationSpec.prototype.explanationSpec = null; - /** - * Creates a new ListModelsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListModelsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelsResponse} ListModelsResponse instance - */ - ListModelsResponse.create = function create(properties) { - return new ListModelsResponse(properties); - }; + /** + * Creates a new ModelEvaluationExplanationSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec instance + */ + ModelEvaluationExplanationSpec.create = function create(properties) { + return new ModelEvaluationExplanationSpec(properties); + }; - /** - * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListModelsResponse} message ListModelsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListModelsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.models != null && message.models.length) - for (var i = 0; i < message.models.length; ++i) - $root.google.cloud.aiplatform.v1.Model.encode(message.models[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; + /** + * Encodes the specified ModelEvaluationExplanationSpec message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelEvaluationExplanationSpec.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.explanationSpec != null && Object.hasOwnProperty.call(message, "explanationSpec")) + $root.google.cloud.aiplatform.v1.ExplanationSpec.encode(message.explanationSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListModelsResponse} message ListModelsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListModelsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ModelEvaluationExplanationSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluation.IModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelEvaluationExplanationSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ListModelsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @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.ListModelsResponse} ListModelsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListModelsResponse.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.ListModelsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.models && message.models.length)) - message.models = []; - message.models.push($root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + /** + * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @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.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelEvaluationExplanationSpec.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.ModelEvaluation.ModelEvaluationExplanationSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.explanationType = reader.string(); + break; + } + case 2: { + message.explanationSpec = $root.google.cloud.aiplatform.v1.ExplanationSpec.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelsResponse} ListModelsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListModelsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ModelEvaluationExplanationSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelEvaluationExplanationSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ListModelsResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListModelsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.models != null && message.hasOwnProperty("models")) { - if (!Array.isArray(message.models)) - return "models: array expected"; - for (var i = 0; i < message.models.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Model.verify(message.models[i]); + /** + * Verifies a ModelEvaluationExplanationSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelEvaluationExplanationSpec.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.explanationSpec != null && message.hasOwnProperty("explanationSpec")) { + var error = $root.google.cloud.aiplatform.v1.ExplanationSpec.verify(message.explanationSpec); if (error) - return "models." + error; + return "explanationSpec." + error; } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + return null; + }; - /** - * Creates a ListModelsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelsResponse} ListModelsResponse - */ - ListModelsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelsResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelsResponse(); - if (object.models) { - if (!Array.isArray(object.models)) - throw TypeError(".google.cloud.aiplatform.v1.ListModelsResponse.models: array expected"); - message.models = []; - for (var i = 0; i < object.models.length; ++i) { - if (typeof object.models[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelsResponse.models: object expected"); - message.models[i] = $root.google.cloud.aiplatform.v1.Model.fromObject(object.models[i]); + /** + * Creates a ModelEvaluationExplanationSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} ModelEvaluationExplanationSpec + */ + ModelEvaluationExplanationSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec(); + if (object.explanationType != null) + message.explanationType = String(object.explanationType); + if (object.explanationSpec != null) { + if (typeof object.explanationSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec.explanationSpec: object expected"); + message.explanationSpec = $root.google.cloud.aiplatform.v1.ExplanationSpec.fromObject(object.explanationSpec); } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; + return message; + }; - /** - * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @static - * @param {google.cloud.aiplatform.v1.ListModelsResponse} message ListModelsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListModelsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.models = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.models && message.models.length) { - object.models = []; - for (var j = 0; j < message.models.length; ++j) - object.models[j] = $root.google.cloud.aiplatform.v1.Model.toObject(message.models[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + /** + * Creates a plain object from a ModelEvaluationExplanationSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec} message ModelEvaluationExplanationSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelEvaluationExplanationSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.explanationType = ""; + object.explanationSpec = null; + } + if (message.explanationType != null && message.hasOwnProperty("explanationType")) + object.explanationType = message.explanationType; + if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) + object.explanationSpec = $root.google.cloud.aiplatform.v1.ExplanationSpec.toObject(message.explanationSpec, options); + return object; + }; - /** - * Converts this ListModelsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @instance - * @returns {Object.} JSON object - */ - ListModelsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this ModelEvaluationExplanationSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @instance + * @returns {Object.} JSON object + */ + ModelEvaluationExplanationSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for ListModelsResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ListModelsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelsResponse"; - }; + /** + * Gets the default type url for ModelEvaluationExplanationSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ModelEvaluationExplanationSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluation.ModelEvaluationExplanationSpec"; + }; - return ListModelsResponse; + return ModelEvaluationExplanationSpec; + })(); + + return ModelEvaluation; })(); - v1.ListModelVersionsRequest = (function() { + v1.ModelEvaluationSlice = (function() { /** - * Properties of a ListModelVersionsRequest. + * Properties of a ModelEvaluationSlice. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelVersionsRequest - * @property {string|null} [name] ListModelVersionsRequest name - * @property {number|null} [pageSize] ListModelVersionsRequest pageSize - * @property {string|null} [pageToken] ListModelVersionsRequest pageToken - * @property {string|null} [filter] ListModelVersionsRequest filter - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelVersionsRequest readMask - * @property {string|null} [orderBy] ListModelVersionsRequest orderBy + * @interface IModelEvaluationSlice + * @property {string|null} [name] ModelEvaluationSlice name + * @property {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice|null} [slice] ModelEvaluationSlice slice + * @property {string|null} [metricsSchemaUri] ModelEvaluationSlice metricsSchemaUri + * @property {google.protobuf.IValue|null} [metrics] ModelEvaluationSlice metrics + * @property {google.protobuf.ITimestamp|null} [createTime] ModelEvaluationSlice createTime */ /** - * Constructs a new ListModelVersionsRequest. + * Constructs a new ModelEvaluationSlice. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelVersionsRequest. - * @implements IListModelVersionsRequest + * @classdesc Represents a ModelEvaluationSlice. + * @implements IModelEvaluationSlice * @constructor - * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IModelEvaluationSlice=} [properties] Properties to set */ - function ListModelVersionsRequest(properties) { + function ModelEvaluationSlice(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -113477,120 +117188,110 @@ } /** - * ListModelVersionsRequest name. + * ModelEvaluationSlice name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest - * @instance - */ - ListModelVersionsRequest.prototype.name = ""; - - /** - * ListModelVersionsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @instance */ - ListModelVersionsRequest.prototype.pageSize = 0; + ModelEvaluationSlice.prototype.name = ""; /** - * ListModelVersionsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * ModelEvaluationSlice slice. + * @member {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice|null|undefined} slice + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @instance */ - ListModelVersionsRequest.prototype.pageToken = ""; + ModelEvaluationSlice.prototype.slice = null; /** - * ListModelVersionsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * ModelEvaluationSlice metricsSchemaUri. + * @member {string} metricsSchemaUri + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @instance */ - ListModelVersionsRequest.prototype.filter = ""; + ModelEvaluationSlice.prototype.metricsSchemaUri = ""; /** - * ListModelVersionsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * ModelEvaluationSlice metrics. + * @member {google.protobuf.IValue|null|undefined} metrics + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @instance */ - ListModelVersionsRequest.prototype.readMask = null; + ModelEvaluationSlice.prototype.metrics = null; /** - * ListModelVersionsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * ModelEvaluationSlice createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @instance */ - ListModelVersionsRequest.prototype.orderBy = ""; + ModelEvaluationSlice.prototype.createTime = null; /** - * Creates a new ListModelVersionsRequest instance using the specified properties. + * Creates a new ModelEvaluationSlice instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @static - * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest instance + * @param {google.cloud.aiplatform.v1.IModelEvaluationSlice=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice} ModelEvaluationSlice instance */ - ListModelVersionsRequest.create = function create(properties) { - return new ListModelVersionsRequest(properties); + ModelEvaluationSlice.create = function create(properties) { + return new ModelEvaluationSlice(properties); }; /** - * Encodes the specified ListModelVersionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. + * Encodes the specified ModelEvaluationSlice message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @static - * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} message ListModelVersionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelEvaluationSlice} message ModelEvaluationSlice message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelVersionsRequest.encode = function encode(message, writer) { + ModelEvaluationSlice.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); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + if (message.slice != null && Object.hasOwnProperty.call(message, "slice")) + $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.encode(message.slice, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.metricsSchemaUri != null && Object.hasOwnProperty.call(message, "metricsSchemaUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.metricsSchemaUri); + if (message.metrics != null && Object.hasOwnProperty.call(message, "metrics")) + $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(); return writer; }; /** - * Encodes the specified ListModelVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. + * Encodes the specified ModelEvaluationSlice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @static - * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} message ListModelVersionsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IModelEvaluationSlice} message ModelEvaluationSlice message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ModelEvaluationSlice.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelVersionsRequest message from the specified reader or buffer. + * Decodes a ModelEvaluationSlice message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @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.ListModelVersionsRequest} ListModelVersionsRequest + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice} ModelEvaluationSlice * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelVersionsRequest.decode = function decode(reader, length) { + ModelEvaluationSlice.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.ListModelVersionsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -113599,23 +117300,19 @@ break; } case 2: { - message.pageSize = reader.int32(); + message.slice = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.decode(reader, reader.uint32()); break; } case 3: { - message.pageToken = reader.string(); + message.metricsSchemaUri = reader.string(); break; } case 4: { - message.filter = reader.string(); + message.metrics = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; } case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - case 6: { - message.orderBy = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -113627,417 +117324,964 @@ }; /** - * Decodes a ListModelVersionsRequest message from the specified reader or buffer, length delimited. + * Decodes a ModelEvaluationSlice message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice} ModelEvaluationSlice * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelVersionsRequest.decodeDelimited = function decodeDelimited(reader) { + ModelEvaluationSlice.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelVersionsRequest message. + * Verifies a ModelEvaluationSlice message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelVersionsRequest.verify = function verify(message) { + ModelEvaluationSlice.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"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.slice != null && message.hasOwnProperty("slice")) { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify(message.slice); if (error) - return "readMask." + error; + return "slice." + error; + } + if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) + if (!$util.isString(message.metricsSchemaUri)) + return "metricsSchemaUri: string expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + var error = $root.google.protobuf.Value.verify(message.metrics); + if (error) + return "metrics." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; } - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; return null; }; /** - * Creates a ListModelVersionsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ModelEvaluationSlice message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice} ModelEvaluationSlice */ - ListModelVersionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelVersionsRequest) + ModelEvaluationSlice.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluationSlice) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelVersionsRequest(); + var message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice(); if (object.name != null) message.name = String(object.name); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.filter != null) - message.filter = String(object.filter); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelVersionsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + if (object.slice != null) { + if (typeof object.slice !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.slice: object expected"); + message.slice = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.fromObject(object.slice); + } + if (object.metricsSchemaUri != null) + message.metricsSchemaUri = String(object.metricsSchemaUri); + if (object.metrics != null) { + if (typeof object.metrics !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.metrics: object expected"); + message.metrics = $root.google.protobuf.Value.fromObject(object.metrics); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelEvaluationSlice.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.orderBy != null) - message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ListModelVersionsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ModelEvaluationSlice message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @static - * @param {google.cloud.aiplatform.v1.ListModelVersionsRequest} message ListModelVersionsRequest + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice} message ModelEvaluationSlice * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelVersionsRequest.toObject = function toObject(message, options) { + ModelEvaluationSlice.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.name = ""; - object.pageSize = 0; - object.pageToken = ""; - object.filter = ""; - object.readMask = null; - object.orderBy = ""; + object.slice = null; + object.metricsSchemaUri = ""; + object.metrics = null; + object.createTime = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (message.slice != null && message.hasOwnProperty("slice")) + object.slice = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.toObject(message.slice, options); + if (message.metricsSchemaUri != null && message.hasOwnProperty("metricsSchemaUri")) + object.metricsSchemaUri = message.metricsSchemaUri; + if (message.metrics != null && message.hasOwnProperty("metrics")) + 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); return object; }; /** - * Converts this ListModelVersionsRequest to JSON. + * Converts this ModelEvaluationSlice to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @instance * @returns {Object.} JSON object */ - ListModelVersionsRequest.prototype.toJSON = function toJSON() { + ModelEvaluationSlice.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelVersionsRequest + * Gets the default type url for ModelEvaluationSlice * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelVersionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ModelEvaluationSlice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelVersionsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluationSlice"; }; - return ListModelVersionsRequest; - })(); - - v1.ListModelVersionsResponse = (function() { + ModelEvaluationSlice.Slice = (function() { - /** - * Properties of a ListModelVersionsResponse. - * @memberof google.cloud.aiplatform.v1 - * @interface IListModelVersionsResponse - * @property {Array.|null} [models] ListModelVersionsResponse models - * @property {string|null} [nextPageToken] ListModelVersionsResponse nextPageToken - */ + /** + * Properties of a Slice. + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice + * @interface ISlice + * @property {string|null} [dimension] Slice dimension + * @property {string|null} [value] Slice value + */ - /** - * Constructs a new ListModelVersionsResponse. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelVersionsResponse. - * @implements IListModelVersionsResponse - * @constructor - * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse=} [properties] Properties to set - */ - function ListModelVersionsResponse(properties) { - this.models = []; - 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]]; - } + /** + * Constructs a new Slice. + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice + * @classdesc Represents a Slice. + * @implements ISlice + * @constructor + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice=} [properties] Properties to set + */ + function Slice(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]]; + } - /** - * ListModelVersionsResponse models. - * @member {Array.} models - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @instance - */ - ListModelVersionsResponse.prototype.models = $util.emptyArray; + /** + * Slice dimension. + * @member {string} dimension + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @instance + */ + Slice.prototype.dimension = ""; - /** - * ListModelVersionsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @instance - */ - ListModelVersionsResponse.prototype.nextPageToken = ""; + /** + * Slice value. + * @member {string} value + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @instance + */ + Slice.prototype.value = ""; - /** - * Creates a new ListModelVersionsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse instance - */ - ListModelVersionsResponse.create = function create(properties) { - return new ListModelVersionsResponse(properties); - }; + /** + * Creates a new Slice instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} Slice instance + */ + Slice.create = function create(properties) { + return new Slice(properties); + }; - /** - * Encodes the specified ListModelVersionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse} message ListModelVersionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListModelVersionsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.models != null && message.models.length) - for (var i = 0; i < message.models.length; ++i) - $root.google.cloud.aiplatform.v1.Model.encode(message.models[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; + /** + * Encodes the specified Slice message. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice} message Slice message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Slice.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dimension != null && Object.hasOwnProperty.call(message, "dimension")) + 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); + return writer; + }; - /** - * Encodes the specified ListModelVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @static - * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse} message ListModelVersionsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListModelVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Slice message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.ISlice} message Slice message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Slice.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ListModelVersionsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @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.ListModelVersionsResponse} ListModelVersionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListModelVersionsResponse.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.ListModelVersionsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.models && message.models.length)) - message.models = []; - message.models.push($root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + /** + * Decodes a Slice message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @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} Slice + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Slice.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(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.dimension = reader.string(); + break; + } + case 2: { + message.value = reader.string(); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a ListModelVersionsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListModelVersionsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a Slice message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} Slice + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Slice.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a ListModelVersionsResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListModelVersionsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.models != null && message.hasOwnProperty("models")) { - if (!Array.isArray(message.models)) - return "models: array expected"; - for (var i = 0; i < message.models.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Model.verify(message.models[i]); - if (error) - return "models." + error; + /** + * Verifies a Slice message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Slice.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.dimension != null && message.hasOwnProperty("dimension")) + if (!$util.isString(message.dimension)) + return "dimension: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; + return null; + }; + + /** + * Creates a Slice message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} Slice + */ + Slice.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice) + return object; + var message = new $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice(); + if (object.dimension != null) + message.dimension = String(object.dimension); + if (object.value != null) + message.value = String(object.value); + return message; + }; + + /** + * Creates a plain object from a Slice message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @static + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice} message Slice + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Slice.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.dimension = ""; + object.value = ""; } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; + if (message.dimension != null && message.hasOwnProperty("dimension")) + object.dimension = message.dimension; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; + + /** + * Converts this Slice to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @instance + * @returns {Object.} JSON object + */ + Slice.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Slice + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Slice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ModelEvaluationSlice.Slice"; + }; + + return Slice; + })(); + + return ModelEvaluationSlice; + })(); + + v1.ModelService = (function() { /** - * Creates a ListModelVersionsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse + * Constructs a new ModelService service. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ModelService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - ListModelVersionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelVersionsResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelVersionsResponse(); - if (object.models) { - if (!Array.isArray(object.models)) - throw TypeError(".google.cloud.aiplatform.v1.ListModelVersionsResponse.models: array expected"); - message.models = []; - for (var i = 0; i < object.models.length; ++i) { - if (typeof object.models[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelVersionsResponse.models: object expected"); - message.models[i] = $root.google.cloud.aiplatform.v1.Model.fromObject(object.models[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; + function ModelService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (ModelService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ModelService; /** - * Creates a plain object from a ListModelVersionsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse + * Creates new ModelService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.ModelService * @static - * @param {google.cloud.aiplatform.v1.ListModelVersionsResponse} message ListModelVersionsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {ModelService} RPC service. Useful where requests and/or responses are streamed. */ - ListModelVersionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.models = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.models && message.models.length) { - object.models = []; - for (var j = 0; j < message.models.length; ++j) - object.models[j] = $root.google.cloud.aiplatform.v1.Model.toObject(message.models[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; + ModelService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Converts this ListModelVersionsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|uploadModel}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef UploadModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UploadModel. + * @function uploadModel + * @memberof google.cloud.aiplatform.v1.ModelService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1.IUploadModelRequest} request UploadModelRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.UploadModelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListModelVersionsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(ModelService.prototype.uploadModel = function uploadModel(request, callback) { + return this.rpcCall(uploadModel, $root.google.cloud.aiplatform.v1.UploadModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UploadModel" }); /** - * Gets the default type url for ListModelVersionsResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls UploadModel. + * @function uploadModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IUploadModelRequest} request UploadModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListModelVersionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelVersionsResponse"; - }; - return ListModelVersionsResponse; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModel}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef GetModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Model} [response] Model + */ + + /** + * Calls GetModel. + * @function getModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IGetModelRequest} request GetModelRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.GetModelCallback} callback Node-style callback called with the error, if any, and Model + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.getModel = function getModel(request, callback) { + return this.rpcCall(getModel, $root.google.cloud.aiplatform.v1.GetModelRequest, $root.google.cloud.aiplatform.v1.Model, request, callback); + }, "name", { value: "GetModel" }); + + /** + * Calls GetModel. + * @function getModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IGetModelRequest} request GetModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModels}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef ListModelsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListModelsResponse} [response] ListModelsResponse + */ + + /** + * Calls ListModels. + * @function listModels + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelsRequest} request ListModelsRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.ListModelsCallback} callback Node-style callback called with the error, if any, and ListModelsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.listModels = function listModels(request, callback) { + return this.rpcCall(listModels, $root.google.cloud.aiplatform.v1.ListModelsRequest, $root.google.cloud.aiplatform.v1.ListModelsResponse, request, callback); + }, "name", { value: "ListModels" }); + + /** + * Calls ListModels. + * @function listModels + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelsRequest} request ListModelsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelVersions}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef ListModelVersionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListModelVersionsResponse} [response] ListModelVersionsResponse + */ + + /** + * Calls ListModelVersions. + * @function listModelVersions + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} request ListModelVersionsRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.ListModelVersionsCallback} callback Node-style callback called with the error, if any, and ListModelVersionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.listModelVersions = function listModelVersions(request, callback) { + return this.rpcCall(listModelVersions, $root.google.cloud.aiplatform.v1.ListModelVersionsRequest, $root.google.cloud.aiplatform.v1.ListModelVersionsResponse, request, callback); + }, "name", { value: "ListModelVersions" }); + + /** + * Calls ListModelVersions. + * @function listModelVersions + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} request ListModelVersionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|updateModel}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef UpdateModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Model} [response] Model + */ + + /** + * Calls UpdateModel. + * @function updateModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateModelRequest} request UpdateModelRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.UpdateModelCallback} callback Node-style callback called with the error, if any, and Model + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.updateModel = function updateModel(request, callback) { + return this.rpcCall(updateModel, $root.google.cloud.aiplatform.v1.UpdateModelRequest, $root.google.cloud.aiplatform.v1.Model, request, callback); + }, "name", { value: "UpdateModel" }); + + /** + * Calls UpdateModel. + * @function updateModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IUpdateModelRequest} request UpdateModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|deleteModel}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef DeleteModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteModel. + * @function deleteModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteModelRequest} request DeleteModelRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.DeleteModelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.deleteModel = function deleteModel(request, callback) { + return this.rpcCall(deleteModel, $root.google.cloud.aiplatform.v1.DeleteModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteModel" }); + + /** + * Calls DeleteModel. + * @function deleteModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteModelRequest} request DeleteModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|deleteModelVersion}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef DeleteModelVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteModelVersion. + * @function deleteModelVersion + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} request DeleteModelVersionRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.DeleteModelVersionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.deleteModelVersion = function deleteModelVersion(request, callback) { + return this.rpcCall(deleteModelVersion, $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteModelVersion" }); + + /** + * Calls DeleteModelVersion. + * @function deleteModelVersion + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} request DeleteModelVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|mergeVersionAliases}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef MergeVersionAliasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Model} [response] Model + */ + + /** + * Calls MergeVersionAliases. + * @function mergeVersionAliases + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} request MergeVersionAliasesRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.MergeVersionAliasesCallback} callback Node-style callback called with the error, if any, and Model + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.mergeVersionAliases = function mergeVersionAliases(request, callback) { + return this.rpcCall(mergeVersionAliases, $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest, $root.google.cloud.aiplatform.v1.Model, request, callback); + }, "name", { value: "MergeVersionAliases" }); + + /** + * Calls MergeVersionAliases. + * @function mergeVersionAliases + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} request MergeVersionAliasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|exportModel}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef ExportModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ExportModel. + * @function exportModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IExportModelRequest} request ExportModelRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.ExportModelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.exportModel = function exportModel(request, callback) { + return this.rpcCall(exportModel, $root.google.cloud.aiplatform.v1.ExportModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ExportModel" }); + + /** + * Calls ExportModel. + * @function exportModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IExportModelRequest} request ExportModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|copyModel}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef CopyModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CopyModel. + * @function copyModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.ICopyModelRequest} request CopyModelRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.CopyModelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.copyModel = function copyModel(request, callback) { + return this.rpcCall(copyModel, $root.google.cloud.aiplatform.v1.CopyModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CopyModel" }); + + /** + * Calls CopyModel. + * @function copyModel + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.ICopyModelRequest} request CopyModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|importModelEvaluation}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef ImportModelEvaluationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ModelEvaluation} [response] ModelEvaluation + */ + + /** + * Calls ImportModelEvaluation. + * @function importModelEvaluation + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest} request ImportModelEvaluationRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.ImportModelEvaluationCallback} callback Node-style callback called with the error, if any, and ModelEvaluation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.importModelEvaluation = function importModelEvaluation(request, callback) { + return this.rpcCall(importModelEvaluation, $root.google.cloud.aiplatform.v1.ImportModelEvaluationRequest, $root.google.cloud.aiplatform.v1.ModelEvaluation, request, callback); + }, "name", { value: "ImportModelEvaluation" }); + + /** + * Calls ImportModelEvaluation. + * @function importModelEvaluation + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest} request ImportModelEvaluationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|batchImportModelEvaluationSlices}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef BatchImportModelEvaluationSlicesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} [response] BatchImportModelEvaluationSlicesResponse + */ + + /** + * Calls BatchImportModelEvaluationSlices. + * @function batchImportModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} request BatchImportModelEvaluationSlicesRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlicesCallback} callback Node-style callback called with the error, if any, and BatchImportModelEvaluationSlicesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.batchImportModelEvaluationSlices = function batchImportModelEvaluationSlices(request, callback) { + return this.rpcCall(batchImportModelEvaluationSlices, $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest, $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse, request, callback); + }, "name", { value: "BatchImportModelEvaluationSlices" }); + + /** + * Calls BatchImportModelEvaluationSlices. + * @function batchImportModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} request BatchImportModelEvaluationSlicesRequest 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 + * @typedef GetModelEvaluationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ModelEvaluation} [response] ModelEvaluation + */ + + /** + * Calls GetModelEvaluation. + * @function getModelEvaluation + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} request GetModelEvaluationRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.GetModelEvaluationCallback} callback Node-style callback called with the error, if any, and ModelEvaluation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.getModelEvaluation = function getModelEvaluation(request, callback) { + return this.rpcCall(getModelEvaluation, $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest, $root.google.cloud.aiplatform.v1.ModelEvaluation, request, callback); + }, "name", { value: "GetModelEvaluation" }); + + /** + * Calls GetModelEvaluation. + * @function getModelEvaluation + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} request GetModelEvaluationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelEvaluations}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef ListModelEvaluationsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} [response] ListModelEvaluationsResponse + */ + + /** + * Calls ListModelEvaluations. + * @function listModelEvaluations + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} request ListModelEvaluationsRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.ListModelEvaluationsCallback} callback Node-style callback called with the error, if any, and ListModelEvaluationsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.listModelEvaluations = function listModelEvaluations(request, callback) { + return this.rpcCall(listModelEvaluations, $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest, $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse, request, callback); + }, "name", { value: "ListModelEvaluations" }); + + /** + * Calls ListModelEvaluations. + * @function listModelEvaluations + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} request ListModelEvaluationsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|getModelEvaluationSlice}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef GetModelEvaluationSliceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ModelEvaluationSlice} [response] ModelEvaluationSlice + */ + + /** + * Calls GetModelEvaluationSlice. + * @function getModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} request GetModelEvaluationSliceRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.GetModelEvaluationSliceCallback} callback Node-style callback called with the error, if any, and ModelEvaluationSlice + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.getModelEvaluationSlice = function getModelEvaluationSlice(request, callback) { + return this.rpcCall(getModelEvaluationSlice, $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest, $root.google.cloud.aiplatform.v1.ModelEvaluationSlice, request, callback); + }, "name", { value: "GetModelEvaluationSlice" }); + + /** + * Calls GetModelEvaluationSlice. + * @function getModelEvaluationSlice + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} request GetModelEvaluationSliceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService|listModelEvaluationSlices}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef ListModelEvaluationSlicesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} [response] ListModelEvaluationSlicesResponse + */ + + /** + * Calls ListModelEvaluationSlices. + * @function listModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} request ListModelEvaluationSlicesRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.ListModelEvaluationSlicesCallback} callback Node-style callback called with the error, if any, and ListModelEvaluationSlicesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.listModelEvaluationSlices = function listModelEvaluationSlices(request, callback) { + return this.rpcCall(listModelEvaluationSlices, $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest, $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse, request, callback); + }, "name", { value: "ListModelEvaluationSlices" }); + + /** + * Calls ListModelEvaluationSlices. + * @function listModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} request ListModelEvaluationSlicesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return ModelService; })(); - v1.UpdateModelRequest = (function() { + v1.UploadModelRequest = (function() { /** - * Properties of an UpdateModelRequest. + * Properties of an UploadModelRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IUpdateModelRequest - * @property {google.cloud.aiplatform.v1.IModel|null} [model] UpdateModelRequest model - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelRequest updateMask + * @interface IUploadModelRequest + * @property {string|null} [parent] UploadModelRequest parent + * @property {string|null} [parentModel] UploadModelRequest parentModel + * @property {string|null} [modelId] UploadModelRequest modelId + * @property {google.cloud.aiplatform.v1.IModel|null} [model] UploadModelRequest model + * @property {string|null} [serviceAccount] UploadModelRequest serviceAccount */ /** - * Constructs a new UpdateModelRequest. + * Constructs a new UploadModelRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an UpdateModelRequest. - * @implements IUpdateModelRequest + * @classdesc Represents an UploadModelRequest. + * @implements IUploadModelRequest * @constructor - * @param {google.cloud.aiplatform.v1.IUpdateModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUploadModelRequest=} [properties] Properties to set */ - function UpdateModelRequest(properties) { + function UploadModelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114045,89 +118289,131 @@ } /** - * UpdateModelRequest model. + * UploadModelRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @instance + */ + UploadModelRequest.prototype.parent = ""; + + /** + * UploadModelRequest parentModel. + * @member {string} parentModel + * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @instance + */ + UploadModelRequest.prototype.parentModel = ""; + + /** + * UploadModelRequest modelId. + * @member {string} modelId + * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @instance + */ + UploadModelRequest.prototype.modelId = ""; + + /** + * UploadModelRequest model. * @member {google.cloud.aiplatform.v1.IModel|null|undefined} model - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @instance */ - UpdateModelRequest.prototype.model = null; + UploadModelRequest.prototype.model = null; /** - * UpdateModelRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * UploadModelRequest serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @instance */ - UpdateModelRequest.prototype.updateMask = null; + UploadModelRequest.prototype.serviceAccount = ""; /** - * Creates a new UpdateModelRequest instance using the specified properties. + * Creates a new UploadModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.UpdateModelRequest} UpdateModelRequest instance + * @param {google.cloud.aiplatform.v1.IUploadModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UploadModelRequest} UploadModelRequest instance */ - UpdateModelRequest.create = function create(properties) { - return new UpdateModelRequest(properties); + UploadModelRequest.create = function create(properties) { + return new UploadModelRequest(properties); }; /** - * Encodes the specified UpdateModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelRequest.verify|verify} messages. + * Encodes the specified UploadModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelRequest} message UpdateModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUploadModelRequest} message UploadModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelRequest.encode = function encode(message, writer) { + UploadModelRequest.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.model != null && Object.hasOwnProperty.call(message, "model")) - $root.google.cloud.aiplatform.v1.Model.encode(message.model, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.aiplatform.v1.Model.encode(message.model, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.parentModel); + if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.modelId); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.serviceAccount); return writer; }; /** - * Encodes the specified UpdateModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelRequest.verify|verify} messages. + * Encodes the specified UploadModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @static - * @param {google.cloud.aiplatform.v1.IUpdateModelRequest} message UpdateModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUploadModelRequest} message UploadModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + UploadModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateModelRequest message from the specified reader or buffer. + * Decodes an UploadModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @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.UpdateModelRequest} UpdateModelRequest + * @returns {google.cloud.aiplatform.v1.UploadModelRequest} UploadModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelRequest.decode = function decode(reader, length) { + UploadModelRequest.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.UpdateModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UploadModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.model = $root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32()); + message.parent = reader.string(); + break; + } + case 4: { + message.parentModel = reader.string(); + break; + } + case 5: { + message.modelId = reader.string(); break; } case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.model = $root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32()); + break; + } + case 6: { + message.serviceAccount = reader.string(); break; } default: @@ -114139,141 +118425,160 @@ }; /** - * Decodes an UpdateModelRequest message from the specified reader or buffer, length delimited. + * Decodes an UploadModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.UpdateModelRequest} UpdateModelRequest + * @returns {google.cloud.aiplatform.v1.UploadModelRequest} UploadModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelRequest.decodeDelimited = function decodeDelimited(reader) { + UploadModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateModelRequest message. + * Verifies an UploadModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateModelRequest.verify = function verify(message) { + UploadModelRequest.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.parentModel != null && message.hasOwnProperty("parentModel")) + if (!$util.isString(message.parentModel)) + return "parentModel: string expected"; + if (message.modelId != null && message.hasOwnProperty("modelId")) + if (!$util.isString(message.modelId)) + return "modelId: string expected"; if (message.model != null && message.hasOwnProperty("model")) { var error = $root.google.cloud.aiplatform.v1.Model.verify(message.model); if (error) return "model." + error; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; return null; }; /** - * Creates an UpdateModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.UpdateModelRequest} UpdateModelRequest + * @returns {google.cloud.aiplatform.v1.UploadModelRequest} UploadModelRequest */ - UpdateModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.UpdateModelRequest) + UploadModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UploadModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.UpdateModelRequest(); + var message = new $root.google.cloud.aiplatform.v1.UploadModelRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.parentModel != null) + message.parentModel = String(object.parentModel); + if (object.modelId != null) + message.modelId = String(object.modelId); if (object.model != null) { if (typeof object.model !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateModelRequest.model: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.UploadModelRequest.model: object expected"); message.model = $root.google.cloud.aiplatform.v1.Model.fromObject(object.model); } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.UpdateModelRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); return message; }; /** - * Creates a plain object from an UpdateModelRequest message. Also converts values to other types if specified. + * Creates a plain object from an UploadModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @static - * @param {google.cloud.aiplatform.v1.UpdateModelRequest} message UpdateModelRequest + * @param {google.cloud.aiplatform.v1.UploadModelRequest} message UploadModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateModelRequest.toObject = function toObject(message, options) { + UploadModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.parent = ""; object.model = null; - object.updateMask = null; + object.parentModel = ""; + object.modelId = ""; + object.serviceAccount = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; if (message.model != null && message.hasOwnProperty("model")) object.model = $root.google.cloud.aiplatform.v1.Model.toObject(message.model, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.parentModel != null && message.hasOwnProperty("parentModel")) + object.parentModel = message.parentModel; + if (message.modelId != null && message.hasOwnProperty("modelId")) + object.modelId = message.modelId; + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; return object; }; /** - * Converts this UpdateModelRequest to JSON. + * Converts this UploadModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @instance * @returns {Object.} JSON object */ - UpdateModelRequest.prototype.toJSON = function toJSON() { + UploadModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateModelRequest + * Gets the default type url for UploadModelRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.UpdateModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UploadModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateModelRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UploadModelRequest"; }; - return UpdateModelRequest; + return UploadModelRequest; })(); - v1.DeleteModelRequest = (function() { + v1.UploadModelOperationMetadata = (function() { /** - * Properties of a DeleteModelRequest. + * Properties of an UploadModelOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteModelRequest - * @property {string|null} [name] DeleteModelRequest name + * @interface IUploadModelOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] UploadModelOperationMetadata genericMetadata */ /** - * Constructs a new DeleteModelRequest. + * Constructs a new UploadModelOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteModelRequest. - * @implements IDeleteModelRequest + * @classdesc Represents an UploadModelOperationMetadata. + * @implements IUploadModelOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUploadModelOperationMetadata=} [properties] Properties to set */ - function DeleteModelRequest(properties) { + function UploadModelOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114281,75 +118586,75 @@ } /** - * DeleteModelRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * UploadModelOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @instance */ - DeleteModelRequest.prototype.name = ""; + UploadModelOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new DeleteModelRequest instance using the specified properties. + * Creates a new UploadModelOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteModelRequest} DeleteModelRequest instance + * @param {google.cloud.aiplatform.v1.IUploadModelOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UploadModelOperationMetadata} UploadModelOperationMetadata instance */ - DeleteModelRequest.create = function create(properties) { - return new DeleteModelRequest(properties); + UploadModelOperationMetadata.create = function create(properties) { + return new UploadModelOperationMetadata(properties); }; /** - * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelRequest.verify|verify} messages. + * Encodes the specified UploadModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelRequest} message DeleteModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUploadModelOperationMetadata} message UploadModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelRequest.encode = function encode(message, writer) { + UploadModelOperationMetadata.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); + 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 DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelRequest.verify|verify} messages. + * Encodes the specified UploadModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelRequest} message DeleteModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUploadModelOperationMetadata} message UploadModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + UploadModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteModelRequest message from the specified reader or buffer. + * Decodes an UploadModelOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @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.DeleteModelRequest} DeleteModelRequest + * @returns {google.cloud.aiplatform.v1.UploadModelOperationMetadata} UploadModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelRequest.decode = function decode(reader, length) { + UploadModelOperationMetadata.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.DeleteModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UploadModelOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -114361,122 +118666,128 @@ }; /** - * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited. + * Decodes an UploadModelOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteModelRequest} DeleteModelRequest + * @returns {google.cloud.aiplatform.v1.UploadModelOperationMetadata} UploadModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelRequest.decodeDelimited = function decodeDelimited(reader) { + UploadModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteModelRequest message. + * Verifies an UploadModelOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteModelRequest.verify = function verify(message) { + UploadModelOperationMetadata.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"; + 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 DeleteModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteModelRequest} DeleteModelRequest + * @returns {google.cloud.aiplatform.v1.UploadModelOperationMetadata} UploadModelOperationMetadata */ - DeleteModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteModelRequest) + UploadModelOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UploadModelOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteModelRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.UploadModelOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UploadModelOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } return message; }; /** - * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified. + * Creates a plain object from an UploadModelOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.DeleteModelRequest} message DeleteModelRequest + * @param {google.cloud.aiplatform.v1.UploadModelOperationMetadata} message UploadModelOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteModelRequest.toObject = function toObject(message, options) { + UploadModelOperationMetadata.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; + 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 DeleteModelRequest to JSON. + * Converts this UploadModelOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @instance * @returns {Object.} JSON object */ - DeleteModelRequest.prototype.toJSON = function toJSON() { + UploadModelOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteModelRequest + * Gets the default type url for UploadModelOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteModelRequest + * @memberof google.cloud.aiplatform.v1.UploadModelOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UploadModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteModelRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UploadModelOperationMetadata"; }; - return DeleteModelRequest; + return UploadModelOperationMetadata; })(); - v1.DeleteModelVersionRequest = (function() { + v1.UploadModelResponse = (function() { /** - * Properties of a DeleteModelVersionRequest. + * Properties of an UploadModelResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteModelVersionRequest - * @property {string|null} [name] DeleteModelVersionRequest name + * @interface IUploadModelResponse + * @property {string|null} [model] UploadModelResponse model + * @property {string|null} [modelVersionId] UploadModelResponse modelVersionId */ /** - * Constructs a new DeleteModelVersionRequest. + * Constructs a new UploadModelResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteModelVersionRequest. - * @implements IDeleteModelVersionRequest + * @classdesc Represents an UploadModelResponse. + * @implements IUploadModelResponse * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUploadModelResponse=} [properties] Properties to set */ - function DeleteModelVersionRequest(properties) { + function UploadModelResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114484,75 +118795,89 @@ } /** - * DeleteModelVersionRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * UploadModelResponse model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @instance */ - DeleteModelVersionRequest.prototype.name = ""; + UploadModelResponse.prototype.model = ""; /** - * Creates a new DeleteModelVersionRequest instance using the specified properties. + * UploadModelResponse modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @instance + */ + UploadModelResponse.prototype.modelVersionId = ""; + + /** + * Creates a new UploadModelResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest instance + * @param {google.cloud.aiplatform.v1.IUploadModelResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UploadModelResponse} UploadModelResponse instance */ - DeleteModelVersionRequest.create = function create(properties) { - return new DeleteModelVersionRequest(properties); + UploadModelResponse.create = function create(properties) { + return new UploadModelResponse(properties); }; /** - * Encodes the specified DeleteModelVersionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. + * Encodes the specified UploadModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} message DeleteModelVersionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUploadModelResponse} message UploadModelResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelVersionRequest.encode = function encode(message, writer) { + UploadModelResponse.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); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersionId); return writer; }; /** - * Encodes the specified DeleteModelVersionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. + * Encodes the specified UploadModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UploadModelResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @static - * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} message DeleteModelVersionRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUploadModelResponse} message UploadModelResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + UploadModelResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteModelVersionRequest message from the specified reader or buffer. + * Decodes an UploadModelResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @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.DeleteModelVersionRequest} DeleteModelVersionRequest + * @returns {google.cloud.aiplatform.v1.UploadModelResponse} UploadModelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelVersionRequest.decode = function decode(reader, length) { + UploadModelResponse.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.DeleteModelVersionRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UploadModelResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.model = reader.string(); + break; + } + case 2: { + message.modelVersionId = reader.string(); break; } default: @@ -114564,124 +118889,131 @@ }; /** - * Decodes a DeleteModelVersionRequest message from the specified reader or buffer, length delimited. + * Decodes an UploadModelResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest + * @returns {google.cloud.aiplatform.v1.UploadModelResponse} UploadModelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelVersionRequest.decodeDelimited = function decodeDelimited(reader) { + UploadModelResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteModelVersionRequest message. + * Verifies an UploadModelResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteModelVersionRequest.verify = function verify(message) { + UploadModelResponse.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"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + if (!$util.isString(message.modelVersionId)) + return "modelVersionId: string expected"; return null; }; /** - * Creates a DeleteModelVersionRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UploadModelResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest + * @returns {google.cloud.aiplatform.v1.UploadModelResponse} UploadModelResponse */ - DeleteModelVersionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest) + UploadModelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UploadModelResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.UploadModelResponse(); + if (object.model != null) + message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); return message; }; /** - * Creates a plain object from a DeleteModelVersionRequest message. Also converts values to other types if specified. + * Creates a plain object from an UploadModelResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @static - * @param {google.cloud.aiplatform.v1.DeleteModelVersionRequest} message DeleteModelVersionRequest + * @param {google.cloud.aiplatform.v1.UploadModelResponse} message UploadModelResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteModelVersionRequest.toObject = function toObject(message, options) { + UploadModelResponse.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; + if (options.defaults) { + object.model = ""; + object.modelVersionId = ""; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; return object; }; /** - * Converts this DeleteModelVersionRequest to JSON. + * Converts this UploadModelResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @instance * @returns {Object.} JSON object */ - DeleteModelVersionRequest.prototype.toJSON = function toJSON() { + UploadModelResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteModelVersionRequest + * Gets the default type url for UploadModelResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @memberof google.cloud.aiplatform.v1.UploadModelResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteModelVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UploadModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteModelVersionRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UploadModelResponse"; }; - return DeleteModelVersionRequest; + return UploadModelResponse; })(); - v1.MergeVersionAliasesRequest = (function() { + v1.GetModelRequest = (function() { /** - * Properties of a MergeVersionAliasesRequest. + * Properties of a GetModelRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IMergeVersionAliasesRequest - * @property {string|null} [name] MergeVersionAliasesRequest name - * @property {Array.|null} [versionAliases] MergeVersionAliasesRequest versionAliases + * @interface IGetModelRequest + * @property {string|null} [name] GetModelRequest name */ /** - * Constructs a new MergeVersionAliasesRequest. + * Constructs a new GetModelRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a MergeVersionAliasesRequest. - * @implements IMergeVersionAliasesRequest + * @classdesc Represents a GetModelRequest. + * @implements IGetModelRequest * @constructor - * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetModelRequest=} [properties] Properties to set */ - function MergeVersionAliasesRequest(properties) { - this.versionAliases = []; + function GetModelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114689,81 +119021,70 @@ } /** - * MergeVersionAliasesRequest name. + * GetModelRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest - * @instance - */ - MergeVersionAliasesRequest.prototype.name = ""; - - /** - * MergeVersionAliasesRequest versionAliases. - * @member {Array.} versionAliases - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @instance */ - MergeVersionAliasesRequest.prototype.versionAliases = $util.emptyArray; + GetModelRequest.prototype.name = ""; /** - * Creates a new MergeVersionAliasesRequest instance using the specified properties. + * Creates a new GetModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @static - * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest instance + * @param {google.cloud.aiplatform.v1.IGetModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetModelRequest} GetModelRequest instance */ - MergeVersionAliasesRequest.create = function create(properties) { - return new MergeVersionAliasesRequest(properties); + GetModelRequest.create = function create(properties) { + return new GetModelRequest(properties); }; /** - * Encodes the specified MergeVersionAliasesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. + * Encodes the specified GetModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @static - * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} message MergeVersionAliasesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetModelRequest} message GetModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MergeVersionAliasesRequest.encode = function encode(message, writer) { + GetModelRequest.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); - if (message.versionAliases != null && message.versionAliases.length) - for (var i = 0; i < message.versionAliases.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.versionAliases[i]); return writer; }; /** - * Encodes the specified MergeVersionAliasesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. + * Encodes the specified GetModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @static - * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} message MergeVersionAliasesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetModelRequest} message GetModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MergeVersionAliasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer. + * Decodes a GetModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @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.MergeVersionAliasesRequest} MergeVersionAliasesRequest + * @returns {google.cloud.aiplatform.v1.GetModelRequest} GetModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MergeVersionAliasesRequest.decode = function decode(reader, length) { + GetModelRequest.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.MergeVersionAliasesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -114771,12 +119092,6 @@ message.name = reader.string(); break; } - case 2: { - if (!(message.versionAliases && message.versionAliases.length)) - message.versionAliases = []; - message.versionAliases.push(reader.string()); - break; - } default: reader.skipType(tag & 7); break; @@ -114786,144 +119101,127 @@ }; /** - * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest + * @returns {google.cloud.aiplatform.v1.GetModelRequest} GetModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MergeVersionAliasesRequest.decodeDelimited = function decodeDelimited(reader) { + GetModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MergeVersionAliasesRequest message. + * Verifies a GetModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MergeVersionAliasesRequest.verify = function verify(message) { + GetModelRequest.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"; - if (message.versionAliases != null && message.hasOwnProperty("versionAliases")) { - if (!Array.isArray(message.versionAliases)) - return "versionAliases: array expected"; - for (var i = 0; i < message.versionAliases.length; ++i) - if (!$util.isString(message.versionAliases[i])) - return "versionAliases: string[] expected"; - } return null; }; /** - * Creates a MergeVersionAliasesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest + * @returns {google.cloud.aiplatform.v1.GetModelRequest} GetModelRequest */ - MergeVersionAliasesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest) + GetModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetModelRequest(); if (object.name != null) message.name = String(object.name); - if (object.versionAliases) { - if (!Array.isArray(object.versionAliases)) - throw TypeError(".google.cloud.aiplatform.v1.MergeVersionAliasesRequest.versionAliases: array expected"); - message.versionAliases = []; - for (var i = 0; i < object.versionAliases.length; ++i) - message.versionAliases[i] = String(object.versionAliases[i]); - } return message; }; /** - * Creates a plain object from a MergeVersionAliasesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @static - * @param {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} message MergeVersionAliasesRequest + * @param {google.cloud.aiplatform.v1.GetModelRequest} message GetModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MergeVersionAliasesRequest.toObject = function toObject(message, options) { + GetModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.versionAliases = []; if (options.defaults) object.name = ""; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.versionAliases && message.versionAliases.length) { - object.versionAliases = []; - for (var j = 0; j < message.versionAliases.length; ++j) - object.versionAliases[j] = message.versionAliases[j]; - } return object; }; /** - * Converts this MergeVersionAliasesRequest to JSON. + * Converts this GetModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @instance * @returns {Object.} JSON object */ - MergeVersionAliasesRequest.prototype.toJSON = function toJSON() { + GetModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for MergeVersionAliasesRequest + * Gets the default type url for GetModelRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @memberof google.cloud.aiplatform.v1.GetModelRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - MergeVersionAliasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.MergeVersionAliasesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelRequest"; }; - return MergeVersionAliasesRequest; + return GetModelRequest; })(); - v1.ExportModelRequest = (function() { + v1.ListModelsRequest = (function() { /** - * Properties of an ExportModelRequest. + * Properties of a ListModelsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IExportModelRequest - * @property {string|null} [name] ExportModelRequest name - * @property {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig|null} [outputConfig] ExportModelRequest outputConfig + * @interface IListModelsRequest + * @property {string|null} [parent] ListModelsRequest parent + * @property {string|null} [filter] ListModelsRequest filter + * @property {number|null} [pageSize] ListModelsRequest pageSize + * @property {string|null} [pageToken] ListModelsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelsRequest readMask + * @property {string|null} [orderBy] ListModelsRequest orderBy */ /** - * Constructs a new ExportModelRequest. + * Constructs a new ListModelsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ExportModelRequest. - * @implements IExportModelRequest + * @classdesc Represents a ListModelsRequest. + * @implements IListModelsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IExportModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelsRequest=} [properties] Properties to set */ - function ExportModelRequest(properties) { + function ListModelsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -114931,89 +119229,145 @@ } /** - * ExportModelRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * ListModelsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @instance */ - ExportModelRequest.prototype.name = ""; + ListModelsRequest.prototype.parent = ""; /** - * ExportModelRequest outputConfig. - * @member {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig|null|undefined} outputConfig - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * ListModelsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @instance */ - ExportModelRequest.prototype.outputConfig = null; + ListModelsRequest.prototype.filter = ""; /** - * Creates a new ExportModelRequest instance using the specified properties. + * ListModelsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.pageSize = 0; + + /** + * ListModelsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.pageToken = ""; + + /** + * ListModelsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.readMask = null; + + /** + * ListModelsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListModelsRequest + * @instance + */ + ListModelsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListModelsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @static - * @param {google.cloud.aiplatform.v1.IExportModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExportModelRequest} ExportModelRequest instance + * @param {google.cloud.aiplatform.v1.IListModelsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelsRequest} ListModelsRequest instance */ - ExportModelRequest.create = function create(properties) { - return new ExportModelRequest(properties); + ListModelsRequest.create = function create(properties) { + return new ListModelsRequest(properties); }; /** - * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.verify|verify} messages. + * Encodes the specified ListModelsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @static - * @param {google.cloud.aiplatform.v1.IExportModelRequest} message ExportModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelsRequest} message ListModelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelRequest.encode = function encode(message, writer) { + ListModelsRequest.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); - if (message.outputConfig != null && Object.hasOwnProperty.call(message, "outputConfig")) - $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.encode(message.outputConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); return writer; }; /** - * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.verify|verify} messages. + * Encodes the specified ListModelsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @static - * @param {google.cloud.aiplatform.v1.IExportModelRequest} message ExportModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelsRequest} message ListModelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListModelsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportModelRequest message from the specified reader or buffer. + * Decodes a ListModelsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @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.ExportModelRequest} ExportModelRequest + * @returns {google.cloud.aiplatform.v1.ListModelsRequest} ListModelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelRequest.decode = function decode(reader, length) { + ListModelsRequest.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.ExportModelRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.outputConfig = $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.decode(reader, reader.uint32()); + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 6: { + message.orderBy = reader.string(); break; } default: @@ -115025,397 +119379,170 @@ }; /** - * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExportModelRequest} ExportModelRequest + * @returns {google.cloud.aiplatform.v1.ListModelsRequest} ListModelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelRequest.decodeDelimited = function decodeDelimited(reader) { + ListModelsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportModelRequest message. + * Verifies a ListModelsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportModelRequest.verify = function verify(message) { + ListModelsRequest.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"; - if (message.outputConfig != null && message.hasOwnProperty("outputConfig")) { - var error = $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify(message.outputConfig); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "outputConfig." + error; + return "readMask." + error; } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates an ExportModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExportModelRequest} ExportModelRequest + * @returns {google.cloud.aiplatform.v1.ListModelsRequest} ListModelsRequest */ - ExportModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelRequest) + ListModelsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ExportModelRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.outputConfig != null) { - if (typeof object.outputConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportModelRequest.outputConfig: object expected"); - message.outputConfig = $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.fromObject(object.outputConfig); + var message = new $root.google.cloud.aiplatform.v1.ListModelsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListModelsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @static - * @param {google.cloud.aiplatform.v1.ExportModelRequest} message ExportModelRequest + * @param {google.cloud.aiplatform.v1.ListModelsRequest} message ListModelsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportModelRequest.toObject = function toObject(message, options) { + ListModelsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.outputConfig = null; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + object.orderBy = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.outputConfig != null && message.hasOwnProperty("outputConfig")) - object.outputConfig = $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.toObject(message.outputConfig, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this ExportModelRequest to JSON. + * Converts this ListModelsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @instance * @returns {Object.} JSON object */ - ExportModelRequest.prototype.toJSON = function toJSON() { + ListModelsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportModelRequest + * Gets the default type url for ListModelsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @memberof google.cloud.aiplatform.v1.ListModelsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelsRequest"; }; - ExportModelRequest.OutputConfig = (function() { - - /** - * Properties of an OutputConfig. - * @memberof google.cloud.aiplatform.v1.ExportModelRequest - * @interface IOutputConfig - * @property {string|null} [exportFormatId] OutputConfig exportFormatId - * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [artifactDestination] OutputConfig artifactDestination - * @property {google.cloud.aiplatform.v1.IContainerRegistryDestination|null} [imageDestination] OutputConfig imageDestination - */ - - /** - * Constructs a new OutputConfig. - * @memberof google.cloud.aiplatform.v1.ExportModelRequest - * @classdesc Represents an OutputConfig. - * @implements IOutputConfig - * @constructor - * @param {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig=} [properties] Properties to set - */ - function OutputConfig(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]]; - } - - /** - * OutputConfig exportFormatId. - * @member {string} exportFormatId - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @instance - */ - OutputConfig.prototype.exportFormatId = ""; - - /** - * OutputConfig artifactDestination. - * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} artifactDestination - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @instance - */ - OutputConfig.prototype.artifactDestination = null; - - /** - * OutputConfig imageDestination. - * @member {google.cloud.aiplatform.v1.IContainerRegistryDestination|null|undefined} imageDestination - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @instance - */ - OutputConfig.prototype.imageDestination = null; - - /** - * Creates a new OutputConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @static - * @param {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} OutputConfig instance - */ - OutputConfig.create = function create(properties) { - return new OutputConfig(properties); - }; - - /** - * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @static - * @param {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig} message OutputConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.exportFormatId != null && Object.hasOwnProperty.call(message, "exportFormatId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.exportFormatId); - if (message.artifactDestination != null && Object.hasOwnProperty.call(message, "artifactDestination")) - $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.artifactDestination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.imageDestination != null && Object.hasOwnProperty.call(message, "imageDestination")) - $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.encode(message.imageDestination, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @static - * @param {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig} message OutputConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an OutputConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @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.ExportModelRequest.OutputConfig} OutputConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputConfig.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.ExportModelRequest.OutputConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.exportFormatId = reader.string(); - break; - } - case 3: { - message.artifactDestination = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); - break; - } - case 4: { - message.imageDestination = $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an OutputConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} OutputConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an OutputConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OutputConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.exportFormatId != null && message.hasOwnProperty("exportFormatId")) - if (!$util.isString(message.exportFormatId)) - return "exportFormatId: string expected"; - if (message.artifactDestination != null && message.hasOwnProperty("artifactDestination")) { - var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.artifactDestination); - if (error) - return "artifactDestination." + error; - } - if (message.imageDestination != null && message.hasOwnProperty("imageDestination")) { - var error = $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.verify(message.imageDestination); - if (error) - return "imageDestination." + error; - } - return null; - }; - - /** - * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} OutputConfig - */ - OutputConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig(); - if (object.exportFormatId != null) - message.exportFormatId = String(object.exportFormatId); - if (object.artifactDestination != null) { - if (typeof object.artifactDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.artifactDestination: object expected"); - message.artifactDestination = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.artifactDestination); - } - if (object.imageDestination != null) { - if (typeof object.imageDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.imageDestination: object expected"); - message.imageDestination = $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.fromObject(object.imageDestination); - } - return message; - }; - - /** - * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @static - * @param {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} message OutputConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OutputConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.exportFormatId = ""; - object.artifactDestination = null; - object.imageDestination = null; - } - if (message.exportFormatId != null && message.hasOwnProperty("exportFormatId")) - object.exportFormatId = message.exportFormatId; - if (message.artifactDestination != null && message.hasOwnProperty("artifactDestination")) - object.artifactDestination = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.artifactDestination, options); - if (message.imageDestination != null && message.hasOwnProperty("imageDestination")) - object.imageDestination = $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.toObject(message.imageDestination, options); - return object; - }; - - /** - * Converts this OutputConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @instance - * @returns {Object.} JSON object - */ - OutputConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for OutputConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig"; - }; - - return OutputConfig; - })(); - - return ExportModelRequest; + return ListModelsRequest; })(); - v1.ExportModelOperationMetadata = (function() { + v1.ListModelsResponse = (function() { /** - * Properties of an ExportModelOperationMetadata. + * Properties of a ListModelsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IExportModelOperationMetadata - * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] ExportModelOperationMetadata genericMetadata - * @property {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo|null} [outputInfo] ExportModelOperationMetadata outputInfo + * @interface IListModelsResponse + * @property {Array.|null} [models] ListModelsResponse models + * @property {string|null} [nextPageToken] ListModelsResponse nextPageToken */ /** - * Constructs a new ExportModelOperationMetadata. + * Constructs a new ListModelsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ExportModelOperationMetadata. - * @implements IExportModelOperationMetadata + * @classdesc Represents a ListModelsResponse. + * @implements IListModelsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IExportModelOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelsResponse=} [properties] Properties to set */ - function ExportModelOperationMetadata(properties) { + function ListModelsResponse(properties) { + this.models = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -115423,89 +119550,92 @@ } /** - * ExportModelOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * ListModelsResponse models. + * @member {Array.} models + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @instance */ - ExportModelOperationMetadata.prototype.genericMetadata = null; + ListModelsResponse.prototype.models = $util.emptyArray; /** - * ExportModelOperationMetadata outputInfo. - * @member {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo|null|undefined} outputInfo - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * ListModelsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @instance */ - ExportModelOperationMetadata.prototype.outputInfo = null; + ListModelsResponse.prototype.nextPageToken = ""; /** - * Creates a new ExportModelOperationMetadata instance using the specified properties. + * Creates a new ListModelsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @static - * @param {google.cloud.aiplatform.v1.IExportModelOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata} ExportModelOperationMetadata instance + * @param {google.cloud.aiplatform.v1.IListModelsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelsResponse} ListModelsResponse instance */ - ExportModelOperationMetadata.create = function create(properties) { - return new ExportModelOperationMetadata(properties); + ListModelsResponse.create = function create(properties) { + return new ListModelsResponse(properties); }; /** - * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.verify|verify} messages. + * Encodes the specified ListModelsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @static - * @param {google.cloud.aiplatform.v1.IExportModelOperationMetadata} message ExportModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelsResponse} message ListModelsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelOperationMetadata.encode = function encode(message, writer) { + ListModelsResponse.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(); - if (message.outputInfo != null && Object.hasOwnProperty.call(message, "outputInfo")) - $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.encode(message.outputInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.models != null && message.models.length) + for (var i = 0; i < message.models.length; ++i) + $root.google.cloud.aiplatform.v1.Model.encode(message.models[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.verify|verify} messages. + * Encodes the specified ListModelsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @static - * @param {google.cloud.aiplatform.v1.IExportModelOperationMetadata} message ExportModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelsResponse} message ListModelsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListModelsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportModelOperationMetadata message from the specified reader or buffer. + * Decodes a ListModelsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @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.ExportModelOperationMetadata} ExportModelOperationMetadata + * @returns {google.cloud.aiplatform.v1.ListModelsResponse} ListModelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelOperationMetadata.decode = function decode(reader, length) { + ListModelsResponse.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.ExportModelOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelsResponse(); 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()); + if (!(message.models && message.models.length)) + message.models = []; + message.models.push($root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32())); break; } case 2: { - message.outputInfo = $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -115517,367 +119647,153 @@ }; /** - * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListModelsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata} ExportModelOperationMetadata + * @returns {google.cloud.aiplatform.v1.ListModelsResponse} ListModelsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListModelsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportModelOperationMetadata message. + * Verifies a ListModelsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportModelOperationMetadata.verify = function verify(message) { + ListModelsResponse.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; - } - if (message.outputInfo != null && message.hasOwnProperty("outputInfo")) { - var error = $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify(message.outputInfo); - if (error) - return "outputInfo." + error; + if (message.models != null && message.hasOwnProperty("models")) { + if (!Array.isArray(message.models)) + return "models: array expected"; + for (var i = 0; i < message.models.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Model.verify(message.models[i]); + if (error) + return "models." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata} ExportModelOperationMetadata + * @returns {google.cloud.aiplatform.v1.ListModelsResponse} ListModelsResponse */ - ExportModelOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata) + ListModelsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportModelOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.outputInfo != null) { - if (typeof object.outputInfo !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExportModelOperationMetadata.outputInfo: object expected"); - message.outputInfo = $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.fromObject(object.outputInfo); + var message = new $root.google.cloud.aiplatform.v1.ListModelsResponse(); + if (object.models) { + if (!Array.isArray(object.models)) + throw TypeError(".google.cloud.aiplatform.v1.ListModelsResponse.models: array expected"); + message.models = []; + for (var i = 0; i < object.models.length; ++i) { + if (typeof object.models[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelsResponse.models: object expected"); + message.models[i] = $root.google.cloud.aiplatform.v1.Model.fromObject(object.models[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListModelsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @static - * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata} message ExportModelOperationMetadata + * @param {google.cloud.aiplatform.v1.ListModelsResponse} message ListModelsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportModelOperationMetadata.toObject = function toObject(message, options) { + ListModelsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.outputInfo = null; + if (options.arrays || options.defaults) + object.models = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.models && message.models.length) { + object.models = []; + for (var j = 0; j < message.models.length; ++j) + object.models[j] = $root.google.cloud.aiplatform.v1.Model.toObject(message.models[j], options); } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.outputInfo != null && message.hasOwnProperty("outputInfo")) - object.outputInfo = $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.toObject(message.outputInfo, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ExportModelOperationMetadata to JSON. + * Converts this ListModelsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @instance * @returns {Object.} JSON object */ - ExportModelOperationMetadata.prototype.toJSON = function toJSON() { + ListModelsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportModelOperationMetadata + * Gets the default type url for ListModelsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @memberof google.cloud.aiplatform.v1.ListModelsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelsResponse"; }; - ExportModelOperationMetadata.OutputInfo = (function() { - - /** - * Properties of an OutputInfo. - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata - * @interface IOutputInfo - * @property {string|null} [artifactOutputUri] OutputInfo artifactOutputUri - * @property {string|null} [imageOutputUri] OutputInfo imageOutputUri - */ - - /** - * Constructs a new OutputInfo. - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata - * @classdesc Represents an OutputInfo. - * @implements IOutputInfo - * @constructor - * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo=} [properties] Properties to set - */ - function OutputInfo(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]]; - } - - /** - * OutputInfo artifactOutputUri. - * @member {string} artifactOutputUri - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @instance - */ - OutputInfo.prototype.artifactOutputUri = ""; - - /** - * OutputInfo imageOutputUri. - * @member {string} imageOutputUri - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @instance - */ - OutputInfo.prototype.imageOutputUri = ""; - - /** - * Creates a new OutputInfo instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} OutputInfo instance - */ - OutputInfo.create = function create(properties) { - return new OutputInfo(properties); - }; - - /** - * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo} message OutputInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactOutputUri != null && Object.hasOwnProperty.call(message, "artifactOutputUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.artifactOutputUri); - if (message.imageOutputUri != null && Object.hasOwnProperty.call(message, "imageOutputUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.imageOutputUri); - return writer; - }; - - /** - * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo} message OutputInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputInfo.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an OutputInfo message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @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.ExportModelOperationMetadata.OutputInfo} OutputInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputInfo.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.ExportModelOperationMetadata.OutputInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: { - message.artifactOutputUri = reader.string(); - break; - } - case 3: { - message.imageOutputUri = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an OutputInfo message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} OutputInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an OutputInfo message. - * @function verify - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OutputInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.artifactOutputUri != null && message.hasOwnProperty("artifactOutputUri")) - if (!$util.isString(message.artifactOutputUri)) - return "artifactOutputUri: string expected"; - if (message.imageOutputUri != null && message.hasOwnProperty("imageOutputUri")) - if (!$util.isString(message.imageOutputUri)) - return "imageOutputUri: string expected"; - return null; - }; - - /** - * Creates an OutputInfo message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} OutputInfo - */ - OutputInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo) - return object; - var message = new $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo(); - if (object.artifactOutputUri != null) - message.artifactOutputUri = String(object.artifactOutputUri); - if (object.imageOutputUri != null) - message.imageOutputUri = String(object.imageOutputUri); - return message; - }; - - /** - * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} message OutputInfo - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - OutputInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.artifactOutputUri = ""; - object.imageOutputUri = ""; - } - if (message.artifactOutputUri != null && message.hasOwnProperty("artifactOutputUri")) - object.artifactOutputUri = message.artifactOutputUri; - if (message.imageOutputUri != null && message.hasOwnProperty("imageOutputUri")) - object.imageOutputUri = message.imageOutputUri; - return object; - }; - - /** - * Converts this OutputInfo to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @instance - * @returns {Object.} JSON object - */ - OutputInfo.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for OutputInfo - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - OutputInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo"; - }; - - return OutputInfo; - })(); - - return ExportModelOperationMetadata; + return ListModelsResponse; })(); - v1.ExportModelResponse = (function() { + v1.ListModelVersionsRequest = (function() { /** - * Properties of an ExportModelResponse. + * Properties of a ListModelVersionsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IExportModelResponse + * @interface IListModelVersionsRequest + * @property {string|null} [name] ListModelVersionsRequest name + * @property {number|null} [pageSize] ListModelVersionsRequest pageSize + * @property {string|null} [pageToken] ListModelVersionsRequest pageToken + * @property {string|null} [filter] ListModelVersionsRequest filter + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelVersionsRequest readMask + * @property {string|null} [orderBy] ListModelVersionsRequest orderBy */ /** - * Constructs a new ExportModelResponse. + * Constructs a new ListModelVersionsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ExportModelResponse. - * @implements IExportModelResponse + * @classdesc Represents a ListModelVersionsRequest. + * @implements IListModelVersionsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IExportModelResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest=} [properties] Properties to set */ - function ExportModelResponse(properties) { + function ListModelVersionsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -115885,63 +119801,147 @@ } /** - * Creates a new ExportModelResponse instance using the specified properties. + * ListModelVersionsRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.name = ""; + + /** + * ListModelVersionsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.pageSize = 0; + + /** + * ListModelVersionsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.pageToken = ""; + + /** + * ListModelVersionsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.filter = ""; + + /** + * ListModelVersionsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.readMask = null; + + /** + * ListModelVersionsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListModelVersionsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @static - * @param {google.cloud.aiplatform.v1.IExportModelResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExportModelResponse} ExportModelResponse instance + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest instance */ - ExportModelResponse.create = function create(properties) { - return new ExportModelResponse(properties); + ListModelVersionsRequest.create = function create(properties) { + return new ListModelVersionsRequest(properties); }; /** - * Encodes the specified ExportModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelResponse.verify|verify} messages. + * Encodes the specified ListModelVersionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @static - * @param {google.cloud.aiplatform.v1.IExportModelResponse} message ExportModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} message ListModelVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelResponse.encode = function encode(message, writer) { + ListModelVersionsRequest.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); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); return writer; }; /** - * Encodes the specified ExportModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelResponse.verify|verify} messages. + * Encodes the specified ListModelVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @static - * @param {google.cloud.aiplatform.v1.IExportModelResponse} message ExportModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} message ListModelVersionsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListModelVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportModelResponse message from the specified reader or buffer. + * Decodes a ListModelVersionsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @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.ExportModelResponse} ExportModelResponse + * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelResponse.decode = function decode(reader, length) { + ListModelVersionsRequest.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.ExportModelResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelVersionsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.pageSize = reader.int32(); + break; + } + case 3: { + message.pageToken = reader.string(); + break; + } + case 4: { + message.filter = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 6: { + message.orderBy = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -115951,110 +119951,170 @@ }; /** - * Decodes an ExportModelResponse message from the specified reader or buffer, length delimited. + * Decodes a ListModelVersionsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExportModelResponse} ExportModelResponse + * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportModelResponse.decodeDelimited = function decodeDelimited(reader) { + ListModelVersionsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportModelResponse message. + * Verifies a ListModelVersionsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportModelResponse.verify = function verify(message) { + ListModelVersionsRequest.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"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates an ExportModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelVersionsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExportModelResponse} ExportModelResponse + * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest */ - ExportModelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelResponse) + ListModelVersionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelVersionsRequest) return object; - return new $root.google.cloud.aiplatform.v1.ExportModelResponse(); + var message = new $root.google.cloud.aiplatform.v1.ListModelVersionsRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelVersionsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + return message; }; /** - * Creates a plain object from an ExportModelResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListModelVersionsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @static - * @param {google.cloud.aiplatform.v1.ExportModelResponse} message ExportModelResponse + * @param {google.cloud.aiplatform.v1.ListModelVersionsRequest} message ListModelVersionsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportModelResponse.toObject = function toObject() { - return {}; + ListModelVersionsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.readMask = null; + object.orderBy = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; }; /** - * Converts this ExportModelResponse to JSON. + * Converts this ListModelVersionsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @instance * @returns {Object.} JSON object */ - ExportModelResponse.prototype.toJSON = function toJSON() { + ListModelVersionsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExportModelResponse + * Gets the default type url for ListModelVersionsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExportModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelVersionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelVersionsRequest"; }; - return ExportModelResponse; + return ListModelVersionsRequest; })(); - v1.ImportModelEvaluationRequest = (function() { + v1.ListModelVersionsResponse = (function() { /** - * Properties of an ImportModelEvaluationRequest. + * Properties of a ListModelVersionsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IImportModelEvaluationRequest - * @property {string|null} [parent] ImportModelEvaluationRequest parent - * @property {google.cloud.aiplatform.v1.IModelEvaluation|null} [modelEvaluation] ImportModelEvaluationRequest modelEvaluation + * @interface IListModelVersionsResponse + * @property {Array.|null} [models] ListModelVersionsResponse models + * @property {string|null} [nextPageToken] ListModelVersionsResponse nextPageToken */ /** - * Constructs a new ImportModelEvaluationRequest. + * Constructs a new ListModelVersionsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ImportModelEvaluationRequest. - * @implements IImportModelEvaluationRequest + * @classdesc Represents a ListModelVersionsResponse. + * @implements IListModelVersionsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse=} [properties] Properties to set */ - function ImportModelEvaluationRequest(properties) { + function ListModelVersionsResponse(properties) { + this.models = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -116062,89 +120122,92 @@ } /** - * ImportModelEvaluationRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * ListModelVersionsResponse models. + * @member {Array.} models + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @instance */ - ImportModelEvaluationRequest.prototype.parent = ""; + ListModelVersionsResponse.prototype.models = $util.emptyArray; /** - * ImportModelEvaluationRequest modelEvaluation. - * @member {google.cloud.aiplatform.v1.IModelEvaluation|null|undefined} modelEvaluation - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * ListModelVersionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @instance */ - ImportModelEvaluationRequest.prototype.modelEvaluation = null; + ListModelVersionsResponse.prototype.nextPageToken = ""; /** - * Creates a new ImportModelEvaluationRequest instance using the specified properties. + * Creates a new ListModelVersionsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @static - * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} ImportModelEvaluationRequest instance + * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse instance */ - ImportModelEvaluationRequest.create = function create(properties) { - return new ImportModelEvaluationRequest(properties); + ListModelVersionsResponse.create = function create(properties) { + return new ListModelVersionsResponse(properties); }; /** - * Encodes the specified ImportModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportModelEvaluationRequest.verify|verify} messages. + * Encodes the specified ListModelVersionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @static - * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest} message ImportModelEvaluationRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse} message ListModelVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportModelEvaluationRequest.encode = function encode(message, writer) { + ListModelVersionsResponse.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.modelEvaluation != null && Object.hasOwnProperty.call(message, "modelEvaluation")) - $root.google.cloud.aiplatform.v1.ModelEvaluation.encode(message.modelEvaluation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.models != null && message.models.length) + for (var i = 0; i < message.models.length; ++i) + $root.google.cloud.aiplatform.v1.Model.encode(message.models[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ImportModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportModelEvaluationRequest.verify|verify} messages. + * Encodes the specified ListModelVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @static - * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest} message ImportModelEvaluationRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse} message ListModelVersionsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListModelVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer. + * Decodes a ListModelVersionsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @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.ImportModelEvaluationRequest} ImportModelEvaluationRequest + * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportModelEvaluationRequest.decode = function decode(reader, length) { + ListModelVersionsResponse.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.ImportModelEvaluationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelVersionsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.models && message.models.length)) + message.models = []; + message.models.push($root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32())); break; } case 2: { - message.modelEvaluation = $root.google.cloud.aiplatform.v1.ModelEvaluation.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -116156,138 +120219,149 @@ }; /** - * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelVersionsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} ImportModelEvaluationRequest + * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { + ListModelVersionsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportModelEvaluationRequest message. + * Verifies a ListModelVersionsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportModelEvaluationRequest.verify = function verify(message) { + ListModelVersionsResponse.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.modelEvaluation != null && message.hasOwnProperty("modelEvaluation")) { - var error = $root.google.cloud.aiplatform.v1.ModelEvaluation.verify(message.modelEvaluation); - if (error) - return "modelEvaluation." + error; + if (message.models != null && message.hasOwnProperty("models")) { + if (!Array.isArray(message.models)) + return "models: array expected"; + for (var i = 0; i < message.models.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Model.verify(message.models[i]); + if (error) + return "models." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an ImportModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelVersionsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} ImportModelEvaluationRequest + * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse */ - ImportModelEvaluationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ImportModelEvaluationRequest) + ListModelVersionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelVersionsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ImportModelEvaluationRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.modelEvaluation != null) { - if (typeof object.modelEvaluation !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ImportModelEvaluationRequest.modelEvaluation: object expected"); - message.modelEvaluation = $root.google.cloud.aiplatform.v1.ModelEvaluation.fromObject(object.modelEvaluation); + var message = new $root.google.cloud.aiplatform.v1.ListModelVersionsResponse(); + if (object.models) { + if (!Array.isArray(object.models)) + throw TypeError(".google.cloud.aiplatform.v1.ListModelVersionsResponse.models: array expected"); + message.models = []; + for (var i = 0; i < object.models.length; ++i) { + if (typeof object.models[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelVersionsResponse.models: object expected"); + message.models[i] = $root.google.cloud.aiplatform.v1.Model.fromObject(object.models[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an ImportModelEvaluationRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListModelVersionsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @static - * @param {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} message ImportModelEvaluationRequest + * @param {google.cloud.aiplatform.v1.ListModelVersionsResponse} message ListModelVersionsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportModelEvaluationRequest.toObject = function toObject(message, options) { + ListModelVersionsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.modelEvaluation = null; + if (options.arrays || options.defaults) + object.models = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.models && message.models.length) { + object.models = []; + for (var j = 0; j < message.models.length; ++j) + object.models[j] = $root.google.cloud.aiplatform.v1.Model.toObject(message.models[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.modelEvaluation != null && message.hasOwnProperty("modelEvaluation")) - object.modelEvaluation = $root.google.cloud.aiplatform.v1.ModelEvaluation.toObject(message.modelEvaluation, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ImportModelEvaluationRequest to JSON. + * Converts this ListModelVersionsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @instance * @returns {Object.} JSON object */ - ImportModelEvaluationRequest.prototype.toJSON = function toJSON() { + ListModelVersionsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ImportModelEvaluationRequest + * Gets the default type url for ListModelVersionsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ImportModelEvaluationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelVersionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ImportModelEvaluationRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelVersionsResponse"; }; - return ImportModelEvaluationRequest; + return ListModelVersionsResponse; })(); - v1.BatchImportModelEvaluationSlicesRequest = (function() { + v1.UpdateModelRequest = (function() { /** - * Properties of a BatchImportModelEvaluationSlicesRequest. + * Properties of an UpdateModelRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IBatchImportModelEvaluationSlicesRequest - * @property {string|null} [parent] BatchImportModelEvaluationSlicesRequest parent - * @property {Array.|null} [modelEvaluationSlices] BatchImportModelEvaluationSlicesRequest modelEvaluationSlices + * @interface IUpdateModelRequest + * @property {google.cloud.aiplatform.v1.IModel|null} [model] UpdateModelRequest model + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelRequest updateMask */ /** - * Constructs a new BatchImportModelEvaluationSlicesRequest. + * Constructs a new UpdateModelRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BatchImportModelEvaluationSlicesRequest. - * @implements IBatchImportModelEvaluationSlicesRequest + * @classdesc Represents an UpdateModelRequest. + * @implements IUpdateModelRequest * @constructor - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IUpdateModelRequest=} [properties] Properties to set */ - function BatchImportModelEvaluationSlicesRequest(properties) { - this.modelEvaluationSlices = []; + function UpdateModelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -116295,92 +120369,89 @@ } /** - * BatchImportModelEvaluationSlicesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * UpdateModelRequest model. + * @member {google.cloud.aiplatform.v1.IModel|null|undefined} model + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @instance */ - BatchImportModelEvaluationSlicesRequest.prototype.parent = ""; + UpdateModelRequest.prototype.model = null; /** - * BatchImportModelEvaluationSlicesRequest modelEvaluationSlices. - * @member {Array.} modelEvaluationSlices - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * UpdateModelRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @instance */ - BatchImportModelEvaluationSlicesRequest.prototype.modelEvaluationSlices = $util.emptyArray; + UpdateModelRequest.prototype.updateMask = null; /** - * Creates a new BatchImportModelEvaluationSlicesRequest instance using the specified properties. + * Creates a new UpdateModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest instance + * @param {google.cloud.aiplatform.v1.IUpdateModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.UpdateModelRequest} UpdateModelRequest instance */ - BatchImportModelEvaluationSlicesRequest.create = function create(properties) { - return new BatchImportModelEvaluationSlicesRequest(properties); + UpdateModelRequest.create = function create(properties) { + return new UpdateModelRequest(properties); }; /** - * Encodes the specified BatchImportModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * Encodes the specified UpdateModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateModelRequest} message UpdateModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchImportModelEvaluationSlicesRequest.encode = function encode(message, writer) { + UpdateModelRequest.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.modelEvaluationSlices != null && message.modelEvaluationSlices.length) - for (var i = 0; i < message.modelEvaluationSlices.length; ++i) - $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.encode(message.modelEvaluationSlices[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + $root.google.cloud.aiplatform.v1.Model.encode(message.model, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchImportModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * Encodes the specified UpdateModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.UpdateModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IUpdateModelRequest} message UpdateModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchImportModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer. + * Decodes an UpdateModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @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.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1.UpdateModelRequest} UpdateModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchImportModelEvaluationSlicesRequest.decode = function decode(reader, length) { + UpdateModelRequest.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.BatchImportModelEvaluationSlicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.UpdateModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.model = $root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32()); break; } case 2: { - if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) - message.modelEvaluationSlices = []; - message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1.ModelEvaluationSlice.decode(reader, reader.uint32())); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -116392,149 +120463,141 @@ }; /** - * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1.UpdateModelRequest} UpdateModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchImportModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchImportModelEvaluationSlicesRequest message. + * Verifies an UpdateModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchImportModelEvaluationSlicesRequest.verify = function verify(message) { + UpdateModelRequest.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.modelEvaluationSlices != null && message.hasOwnProperty("modelEvaluationSlices")) { - if (!Array.isArray(message.modelEvaluationSlices)) - return "modelEvaluationSlices: array expected"; - for (var i = 0; i < message.modelEvaluationSlices.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.verify(message.modelEvaluationSlices[i]); - if (error) - return "modelEvaluationSlices." + error; - } + if (message.model != null && message.hasOwnProperty("model")) { + var error = $root.google.cloud.aiplatform.v1.Model.verify(message.model); + if (error) + return "model." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a BatchImportModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1.UpdateModelRequest} UpdateModelRequest */ - BatchImportModelEvaluationSlicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest) + UpdateModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.UpdateModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.modelEvaluationSlices) { - if (!Array.isArray(object.modelEvaluationSlices)) - throw TypeError(".google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.modelEvaluationSlices: array expected"); - message.modelEvaluationSlices = []; - for (var i = 0; i < object.modelEvaluationSlices.length; ++i) { - if (typeof object.modelEvaluationSlices[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.modelEvaluationSlices: object expected"); - message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); - } + var message = new $root.google.cloud.aiplatform.v1.UpdateModelRequest(); + if (object.model != null) { + if (typeof object.model !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateModelRequest.model: object expected"); + message.model = $root.google.cloud.aiplatform.v1.Model.fromObject(object.model); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.UpdateModelRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a BatchImportModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @static - * @param {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest + * @param {google.cloud.aiplatform.v1.UpdateModelRequest} message UpdateModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchImportModelEvaluationSlicesRequest.toObject = function toObject(message, options) { + UpdateModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.modelEvaluationSlices = []; - if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.modelEvaluationSlices && message.modelEvaluationSlices.length) { - object.modelEvaluationSlices = []; - for (var j = 0; j < message.modelEvaluationSlices.length; ++j) - object.modelEvaluationSlices[j] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.toObject(message.modelEvaluationSlices[j], options); + if (options.defaults) { + object.model = null; + object.updateMask = null; } + if (message.model != null && message.hasOwnProperty("model")) + object.model = $root.google.cloud.aiplatform.v1.Model.toObject(message.model, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this BatchImportModelEvaluationSlicesRequest to JSON. + * Converts this UpdateModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @instance * @returns {Object.} JSON object */ - BatchImportModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { + UpdateModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchImportModelEvaluationSlicesRequest + * Gets the default type url for UpdateModelRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.UpdateModelRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchImportModelEvaluationSlicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.UpdateModelRequest"; }; - return BatchImportModelEvaluationSlicesRequest; + return UpdateModelRequest; })(); - v1.BatchImportModelEvaluationSlicesResponse = (function() { + v1.DeleteModelRequest = (function() { /** - * Properties of a BatchImportModelEvaluationSlicesResponse. + * Properties of a DeleteModelRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IBatchImportModelEvaluationSlicesResponse - * @property {Array.|null} [importedModelEvaluationSlices] BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices + * @interface IDeleteModelRequest + * @property {string|null} [name] DeleteModelRequest name */ /** - * Constructs a new BatchImportModelEvaluationSlicesResponse. + * Constructs a new DeleteModelRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a BatchImportModelEvaluationSlicesResponse. - * @implements IBatchImportModelEvaluationSlicesResponse + * @classdesc Represents a DeleteModelRequest. + * @implements IDeleteModelRequest * @constructor - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteModelRequest=} [properties] Properties to set */ - function BatchImportModelEvaluationSlicesResponse(properties) { - this.importedModelEvaluationSlices = []; + function DeleteModelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -116542,78 +120605,75 @@ } /** - * BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices. - * @member {Array.} importedModelEvaluationSlices - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * DeleteModelRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @instance */ - BatchImportModelEvaluationSlicesResponse.prototype.importedModelEvaluationSlices = $util.emptyArray; + DeleteModelRequest.prototype.name = ""; /** - * Creates a new BatchImportModelEvaluationSlicesResponse instance using the specified properties. + * Creates a new DeleteModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse instance + * @param {google.cloud.aiplatform.v1.IDeleteModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteModelRequest} DeleteModelRequest instance */ - BatchImportModelEvaluationSlicesResponse.create = function create(properties) { - return new BatchImportModelEvaluationSlicesResponse(properties); + DeleteModelRequest.create = function create(properties) { + return new DeleteModelRequest(properties); }; /** - * Encodes the specified BatchImportModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * Encodes the specified DeleteModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteModelRequest} message DeleteModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchImportModelEvaluationSlicesResponse.encode = function encode(message, writer) { + DeleteModelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.importedModelEvaluationSlices != null && message.importedModelEvaluationSlices.length) - for (var i = 0; i < message.importedModelEvaluationSlices.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.importedModelEvaluationSlices[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified BatchImportModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * Encodes the specified DeleteModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @static - * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteModelRequest} message DeleteModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchImportModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer. + * Decodes a DeleteModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @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.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1.DeleteModelRequest} DeleteModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchImportModelEvaluationSlicesResponse.decode = function decode(reader, length) { + DeleteModelRequest.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.BatchImportModelEvaluationSlicesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.importedModelEvaluationSlices && message.importedModelEvaluationSlices.length)) - message.importedModelEvaluationSlices = []; - message.importedModelEvaluationSlices.push(reader.string()); + message.name = reader.string(); break; } default: @@ -116625,134 +120685,122 @@ }; /** - * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1.DeleteModelRequest} DeleteModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchImportModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchImportModelEvaluationSlicesResponse message. + * Verifies a DeleteModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchImportModelEvaluationSlicesResponse.verify = function verify(message) { + DeleteModelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.importedModelEvaluationSlices != null && message.hasOwnProperty("importedModelEvaluationSlices")) { - if (!Array.isArray(message.importedModelEvaluationSlices)) - return "importedModelEvaluationSlices: array expected"; - for (var i = 0; i < message.importedModelEvaluationSlices.length; ++i) - if (!$util.isString(message.importedModelEvaluationSlices[i])) - return "importedModelEvaluationSlices: string[] expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a BatchImportModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1.DeleteModelRequest} DeleteModelRequest */ - BatchImportModelEvaluationSlicesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse) + DeleteModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse(); - if (object.importedModelEvaluationSlices) { - if (!Array.isArray(object.importedModelEvaluationSlices)) - throw TypeError(".google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.importedModelEvaluationSlices: array expected"); - message.importedModelEvaluationSlices = []; - for (var i = 0; i < object.importedModelEvaluationSlices.length; ++i) - message.importedModelEvaluationSlices[i] = String(object.importedModelEvaluationSlices[i]); - } + var message = new $root.google.cloud.aiplatform.v1.DeleteModelRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a BatchImportModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @static - * @param {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse + * @param {google.cloud.aiplatform.v1.DeleteModelRequest} message DeleteModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchImportModelEvaluationSlicesResponse.toObject = function toObject(message, options) { + DeleteModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.importedModelEvaluationSlices = []; - if (message.importedModelEvaluationSlices && message.importedModelEvaluationSlices.length) { - object.importedModelEvaluationSlices = []; - for (var j = 0; j < message.importedModelEvaluationSlices.length; ++j) - object.importedModelEvaluationSlices[j] = message.importedModelEvaluationSlices[j]; - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this BatchImportModelEvaluationSlicesResponse to JSON. + * Converts this DeleteModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @instance * @returns {Object.} JSON object */ - BatchImportModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { + DeleteModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for BatchImportModelEvaluationSlicesResponse + * Gets the default type url for DeleteModelRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.DeleteModelRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - BatchImportModelEvaluationSlicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteModelRequest"; }; - return BatchImportModelEvaluationSlicesResponse; + return DeleteModelRequest; })(); - v1.GetModelEvaluationRequest = (function() { + v1.DeleteModelVersionRequest = (function() { /** - * Properties of a GetModelEvaluationRequest. + * Properties of a DeleteModelVersionRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetModelEvaluationRequest - * @property {string|null} [name] GetModelEvaluationRequest name + * @interface IDeleteModelVersionRequest + * @property {string|null} [name] DeleteModelVersionRequest name */ /** - * Constructs a new GetModelEvaluationRequest. + * Constructs a new DeleteModelVersionRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetModelEvaluationRequest. - * @implements IGetModelEvaluationRequest + * @classdesc Represents a DeleteModelVersionRequest. + * @implements IDeleteModelVersionRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest=} [properties] Properties to set */ - function GetModelEvaluationRequest(properties) { + function DeleteModelVersionRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -116760,35 +120808,35 @@ } /** - * GetModelEvaluationRequest name. + * DeleteModelVersionRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @instance */ - GetModelEvaluationRequest.prototype.name = ""; + DeleteModelVersionRequest.prototype.name = ""; /** - * Creates a new GetModelEvaluationRequest instance using the specified properties. + * Creates a new DeleteModelVersionRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest instance + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest instance */ - GetModelEvaluationRequest.create = function create(properties) { - return new GetModelEvaluationRequest(properties); + DeleteModelVersionRequest.create = function create(properties) { + return new DeleteModelVersionRequest(properties); }; /** - * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. + * Encodes the specified DeleteModelVersionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} message DeleteModelVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelEvaluationRequest.encode = function encode(message, writer) { + DeleteModelVersionRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -116797,33 +120845,33 @@ }; /** - * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. + * Encodes the specified DeleteModelVersionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} message DeleteModelVersionRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteModelVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @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.GetModelEvaluationRequest} GetModelEvaluationRequest + * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelEvaluationRequest.decode = function decode(reader, length) { + DeleteModelVersionRequest.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.GetModelEvaluationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -116840,30 +120888,30 @@ }; /** - * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest + * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteModelVersionRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetModelEvaluationRequest message. + * Verifies a DeleteModelVersionRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetModelEvaluationRequest.verify = function verify(message) { + DeleteModelVersionRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -116873,32 +120921,32 @@ }; /** - * Creates a GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelVersionRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest + * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest */ - GetModelEvaluationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest) + DeleteModelVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest(); + var message = new $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteModelVersionRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @static - * @param {google.cloud.aiplatform.v1.GetModelEvaluationRequest} message GetModelEvaluationRequest + * @param {google.cloud.aiplatform.v1.DeleteModelVersionRequest} message DeleteModelVersionRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetModelEvaluationRequest.toObject = function toObject(message, options) { + DeleteModelVersionRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -116910,56 +120958,54 @@ }; /** - * Converts this GetModelEvaluationRequest to JSON. + * Converts this DeleteModelVersionRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @instance * @returns {Object.} JSON object */ - GetModelEvaluationRequest.prototype.toJSON = function toJSON() { + DeleteModelVersionRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetModelEvaluationRequest + * Gets the default type url for DeleteModelVersionRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetModelEvaluationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteModelVersionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelEvaluationRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteModelVersionRequest"; }; - return GetModelEvaluationRequest; + return DeleteModelVersionRequest; })(); - v1.ListModelEvaluationsRequest = (function() { + v1.MergeVersionAliasesRequest = (function() { /** - * Properties of a ListModelEvaluationsRequest. + * Properties of a MergeVersionAliasesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelEvaluationsRequest - * @property {string|null} [parent] ListModelEvaluationsRequest parent - * @property {string|null} [filter] ListModelEvaluationsRequest filter - * @property {number|null} [pageSize] ListModelEvaluationsRequest pageSize - * @property {string|null} [pageToken] ListModelEvaluationsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationsRequest readMask + * @interface IMergeVersionAliasesRequest + * @property {string|null} [name] MergeVersionAliasesRequest name + * @property {Array.|null} [versionAliases] MergeVersionAliasesRequest versionAliases */ /** - * Constructs a new ListModelEvaluationsRequest. + * Constructs a new MergeVersionAliasesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelEvaluationsRequest. - * @implements IListModelEvaluationsRequest + * @classdesc Represents a MergeVersionAliasesRequest. + * @implements IMergeVersionAliasesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest=} [properties] Properties to set */ - function ListModelEvaluationsRequest(properties) { + function MergeVersionAliasesRequest(properties) { + this.versionAliases = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -116967,131 +121013,92 @@ } /** - * ListModelEvaluationsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @instance - */ - ListModelEvaluationsRequest.prototype.parent = ""; - - /** - * ListModelEvaluationsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @instance - */ - ListModelEvaluationsRequest.prototype.filter = ""; - - /** - * ListModelEvaluationsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest - * @instance - */ - ListModelEvaluationsRequest.prototype.pageSize = 0; - - /** - * ListModelEvaluationsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * MergeVersionAliasesRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @instance */ - ListModelEvaluationsRequest.prototype.pageToken = ""; + MergeVersionAliasesRequest.prototype.name = ""; /** - * ListModelEvaluationsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * MergeVersionAliasesRequest versionAliases. + * @member {Array.} versionAliases + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @instance */ - ListModelEvaluationsRequest.prototype.readMask = null; + MergeVersionAliasesRequest.prototype.versionAliases = $util.emptyArray; /** - * Creates a new ListModelEvaluationsRequest instance using the specified properties. + * Creates a new MergeVersionAliasesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest instance + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest instance */ - ListModelEvaluationsRequest.create = function create(properties) { - return new ListModelEvaluationsRequest(properties); + MergeVersionAliasesRequest.create = function create(properties) { + return new MergeVersionAliasesRequest(properties); }; /** - * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. + * Encodes the specified MergeVersionAliasesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} message MergeVersionAliasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationsRequest.encode = function encode(message, writer) { + MergeVersionAliasesRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.versionAliases != null && message.versionAliases.length) + for (var i = 0; i < message.versionAliases.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.versionAliases[i]); return writer; }; /** - * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. + * Encodes the specified MergeVersionAliasesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} message MergeVersionAliasesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MergeVersionAliasesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @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.ListModelEvaluationsRequest} ListModelEvaluationsRequest + * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationsRequest.decode = function decode(reader, length) { + MergeVersionAliasesRequest.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.ListModelEvaluationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + if (!(message.versionAliases && message.versionAliases.length)) + message.versionAliases = []; + message.versionAliases.push(reader.string()); break; } default: @@ -117103,162 +121110,144 @@ }; /** - * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest + * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationsRequest.decodeDelimited = function decodeDelimited(reader) { + MergeVersionAliasesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelEvaluationsRequest message. + * Verifies a MergeVersionAliasesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelEvaluationsRequest.verify = function verify(message) { + MergeVersionAliasesRequest.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.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.versionAliases != null && message.hasOwnProperty("versionAliases")) { + if (!Array.isArray(message.versionAliases)) + return "versionAliases: array expected"; + for (var i = 0; i < message.versionAliases.length; ++i) + if (!$util.isString(message.versionAliases[i])) + return "versionAliases: string[] expected"; } return null; }; /** - * Creates a ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MergeVersionAliasesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest + * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest */ - ListModelEvaluationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest) + MergeVersionAliasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.versionAliases) { + if (!Array.isArray(object.versionAliases)) + throw TypeError(".google.cloud.aiplatform.v1.MergeVersionAliasesRequest.versionAliases: array expected"); + message.versionAliases = []; + for (var i = 0; i < object.versionAliases.length; ++i) + message.versionAliases[i] = String(object.versionAliases[i]); } return message; }; /** - * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MergeVersionAliasesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @static - * @param {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} message ListModelEvaluationsRequest + * @param {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} message MergeVersionAliasesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelEvaluationsRequest.toObject = function toObject(message, options) { + MergeVersionAliasesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + if (options.arrays || options.defaults) + object.versionAliases = []; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.versionAliases && message.versionAliases.length) { + object.versionAliases = []; + for (var j = 0; j < message.versionAliases.length; ++j) + object.versionAliases[j] = message.versionAliases[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ListModelEvaluationsRequest to JSON. + * Converts this MergeVersionAliasesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @instance * @returns {Object.} JSON object */ - ListModelEvaluationsRequest.prototype.toJSON = function toJSON() { + MergeVersionAliasesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelEvaluationsRequest + * Gets the default type url for MergeVersionAliasesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelEvaluationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MergeVersionAliasesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.MergeVersionAliasesRequest"; }; - return ListModelEvaluationsRequest; + return MergeVersionAliasesRequest; })(); - v1.ListModelEvaluationsResponse = (function() { + v1.ExportModelRequest = (function() { /** - * Properties of a ListModelEvaluationsResponse. + * Properties of an ExportModelRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelEvaluationsResponse - * @property {Array.|null} [modelEvaluations] ListModelEvaluationsResponse modelEvaluations - * @property {string|null} [nextPageToken] ListModelEvaluationsResponse nextPageToken + * @interface IExportModelRequest + * @property {string|null} [name] ExportModelRequest name + * @property {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig|null} [outputConfig] ExportModelRequest outputConfig */ /** - * Constructs a new ListModelEvaluationsResponse. + * Constructs a new ExportModelRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelEvaluationsResponse. - * @implements IListModelEvaluationsResponse + * @classdesc Represents an ExportModelRequest. + * @implements IExportModelRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IExportModelRequest=} [properties] Properties to set */ - function ListModelEvaluationsResponse(properties) { - this.modelEvaluations = []; + function ExportModelRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -117266,92 +121255,89 @@ } /** - * ListModelEvaluationsResponse modelEvaluations. - * @member {Array.} modelEvaluations - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * ExportModelRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @instance */ - ListModelEvaluationsResponse.prototype.modelEvaluations = $util.emptyArray; + ExportModelRequest.prototype.name = ""; /** - * ListModelEvaluationsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * ExportModelRequest outputConfig. + * @member {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig|null|undefined} outputConfig + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @instance */ - ListModelEvaluationsResponse.prototype.nextPageToken = ""; + ExportModelRequest.prototype.outputConfig = null; /** - * Creates a new ListModelEvaluationsResponse instance using the specified properties. + * Creates a new ExportModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse instance + * @param {google.cloud.aiplatform.v1.IExportModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExportModelRequest} ExportModelRequest instance */ - ListModelEvaluationsResponse.create = function create(properties) { - return new ListModelEvaluationsResponse(properties); + ExportModelRequest.create = function create(properties) { + return new ExportModelRequest(properties); }; /** - * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. + * Encodes the specified ExportModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IExportModelRequest} message ExportModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationsResponse.encode = function encode(message, writer) { + ExportModelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelEvaluations != null && message.modelEvaluations.length) - for (var i = 0; i < message.modelEvaluations.length; ++i) - $root.google.cloud.aiplatform.v1.ModelEvaluation.encode(message.modelEvaluations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.outputConfig != null && Object.hasOwnProperty.call(message, "outputConfig")) + $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.encode(message.outputConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. + * Encodes the specified ExportModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IExportModelRequest} message ExportModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExportModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. + * Decodes an ExportModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @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.ListModelEvaluationsResponse} ListModelEvaluationsResponse + * @returns {google.cloud.aiplatform.v1.ExportModelRequest} ExportModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationsResponse.decode = function decode(reader, length) { + ExportModelRequest.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.ListModelEvaluationsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.modelEvaluations && message.modelEvaluations.length)) - message.modelEvaluations = []; - message.modelEvaluations.push($root.google.cloud.aiplatform.v1.ModelEvaluation.decode(reader, reader.uint32())); + message.name = reader.string(); break; } case 2: { - message.nextPageToken = reader.string(); + message.outputConfig = $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.decode(reader, reader.uint32()); break; } default: @@ -117363,148 +121349,397 @@ }; /** - * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. + * Decodes an ExportModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse + * @returns {google.cloud.aiplatform.v1.ExportModelRequest} ExportModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationsResponse.decodeDelimited = function decodeDelimited(reader) { + ExportModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelEvaluationsResponse message. + * Verifies an ExportModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelEvaluationsResponse.verify = function verify(message) { + ExportModelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelEvaluations != null && message.hasOwnProperty("modelEvaluations")) { - if (!Array.isArray(message.modelEvaluations)) - return "modelEvaluations: array expected"; - for (var i = 0; i < message.modelEvaluations.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelEvaluation.verify(message.modelEvaluations[i]); - if (error) - return "modelEvaluations." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.outputConfig != null && message.hasOwnProperty("outputConfig")) { + var error = $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify(message.outputConfig); + if (error) + return "outputConfig." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExportModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse + * @returns {google.cloud.aiplatform.v1.ExportModelRequest} ExportModelRequest */ - ListModelEvaluationsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse) + ExportModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse(); - if (object.modelEvaluations) { - if (!Array.isArray(object.modelEvaluations)) - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsResponse.modelEvaluations: array expected"); - message.modelEvaluations = []; - for (var i = 0; i < object.modelEvaluations.length; ++i) { - if (typeof object.modelEvaluations[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsResponse.modelEvaluations: object expected"); - message.modelEvaluations[i] = $root.google.cloud.aiplatform.v1.ModelEvaluation.fromObject(object.modelEvaluations[i]); - } + var message = new $root.google.cloud.aiplatform.v1.ExportModelRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.outputConfig != null) { + if (typeof object.outputConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportModelRequest.outputConfig: object expected"); + message.outputConfig = $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.fromObject(object.outputConfig); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExportModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @static - * @param {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} message ListModelEvaluationsResponse + * @param {google.cloud.aiplatform.v1.ExportModelRequest} message ExportModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelEvaluationsResponse.toObject = function toObject(message, options) { + ExportModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.modelEvaluations = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.modelEvaluations && message.modelEvaluations.length) { - object.modelEvaluations = []; - for (var j = 0; j < message.modelEvaluations.length; ++j) - object.modelEvaluations[j] = $root.google.cloud.aiplatform.v1.ModelEvaluation.toObject(message.modelEvaluations[j], options); + if (options.defaults) { + object.name = ""; + object.outputConfig = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.outputConfig != null && message.hasOwnProperty("outputConfig")) + object.outputConfig = $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.toObject(message.outputConfig, options); return object; }; /** - * Converts this ListModelEvaluationsResponse to JSON. + * Converts this ExportModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @instance * @returns {Object.} JSON object */ - ListModelEvaluationsResponse.prototype.toJSON = function toJSON() { + ExportModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelEvaluationsResponse + * Gets the default type url for ExportModelRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @memberof google.cloud.aiplatform.v1.ExportModelRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelEvaluationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelRequest"; }; - return ListModelEvaluationsResponse; + ExportModelRequest.OutputConfig = (function() { + + /** + * Properties of an OutputConfig. + * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @interface IOutputConfig + * @property {string|null} [exportFormatId] OutputConfig exportFormatId + * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [artifactDestination] OutputConfig artifactDestination + * @property {google.cloud.aiplatform.v1.IContainerRegistryDestination|null} [imageDestination] OutputConfig imageDestination + */ + + /** + * Constructs a new OutputConfig. + * @memberof google.cloud.aiplatform.v1.ExportModelRequest + * @classdesc Represents an OutputConfig. + * @implements IOutputConfig + * @constructor + * @param {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig=} [properties] Properties to set + */ + function OutputConfig(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]]; + } + + /** + * OutputConfig exportFormatId. + * @member {string} exportFormatId + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @instance + */ + OutputConfig.prototype.exportFormatId = ""; + + /** + * OutputConfig artifactDestination. + * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} artifactDestination + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @instance + */ + OutputConfig.prototype.artifactDestination = null; + + /** + * OutputConfig imageDestination. + * @member {google.cloud.aiplatform.v1.IContainerRegistryDestination|null|undefined} imageDestination + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @instance + */ + OutputConfig.prototype.imageDestination = null; + + /** + * Creates a new OutputConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @static + * @param {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} OutputConfig instance + */ + OutputConfig.create = function create(properties) { + return new OutputConfig(properties); + }; + + /** + * Encodes the specified OutputConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @static + * @param {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig} message OutputConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.exportFormatId != null && Object.hasOwnProperty.call(message, "exportFormatId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.exportFormatId); + if (message.artifactDestination != null && Object.hasOwnProperty.call(message, "artifactDestination")) + $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.artifactDestination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.imageDestination != null && Object.hasOwnProperty.call(message, "imageDestination")) + $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.encode(message.imageDestination, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OutputConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @static + * @param {google.cloud.aiplatform.v1.ExportModelRequest.IOutputConfig} message OutputConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OutputConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @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.ExportModelRequest.OutputConfig} OutputConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputConfig.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.ExportModelRequest.OutputConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.exportFormatId = reader.string(); + break; + } + case 3: { + message.artifactDestination = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); + break; + } + case 4: { + message.imageDestination = $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OutputConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} OutputConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OutputConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OutputConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.exportFormatId != null && message.hasOwnProperty("exportFormatId")) + if (!$util.isString(message.exportFormatId)) + return "exportFormatId: string expected"; + if (message.artifactDestination != null && message.hasOwnProperty("artifactDestination")) { + var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.artifactDestination); + if (error) + return "artifactDestination." + error; + } + if (message.imageDestination != null && message.hasOwnProperty("imageDestination")) { + var error = $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.verify(message.imageDestination); + if (error) + return "imageDestination." + error; + } + return null; + }; + + /** + * Creates an OutputConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} OutputConfig + */ + OutputConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig(); + if (object.exportFormatId != null) + message.exportFormatId = String(object.exportFormatId); + if (object.artifactDestination != null) { + if (typeof object.artifactDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.artifactDestination: object expected"); + message.artifactDestination = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.artifactDestination); + } + if (object.imageDestination != null) { + if (typeof object.imageDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig.imageDestination: object expected"); + message.imageDestination = $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.fromObject(object.imageDestination); + } + return message; + }; + + /** + * Creates a plain object from an OutputConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @static + * @param {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} message OutputConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OutputConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.exportFormatId = ""; + object.artifactDestination = null; + object.imageDestination = null; + } + if (message.exportFormatId != null && message.hasOwnProperty("exportFormatId")) + object.exportFormatId = message.exportFormatId; + if (message.artifactDestination != null && message.hasOwnProperty("artifactDestination")) + object.artifactDestination = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.artifactDestination, options); + if (message.imageDestination != null && message.hasOwnProperty("imageDestination")) + object.imageDestination = $root.google.cloud.aiplatform.v1.ContainerRegistryDestination.toObject(message.imageDestination, options); + return object; + }; + + /** + * Converts this OutputConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @instance + * @returns {Object.} JSON object + */ + OutputConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OutputConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OutputConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig"; + }; + + return OutputConfig; + })(); + + return ExportModelRequest; })(); - v1.GetModelEvaluationSliceRequest = (function() { + v1.ExportModelOperationMetadata = (function() { /** - * Properties of a GetModelEvaluationSliceRequest. + * Properties of an ExportModelOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IGetModelEvaluationSliceRequest - * @property {string|null} [name] GetModelEvaluationSliceRequest name + * @interface IExportModelOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] ExportModelOperationMetadata genericMetadata + * @property {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo|null} [outputInfo] ExportModelOperationMetadata outputInfo */ /** - * Constructs a new GetModelEvaluationSliceRequest. + * Constructs a new ExportModelOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetModelEvaluationSliceRequest. - * @implements IGetModelEvaluationSliceRequest + * @classdesc Represents an ExportModelOperationMetadata. + * @implements IExportModelOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IExportModelOperationMetadata=} [properties] Properties to set */ - function GetModelEvaluationSliceRequest(properties) { + function ExportModelOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -117512,75 +121747,89 @@ } /** - * GetModelEvaluationSliceRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * ExportModelOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @instance */ - GetModelEvaluationSliceRequest.prototype.name = ""; + ExportModelOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. + * ExportModelOperationMetadata outputInfo. + * @member {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo|null|undefined} outputInfo + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @instance + */ + ExportModelOperationMetadata.prototype.outputInfo = null; + + /** + * Creates a new ExportModelOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest instance + * @param {google.cloud.aiplatform.v1.IExportModelOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata} ExportModelOperationMetadata instance */ - GetModelEvaluationSliceRequest.create = function create(properties) { - return new GetModelEvaluationSliceRequest(properties); + ExportModelOperationMetadata.create = function create(properties) { + return new ExportModelOperationMetadata(properties); }; /** - * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. + * Encodes the specified ExportModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IExportModelOperationMetadata} message ExportModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelEvaluationSliceRequest.encode = function encode(message, writer) { + ExportModelOperationMetadata.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); + 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(); + if (message.outputInfo != null && Object.hasOwnProperty.call(message, "outputInfo")) + $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.encode(message.outputInfo, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. + * Encodes the specified ExportModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IExportModelOperationMetadata} message ExportModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelEvaluationSliceRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExportModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. + * Decodes an ExportModelOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @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.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest + * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata} ExportModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelEvaluationSliceRequest.decode = function decode(reader, length) { + ExportModelOperationMetadata.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.GetModelEvaluationSliceRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + case 2: { + message.outputInfo = $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.decode(reader, reader.uint32()); break; } default: @@ -117592,126 +121841,367 @@ }; /** - * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportModelOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest + * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata} ExportModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelEvaluationSliceRequest.decodeDelimited = function decodeDelimited(reader) { + ExportModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetModelEvaluationSliceRequest message. + * Verifies an ExportModelOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetModelEvaluationSliceRequest.verify = function verify(message) { + ExportModelOperationMetadata.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"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + if (message.outputInfo != null && message.hasOwnProperty("outputInfo")) { + var error = $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify(message.outputInfo); + if (error) + return "outputInfo." + error; + } return null; }; /** - * Creates a GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest + * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata} ExportModelOperationMetadata */ - GetModelEvaluationSliceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest) + ExportModelOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportModelOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.outputInfo != null) { + if (typeof object.outputInfo !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExportModelOperationMetadata.outputInfo: object expected"); + message.outputInfo = $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.fromObject(object.outputInfo); + } return message; }; /** - * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExportModelOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest + * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata} message ExportModelOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetModelEvaluationSliceRequest.toObject = function toObject(message, options) { + ExportModelOperationMetadata.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; + if (options.defaults) { + object.genericMetadata = null; + object.outputInfo = null; + } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.outputInfo != null && message.hasOwnProperty("outputInfo")) + object.outputInfo = $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.toObject(message.outputInfo, options); return object; }; /** - * Converts this GetModelEvaluationSliceRequest to JSON. + * Converts this ExportModelOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @instance * @returns {Object.} JSON object */ - GetModelEvaluationSliceRequest.prototype.toJSON = function toJSON() { + ExportModelOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetModelEvaluationSliceRequest + * Gets the default type url for ExportModelOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetModelEvaluationSliceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ExportModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelOperationMetadata"; }; - return GetModelEvaluationSliceRequest; + ExportModelOperationMetadata.OutputInfo = (function() { + + /** + * Properties of an OutputInfo. + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @interface IOutputInfo + * @property {string|null} [artifactOutputUri] OutputInfo artifactOutputUri + * @property {string|null} [imageOutputUri] OutputInfo imageOutputUri + */ + + /** + * Constructs a new OutputInfo. + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata + * @classdesc Represents an OutputInfo. + * @implements IOutputInfo + * @constructor + * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo=} [properties] Properties to set + */ + function OutputInfo(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]]; + } + + /** + * OutputInfo artifactOutputUri. + * @member {string} artifactOutputUri + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @instance + */ + OutputInfo.prototype.artifactOutputUri = ""; + + /** + * OutputInfo imageOutputUri. + * @member {string} imageOutputUri + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @instance + */ + OutputInfo.prototype.imageOutputUri = ""; + + /** + * Creates a new OutputInfo instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} OutputInfo instance + */ + OutputInfo.create = function create(properties) { + return new OutputInfo(properties); + }; + + /** + * Encodes the specified OutputInfo message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo} message OutputInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifactOutputUri != null && Object.hasOwnProperty.call(message, "artifactOutputUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.artifactOutputUri); + if (message.imageOutputUri != null && Object.hasOwnProperty.call(message, "imageOutputUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.imageOutputUri); + return writer; + }; + + /** + * Encodes the specified OutputInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.IOutputInfo} message OutputInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OutputInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OutputInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @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.ExportModelOperationMetadata.OutputInfo} OutputInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputInfo.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.ExportModelOperationMetadata.OutputInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + message.artifactOutputUri = reader.string(); + break; + } + case 3: { + message.imageOutputUri = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OutputInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} OutputInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OutputInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OutputInfo message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OutputInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifactOutputUri != null && message.hasOwnProperty("artifactOutputUri")) + if (!$util.isString(message.artifactOutputUri)) + return "artifactOutputUri: string expected"; + if (message.imageOutputUri != null && message.hasOwnProperty("imageOutputUri")) + if (!$util.isString(message.imageOutputUri)) + return "imageOutputUri: string expected"; + return null; + }; + + /** + * Creates an OutputInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} OutputInfo + */ + OutputInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo) + return object; + var message = new $root.google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo(); + if (object.artifactOutputUri != null) + message.artifactOutputUri = String(object.artifactOutputUri); + if (object.imageOutputUri != null) + message.imageOutputUri = String(object.imageOutputUri); + return message; + }; + + /** + * Creates a plain object from an OutputInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo} message OutputInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OutputInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.artifactOutputUri = ""; + object.imageOutputUri = ""; + } + if (message.artifactOutputUri != null && message.hasOwnProperty("artifactOutputUri")) + object.artifactOutputUri = message.artifactOutputUri; + if (message.imageOutputUri != null && message.hasOwnProperty("imageOutputUri")) + object.imageOutputUri = message.imageOutputUri; + return object; + }; + + /** + * Converts this OutputInfo to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @instance + * @returns {Object.} JSON object + */ + OutputInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OutputInfo + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OutputInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo"; + }; + + return OutputInfo; + })(); + + return ExportModelOperationMetadata; })(); - v1.ListModelEvaluationSlicesRequest = (function() { + v1.ExportModelResponse = (function() { /** - * Properties of a ListModelEvaluationSlicesRequest. + * Properties of an ExportModelResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelEvaluationSlicesRequest - * @property {string|null} [parent] ListModelEvaluationSlicesRequest parent - * @property {string|null} [filter] ListModelEvaluationSlicesRequest filter - * @property {number|null} [pageSize] ListModelEvaluationSlicesRequest pageSize - * @property {string|null} [pageToken] ListModelEvaluationSlicesRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationSlicesRequest readMask + * @interface IExportModelResponse */ /** - * Constructs a new ListModelEvaluationSlicesRequest. + * Constructs a new ExportModelResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelEvaluationSlicesRequest. - * @implements IListModelEvaluationSlicesRequest + * @classdesc Represents an ExportModelResponse. + * @implements IExportModelResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IExportModelResponse=} [properties] Properties to set */ - function ListModelEvaluationSlicesRequest(properties) { + function ExportModelResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -117719,131 +122209,325 @@ } /** - * ListModelEvaluationSlicesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * Creates a new ExportModelResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @static + * @param {google.cloud.aiplatform.v1.IExportModelResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExportModelResponse} ExportModelResponse instance + */ + ExportModelResponse.create = function create(properties) { + return new ExportModelResponse(properties); + }; + + /** + * Encodes the specified ExportModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @static + * @param {google.cloud.aiplatform.v1.IExportModelResponse} message ExportModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportModelResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified ExportModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExportModelResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @static + * @param {google.cloud.aiplatform.v1.IExportModelResponse} message ExportModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExportModelResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @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.ExportModelResponse} ExportModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportModelResponse.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.ExportModelResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExportModelResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExportModelResponse} ExportModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportModelResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExportModelResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExportModelResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an ExportModelResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExportModelResponse} ExportModelResponse + */ + ExportModelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExportModelResponse) + return object; + return new $root.google.cloud.aiplatform.v1.ExportModelResponse(); + }; + + /** + * Creates a plain object from an ExportModelResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @static + * @param {google.cloud.aiplatform.v1.ExportModelResponse} message ExportModelResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExportModelResponse.toObject = function toObject() { + return {}; + }; + + /** + * Converts this ExportModelResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExportModelResponse * @instance + * @returns {Object.} JSON object */ - ListModelEvaluationSlicesRequest.prototype.parent = ""; + ExportModelResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * ListModelEvaluationSlicesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * Gets the default type url for ExportModelResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ExportModelResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExportModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExportModelResponse"; + }; + + return ExportModelResponse; + })(); + + v1.CopyModelRequest = (function() { + + /** + * Properties of a CopyModelRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICopyModelRequest + * @property {string|null} [modelId] CopyModelRequest modelId + * @property {string|null} [parentModel] CopyModelRequest parentModel + * @property {string|null} [parent] CopyModelRequest parent + * @property {string|null} [sourceModel] CopyModelRequest sourceModel + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] CopyModelRequest encryptionSpec + */ + + /** + * Constructs a new CopyModelRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CopyModelRequest. + * @implements ICopyModelRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICopyModelRequest=} [properties] Properties to set + */ + function CopyModelRequest(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]]; + } + + /** + * CopyModelRequest modelId. + * @member {string|null|undefined} modelId + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @instance */ - ListModelEvaluationSlicesRequest.prototype.filter = ""; + CopyModelRequest.prototype.modelId = null; /** - * ListModelEvaluationSlicesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * CopyModelRequest parentModel. + * @member {string|null|undefined} parentModel + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @instance */ - ListModelEvaluationSlicesRequest.prototype.pageSize = 0; + CopyModelRequest.prototype.parentModel = null; /** - * ListModelEvaluationSlicesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * CopyModelRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @instance */ - ListModelEvaluationSlicesRequest.prototype.pageToken = ""; + CopyModelRequest.prototype.parent = ""; /** - * ListModelEvaluationSlicesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * CopyModelRequest sourceModel. + * @member {string} sourceModel + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @instance */ - ListModelEvaluationSlicesRequest.prototype.readMask = null; + CopyModelRequest.prototype.sourceModel = ""; /** - * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. + * CopyModelRequest encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.CopyModelRequest + * @instance + */ + CopyModelRequest.prototype.encryptionSpec = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CopyModelRequest destinationModel. + * @member {"modelId"|"parentModel"|undefined} destinationModel + * @memberof google.cloud.aiplatform.v1.CopyModelRequest + * @instance + */ + Object.defineProperty(CopyModelRequest.prototype, "destinationModel", { + get: $util.oneOfGetter($oneOfFields = ["modelId", "parentModel"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CopyModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest instance + * @param {google.cloud.aiplatform.v1.ICopyModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CopyModelRequest} CopyModelRequest instance */ - ListModelEvaluationSlicesRequest.create = function create(properties) { - return new ListModelEvaluationSlicesRequest(properties); + CopyModelRequest.create = function create(properties) { + return new CopyModelRequest(properties); }; /** - * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * Encodes the specified CopyModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICopyModelRequest} message CopyModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesRequest.encode = function encode(message, writer) { + CopyModelRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.sourceModel != null && Object.hasOwnProperty.call(message, "sourceModel")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceModel); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.modelId); + if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.parentModel); return writer; }; /** - * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * Encodes the specified CopyModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICopyModelRequest} message CopyModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + CopyModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. + * Decodes a CopyModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @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.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1.CopyModelRequest} CopyModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesRequest.decode = function decode(reader, length) { + CopyModelRequest.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.ListModelEvaluationSlicesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CopyModelRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); + case 4: { + message.modelId = reader.string(); break; } - case 2: { - message.filter = reader.string(); + case 5: { + message.parentModel = reader.string(); break; } - case 3: { - message.pageSize = reader.int32(); + case 1: { + message.parent = reader.string(); break; } - case 4: { - message.pageToken = reader.string(); + case 2: { + message.sourceModel = reader.string(); break; } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + case 3: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); break; } default: @@ -117855,162 +122539,171 @@ }; /** - * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * Decodes a CopyModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1.CopyModelRequest} CopyModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { + CopyModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelEvaluationSlicesRequest message. + * Verifies a CopyModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelEvaluationSlicesRequest.verify = function verify(message) { + CopyModelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; + if (message.modelId != null && message.hasOwnProperty("modelId")) { + properties.destinationModel = 1; + if (!$util.isString(message.modelId)) + return "modelId: string expected"; + } + if (message.parentModel != null && message.hasOwnProperty("parentModel")) { + if (properties.destinationModel === 1) + return "destinationModel: multiple values"; + properties.destinationModel = 1; + if (!$util.isString(message.parentModel)) + return "parentModel: string expected"; + } if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.sourceModel != null && message.hasOwnProperty("sourceModel")) + if (!$util.isString(message.sourceModel)) + return "sourceModel: string expected"; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); if (error) - return "readMask." + error; + return "encryptionSpec." + error; } return null; }; /** - * Creates a ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CopyModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @returns {google.cloud.aiplatform.v1.CopyModelRequest} CopyModelRequest */ - ListModelEvaluationSlicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest) + CopyModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CopyModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest(); + var message = new $root.google.cloud.aiplatform.v1.CopyModelRequest(); + if (object.modelId != null) + message.modelId = String(object.modelId); + if (object.parentModel != null) + message.parentModel = String(object.parentModel); if (object.parent != null) message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + if (object.sourceModel != null) + message.sourceModel = String(object.sourceModel); + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CopyModelRequest.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); } return message; }; /** - * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * Creates a plain object from a CopyModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @static - * @param {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest + * @param {google.cloud.aiplatform.v1.CopyModelRequest} message CopyModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelEvaluationSlicesRequest.toObject = function toObject(message, options) { + CopyModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + object.sourceModel = ""; + object.encryptionSpec = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.sourceModel != null && message.hasOwnProperty("sourceModel")) + object.sourceModel = message.sourceModel; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.modelId != null && message.hasOwnProperty("modelId")) { + object.modelId = message.modelId; + if (options.oneofs) + object.destinationModel = "modelId"; + } + if (message.parentModel != null && message.hasOwnProperty("parentModel")) { + object.parentModel = message.parentModel; + if (options.oneofs) + object.destinationModel = "parentModel"; + } return object; }; /** - * Converts this ListModelEvaluationSlicesRequest to JSON. + * Converts this CopyModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @instance * @returns {Object.} JSON object */ - ListModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { + CopyModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelEvaluationSlicesRequest + * Gets the default type url for CopyModelRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @memberof google.cloud.aiplatform.v1.CopyModelRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelEvaluationSlicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CopyModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CopyModelRequest"; }; - return ListModelEvaluationSlicesRequest; + return CopyModelRequest; })(); - v1.ListModelEvaluationSlicesResponse = (function() { + v1.CopyModelOperationMetadata = (function() { /** - * Properties of a ListModelEvaluationSlicesResponse. + * Properties of a CopyModelOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @interface IListModelEvaluationSlicesResponse - * @property {Array.|null} [modelEvaluationSlices] ListModelEvaluationSlicesResponse modelEvaluationSlices - * @property {string|null} [nextPageToken] ListModelEvaluationSlicesResponse nextPageToken + * @interface ICopyModelOperationMetadata + * @property {google.cloud.aiplatform.v1.IGenericOperationMetadata|null} [genericMetadata] CopyModelOperationMetadata genericMetadata */ /** - * Constructs a new ListModelEvaluationSlicesResponse. + * Constructs a new CopyModelOperationMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListModelEvaluationSlicesResponse. - * @implements IListModelEvaluationSlicesResponse + * @classdesc Represents a CopyModelOperationMetadata. + * @implements ICopyModelOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICopyModelOperationMetadata=} [properties] Properties to set */ - function ListModelEvaluationSlicesResponse(properties) { - this.modelEvaluationSlices = []; + function CopyModelOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -118018,92 +122711,75 @@ } /** - * ListModelEvaluationSlicesResponse modelEvaluationSlices. - * @member {Array.} modelEvaluationSlices - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse - * @instance - */ - ListModelEvaluationSlicesResponse.prototype.modelEvaluationSlices = $util.emptyArray; - - /** - * ListModelEvaluationSlicesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * CopyModelOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @instance */ - ListModelEvaluationSlicesResponse.prototype.nextPageToken = ""; + CopyModelOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. + * Creates a new CopyModelOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse instance + * @param {google.cloud.aiplatform.v1.ICopyModelOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CopyModelOperationMetadata} CopyModelOperationMetadata instance */ - ListModelEvaluationSlicesResponse.create = function create(properties) { - return new ListModelEvaluationSlicesResponse(properties); + CopyModelOperationMetadata.create = function create(properties) { + return new CopyModelOperationMetadata(properties); }; /** - * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. + * Encodes the specified CopyModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICopyModelOperationMetadata} message CopyModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesResponse.encode = function encode(message, writer) { + CopyModelOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelEvaluationSlices != null && message.modelEvaluationSlices.length) - for (var i = 0; i < message.modelEvaluationSlices.length; ++i) - $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.encode(message.modelEvaluationSlices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + 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 ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. + * Encodes the specified CopyModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICopyModelOperationMetadata} message CopyModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { + CopyModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @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.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1.CopyModelOperationMetadata} CopyModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesResponse.decode = function decode(reader, length) { + CopyModelOperationMetadata.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.ListModelEvaluationSlicesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CopyModelOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) - message.modelEvaluationSlices = []; - message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1.ModelEvaluationSlice.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -118115,181 +122791,128 @@ }; /** - * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1.CopyModelOperationMetadata} CopyModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { + CopyModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelEvaluationSlicesResponse message. + * Verifies a CopyModelOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelEvaluationSlicesResponse.verify = function verify(message) { + CopyModelOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelEvaluationSlices != null && message.hasOwnProperty("modelEvaluationSlices")) { - if (!Array.isArray(message.modelEvaluationSlices)) - return "modelEvaluationSlices: array expected"; - for (var i = 0; i < message.modelEvaluationSlices.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.verify(message.modelEvaluationSlices[i]); - if (error) - return "modelEvaluationSlices." + error; - } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CopyModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse + * @returns {google.cloud.aiplatform.v1.CopyModelOperationMetadata} CopyModelOperationMetadata */ - ListModelEvaluationSlicesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse) + CopyModelOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CopyModelOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse(); - if (object.modelEvaluationSlices) { - if (!Array.isArray(object.modelEvaluationSlices)) - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.modelEvaluationSlices: array expected"); - message.modelEvaluationSlices = []; - for (var i = 0; i < object.modelEvaluationSlices.length; ++i) { - if (typeof object.modelEvaluationSlices[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.modelEvaluationSlices: object expected"); - message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); - } + var message = new $root.google.cloud.aiplatform.v1.CopyModelOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CopyModelOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * Creates a plain object from a CopyModelOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse + * @param {google.cloud.aiplatform.v1.CopyModelOperationMetadata} message CopyModelOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelEvaluationSlicesResponse.toObject = function toObject(message, options) { + CopyModelOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.modelEvaluationSlices = []; if (options.defaults) - object.nextPageToken = ""; - if (message.modelEvaluationSlices && message.modelEvaluationSlices.length) { - object.modelEvaluationSlices = []; - for (var j = 0; j < message.modelEvaluationSlices.length; ++j) - object.modelEvaluationSlices[j] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.toObject(message.modelEvaluationSlices[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + 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 ListModelEvaluationSlicesResponse to JSON. + * Converts this CopyModelOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @instance * @returns {Object.} JSON object */ - ListModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { + CopyModelOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelEvaluationSlicesResponse + * Gets the default type url for CopyModelOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse + * @memberof google.cloud.aiplatform.v1.CopyModelOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelEvaluationSlicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CopyModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CopyModelOperationMetadata"; }; - return ListModelEvaluationSlicesResponse; - })(); - - /** - * PipelineFailurePolicy enum. - * @name google.cloud.aiplatform.v1.PipelineFailurePolicy - * @enum {number} - * @property {number} PIPELINE_FAILURE_POLICY_UNSPECIFIED=0 PIPELINE_FAILURE_POLICY_UNSPECIFIED value - * @property {number} PIPELINE_FAILURE_POLICY_FAIL_SLOW=1 PIPELINE_FAILURE_POLICY_FAIL_SLOW value - * @property {number} PIPELINE_FAILURE_POLICY_FAIL_FAST=2 PIPELINE_FAILURE_POLICY_FAIL_FAST value - */ - v1.PipelineFailurePolicy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PIPELINE_FAILURE_POLICY_UNSPECIFIED"] = 0; - values[valuesById[1] = "PIPELINE_FAILURE_POLICY_FAIL_SLOW"] = 1; - values[valuesById[2] = "PIPELINE_FAILURE_POLICY_FAIL_FAST"] = 2; - return values; + return CopyModelOperationMetadata; })(); - v1.PipelineJob = (function() { + v1.CopyModelResponse = (function() { /** - * Properties of a PipelineJob. + * Properties of a CopyModelResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IPipelineJob - * @property {string|null} [name] PipelineJob name - * @property {string|null} [displayName] PipelineJob displayName - * @property {google.protobuf.ITimestamp|null} [createTime] PipelineJob createTime - * @property {google.protobuf.ITimestamp|null} [startTime] PipelineJob startTime - * @property {google.protobuf.ITimestamp|null} [endTime] PipelineJob endTime - * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineJob updateTime - * @property {google.protobuf.IStruct|null} [pipelineSpec] PipelineJob pipelineSpec - * @property {google.cloud.aiplatform.v1.PipelineState|null} [state] PipelineJob state - * @property {google.cloud.aiplatform.v1.IPipelineJobDetail|null} [jobDetail] PipelineJob jobDetail - * @property {google.rpc.IStatus|null} [error] PipelineJob error - * @property {Object.|null} [labels] PipelineJob labels - * @property {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null} [runtimeConfig] PipelineJob runtimeConfig - * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] PipelineJob encryptionSpec - * @property {string|null} [serviceAccount] PipelineJob serviceAccount - * @property {string|null} [network] PipelineJob network - * @property {string|null} [templateUri] PipelineJob templateUri - * @property {google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null} [templateMetadata] PipelineJob templateMetadata + * @interface ICopyModelResponse + * @property {string|null} [model] CopyModelResponse model + * @property {string|null} [modelVersionId] CopyModelResponse modelVersionId */ /** - * Constructs a new PipelineJob. + * Constructs a new CopyModelResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineJob. - * @implements IPipelineJob + * @classdesc Represents a CopyModelResponse. + * @implements ICopyModelResponse * @constructor - * @param {google.cloud.aiplatform.v1.IPipelineJob=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICopyModelResponse=} [properties] Properties to set */ - function PipelineJob(properties) { - this.labels = {}; + function CopyModelResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -118297,319 +122920,316 @@ } /** - * PipelineJob name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.PipelineJob + * CopyModelResponse model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1.CopyModelResponse * @instance */ - PipelineJob.prototype.name = ""; + CopyModelResponse.prototype.model = ""; /** - * PipelineJob displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.PipelineJob + * CopyModelResponse modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1.CopyModelResponse * @instance */ - PipelineJob.prototype.displayName = ""; + CopyModelResponse.prototype.modelVersionId = ""; /** - * PipelineJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Creates a new CopyModelResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1.ICopyModelResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CopyModelResponse} CopyModelResponse instance */ - PipelineJob.prototype.createTime = null; + CopyModelResponse.create = function create(properties) { + return new CopyModelResponse(properties); + }; /** - * PipelineJob startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Encodes the specified CopyModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1.ICopyModelResponse} message CopyModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - PipelineJob.prototype.startTime = null; + CopyModelResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersionId); + return writer; + }; /** - * PipelineJob endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Encodes the specified CopyModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CopyModelResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1.ICopyModelResponse} message CopyModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - PipelineJob.prototype.endTime = null; + CopyModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * PipelineJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Decodes a CopyModelResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @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.CopyModelResponse} CopyModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJob.prototype.updateTime = null; + CopyModelResponse.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.CopyModelResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.model = reader.string(); + break; + } + case 2: { + message.modelVersionId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * PipelineJob pipelineSpec. - * @member {google.protobuf.IStruct|null|undefined} pipelineSpec - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Decodes a CopyModelResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CopyModelResponse} CopyModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJob.prototype.pipelineSpec = null; + CopyModelResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * PipelineJob state. - * @member {google.cloud.aiplatform.v1.PipelineState} state - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Verifies a CopyModelResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineJob.prototype.state = 0; + CopyModelResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + if (!$util.isString(message.modelVersionId)) + return "modelVersionId: string expected"; + return null; + }; /** - * PipelineJob jobDetail. - * @member {google.cloud.aiplatform.v1.IPipelineJobDetail|null|undefined} jobDetail - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Creates a CopyModelResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CopyModelResponse} CopyModelResponse */ - PipelineJob.prototype.jobDetail = null; + CopyModelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CopyModelResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.CopyModelResponse(); + if (object.model != null) + message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); + return message; + }; /** - * PipelineJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Creates a plain object from a CopyModelResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1.CopyModelResponse} message CopyModelResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - PipelineJob.prototype.error = null; + CopyModelResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.model = ""; + object.modelVersionId = ""; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; + return object; + }; /** - * PipelineJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.PipelineJob + * Converts this CopyModelResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CopyModelResponse * @instance + * @returns {Object.} JSON object */ - PipelineJob.prototype.labels = $util.emptyObject; + CopyModelResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * PipelineJob runtimeConfig. - * @member {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null|undefined} runtimeConfig - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Gets the default type url for CopyModelResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CopyModelResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - PipelineJob.prototype.runtimeConfig = null; + CopyModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CopyModelResponse"; + }; - /** - * PipelineJob encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance - */ - PipelineJob.prototype.encryptionSpec = null; + return CopyModelResponse; + })(); + + v1.ImportModelEvaluationRequest = (function() { /** - * PipelineJob serviceAccount. - * @member {string} serviceAccount - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Properties of an ImportModelEvaluationRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IImportModelEvaluationRequest + * @property {string|null} [parent] ImportModelEvaluationRequest parent + * @property {google.cloud.aiplatform.v1.IModelEvaluation|null} [modelEvaluation] ImportModelEvaluationRequest modelEvaluation */ - PipelineJob.prototype.serviceAccount = ""; /** - * PipelineJob network. - * @member {string} network - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @instance + * Constructs a new ImportModelEvaluationRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ImportModelEvaluationRequest. + * @implements IImportModelEvaluationRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest=} [properties] Properties to set */ - PipelineJob.prototype.network = ""; + function ImportModelEvaluationRequest(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]]; + } /** - * PipelineJob templateUri. - * @member {string} templateUri - * @memberof google.cloud.aiplatform.v1.PipelineJob + * ImportModelEvaluationRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest * @instance */ - PipelineJob.prototype.templateUri = ""; + ImportModelEvaluationRequest.prototype.parent = ""; /** - * PipelineJob templateMetadata. - * @member {google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null|undefined} templateMetadata - * @memberof google.cloud.aiplatform.v1.PipelineJob + * ImportModelEvaluationRequest modelEvaluation. + * @member {google.cloud.aiplatform.v1.IModelEvaluation|null|undefined} modelEvaluation + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest * @instance */ - PipelineJob.prototype.templateMetadata = null; + ImportModelEvaluationRequest.prototype.modelEvaluation = null; /** - * Creates a new PipelineJob instance using the specified properties. + * Creates a new ImportModelEvaluationRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob instance + * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} ImportModelEvaluationRequest instance */ - PipelineJob.create = function create(properties) { - return new PipelineJob(properties); + ImportModelEvaluationRequest.create = function create(properties) { + return new ImportModelEvaluationRequest(properties); }; /** - * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. + * Encodes the specified ImportModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ImportModelEvaluationRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineJob} message PipelineJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest} message ImportModelEvaluationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJob.encode = function encode(message, writer) { + ImportModelEvaluationRequest.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); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.pipelineSpec != null && Object.hasOwnProperty.call(message, "pipelineSpec")) - $root.google.protobuf.Struct.encode(message.pipelineSpec, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); - if (message.jobDetail != null && Object.hasOwnProperty.call(message, "jobDetail")) - $root.google.cloud.aiplatform.v1.PipelineJobDetail.encode(message.jobDetail, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.runtimeConfig != null && Object.hasOwnProperty.call(message, "runtimeConfig")) - $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.encode(message.runtimeConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.serviceAccount); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 18, wireType 2 =*/146).string(message.network); - if (message.templateUri != null && Object.hasOwnProperty.call(message, "templateUri")) - writer.uint32(/* id 19, wireType 2 =*/154).string(message.templateUri); - if (message.templateMetadata != null && Object.hasOwnProperty.call(message, "templateMetadata")) - $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.encode(message.templateMetadata, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.modelEvaluation != null && Object.hasOwnProperty.call(message, "modelEvaluation")) + $root.google.cloud.aiplatform.v1.ModelEvaluation.encode(message.modelEvaluation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. + * Encodes the specified ImportModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ImportModelEvaluationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineJob} message PipelineJob message or plain object to encode + * @param {google.cloud.aiplatform.v1.IImportModelEvaluationRequest} message ImportModelEvaluationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJob.encodeDelimited = function encodeDelimited(message, writer) { + ImportModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineJob message from the specified reader or buffer. + * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest * @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.PipelineJob} PipelineJob + * @returns {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} ImportModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJob.decode = function decode(reader, length) { + ImportModelEvaluationRequest.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.PipelineJob(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ImportModelEvaluationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.displayName = reader.string(); - break; - } - case 3: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 4: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 7: { - message.pipelineSpec = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - } - case 8: { - message.state = reader.int32(); - break; - } - case 9: { - message.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.decode(reader, reader.uint32()); - break; - } - case 10: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - case 11: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 12: { - message.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.decode(reader, reader.uint32()); - break; - } - case 16: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); - break; - } - case 17: { - message.serviceAccount = reader.string(); - break; - } - case 18: { - message.network = reader.string(); - break; - } - case 19: { - message.templateUri = reader.string(); - break; - } - case 20: { - message.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.decode(reader, reader.uint32()); + message.modelEvaluation = $root.google.cloud.aiplatform.v1.ModelEvaluation.decode(reader, reader.uint32()); break; } default: @@ -118621,1113 +123241,679 @@ }; /** - * Decodes a PipelineJob message from the specified reader or buffer, length delimited. + * Decodes an ImportModelEvaluationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob + * @returns {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} ImportModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJob.decodeDelimited = function decodeDelimited(reader) { + ImportModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineJob message. + * Verifies an ImportModelEvaluationRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineJob.verify = function verify(message) { + ImportModelEvaluationRequest.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"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.modelEvaluation != null && message.hasOwnProperty("modelEvaluation")) { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluation.verify(message.modelEvaluation); if (error) - return "startTime." + error; + return "modelEvaluation." + error; } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; + return null; + }; + + /** + * Creates an ImportModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} ImportModelEvaluationRequest + */ + ImportModelEvaluationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ImportModelEvaluationRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.ImportModelEvaluationRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.modelEvaluation != null) { + if (typeof object.modelEvaluation !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ImportModelEvaluationRequest.modelEvaluation: object expected"); + message.modelEvaluation = $root.google.cloud.aiplatform.v1.ModelEvaluation.fromObject(object.modelEvaluation); } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + return message; + }; + + /** + * Creates a plain object from an ImportModelEvaluationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @static + * @param {google.cloud.aiplatform.v1.ImportModelEvaluationRequest} message ImportModelEvaluationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImportModelEvaluationRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.modelEvaluation = null; } - if (message.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) { - var error = $root.google.protobuf.Struct.verify(message.pipelineSpec); - if (error) - return "pipelineSpec." + error; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.modelEvaluation != null && message.hasOwnProperty("modelEvaluation")) + object.modelEvaluation = $root.google.cloud.aiplatform.v1.ModelEvaluation.toObject(message.modelEvaluation, options); + return object; + }; + + /** + * Converts this ImportModelEvaluationRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @instance + * @returns {Object.} JSON object + */ + ImportModelEvaluationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ImportModelEvaluationRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ImportModelEvaluationRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ImportModelEvaluationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ImportModelEvaluationRequest"; + }; + + return ImportModelEvaluationRequest; + })(); + + v1.BatchImportModelEvaluationSlicesRequest = (function() { + + /** + * Properties of a BatchImportModelEvaluationSlicesRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IBatchImportModelEvaluationSlicesRequest + * @property {string|null} [parent] BatchImportModelEvaluationSlicesRequest parent + * @property {Array.|null} [modelEvaluationSlices] BatchImportModelEvaluationSlicesRequest modelEvaluationSlices + */ + + /** + * Constructs a new BatchImportModelEvaluationSlicesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BatchImportModelEvaluationSlicesRequest. + * @implements IBatchImportModelEvaluationSlicesRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest=} [properties] Properties to set + */ + function BatchImportModelEvaluationSlicesRequest(properties) { + this.modelEvaluationSlices = []; + 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]]; + } + + /** + * BatchImportModelEvaluationSlicesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @instance + */ + BatchImportModelEvaluationSlicesRequest.prototype.parent = ""; + + /** + * BatchImportModelEvaluationSlicesRequest modelEvaluationSlices. + * @member {Array.} modelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @instance + */ + BatchImportModelEvaluationSlicesRequest.prototype.modelEvaluationSlices = $util.emptyArray; + + /** + * Creates a new BatchImportModelEvaluationSlicesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest instance + */ + BatchImportModelEvaluationSlicesRequest.create = function create(properties) { + return new BatchImportModelEvaluationSlicesRequest(properties); + }; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportModelEvaluationSlicesRequest.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.modelEvaluationSlices != null && message.modelEvaluationSlices.length) + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) + $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.encode(message.modelEvaluationSlices[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @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.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportModelEvaluationSlicesRequest.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.BatchImportModelEvaluationSlicesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) + message.modelEvaluationSlices = []; + message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1.ModelEvaluationSlice.decode(reader, reader.uint32())); + break; + } default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: + reader.skipType(tag & 7); break; } - if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) { - var error = $root.google.cloud.aiplatform.v1.PipelineJobDetail.verify(message.jobDetail); - if (error) - return "jobDetail." + error; - } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) { - var error = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify(message.runtimeConfig); - if (error) - return "runtimeConfig." + error; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - if (!$util.isString(message.serviceAccount)) - return "serviceAccount: string expected"; - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.templateUri != null && message.hasOwnProperty("templateUri")) - if (!$util.isString(message.templateUri)) - return "templateUri: string expected"; - if (message.templateMetadata != null && message.hasOwnProperty("templateMetadata")) { - var error = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify(message.templateMetadata); - if (error) - return "templateMetadata." + error; + return message; + }; + + /** + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchImportModelEvaluationSlicesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchImportModelEvaluationSlicesRequest.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.modelEvaluationSlices != null && message.hasOwnProperty("modelEvaluationSlices")) { + if (!Array.isArray(message.modelEvaluationSlices)) + return "modelEvaluationSlices: array expected"; + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.verify(message.modelEvaluationSlices[i]); + if (error) + return "modelEvaluationSlices." + error; + } } return null; }; /** - * Creates a PipelineJob message from a plain object. Also converts values to their respective internal types. + * Creates a BatchImportModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest */ - PipelineJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob) + BatchImportModelEvaluationSlicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineJob(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + var message = new $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.modelEvaluationSlices) { + if (!Array.isArray(object.modelEvaluationSlices)) + throw TypeError(".google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.modelEvaluationSlices: array expected"); + message.modelEvaluationSlices = []; + for (var i = 0; i < object.modelEvaluationSlices.length; ++i) { + if (typeof object.modelEvaluationSlices[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.modelEvaluationSlices: object expected"); + message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); + } } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + return message; + }; + + /** + * Creates a plain object from a BatchImportModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchImportModelEvaluationSlicesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.modelEvaluationSlices = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.modelEvaluationSlices && message.modelEvaluationSlices.length) { + object.modelEvaluationSlices = []; + for (var j = 0; j < message.modelEvaluationSlices.length; ++j) + object.modelEvaluationSlices[j] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.toObject(message.modelEvaluationSlices[j], options); } - if (object.pipelineSpec != null) { - if (typeof object.pipelineSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.pipelineSpec: object expected"); - message.pipelineSpec = $root.google.protobuf.Struct.fromObject(object.pipelineSpec); + return object; + }; + + /** + * Converts this BatchImportModelEvaluationSlicesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @instance + * @returns {Object.} JSON object + */ + BatchImportModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for BatchImportModelEvaluationSlicesRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BatchImportModelEvaluationSlicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest"; + }; + + return BatchImportModelEvaluationSlicesRequest; + })(); + + v1.BatchImportModelEvaluationSlicesResponse = (function() { + + /** + * Properties of a BatchImportModelEvaluationSlicesResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IBatchImportModelEvaluationSlicesResponse + * @property {Array.|null} [importedModelEvaluationSlices] BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices + */ + + /** + * Constructs a new BatchImportModelEvaluationSlicesResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BatchImportModelEvaluationSlicesResponse. + * @implements IBatchImportModelEvaluationSlicesResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse=} [properties] Properties to set + */ + function BatchImportModelEvaluationSlicesResponse(properties) { + this.importedModelEvaluationSlices = []; + 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]]; + } + + /** + * BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices. + * @member {Array.} importedModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @instance + */ + BatchImportModelEvaluationSlicesResponse.prototype.importedModelEvaluationSlices = $util.emptyArray; + + /** + * Creates a new BatchImportModelEvaluationSlicesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse instance + */ + BatchImportModelEvaluationSlicesResponse.create = function create(properties) { + return new BatchImportModelEvaluationSlicesResponse(properties); + }; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportModelEvaluationSlicesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.importedModelEvaluationSlices != null && message.importedModelEvaluationSlices.length) + for (var i = 0; i < message.importedModelEvaluationSlices.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.importedModelEvaluationSlices[i]); + return writer; + }; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @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.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportModelEvaluationSlicesResponse.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.BatchImportModelEvaluationSlicesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.importedModelEvaluationSlices && message.importedModelEvaluationSlices.length)) + message.importedModelEvaluationSlices = []; + message.importedModelEvaluationSlices.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); break; } - break; - case "PIPELINE_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PIPELINE_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "PIPELINE_STATE_PENDING": - case 2: - message.state = 2; - break; - case "PIPELINE_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "PIPELINE_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "PIPELINE_STATE_FAILED": - case 5: - message.state = 5; - break; - case "PIPELINE_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "PIPELINE_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "PIPELINE_STATE_PAUSED": - case 8: - message.state = 8; - break; - } - if (object.jobDetail != null) { - if (typeof object.jobDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.jobDetail: object expected"); - message.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.fromObject(object.jobDetail); - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.runtimeConfig != null) { - if (typeof object.runtimeConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.runtimeConfig: object expected"); - message.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.fromObject(object.runtimeConfig); } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + return message; + }; + + /** + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchImportModelEvaluationSlicesResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchImportModelEvaluationSlicesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.importedModelEvaluationSlices != null && message.hasOwnProperty("importedModelEvaluationSlices")) { + if (!Array.isArray(message.importedModelEvaluationSlices)) + return "importedModelEvaluationSlices: array expected"; + for (var i = 0; i < message.importedModelEvaluationSlices.length; ++i) + if (!$util.isString(message.importedModelEvaluationSlices[i])) + return "importedModelEvaluationSlices: string[] expected"; } - if (object.serviceAccount != null) - message.serviceAccount = String(object.serviceAccount); - if (object.network != null) - message.network = String(object.network); - if (object.templateUri != null) - message.templateUri = String(object.templateUri); - if (object.templateMetadata != null) { - if (typeof object.templateMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.templateMetadata: object expected"); - message.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.fromObject(object.templateMetadata); + return null; + }; + + /** + * Creates a BatchImportModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + */ + BatchImportModelEvaluationSlicesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse(); + if (object.importedModelEvaluationSlices) { + if (!Array.isArray(object.importedModelEvaluationSlices)) + throw TypeError(".google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.importedModelEvaluationSlices: array expected"); + message.importedModelEvaluationSlices = []; + for (var i = 0; i < object.importedModelEvaluationSlices.length; ++i) + message.importedModelEvaluationSlices[i] = String(object.importedModelEvaluationSlices[i]); } return message; }; /** - * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. + * Creates a plain object from a BatchImportModelEvaluationSlicesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1.PipelineJob} message PipelineJob + * @param {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineJob.toObject = function toObject(message, options) { + BatchImportModelEvaluationSlicesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.updateTime = null; - object.pipelineSpec = null; - object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; - object.jobDetail = null; - object.error = null; - object.runtimeConfig = null; - object.encryptionSpec = null; - object.serviceAccount = ""; - object.network = ""; - object.templateUri = ""; - object.templateMetadata = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) - object.pipelineSpec = $root.google.protobuf.Struct.toObject(message.pipelineSpec, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineState[message.state] : message.state; - if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) - object.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.toObject(message.jobDetail, options); - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + if (options.arrays || options.defaults) + object.importedModelEvaluationSlices = []; + if (message.importedModelEvaluationSlices && message.importedModelEvaluationSlices.length) { + object.importedModelEvaluationSlices = []; + for (var j = 0; j < message.importedModelEvaluationSlices.length; ++j) + object.importedModelEvaluationSlices[j] = message.importedModelEvaluationSlices[j]; } - if (message.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) - object.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.toObject(message.runtimeConfig, options); - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - object.serviceAccount = message.serviceAccount; - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.templateUri != null && message.hasOwnProperty("templateUri")) - object.templateUri = message.templateUri; - if (message.templateMetadata != null && message.hasOwnProperty("templateMetadata")) - object.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.toObject(message.templateMetadata, options); return object; }; /** - * Converts this PipelineJob to JSON. + * Converts this BatchImportModelEvaluationSlicesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse * @instance * @returns {Object.} JSON object */ - PipelineJob.prototype.toJSON = function toJSON() { + BatchImportModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineJob + * Gets the default type url for BatchImportModelEvaluationSlicesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineJob + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + BatchImportModelEvaluationSlicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse"; }; - PipelineJob.RuntimeConfig = (function() { + return BatchImportModelEvaluationSlicesResponse; + })(); - /** - * Properties of a RuntimeConfig. - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @interface IRuntimeConfig - * @property {Object.|null} [parameters] RuntimeConfig parameters - * @property {string|null} [gcsOutputDirectory] RuntimeConfig gcsOutputDirectory - * @property {Object.|null} [parameterValues] RuntimeConfig parameterValues - * @property {google.cloud.aiplatform.v1.PipelineFailurePolicy|null} [failurePolicy] RuntimeConfig failurePolicy - * @property {Object.|null} [inputArtifacts] RuntimeConfig inputArtifacts - */ + v1.GetModelEvaluationRequest = (function() { - /** - * Constructs a new RuntimeConfig. - * @memberof google.cloud.aiplatform.v1.PipelineJob - * @classdesc Represents a RuntimeConfig. - * @implements IRuntimeConfig - * @constructor - * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig=} [properties] Properties to set - */ - function RuntimeConfig(properties) { - this.parameters = {}; - this.parameterValues = {}; - this.inputArtifacts = {}; - 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]]; - } + /** + * Properties of a GetModelEvaluationRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetModelEvaluationRequest + * @property {string|null} [name] GetModelEvaluationRequest name + */ - /** - * RuntimeConfig parameters. - * @member {Object.} parameters - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.parameters = $util.emptyObject; + /** + * Constructs a new GetModelEvaluationRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetModelEvaluationRequest. + * @implements IGetModelEvaluationRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest=} [properties] Properties to set + */ + function GetModelEvaluationRequest(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]]; + } - /** - * RuntimeConfig gcsOutputDirectory. - * @member {string} gcsOutputDirectory - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.gcsOutputDirectory = ""; + /** + * GetModelEvaluationRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @instance + */ + GetModelEvaluationRequest.prototype.name = ""; - /** - * RuntimeConfig parameterValues. - * @member {Object.} parameterValues - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.parameterValues = $util.emptyObject; + /** + * Creates a new GetModelEvaluationRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest instance + */ + GetModelEvaluationRequest.create = function create(properties) { + return new GetModelEvaluationRequest(properties); + }; - /** - * RuntimeConfig failurePolicy. - * @member {google.cloud.aiplatform.v1.PipelineFailurePolicy} failurePolicy - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.failurePolicy = 0; + /** + * Encodes the specified GetModelEvaluationRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetModelEvaluationRequest.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; + }; - /** - * RuntimeConfig inputArtifacts. - * @member {Object.} inputArtifacts - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - */ - RuntimeConfig.prototype.inputArtifacts = $util.emptyObject; - - /** - * Creates a new RuntimeConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig instance - */ - RuntimeConfig.create = function create(properties) { - return new RuntimeConfig(properties); - }; - - /** - * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RuntimeConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - for (var keys = Object.keys(message.parameters), 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.Value.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.gcsOutputDirectory != null && Object.hasOwnProperty.call(message, "gcsOutputDirectory")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsOutputDirectory); - if (message.parameterValues != null && Object.hasOwnProperty.call(message, "parameterValues")) - for (var keys = Object.keys(message.parameterValues), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.protobuf.Value.encode(message.parameterValues[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.failurePolicy != null && Object.hasOwnProperty.call(message, "failurePolicy")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.failurePolicy); - if (message.inputArtifacts != null && Object.hasOwnProperty.call(message, "inputArtifacts")) - for (var keys = Object.keys(message.inputArtifacts), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.encode(message.inputArtifacts[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RuntimeConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RuntimeConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @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.PipelineJob.RuntimeConfig} RuntimeConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RuntimeConfig.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.PipelineJob.RuntimeConfig(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (message.parameters === $util.emptyObject) - message.parameters = {}; - 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.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.parameters[key] = value; - break; - } - case 2: { - message.gcsOutputDirectory = reader.string(); - break; - } - case 3: { - if (message.parameterValues === $util.emptyObject) - message.parameterValues = {}; - 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.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.parameterValues[key] = value; - break; - } - case 4: { - message.failurePolicy = reader.int32(); - break; - } - case 5: { - if (message.inputArtifacts === $util.emptyObject) - message.inputArtifacts = {}; - 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.PipelineJob.RuntimeConfig.InputArtifact.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.inputArtifacts[key] = value; - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RuntimeConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RuntimeConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RuntimeConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!$util.isObject(message.parameters)) - return "parameters: object expected"; - var key = Object.keys(message.parameters); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Value.verify(message.parameters[key[i]]); - if (error) - return "parameters." + error; - } - } - if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) - if (!$util.isString(message.gcsOutputDirectory)) - return "gcsOutputDirectory: string expected"; - if (message.parameterValues != null && message.hasOwnProperty("parameterValues")) { - if (!$util.isObject(message.parameterValues)) - return "parameterValues: object expected"; - var key = Object.keys(message.parameterValues); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.parameterValues[key[i]]); - if (error) - return "parameterValues." + error; - } - } - if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) - switch (message.failurePolicy) { - default: - return "failurePolicy: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.inputArtifacts != null && message.hasOwnProperty("inputArtifacts")) { - if (!$util.isObject(message.inputArtifacts)) - return "inputArtifacts: object expected"; - var key = Object.keys(message.inputArtifacts); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify(message.inputArtifacts[key[i]]); - if (error) - return "inputArtifacts." + error; - } - } - return null; - }; - - /** - * Creates a RuntimeConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig - */ - RuntimeConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig(); - if (object.parameters) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameters: object expected"); - message.parameters = {}; - for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { - if (typeof object.parameters[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameters: object expected"); - message.parameters[keys[i]] = $root.google.cloud.aiplatform.v1.Value.fromObject(object.parameters[keys[i]]); - } - } - if (object.gcsOutputDirectory != null) - message.gcsOutputDirectory = String(object.gcsOutputDirectory); - if (object.parameterValues) { - if (typeof object.parameterValues !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameterValues: object expected"); - message.parameterValues = {}; - for (var keys = Object.keys(object.parameterValues), i = 0; i < keys.length; ++i) { - if (typeof object.parameterValues[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameterValues: object expected"); - message.parameterValues[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameterValues[keys[i]]); - } - } - switch (object.failurePolicy) { - default: - if (typeof object.failurePolicy === "number") { - message.failurePolicy = object.failurePolicy; - break; - } - break; - case "PIPELINE_FAILURE_POLICY_UNSPECIFIED": - case 0: - message.failurePolicy = 0; - break; - case "PIPELINE_FAILURE_POLICY_FAIL_SLOW": - case 1: - message.failurePolicy = 1; - break; - case "PIPELINE_FAILURE_POLICY_FAIL_FAST": - case 2: - message.failurePolicy = 2; - break; - } - if (object.inputArtifacts) { - if (typeof object.inputArtifacts !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); - message.inputArtifacts = {}; - for (var keys = Object.keys(object.inputArtifacts), i = 0; i < keys.length; ++i) { - if (typeof object.inputArtifacts[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); - message.inputArtifacts[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.fromObject(object.inputArtifacts[keys[i]]); - } - } - return message; - }; - - /** - * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} message RuntimeConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RuntimeConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.parameters = {}; - object.parameterValues = {}; - object.inputArtifacts = {}; - } - if (options.defaults) { - object.gcsOutputDirectory = ""; - object.failurePolicy = options.enums === String ? "PIPELINE_FAILURE_POLICY_UNSPECIFIED" : 0; - } - var keys2; - if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { - object.parameters = {}; - for (var j = 0; j < keys2.length; ++j) - object.parameters[keys2[j]] = $root.google.cloud.aiplatform.v1.Value.toObject(message.parameters[keys2[j]], options); - } - if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) - object.gcsOutputDirectory = message.gcsOutputDirectory; - if (message.parameterValues && (keys2 = Object.keys(message.parameterValues)).length) { - object.parameterValues = {}; - for (var j = 0; j < keys2.length; ++j) - object.parameterValues[keys2[j]] = $root.google.protobuf.Value.toObject(message.parameterValues[keys2[j]], options); - } - if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) - object.failurePolicy = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineFailurePolicy[message.failurePolicy] === undefined ? message.failurePolicy : $root.google.cloud.aiplatform.v1.PipelineFailurePolicy[message.failurePolicy] : message.failurePolicy; - if (message.inputArtifacts && (keys2 = Object.keys(message.inputArtifacts)).length) { - object.inputArtifacts = {}; - for (var j = 0; j < keys2.length; ++j) - object.inputArtifacts[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.toObject(message.inputArtifacts[keys2[j]], options); - } - return object; - }; - - /** - * Converts this RuntimeConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @instance - * @returns {Object.} JSON object - */ - RuntimeConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for RuntimeConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - RuntimeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig"; - }; - - RuntimeConfig.InputArtifact = (function() { - - /** - * Properties of an InputArtifact. - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @interface IInputArtifact - * @property {string|null} [artifactId] InputArtifact artifactId - */ - - /** - * Constructs a new InputArtifact. - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig - * @classdesc Represents an InputArtifact. - * @implements IInputArtifact - * @constructor - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set - */ - function InputArtifact(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]]; - } - - /** - * InputArtifact artifactId. - * @member {string|null|undefined} artifactId - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @instance - */ - InputArtifact.prototype.artifactId = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * InputArtifact kind. - * @member {"artifactId"|undefined} kind - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @instance - */ - Object.defineProperty(InputArtifact.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["artifactId"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new InputArtifact instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact instance - */ - InputArtifact.create = function create(properties) { - return new InputArtifact(properties); - }; - - /** - * Encodes the specified InputArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputArtifact.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifactId); - return writer; - }; - - /** - * Encodes the specified InputArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputArtifact.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an InputArtifact message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @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.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InputArtifact.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.PipelineJob.RuntimeConfig.InputArtifact(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.artifactId = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an InputArtifact message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InputArtifact.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an InputArtifact message. - * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InputArtifact.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.artifactId != null && message.hasOwnProperty("artifactId")) { - properties.kind = 1; - if (!$util.isString(message.artifactId)) - return "artifactId: string expected"; - } - return null; - }; - - /** - * Creates an InputArtifact message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact - */ - InputArtifact.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact) - return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact(); - if (object.artifactId != null) - message.artifactId = String(object.artifactId); - return message; - }; - - /** - * Creates a plain object from an InputArtifact message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} message InputArtifact - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - InputArtifact.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.artifactId != null && message.hasOwnProperty("artifactId")) { - object.artifactId = message.artifactId; - if (options.oneofs) - object.kind = "artifactId"; - } - return object; - }; - - /** - * Converts this InputArtifact to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @instance - * @returns {Object.} JSON object - */ - InputArtifact.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for InputArtifact - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - InputArtifact.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact"; - }; - - return InputArtifact; - })(); - - return RuntimeConfig; - })(); - - return PipelineJob; - })(); - - v1.PipelineTemplateMetadata = (function() { - - /** - * Properties of a PipelineTemplateMetadata. - * @memberof google.cloud.aiplatform.v1 - * @interface IPipelineTemplateMetadata - * @property {string|null} [version] PipelineTemplateMetadata version - */ - - /** - * Constructs a new PipelineTemplateMetadata. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineTemplateMetadata. - * @implements IPipelineTemplateMetadata - * @constructor - * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata=} [properties] Properties to set - */ - function PipelineTemplateMetadata(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]]; - } - - /** - * PipelineTemplateMetadata version. - * @member {string} version - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata - * @instance - */ - PipelineTemplateMetadata.prototype.version = ""; - - /** - * Creates a new PipelineTemplateMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata - * @static - * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata instance - */ - PipelineTemplateMetadata.create = function create(properties) { - return new PipelineTemplateMetadata(properties); - }; - - /** - * Encodes the specified PipelineTemplateMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata - * @static - * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata} message PipelineTemplateMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PipelineTemplateMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.version); - return writer; - }; - - /** - * Encodes the specified PipelineTemplateMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata - * @static - * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata} message PipelineTemplateMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PipelineTemplateMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified GetModelEvaluationRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationRequest} message GetModelEvaluationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetModelEvaluationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Decodes a PipelineTemplateMetadata message from the specified reader or buffer. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @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.PipelineTemplateMetadata} PipelineTemplateMetadata + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTemplateMetadata.decode = function decode(reader, length) { + GetModelEvaluationRequest.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.PipelineTemplateMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: { - message.version = reader.string(); + case 1: { + message.name = reader.string(); break; } default: @@ -119739,125 +123925,126 @@ }; /** - * Decodes a PipelineTemplateMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTemplateMetadata.decodeDelimited = function decodeDelimited(reader) { + GetModelEvaluationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineTemplateMetadata message. + * Verifies a GetModelEvaluationRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTemplateMetadata.verify = function verify(message) { + GetModelEvaluationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a PipelineTemplateMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelEvaluationRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationRequest} GetModelEvaluationRequest */ - PipelineTemplateMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata) + GetModelEvaluationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata(); - if (object.version != null) - message.version = String(object.version); + var message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a PipelineTemplateMetadata message. Also converts values to other types if specified. + * Creates a plain object from a GetModelEvaluationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static - * @param {google.cloud.aiplatform.v1.PipelineTemplateMetadata} message PipelineTemplateMetadata + * @param {google.cloud.aiplatform.v1.GetModelEvaluationRequest} message GetModelEvaluationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineTemplateMetadata.toObject = function toObject(message, options) { + GetModelEvaluationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.version = ""; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this PipelineTemplateMetadata to JSON. + * Converts this GetModelEvaluationRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @instance * @returns {Object.} JSON object */ - PipelineTemplateMetadata.prototype.toJSON = function toJSON() { + GetModelEvaluationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineTemplateMetadata + * Gets the default type url for GetModelEvaluationRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineTemplateMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetModelEvaluationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTemplateMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelEvaluationRequest"; }; - return PipelineTemplateMetadata; + return GetModelEvaluationRequest; })(); - v1.PipelineJobDetail = (function() { + v1.ListModelEvaluationsRequest = (function() { /** - * Properties of a PipelineJobDetail. + * Properties of a ListModelEvaluationsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IPipelineJobDetail - * @property {google.cloud.aiplatform.v1.IContext|null} [pipelineContext] PipelineJobDetail pipelineContext - * @property {google.cloud.aiplatform.v1.IContext|null} [pipelineRunContext] PipelineJobDetail pipelineRunContext - * @property {Array.|null} [taskDetails] PipelineJobDetail taskDetails + * @interface IListModelEvaluationsRequest + * @property {string|null} [parent] ListModelEvaluationsRequest parent + * @property {string|null} [filter] ListModelEvaluationsRequest filter + * @property {number|null} [pageSize] ListModelEvaluationsRequest pageSize + * @property {string|null} [pageToken] ListModelEvaluationsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationsRequest readMask */ /** - * Constructs a new PipelineJobDetail. + * Constructs a new ListModelEvaluationsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineJobDetail. - * @implements IPipelineJobDetail + * @classdesc Represents a ListModelEvaluationsRequest. + * @implements IListModelEvaluationsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IPipelineJobDetail=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest=} [properties] Properties to set */ - function PipelineJobDetail(properties) { - this.taskDetails = []; + function ListModelEvaluationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -119865,106 +124052,131 @@ } /** - * PipelineJobDetail pipelineContext. - * @member {google.cloud.aiplatform.v1.IContext|null|undefined} pipelineContext - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * ListModelEvaluationsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @instance */ - PipelineJobDetail.prototype.pipelineContext = null; + ListModelEvaluationsRequest.prototype.parent = ""; /** - * PipelineJobDetail pipelineRunContext. - * @member {google.cloud.aiplatform.v1.IContext|null|undefined} pipelineRunContext - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * ListModelEvaluationsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @instance */ - PipelineJobDetail.prototype.pipelineRunContext = null; + ListModelEvaluationsRequest.prototype.filter = ""; /** - * PipelineJobDetail taskDetails. - * @member {Array.} taskDetails - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * ListModelEvaluationsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @instance */ - PipelineJobDetail.prototype.taskDetails = $util.emptyArray; + ListModelEvaluationsRequest.prototype.pageSize = 0; /** - * Creates a new PipelineJobDetail instance using the specified properties. + * ListModelEvaluationsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @instance + */ + ListModelEvaluationsRequest.prototype.pageToken = ""; + + /** + * ListModelEvaluationsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest + * @instance + */ + ListModelEvaluationsRequest.prototype.readMask = null; + + /** + * Creates a new ListModelEvaluationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineJobDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail instance + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest instance */ - PipelineJobDetail.create = function create(properties) { - return new PipelineJobDetail(properties); + ListModelEvaluationsRequest.create = function create(properties) { + return new ListModelEvaluationsRequest(properties); }; /** - * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. + * Encodes the specified ListModelEvaluationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJobDetail.encode = function encode(message, writer) { + ListModelEvaluationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pipelineContext != null && Object.hasOwnProperty.call(message, "pipelineContext")) - $root.google.cloud.aiplatform.v1.Context.encode(message.pipelineContext, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.pipelineRunContext != null && Object.hasOwnProperty.call(message, "pipelineRunContext")) - $root.google.cloud.aiplatform.v1.Context.encode(message.pipelineRunContext, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.taskDetails != null && message.taskDetails.length) - for (var i = 0; i < message.taskDetails.length; ++i) - $root.google.cloud.aiplatform.v1.PipelineTaskDetail.encode(message.taskDetails[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. + * Encodes the specified ListModelEvaluationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsRequest} message ListModelEvaluationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineJobDetail.encodeDelimited = function encodeDelimited(message, writer) { + ListModelEvaluationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @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.PipelineJobDetail} PipelineJobDetail + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJobDetail.decode = function decode(reader, length) { + ListModelEvaluationsRequest.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.PipelineJobDetail(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.pipelineContext = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); + message.parent = reader.string(); break; } case 2: { - message.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); + message.filter = reader.string(); break; } case 3: { - if (!(message.taskDetails && message.taskDetails.length)) - message.taskDetails = []; - message.taskDetails.push($root.google.cloud.aiplatform.v1.PipelineTaskDetail.decode(reader, reader.uint32())); + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -119976,182 +124188,162 @@ }; /** - * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineJobDetail.decodeDelimited = function decodeDelimited(reader) { + ListModelEvaluationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineJobDetail message. + * Verifies a ListModelEvaluationsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineJobDetail.verify = function verify(message) { + ListModelEvaluationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) { - var error = $root.google.cloud.aiplatform.v1.Context.verify(message.pipelineContext); - if (error) - return "pipelineContext." + error; - } - if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) { - var error = $root.google.cloud.aiplatform.v1.Context.verify(message.pipelineRunContext); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "pipelineRunContext." + error; - } - if (message.taskDetails != null && message.hasOwnProperty("taskDetails")) { - if (!Array.isArray(message.taskDetails)) - return "taskDetails: array expected"; - for (var i = 0; i < message.taskDetails.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.verify(message.taskDetails[i]); - if (error) - return "taskDetails." + error; - } + return "readMask." + error; } return null; }; /** - * Creates a PipelineJobDetail message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} ListModelEvaluationsRequest */ - PipelineJobDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJobDetail) + ListModelEvaluationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineJobDetail(); - if (object.pipelineContext != null) { - if (typeof object.pipelineContext !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.pipelineContext: object expected"); - message.pipelineContext = $root.google.cloud.aiplatform.v1.Context.fromObject(object.pipelineContext); - } - if (object.pipelineRunContext != null) { - if (typeof object.pipelineRunContext !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.pipelineRunContext: object expected"); - message.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.fromObject(object.pipelineRunContext); - } - if (object.taskDetails) { - if (!Array.isArray(object.taskDetails)) - throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.taskDetails: array expected"); - message.taskDetails = []; - for (var i = 0; i < object.taskDetails.length; ++i) { - if (typeof object.taskDetails[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.taskDetails: object expected"); - message.taskDetails[i] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.fromObject(object.taskDetails[i]); - } + var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. + * Creates a plain object from a ListModelEvaluationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static - * @param {google.cloud.aiplatform.v1.PipelineJobDetail} message PipelineJobDetail + * @param {google.cloud.aiplatform.v1.ListModelEvaluationsRequest} message ListModelEvaluationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineJobDetail.toObject = function toObject(message, options) { + ListModelEvaluationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.taskDetails = []; if (options.defaults) { - object.pipelineContext = null; - object.pipelineRunContext = null; - } - if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) - object.pipelineContext = $root.google.cloud.aiplatform.v1.Context.toObject(message.pipelineContext, options); - if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) - object.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.toObject(message.pipelineRunContext, options); - if (message.taskDetails && message.taskDetails.length) { - object.taskDetails = []; - for (var j = 0; j < message.taskDetails.length; ++j) - object.taskDetails[j] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.toObject(message.taskDetails[j], options); + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this PipelineJobDetail to JSON. + * Converts this ListModelEvaluationsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @instance * @returns {Object.} JSON object */ - PipelineJobDetail.prototype.toJSON = function toJSON() { + ListModelEvaluationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineJobDetail + * Gets the default type url for ListModelEvaluationsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineJobDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelEvaluationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJobDetail"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationsRequest"; }; - return PipelineJobDetail; + return ListModelEvaluationsRequest; })(); - v1.PipelineTaskDetail = (function() { + v1.ListModelEvaluationsResponse = (function() { /** - * Properties of a PipelineTaskDetail. + * Properties of a ListModelEvaluationsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IPipelineTaskDetail - * @property {number|Long|null} [taskId] PipelineTaskDetail taskId - * @property {number|Long|null} [parentTaskId] PipelineTaskDetail parentTaskId - * @property {string|null} [taskName] PipelineTaskDetail taskName - * @property {google.protobuf.ITimestamp|null} [createTime] PipelineTaskDetail createTime - * @property {google.protobuf.ITimestamp|null} [startTime] PipelineTaskDetail startTime - * @property {google.protobuf.ITimestamp|null} [endTime] PipelineTaskDetail endTime - * @property {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null} [executorDetail] PipelineTaskDetail executorDetail - * @property {google.cloud.aiplatform.v1.PipelineTaskDetail.State|null} [state] PipelineTaskDetail state - * @property {google.cloud.aiplatform.v1.IExecution|null} [execution] PipelineTaskDetail execution - * @property {google.rpc.IStatus|null} [error] PipelineTaskDetail error - * @property {Array.|null} [pipelineTaskStatus] PipelineTaskDetail pipelineTaskStatus - * @property {Object.|null} [inputs] PipelineTaskDetail inputs - * @property {Object.|null} [outputs] PipelineTaskDetail outputs + * @interface IListModelEvaluationsResponse + * @property {Array.|null} [modelEvaluations] ListModelEvaluationsResponse modelEvaluations + * @property {string|null} [nextPageToken] ListModelEvaluationsResponse nextPageToken */ /** - * Constructs a new PipelineTaskDetail. + * Constructs a new ListModelEvaluationsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineTaskDetail. - * @implements IPipelineTaskDetail + * @classdesc Represents a ListModelEvaluationsResponse. + * @implements IListModelEvaluationsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse=} [properties] Properties to set */ - function PipelineTaskDetail(properties) { - this.pipelineTaskStatus = []; - this.inputs = {}; - this.outputs = {}; + function ListModelEvaluationsResponse(properties) { + this.modelEvaluations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -120159,290 +124351,321 @@ } /** - * PipelineTaskDetail taskId. - * @member {number|Long} taskId - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * ListModelEvaluationsResponse modelEvaluations. + * @member {Array.} modelEvaluations + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @instance */ - PipelineTaskDetail.prototype.taskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ListModelEvaluationsResponse.prototype.modelEvaluations = $util.emptyArray; /** - * PipelineTaskDetail parentTaskId. - * @member {number|Long} parentTaskId - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * ListModelEvaluationsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @instance */ - PipelineTaskDetail.prototype.parentTaskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ListModelEvaluationsResponse.prototype.nextPageToken = ""; /** - * PipelineTaskDetail taskName. - * @member {string} taskName - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Creates a new ListModelEvaluationsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse instance */ - PipelineTaskDetail.prototype.taskName = ""; + ListModelEvaluationsResponse.create = function create(properties) { + return new ListModelEvaluationsResponse(properties); + }; /** - * PipelineTaskDetail createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Encodes the specified ListModelEvaluationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - PipelineTaskDetail.prototype.createTime = null; + ListModelEvaluationsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.modelEvaluations != null && message.modelEvaluations.length) + for (var i = 0; i < message.modelEvaluations.length; ++i) + $root.google.cloud.aiplatform.v1.ModelEvaluation.encode(message.modelEvaluations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; /** - * PipelineTaskDetail startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Encodes the specified ListModelEvaluationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListModelEvaluationsResponse} message ListModelEvaluationsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - PipelineTaskDetail.prototype.startTime = null; + ListModelEvaluationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * PipelineTaskDetail endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @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.ListModelEvaluationsResponse} ListModelEvaluationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskDetail.prototype.endTime = null; + ListModelEvaluationsResponse.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.ListModelEvaluationsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.modelEvaluations && message.modelEvaluations.length)) + message.modelEvaluations = []; + message.modelEvaluations.push($root.google.cloud.aiplatform.v1.ModelEvaluation.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * PipelineTaskDetail executorDetail. - * @member {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null|undefined} executorDetail - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Decodes a ListModelEvaluationsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskDetail.prototype.executorDetail = null; + ListModelEvaluationsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * PipelineTaskDetail state. - * @member {google.cloud.aiplatform.v1.PipelineTaskDetail.State} state - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Verifies a ListModelEvaluationsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTaskDetail.prototype.state = 0; + ListModelEvaluationsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.modelEvaluations != null && message.hasOwnProperty("modelEvaluations")) { + if (!Array.isArray(message.modelEvaluations)) + return "modelEvaluations: array expected"; + for (var i = 0; i < message.modelEvaluations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluation.verify(message.modelEvaluations[i]); + if (error) + return "modelEvaluations." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; /** - * PipelineTaskDetail execution. - * @member {google.cloud.aiplatform.v1.IExecution|null|undefined} execution - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Creates a ListModelEvaluationsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} ListModelEvaluationsResponse */ - PipelineTaskDetail.prototype.execution = null; + ListModelEvaluationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationsResponse(); + if (object.modelEvaluations) { + if (!Array.isArray(object.modelEvaluations)) + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsResponse.modelEvaluations: array expected"); + message.modelEvaluations = []; + for (var i = 0; i < object.modelEvaluations.length; ++i) { + if (typeof object.modelEvaluations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationsResponse.modelEvaluations: object expected"); + message.modelEvaluations[i] = $root.google.cloud.aiplatform.v1.ModelEvaluation.fromObject(object.modelEvaluations[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; /** - * PipelineTaskDetail error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Creates a plain object from a ListModelEvaluationsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @static + * @param {google.cloud.aiplatform.v1.ListModelEvaluationsResponse} message ListModelEvaluationsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - PipelineTaskDetail.prototype.error = null; + ListModelEvaluationsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.modelEvaluations = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.modelEvaluations && message.modelEvaluations.length) { + object.modelEvaluations = []; + for (var j = 0; j < message.modelEvaluations.length; ++j) + object.modelEvaluations[j] = $root.google.cloud.aiplatform.v1.ModelEvaluation.toObject(message.modelEvaluations[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; /** - * PipelineTaskDetail pipelineTaskStatus. - * @member {Array.} pipelineTaskStatus - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * Converts this ListModelEvaluationsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse * @instance + * @returns {Object.} JSON object */ - PipelineTaskDetail.prototype.pipelineTaskStatus = $util.emptyArray; + ListModelEvaluationsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * PipelineTaskDetail inputs. - * @member {Object.} inputs - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @instance + * Gets the default type url for ListModelEvaluationsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - PipelineTaskDetail.prototype.inputs = $util.emptyObject; + ListModelEvaluationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationsResponse"; + }; + + return ListModelEvaluationsResponse; + })(); + + v1.GetModelEvaluationSliceRequest = (function() { /** - * PipelineTaskDetail outputs. - * @member {Object.} outputs - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * Properties of a GetModelEvaluationSliceRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetModelEvaluationSliceRequest + * @property {string|null} [name] GetModelEvaluationSliceRequest name + */ + + /** + * Constructs a new GetModelEvaluationSliceRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetModelEvaluationSliceRequest. + * @implements IGetModelEvaluationSliceRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest=} [properties] Properties to set + */ + function GetModelEvaluationSliceRequest(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]]; + } + + /** + * GetModelEvaluationSliceRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @instance */ - PipelineTaskDetail.prototype.outputs = $util.emptyObject; + GetModelEvaluationSliceRequest.prototype.name = ""; /** - * Creates a new PipelineTaskDetail instance using the specified properties. + * Creates a new GetModelEvaluationSliceRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail instance + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest instance */ - PipelineTaskDetail.create = function create(properties) { - return new PipelineTaskDetail(properties); + GetModelEvaluationSliceRequest.create = function create(properties) { + return new GetModelEvaluationSliceRequest(properties); }; /** - * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. + * Encodes the specified GetModelEvaluationSliceRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskDetail.encode = function encode(message, writer) { + GetModelEvaluationSliceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.taskId != null && Object.hasOwnProperty.call(message, "taskId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.taskId); - if (message.taskName != null && Object.hasOwnProperty.call(message, "taskName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.taskName); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.executorDetail != null && Object.hasOwnProperty.call(message, "executorDetail")) - $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.encode(message.executorDetail, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - $root.google.cloud.aiplatform.v1.Execution.encode(message.execution, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) - for (var keys = Object.keys(message.inputs), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.encode(message.inputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.outputs != null && Object.hasOwnProperty.call(message, "outputs")) - for (var keys = Object.keys(message.outputs), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.encode(message.outputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.parentTaskId != null && Object.hasOwnProperty.call(message, "parentTaskId")) - writer.uint32(/* id 12, wireType 0 =*/96).int64(message.parentTaskId); - if (message.pipelineTaskStatus != null && message.pipelineTaskStatus.length) - for (var i = 0; i < message.pipelineTaskStatus.length; ++i) - $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.encode(message.pipelineTaskStatus[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. + * Encodes the specified GetModelEvaluationSliceRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskDetail.encodeDelimited = function encodeDelimited(message, writer) { + GetModelEvaluationSliceRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @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.PipelineTaskDetail} PipelineTaskDetail + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskDetail.decode = function decode(reader, length) { + GetModelEvaluationSliceRequest.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.PipelineTaskDetail(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.taskId = reader.int64(); - break; - } - case 12: { - message.parentTaskId = reader.int64(); - break; - } - case 2: { - message.taskName = reader.string(); - break; - } - case 3: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 4: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 6: { - message.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.decode(reader, reader.uint32()); - break; - } - case 7: { - message.state = reader.int32(); - break; - } - case 8: { - message.execution = $root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32()); - break; - } - case 9: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - case 13: { - if (!(message.pipelineTaskStatus && message.pipelineTaskStatus.length)) - message.pipelineTaskStatus = []; - message.pipelineTaskStatus.push($root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.decode(reader, reader.uint32())); - break; - } - case 10: { - if (message.inputs === $util.emptyObject) - message.inputs = {}; - 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.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.inputs[key] = value; - break; - } - case 11: { - if (message.outputs === $util.emptyObject) - message.outputs = {}; - 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.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.outputs[key] = value; + message.name = reader.string(); break; } default: @@ -120454,967 +124677,425 @@ }; /** - * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. + * Decodes a GetModelEvaluationSliceRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskDetail.decodeDelimited = function decodeDelimited(reader) { + GetModelEvaluationSliceRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineTaskDetail message. + * Verifies a GetModelEvaluationSliceRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTaskDetail.verify = function verify(message) { + GetModelEvaluationSliceRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.taskId != null && message.hasOwnProperty("taskId")) - if (!$util.isInteger(message.taskId) && !(message.taskId && $util.isInteger(message.taskId.low) && $util.isInteger(message.taskId.high))) - return "taskId: integer|Long expected"; - if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) - if (!$util.isInteger(message.parentTaskId) && !(message.parentTaskId && $util.isInteger(message.parentTaskId.low) && $util.isInteger(message.parentTaskId.high))) - return "parentTaskId: integer|Long expected"; - if (message.taskName != null && message.hasOwnProperty("taskName")) - if (!$util.isString(message.taskName)) - return "taskName: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.executorDetail != null && message.hasOwnProperty("executorDetail")) { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify(message.executorDetail); - if (error) - return "executorDetail." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - if (message.execution != null && message.hasOwnProperty("execution")) { - var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.execution); - if (error) - return "execution." + error; - } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - if (message.pipelineTaskStatus != null && message.hasOwnProperty("pipelineTaskStatus")) { - if (!Array.isArray(message.pipelineTaskStatus)) - return "pipelineTaskStatus: array expected"; - for (var i = 0; i < message.pipelineTaskStatus.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify(message.pipelineTaskStatus[i]); - if (error) - return "pipelineTaskStatus." + error; - } - } - if (message.inputs != null && message.hasOwnProperty("inputs")) { - if (!$util.isObject(message.inputs)) - return "inputs: object expected"; - var key = Object.keys(message.inputs); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify(message.inputs[key[i]]); - if (error) - return "inputs." + error; - } - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - if (!$util.isObject(message.outputs)) - return "outputs: object expected"; - var key = Object.keys(message.outputs); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify(message.outputs[key[i]]); - if (error) - return "outputs." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelEvaluationSliceRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail + * @returns {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} GetModelEvaluationSliceRequest */ - PipelineTaskDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail) + GetModelEvaluationSliceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail(); - if (object.taskId != null) - if ($util.Long) - (message.taskId = $util.Long.fromValue(object.taskId)).unsigned = false; - else if (typeof object.taskId === "string") - message.taskId = parseInt(object.taskId, 10); - else if (typeof object.taskId === "number") - message.taskId = object.taskId; - else if (typeof object.taskId === "object") - message.taskId = new $util.LongBits(object.taskId.low >>> 0, object.taskId.high >>> 0).toNumber(); - if (object.parentTaskId != null) - if ($util.Long) - (message.parentTaskId = $util.Long.fromValue(object.parentTaskId)).unsigned = false; - else if (typeof object.parentTaskId === "string") - message.parentTaskId = parseInt(object.parentTaskId, 10); - else if (typeof object.parentTaskId === "number") - message.parentTaskId = object.parentTaskId; - else if (typeof object.parentTaskId === "object") - message.parentTaskId = new $util.LongBits(object.parentTaskId.low >>> 0, object.parentTaskId.high >>> 0).toNumber(); - if (object.taskName != null) - message.taskName = String(object.taskName); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.executorDetail != null) { - if (typeof object.executorDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.executorDetail: object expected"); - message.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.fromObject(object.executorDetail); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PENDING": - case 1: - message.state = 1; - break; - case "RUNNING": - case 2: - message.state = 2; - break; - case "SUCCEEDED": - case 3: - message.state = 3; - break; - case "CANCEL_PENDING": - case 4: - message.state = 4; - break; - case "CANCELLING": - case 5: - message.state = 5; - break; - case "CANCELLED": - case 6: - message.state = 6; - break; - case "FAILED": - case 7: - message.state = 7; - break; - case "SKIPPED": - case 8: - message.state = 8; - break; - case "NOT_TRIGGERED": - case 9: - message.state = 9; - break; - } - if (object.execution != null) { - if (typeof object.execution !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.execution: object expected"); - message.execution = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.execution); - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.pipelineTaskStatus) { - if (!Array.isArray(object.pipelineTaskStatus)) - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.pipelineTaskStatus: array expected"); - message.pipelineTaskStatus = []; - for (var i = 0; i < object.pipelineTaskStatus.length; ++i) { - if (typeof object.pipelineTaskStatus[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.pipelineTaskStatus: object expected"); - message.pipelineTaskStatus[i] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.fromObject(object.pipelineTaskStatus[i]); - } - } - if (object.inputs) { - if (typeof object.inputs !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.inputs: object expected"); - message.inputs = {}; - for (var keys = Object.keys(object.inputs), i = 0; i < keys.length; ++i) { - if (typeof object.inputs[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.inputs: object expected"); - message.inputs[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.fromObject(object.inputs[keys[i]]); - } - } - if (object.outputs) { - if (typeof object.outputs !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.outputs: object expected"); - message.outputs = {}; - for (var keys = Object.keys(object.outputs), i = 0; i < keys.length; ++i) { - if (typeof object.outputs[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.outputs: object expected"); - message.outputs[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.fromObject(object.outputs[keys[i]]); - } - } + var message = new $root.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. + * Creates a plain object from a GetModelEvaluationSliceRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail} message PipelineTaskDetail + * @param {google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest} message GetModelEvaluationSliceRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineTaskDetail.toObject = function toObject(message, options) { + GetModelEvaluationSliceRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.pipelineTaskStatus = []; - if (options.objects || options.defaults) { - object.inputs = {}; - object.outputs = {}; - } - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.taskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.taskId = options.longs === String ? "0" : 0; - object.taskName = ""; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.executorDetail = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.execution = null; - object.error = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.parentTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.parentTaskId = options.longs === String ? "0" : 0; - } - if (message.taskId != null && message.hasOwnProperty("taskId")) - if (typeof message.taskId === "number") - object.taskId = options.longs === String ? String(message.taskId) : message.taskId; - else - object.taskId = options.longs === String ? $util.Long.prototype.toString.call(message.taskId) : options.longs === Number ? new $util.LongBits(message.taskId.low >>> 0, message.taskId.high >>> 0).toNumber() : message.taskId; - if (message.taskName != null && message.hasOwnProperty("taskName")) - object.taskName = message.taskName; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.executorDetail != null && message.hasOwnProperty("executorDetail")) - object.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.toObject(message.executorDetail, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] : message.state; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = $root.google.cloud.aiplatform.v1.Execution.toObject(message.execution, options); - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - var keys2; - if (message.inputs && (keys2 = Object.keys(message.inputs)).length) { - object.inputs = {}; - for (var j = 0; j < keys2.length; ++j) - object.inputs[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.toObject(message.inputs[keys2[j]], options); - } - if (message.outputs && (keys2 = Object.keys(message.outputs)).length) { - object.outputs = {}; - for (var j = 0; j < keys2.length; ++j) - object.outputs[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.toObject(message.outputs[keys2[j]], options); - } - if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) - if (typeof message.parentTaskId === "number") - object.parentTaskId = options.longs === String ? String(message.parentTaskId) : message.parentTaskId; - else - object.parentTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.parentTaskId) : options.longs === Number ? new $util.LongBits(message.parentTaskId.low >>> 0, message.parentTaskId.high >>> 0).toNumber() : message.parentTaskId; - if (message.pipelineTaskStatus && message.pipelineTaskStatus.length) { - object.pipelineTaskStatus = []; - for (var j = 0; j < message.pipelineTaskStatus.length; ++j) - object.pipelineTaskStatus[j] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.toObject(message.pipelineTaskStatus[j], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this PipelineTaskDetail to JSON. + * Converts this GetModelEvaluationSliceRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @instance * @returns {Object.} JSON object */ - PipelineTaskDetail.prototype.toJSON = function toJSON() { + GetModelEvaluationSliceRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineTaskDetail + * Gets the default type url for GetModelEvaluationSliceRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @memberof google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineTaskDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetModelEvaluationSliceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest"; }; - PipelineTaskDetail.PipelineTaskStatus = (function() { - - /** - * Properties of a PipelineTaskStatus. - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @interface IPipelineTaskStatus - * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineTaskStatus updateTime - * @property {google.cloud.aiplatform.v1.PipelineTaskDetail.State|null} [state] PipelineTaskStatus state - * @property {google.rpc.IStatus|null} [error] PipelineTaskStatus error - */ + return GetModelEvaluationSliceRequest; + })(); - /** - * Constructs a new PipelineTaskStatus. - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @classdesc Represents a PipelineTaskStatus. - * @implements IPipelineTaskStatus - * @constructor - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set - */ - function PipelineTaskStatus(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]]; - } + v1.ListModelEvaluationSlicesRequest = (function() { - /** - * PipelineTaskStatus updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @instance - */ - PipelineTaskStatus.prototype.updateTime = null; + /** + * Properties of a ListModelEvaluationSlicesRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IListModelEvaluationSlicesRequest + * @property {string|null} [parent] ListModelEvaluationSlicesRequest parent + * @property {string|null} [filter] ListModelEvaluationSlicesRequest filter + * @property {number|null} [pageSize] ListModelEvaluationSlicesRequest pageSize + * @property {string|null} [pageToken] ListModelEvaluationSlicesRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelEvaluationSlicesRequest readMask + */ - /** - * PipelineTaskStatus state. - * @member {google.cloud.aiplatform.v1.PipelineTaskDetail.State} state - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @instance - */ - PipelineTaskStatus.prototype.state = 0; + /** + * Constructs a new ListModelEvaluationSlicesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListModelEvaluationSlicesRequest. + * @implements IListModelEvaluationSlicesRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest=} [properties] Properties to set + */ + function ListModelEvaluationSlicesRequest(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]]; + } - /** - * PipelineTaskStatus error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @instance - */ - PipelineTaskStatus.prototype.error = null; + /** + * ListModelEvaluationSlicesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @instance + */ + ListModelEvaluationSlicesRequest.prototype.parent = ""; - /** - * Creates a new PipelineTaskStatus instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus instance - */ - PipelineTaskStatus.create = function create(properties) { - return new PipelineTaskStatus(properties); - }; + /** + * ListModelEvaluationSlicesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @instance + */ + ListModelEvaluationSlicesRequest.prototype.filter = ""; - /** - * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PipelineTaskStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * ListModelEvaluationSlicesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @instance + */ + ListModelEvaluationSlicesRequest.prototype.pageSize = 0; - /** - * Encodes the specified PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PipelineTaskStatus.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ListModelEvaluationSlicesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @instance + */ + ListModelEvaluationSlicesRequest.prototype.pageToken = ""; - /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @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.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PipelineTaskStatus.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.PipelineTaskDetail.PipelineTaskStatus(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 2: { - message.state = reader.int32(); - break; - } - case 3: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ListModelEvaluationSlicesRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @instance + */ + ListModelEvaluationSlicesRequest.prototype.readMask = null; - /** - * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PipelineTaskStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a new ListModelEvaluationSlicesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest instance + */ + ListModelEvaluationSlicesRequest.create = function create(properties) { + return new ListModelEvaluationSlicesRequest(properties); + }; - /** - * Verifies a PipelineTaskStatus message. - * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PipelineTaskStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: + /** + * Encodes the specified ListModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelEvaluationSlicesRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ListModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @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.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelEvaluationSlicesRequest.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.ListModelEvaluationSlicesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); break; } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - return null; - }; - - /** - * Creates a PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus - */ - PipelineTaskStatus.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus) - return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus(); - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; + case 2: { + message.filter = reader.string(); break; } - break; - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PENDING": - case 1: - message.state = 1; - break; - case "RUNNING": - case 2: - message.state = 2; - break; - case "SUCCEEDED": - case 3: - message.state = 3; - break; - case "CANCEL_PENDING": - case 4: - message.state = 4; - break; - case "CANCELLING": - case 5: - message.state = 5; - break; - case "CANCELLED": - case 6: - message.state = 6; - break; - case "FAILED": - case 7: - message.state = 7; - break; - case "SKIPPED": - case 8: - message.state = 8; - break; - case "NOT_TRIGGERED": - case 9: - message.state = 9; - break; - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - return message; - }; - - /** - * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} message PipelineTaskStatus - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PipelineTaskStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.updateTime = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.error = null; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] : message.state; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - return object; - }; - - /** - * Converts this PipelineTaskStatus to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @instance - * @returns {Object.} JSON object - */ - PipelineTaskStatus.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for PipelineTaskStatus - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PipelineTaskStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus"; - }; - - return PipelineTaskStatus; - })(); - - PipelineTaskDetail.ArtifactList = (function() { - - /** - * Properties of an ArtifactList. - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @interface IArtifactList - * @property {Array.|null} [artifacts] ArtifactList artifacts - */ - - /** - * Constructs a new ArtifactList. - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail - * @classdesc Represents an ArtifactList. - * @implements IArtifactList - * @constructor - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set - */ - function ArtifactList(properties) { - this.artifacts = []; - 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]]; - } - - /** - * ArtifactList artifacts. - * @member {Array.} artifacts - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @instance - */ - ArtifactList.prototype.artifacts = $util.emptyArray; - - /** - * Creates a new ArtifactList instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList instance - */ - ArtifactList.create = function create(properties) { - return new ArtifactList(properties); - }; - - /** - * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifacts != null && message.artifacts.length) - for (var i = 0; i < message.artifacts.length; ++i) - $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactList.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ArtifactList message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @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.PipelineTaskDetail.ArtifactList} ArtifactList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactList.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.PipelineTaskDetail.ArtifactList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.artifacts && message.artifacts.length)) - message.artifacts = []; - message.artifacts.push($root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); + case 3: { + message.pageSize = reader.int32(); break; } - } - return message; - }; - - /** - * Decodes an ArtifactList message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactList.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ArtifactList message. - * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArtifactList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.artifacts != null && message.hasOwnProperty("artifacts")) { - if (!Array.isArray(message.artifacts)) - return "artifacts: array expected"; - for (var i = 0; i < message.artifacts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifacts[i]); - if (error) - return "artifacts." + error; + case 4: { + message.pageToken = reader.string(); + break; } - } - return null; - }; - - /** - * Creates an ArtifactList message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList - */ - ArtifactList.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList) - return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList(); - if (object.artifacts) { - if (!Array.isArray(object.artifacts)) - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.artifacts: array expected"); - message.artifacts = []; - for (var i = 0; i < object.artifacts.length; ++i) { - if (typeof object.artifacts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.artifacts: object expected"); - message.artifacts[i] = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifacts[i]); + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Creates a plain object from an ArtifactList message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} message ArtifactList - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ArtifactList.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.artifacts = []; - if (message.artifacts && message.artifacts.length) { - object.artifacts = []; - for (var j = 0; j < message.artifacts.length; ++j) - object.artifacts[j] = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifacts[j], options); - } - return object; - }; + /** + * Decodes a ListModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Converts this ArtifactList to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @instance - * @returns {Object.} JSON object - */ - ArtifactList.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Verifies a ListModelEvaluationSlicesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListModelEvaluationSlicesRequest.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.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + return null; + }; - /** - * Gets the default type url for ArtifactList - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ArtifactList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList"; - }; + /** + * Creates a ListModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} ListModelEvaluationSlicesRequest + */ + ListModelEvaluationSlicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; - return ArtifactList; - })(); + /** + * Creates a plain object from a ListModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest} message ListModelEvaluationSlicesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListModelEvaluationSlicesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + return object; + }; /** - * State enum. - * @name google.cloud.aiplatform.v1.PipelineTaskDetail.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} PENDING=1 PENDING value - * @property {number} RUNNING=2 RUNNING value - * @property {number} SUCCEEDED=3 SUCCEEDED value - * @property {number} CANCEL_PENDING=4 CANCEL_PENDING value - * @property {number} CANCELLING=5 CANCELLING value - * @property {number} CANCELLED=6 CANCELLED value - * @property {number} FAILED=7 FAILED value - * @property {number} SKIPPED=8 SKIPPED value - * @property {number} NOT_TRIGGERED=9 NOT_TRIGGERED value + * Converts this ListModelEvaluationSlicesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @instance + * @returns {Object.} JSON object */ - PipelineTaskDetail.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PENDING"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "SUCCEEDED"] = 3; - values[valuesById[4] = "CANCEL_PENDING"] = 4; - values[valuesById[5] = "CANCELLING"] = 5; - values[valuesById[6] = "CANCELLED"] = 6; - values[valuesById[7] = "FAILED"] = 7; - values[valuesById[8] = "SKIPPED"] = 8; - values[valuesById[9] = "NOT_TRIGGERED"] = 9; - return values; - })(); + ListModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return PipelineTaskDetail; + /** + * Gets the default type url for ListModelEvaluationSlicesRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListModelEvaluationSlicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest"; + }; + + return ListModelEvaluationSlicesRequest; })(); - v1.PipelineTaskExecutorDetail = (function() { + v1.ListModelEvaluationSlicesResponse = (function() { /** - * Properties of a PipelineTaskExecutorDetail. + * Properties of a ListModelEvaluationSlicesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IPipelineTaskExecutorDetail - * @property {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null} [containerDetail] PipelineTaskExecutorDetail containerDetail - * @property {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null} [customJobDetail] PipelineTaskExecutorDetail customJobDetail + * @interface IListModelEvaluationSlicesResponse + * @property {Array.|null} [modelEvaluationSlices] ListModelEvaluationSlicesResponse modelEvaluationSlices + * @property {string|null} [nextPageToken] ListModelEvaluationSlicesResponse nextPageToken */ /** - * Constructs a new PipelineTaskExecutorDetail. + * Constructs a new ListModelEvaluationSlicesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineTaskExecutorDetail. - * @implements IPipelineTaskExecutorDetail + * @classdesc Represents a ListModelEvaluationSlicesResponse. + * @implements IListModelEvaluationSlicesResponse * @constructor - * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse=} [properties] Properties to set */ - function PipelineTaskExecutorDetail(properties) { + function ListModelEvaluationSlicesResponse(properties) { + this.modelEvaluationSlices = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -121422,103 +125103,92 @@ } /** - * PipelineTaskExecutorDetail containerDetail. - * @member {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null|undefined} containerDetail - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail - * @instance - */ - PipelineTaskExecutorDetail.prototype.containerDetail = null; - - /** - * PipelineTaskExecutorDetail customJobDetail. - * @member {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null|undefined} customJobDetail - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * ListModelEvaluationSlicesResponse modelEvaluationSlices. + * @member {Array.} modelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @instance */ - PipelineTaskExecutorDetail.prototype.customJobDetail = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListModelEvaluationSlicesResponse.prototype.modelEvaluationSlices = $util.emptyArray; /** - * PipelineTaskExecutorDetail details. - * @member {"containerDetail"|"customJobDetail"|undefined} details - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * ListModelEvaluationSlicesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @instance */ - Object.defineProperty(PipelineTaskExecutorDetail.prototype, "details", { - get: $util.oneOfGetter($oneOfFields = ["containerDetail", "customJobDetail"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListModelEvaluationSlicesResponse.prototype.nextPageToken = ""; /** - * Creates a new PipelineTaskExecutorDetail instance using the specified properties. + * Creates a new ListModelEvaluationSlicesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail instance + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse instance */ - PipelineTaskExecutorDetail.create = function create(properties) { - return new PipelineTaskExecutorDetail(properties); + ListModelEvaluationSlicesResponse.create = function create(properties) { + return new ListModelEvaluationSlicesResponse(properties); }; /** - * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. + * Encodes the specified ListModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskExecutorDetail.encode = function encode(message, writer) { + ListModelEvaluationSlicesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.containerDetail != null && Object.hasOwnProperty.call(message, "containerDetail")) - $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.encode(message.containerDetail, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.customJobDetail != null && Object.hasOwnProperty.call(message, "customJobDetail")) - $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.encode(message.customJobDetail, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.modelEvaluationSlices != null && message.modelEvaluationSlices.length) + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) + $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.encode(message.modelEvaluationSlices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. + * Encodes the specified ListModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PipelineTaskExecutorDetail.encodeDelimited = function encodeDelimited(message, writer) { + ListModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @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.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskExecutorDetail.decode = function decode(reader, length) { + ListModelEvaluationSlicesResponse.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.PipelineTaskExecutorDetail(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.decode(reader, reader.uint32()); + if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) + message.modelEvaluationSlices = []; + message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1.ModelEvaluationSlice.decode(reader, reader.uint32())); break; } case 2: { - message.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -121530,810 +125200,501 @@ }; /** - * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. + * Decodes a ListModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PipelineTaskExecutorDetail.decodeDelimited = function decodeDelimited(reader) { + ListModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PipelineTaskExecutorDetail message. + * Verifies a ListModelEvaluationSlicesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PipelineTaskExecutorDetail.verify = function verify(message) { + ListModelEvaluationSlicesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { - properties.details = 1; - { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify(message.containerDetail); - if (error) - return "containerDetail." + error; - } - } - if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { - if (properties.details === 1) - return "details: multiple values"; - properties.details = 1; - { - var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify(message.customJobDetail); + if (message.modelEvaluationSlices != null && message.hasOwnProperty("modelEvaluationSlices")) { + if (!Array.isArray(message.modelEvaluationSlices)) + return "modelEvaluationSlices: array expected"; + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.verify(message.modelEvaluationSlices[i]); if (error) - return "customJobDetail." + error; + return "modelEvaluationSlices." + error; } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail + * @returns {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} ListModelEvaluationSlicesResponse */ - PipelineTaskExecutorDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail) + ListModelEvaluationSlicesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail(); - if (object.containerDetail != null) { - if (typeof object.containerDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.containerDetail: object expected"); - message.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.fromObject(object.containerDetail); - } - if (object.customJobDetail != null) { - if (typeof object.customJobDetail !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.customJobDetail: object expected"); - message.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.fromObject(object.customJobDetail); + var message = new $root.google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse(); + if (object.modelEvaluationSlices) { + if (!Array.isArray(object.modelEvaluationSlices)) + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.modelEvaluationSlices: array expected"); + message.modelEvaluationSlices = []; + for (var i = 0; i < object.modelEvaluationSlices.length; ++i) { + if (typeof object.modelEvaluationSlices[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse.modelEvaluationSlices: object expected"); + message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. + * Creates a plain object from a ListModelEvaluationSlicesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} message PipelineTaskExecutorDetail + * @param {google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse} message ListModelEvaluationSlicesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PipelineTaskExecutorDetail.toObject = function toObject(message, options) { + ListModelEvaluationSlicesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { - object.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.toObject(message.containerDetail, options); - if (options.oneofs) - object.details = "containerDetail"; - } - if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { - object.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.toObject(message.customJobDetail, options); - if (options.oneofs) - object.details = "customJobDetail"; + if (options.arrays || options.defaults) + object.modelEvaluationSlices = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.modelEvaluationSlices && message.modelEvaluationSlices.length) { + object.modelEvaluationSlices = []; + for (var j = 0; j < message.modelEvaluationSlices.length; ++j) + object.modelEvaluationSlices[j] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.toObject(message.modelEvaluationSlices[j], options); } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this PipelineTaskExecutorDetail to JSON. + * Converts this ListModelEvaluationSlicesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @instance * @returns {Object.} JSON object */ - PipelineTaskExecutorDetail.prototype.toJSON = function toJSON() { + ListModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PipelineTaskExecutorDetail + * Gets the default type url for ListModelEvaluationSlicesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @memberof google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PipelineTaskExecutorDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelEvaluationSlicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListModelEvaluationSlicesResponse"; }; - PipelineTaskExecutorDetail.ContainerDetail = (function() { + return ListModelEvaluationSlicesResponse; + })(); - /** - * Properties of a ContainerDetail. - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail - * @interface IContainerDetail - * @property {string|null} [mainJob] ContainerDetail mainJob - * @property {string|null} [preCachingCheckJob] ContainerDetail preCachingCheckJob - * @property {Array.|null} [failedMainJobs] ContainerDetail failedMainJobs - * @property {Array.|null} [failedPreCachingCheckJobs] ContainerDetail failedPreCachingCheckJobs - */ + /** + * PipelineFailurePolicy enum. + * @name google.cloud.aiplatform.v1.PipelineFailurePolicy + * @enum {number} + * @property {number} PIPELINE_FAILURE_POLICY_UNSPECIFIED=0 PIPELINE_FAILURE_POLICY_UNSPECIFIED value + * @property {number} PIPELINE_FAILURE_POLICY_FAIL_SLOW=1 PIPELINE_FAILURE_POLICY_FAIL_SLOW value + * @property {number} PIPELINE_FAILURE_POLICY_FAIL_FAST=2 PIPELINE_FAILURE_POLICY_FAIL_FAST value + */ + v1.PipelineFailurePolicy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PIPELINE_FAILURE_POLICY_UNSPECIFIED"] = 0; + values[valuesById[1] = "PIPELINE_FAILURE_POLICY_FAIL_SLOW"] = 1; + values[valuesById[2] = "PIPELINE_FAILURE_POLICY_FAIL_FAST"] = 2; + return values; + })(); - /** - * Constructs a new ContainerDetail. - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail - * @classdesc Represents a ContainerDetail. - * @implements IContainerDetail - * @constructor - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set - */ - function ContainerDetail(properties) { - this.failedMainJobs = []; - this.failedPreCachingCheckJobs = []; - 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]]; - } + v1.PipelineJob = (function() { - /** - * ContainerDetail mainJob. - * @member {string} mainJob - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.mainJob = ""; + /** + * Properties of a PipelineJob. + * @memberof google.cloud.aiplatform.v1 + * @interface IPipelineJob + * @property {string|null} [name] PipelineJob name + * @property {string|null} [displayName] PipelineJob displayName + * @property {google.protobuf.ITimestamp|null} [createTime] PipelineJob createTime + * @property {google.protobuf.ITimestamp|null} [startTime] PipelineJob startTime + * @property {google.protobuf.ITimestamp|null} [endTime] PipelineJob endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineJob updateTime + * @property {google.protobuf.IStruct|null} [pipelineSpec] PipelineJob pipelineSpec + * @property {google.cloud.aiplatform.v1.PipelineState|null} [state] PipelineJob state + * @property {google.cloud.aiplatform.v1.IPipelineJobDetail|null} [jobDetail] PipelineJob jobDetail + * @property {google.rpc.IStatus|null} [error] PipelineJob error + * @property {Object.|null} [labels] PipelineJob labels + * @property {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null} [runtimeConfig] PipelineJob runtimeConfig + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] PipelineJob encryptionSpec + * @property {string|null} [serviceAccount] PipelineJob serviceAccount + * @property {string|null} [network] PipelineJob network + * @property {string|null} [templateUri] PipelineJob templateUri + * @property {google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null} [templateMetadata] PipelineJob templateMetadata + */ - /** - * ContainerDetail preCachingCheckJob. - * @member {string} preCachingCheckJob - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.preCachingCheckJob = ""; + /** + * Constructs a new PipelineJob. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PipelineJob. + * @implements IPipelineJob + * @constructor + * @param {google.cloud.aiplatform.v1.IPipelineJob=} [properties] Properties to set + */ + function PipelineJob(properties) { + this.labels = {}; + 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]]; + } - /** - * ContainerDetail failedMainJobs. - * @member {Array.} failedMainJobs - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.failedMainJobs = $util.emptyArray; + /** + * PipelineJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.name = ""; - /** - * ContainerDetail failedPreCachingCheckJobs. - * @member {Array.} failedPreCachingCheckJobs - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - */ - ContainerDetail.prototype.failedPreCachingCheckJobs = $util.emptyArray; + /** + * PipelineJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.displayName = ""; - /** - * Creates a new ContainerDetail instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail instance - */ - ContainerDetail.create = function create(properties) { - return new ContainerDetail(properties); - }; + /** + * PipelineJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.createTime = null; - /** - * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContainerDetail.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.mainJob != null && Object.hasOwnProperty.call(message, "mainJob")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.mainJob); - if (message.preCachingCheckJob != null && Object.hasOwnProperty.call(message, "preCachingCheckJob")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.preCachingCheckJob); - if (message.failedMainJobs != null && message.failedMainJobs.length) - for (var i = 0; i < message.failedMainJobs.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.failedMainJobs[i]); - if (message.failedPreCachingCheckJobs != null && message.failedPreCachingCheckJobs.length) - for (var i = 0; i < message.failedPreCachingCheckJobs.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.failedPreCachingCheckJobs[i]); - return writer; - }; + /** + * PipelineJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.startTime = null; - /** - * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContainerDetail.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * PipelineJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.endTime = null; - /** - * Decodes a ContainerDetail message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @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.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContainerDetail.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.PipelineTaskExecutorDetail.ContainerDetail(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.mainJob = reader.string(); - break; - } - case 2: { - message.preCachingCheckJob = reader.string(); - break; - } - case 3: { - if (!(message.failedMainJobs && message.failedMainJobs.length)) - message.failedMainJobs = []; - message.failedMainJobs.push(reader.string()); - break; - } - case 4: { - if (!(message.failedPreCachingCheckJobs && message.failedPreCachingCheckJobs.length)) - message.failedPreCachingCheckJobs = []; - message.failedPreCachingCheckJobs.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContainerDetail.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ContainerDetail message. - * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ContainerDetail.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.mainJob != null && message.hasOwnProperty("mainJob")) - if (!$util.isString(message.mainJob)) - return "mainJob: string expected"; - if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) - if (!$util.isString(message.preCachingCheckJob)) - return "preCachingCheckJob: string expected"; - if (message.failedMainJobs != null && message.hasOwnProperty("failedMainJobs")) { - if (!Array.isArray(message.failedMainJobs)) - return "failedMainJobs: array expected"; - for (var i = 0; i < message.failedMainJobs.length; ++i) - if (!$util.isString(message.failedMainJobs[i])) - return "failedMainJobs: string[] expected"; - } - if (message.failedPreCachingCheckJobs != null && message.hasOwnProperty("failedPreCachingCheckJobs")) { - if (!Array.isArray(message.failedPreCachingCheckJobs)) - return "failedPreCachingCheckJobs: array expected"; - for (var i = 0; i < message.failedPreCachingCheckJobs.length; ++i) - if (!$util.isString(message.failedPreCachingCheckJobs[i])) - return "failedPreCachingCheckJobs: string[] expected"; - } - return null; - }; - - /** - * Creates a ContainerDetail message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail - */ - ContainerDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) - return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail(); - if (object.mainJob != null) - message.mainJob = String(object.mainJob); - if (object.preCachingCheckJob != null) - message.preCachingCheckJob = String(object.preCachingCheckJob); - if (object.failedMainJobs) { - if (!Array.isArray(object.failedMainJobs)) - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.failedMainJobs: array expected"); - message.failedMainJobs = []; - for (var i = 0; i < object.failedMainJobs.length; ++i) - message.failedMainJobs[i] = String(object.failedMainJobs[i]); - } - if (object.failedPreCachingCheckJobs) { - if (!Array.isArray(object.failedPreCachingCheckJobs)) - throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.failedPreCachingCheckJobs: array expected"); - message.failedPreCachingCheckJobs = []; - for (var i = 0; i < object.failedPreCachingCheckJobs.length; ++i) - message.failedPreCachingCheckJobs[i] = String(object.failedPreCachingCheckJobs[i]); - } - return message; - }; - - /** - * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} message ContainerDetail - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ContainerDetail.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.failedMainJobs = []; - object.failedPreCachingCheckJobs = []; - } - if (options.defaults) { - object.mainJob = ""; - object.preCachingCheckJob = ""; - } - if (message.mainJob != null && message.hasOwnProperty("mainJob")) - object.mainJob = message.mainJob; - if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) - object.preCachingCheckJob = message.preCachingCheckJob; - if (message.failedMainJobs && message.failedMainJobs.length) { - object.failedMainJobs = []; - for (var j = 0; j < message.failedMainJobs.length; ++j) - object.failedMainJobs[j] = message.failedMainJobs[j]; - } - if (message.failedPreCachingCheckJobs && message.failedPreCachingCheckJobs.length) { - object.failedPreCachingCheckJobs = []; - for (var j = 0; j < message.failedPreCachingCheckJobs.length; ++j) - object.failedPreCachingCheckJobs[j] = message.failedPreCachingCheckJobs[j]; - } - return object; - }; - - /** - * Converts this ContainerDetail to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @instance - * @returns {Object.} JSON object - */ - ContainerDetail.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ContainerDetail - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ContainerDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail"; - }; - - return ContainerDetail; - })(); - - PipelineTaskExecutorDetail.CustomJobDetail = (function() { - - /** - * Properties of a CustomJobDetail. - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail - * @interface ICustomJobDetail - * @property {string|null} [job] CustomJobDetail job - */ - - /** - * Constructs a new CustomJobDetail. - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail - * @classdesc Represents a CustomJobDetail. - * @implements ICustomJobDetail - * @constructor - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set - */ - function CustomJobDetail(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]]; - } - - /** - * CustomJobDetail job. - * @member {string} job - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @instance - */ - CustomJobDetail.prototype.job = ""; - - /** - * Creates a new CustomJobDetail instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail instance - */ - CustomJobDetail.create = function create(properties) { - return new CustomJobDetail(properties); - }; - - /** - * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CustomJobDetail.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.job != null && Object.hasOwnProperty.call(message, "job")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.job); - return writer; - }; - - /** - * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CustomJobDetail.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CustomJobDetail message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @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.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CustomJobDetail.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.PipelineTaskExecutorDetail.CustomJobDetail(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.job = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CustomJobDetail.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CustomJobDetail message. - * @function verify - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CustomJobDetail.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.job != null && message.hasOwnProperty("job")) - if (!$util.isString(message.job)) - return "job: string expected"; - return null; - }; - - /** - * Creates a CustomJobDetail message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail - */ - CustomJobDetail.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) - return object; - var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail(); - if (object.job != null) - message.job = String(object.job); - return message; - }; - - /** - * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} message CustomJobDetail - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CustomJobDetail.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.job = ""; - if (message.job != null && message.hasOwnProperty("job")) - object.job = message.job; - return object; - }; - - /** - * Converts this CustomJobDetail to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @instance - * @returns {Object.} JSON object - */ - CustomJobDetail.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CustomJobDetail - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CustomJobDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail"; - }; + /** + * PipelineJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.updateTime = null; - return CustomJobDetail; - })(); + /** + * PipelineJob pipelineSpec. + * @member {google.protobuf.IStruct|null|undefined} pipelineSpec + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.pipelineSpec = null; - return PipelineTaskExecutorDetail; - })(); + /** + * PipelineJob state. + * @member {google.cloud.aiplatform.v1.PipelineState} state + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.state = 0; - /** - * PipelineState enum. - * @name google.cloud.aiplatform.v1.PipelineState - * @enum {number} - * @property {number} PIPELINE_STATE_UNSPECIFIED=0 PIPELINE_STATE_UNSPECIFIED value - * @property {number} PIPELINE_STATE_QUEUED=1 PIPELINE_STATE_QUEUED value - * @property {number} PIPELINE_STATE_PENDING=2 PIPELINE_STATE_PENDING value - * @property {number} PIPELINE_STATE_RUNNING=3 PIPELINE_STATE_RUNNING value - * @property {number} PIPELINE_STATE_SUCCEEDED=4 PIPELINE_STATE_SUCCEEDED value - * @property {number} PIPELINE_STATE_FAILED=5 PIPELINE_STATE_FAILED value - * @property {number} PIPELINE_STATE_CANCELLING=6 PIPELINE_STATE_CANCELLING value - * @property {number} PIPELINE_STATE_CANCELLED=7 PIPELINE_STATE_CANCELLED value - * @property {number} PIPELINE_STATE_PAUSED=8 PIPELINE_STATE_PAUSED value - */ - v1.PipelineState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PIPELINE_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PIPELINE_STATE_QUEUED"] = 1; - values[valuesById[2] = "PIPELINE_STATE_PENDING"] = 2; - values[valuesById[3] = "PIPELINE_STATE_RUNNING"] = 3; - values[valuesById[4] = "PIPELINE_STATE_SUCCEEDED"] = 4; - values[valuesById[5] = "PIPELINE_STATE_FAILED"] = 5; - values[valuesById[6] = "PIPELINE_STATE_CANCELLING"] = 6; - values[valuesById[7] = "PIPELINE_STATE_CANCELLED"] = 7; - values[valuesById[8] = "PIPELINE_STATE_PAUSED"] = 8; - return values; - })(); + /** + * PipelineJob jobDetail. + * @member {google.cloud.aiplatform.v1.IPipelineJobDetail|null|undefined} jobDetail + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.jobDetail = null; - v1.Value = (function() { + /** + * PipelineJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.error = null; /** - * Properties of a Value. - * @memberof google.cloud.aiplatform.v1 - * @interface IValue - * @property {number|Long|null} [intValue] Value intValue - * @property {number|null} [doubleValue] Value doubleValue - * @property {string|null} [stringValue] Value stringValue + * PipelineJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance */ + PipelineJob.prototype.labels = $util.emptyObject; /** - * Constructs a new Value. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a Value. - * @implements IValue - * @constructor - * @param {google.cloud.aiplatform.v1.IValue=} [properties] Properties to set + * PipelineJob runtimeConfig. + * @member {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig|null|undefined} runtimeConfig + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance */ - 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]]; - } + PipelineJob.prototype.runtimeConfig = null; /** - * Value intValue. - * @member {number|Long|null|undefined} intValue - * @memberof google.cloud.aiplatform.v1.Value + * PipelineJob encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - Value.prototype.intValue = null; + PipelineJob.prototype.encryptionSpec = null; /** - * Value doubleValue. - * @member {number|null|undefined} doubleValue - * @memberof google.cloud.aiplatform.v1.Value + * PipelineJob serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - Value.prototype.doubleValue = null; + PipelineJob.prototype.serviceAccount = ""; /** - * Value stringValue. - * @member {string|null|undefined} stringValue - * @memberof google.cloud.aiplatform.v1.Value + * PipelineJob network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - Value.prototype.stringValue = null; + PipelineJob.prototype.network = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * PipelineJob templateUri. + * @member {string} templateUri + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @instance + */ + PipelineJob.prototype.templateUri = ""; /** - * Value value. - * @member {"intValue"|"doubleValue"|"stringValue"|undefined} value - * @memberof google.cloud.aiplatform.v1.Value + * PipelineJob templateMetadata. + * @member {google.cloud.aiplatform.v1.IPipelineTemplateMetadata|null|undefined} templateMetadata + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance */ - Object.defineProperty(Value.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["intValue", "doubleValue", "stringValue"]), - set: $util.oneOfSetter($oneOfFields) - }); + PipelineJob.prototype.templateMetadata = null; /** - * Creates a new Value instance using the specified properties. + * Creates a new PipelineJob instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1.IValue=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.Value} Value instance + * @param {google.cloud.aiplatform.v1.IPipelineJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob instance */ - Value.create = function create(properties) { - return new Value(properties); + PipelineJob.create = function create(properties) { + return new PipelineJob(properties); }; /** - * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. + * Encodes the specified PipelineJob message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1.IValue} message Value message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineJob} message PipelineJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Value.encode = function encode(message, writer) { + PipelineJob.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.intValue != null && Object.hasOwnProperty.call(message, "intValue")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.intValue); - if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.pipelineSpec != null && Object.hasOwnProperty.call(message, "pipelineSpec")) + $root.google.protobuf.Struct.encode(message.pipelineSpec, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); + if (message.jobDetail != null && Object.hasOwnProperty.call(message, "jobDetail")) + $root.google.cloud.aiplatform.v1.PipelineJobDetail.encode(message.jobDetail, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.runtimeConfig != null && Object.hasOwnProperty.call(message, "runtimeConfig")) + $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.encode(message.runtimeConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 17, wireType 2 =*/138).string(message.serviceAccount); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 18, wireType 2 =*/146).string(message.network); + if (message.templateUri != null && Object.hasOwnProperty.call(message, "templateUri")) + writer.uint32(/* id 19, wireType 2 =*/154).string(message.templateUri); + if (message.templateMetadata != null && Object.hasOwnProperty.call(message, "templateMetadata")) + $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.encode(message.templateMetadata, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); return writer; }; /** - * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. + * Encodes the specified PipelineJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1.IValue} message Value message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineJob} message PipelineJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Value.encodeDelimited = function encodeDelimited(message, writer) { + PipelineJob.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Value message from the specified reader or buffer. + * Decodes a PipelineJob message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @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.Value} Value + * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob * @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) { + PipelineJob.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.Value(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJob(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.intValue = reader.int64(); + message.name = reader.string(); break; } case 2: { - message.doubleValue = reader.double(); + message.displayName = reader.string(); break; } case 3: { - message.stringValue = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.pipelineSpec = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + } + case 8: { + message.state = reader.int32(); + break; + } + case 9: { + message.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.decode(reader, reader.uint32()); + break; + } + case 10: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 11: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 12: { + message.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.decode(reader, reader.uint32()); + break; + } + case 16: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + case 17: { + message.serviceAccount = reader.string(); + break; + } + case 18: { + message.network = reader.string(); + break; + } + case 19: { + message.templateUri = reader.string(); + break; + } + case 20: { + message.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.decode(reader, reader.uint32()); break; } default: @@ -122345,620 +125706,1350 @@ }; /** - * Decodes a Value message from the specified reader or buffer, length delimited. + * Decodes a PipelineJob message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.Value} Value + * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob * @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) { + PipelineJob.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Value message. + * Verifies a PipelineJob message. * @function verify - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @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) { + PipelineJob.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.intValue != null && message.hasOwnProperty("intValue")) { - properties.value = 1; - if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high))) - return "intValue: integer|Long expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; } - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (typeof message.doubleValue !== "number") - return "doubleValue: number expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) { + var error = $root.google.protobuf.Struct.verify(message.pipelineSpec); + if (error) + return "pipelineSpec." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) { + var error = $root.google.cloud.aiplatform.v1.PipelineJobDetail.verify(message.jobDetail); + if (error) + return "jobDetail." + error; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) { + var error = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify(message.runtimeConfig); + if (error) + return "runtimeConfig." + error; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.templateUri != null && message.hasOwnProperty("templateUri")) + if (!$util.isString(message.templateUri)) + return "templateUri: string expected"; + if (message.templateMetadata != null && message.hasOwnProperty("templateMetadata")) { + var error = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify(message.templateMetadata); + if (error) + return "templateMetadata." + error; } return null; }; /** - * Creates a Value message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJob message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.Value} Value + * @returns {google.cloud.aiplatform.v1.PipelineJob} PipelineJob */ - Value.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.Value) + PipelineJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob) return object; - var message = new $root.google.cloud.aiplatform.v1.Value(); - if (object.intValue != null) - if ($util.Long) - (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false; - else if (typeof object.intValue === "string") - message.intValue = parseInt(object.intValue, 10); - else if (typeof object.intValue === "number") - message.intValue = object.intValue; - else if (typeof object.intValue === "object") - message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber(); - if (object.doubleValue != null) - message.doubleValue = Number(object.doubleValue); - if (object.stringValue != null) - message.stringValue = String(object.stringValue); + var message = new $root.google.cloud.aiplatform.v1.PipelineJob(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.pipelineSpec != null) { + if (typeof object.pipelineSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.pipelineSpec: object expected"); + message.pipelineSpec = $root.google.protobuf.Struct.fromObject(object.pipelineSpec); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "PIPELINE_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PIPELINE_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "PIPELINE_STATE_PENDING": + case 2: + message.state = 2; + break; + case "PIPELINE_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "PIPELINE_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "PIPELINE_STATE_FAILED": + case 5: + message.state = 5; + break; + case "PIPELINE_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "PIPELINE_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "PIPELINE_STATE_PAUSED": + case 8: + message.state = 8; + break; + } + if (object.jobDetail != null) { + if (typeof object.jobDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.jobDetail: object expected"); + message.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.fromObject(object.jobDetail); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.runtimeConfig != null) { + if (typeof object.runtimeConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.runtimeConfig: object expected"); + message.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.fromObject(object.runtimeConfig); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); + if (object.network != null) + message.network = String(object.network); + if (object.templateUri != null) + message.templateUri = String(object.templateUri); + if (object.templateMetadata != null) { + if (typeof object.templateMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.templateMetadata: object expected"); + message.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.fromObject(object.templateMetadata); + } return message; }; /** - * Creates a plain object from a Value message. Also converts values to other types if specified. + * Creates a plain object from a PipelineJob message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static - * @param {google.cloud.aiplatform.v1.Value} message Value + * @param {google.cloud.aiplatform.v1.PipelineJob} message PipelineJob * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Value.toObject = function toObject(message, options) { + PipelineJob.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.intValue != null && message.hasOwnProperty("intValue")) { - if (typeof message.intValue === "number") - object.intValue = options.longs === String ? String(message.intValue) : message.intValue; - else - object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue; - if (options.oneofs) - object.value = "intValue"; - } - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { - object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; - if (options.oneofs) - object.value = "doubleValue"; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.updateTime = null; + object.pipelineSpec = null; + object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; + object.jobDetail = null; + object.error = null; + object.runtimeConfig = null; + object.encryptionSpec = null; + object.serviceAccount = ""; + object.network = ""; + object.templateUri = ""; + object.templateMetadata = null; } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - object.stringValue = message.stringValue; - if (options.oneofs) - object.value = "stringValue"; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.pipelineSpec != null && message.hasOwnProperty("pipelineSpec")) + object.pipelineSpec = $root.google.protobuf.Struct.toObject(message.pipelineSpec, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineState[message.state] : message.state; + if (message.jobDetail != null && message.hasOwnProperty("jobDetail")) + object.jobDetail = $root.google.cloud.aiplatform.v1.PipelineJobDetail.toObject(message.jobDetail, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; } + if (message.runtimeConfig != null && message.hasOwnProperty("runtimeConfig")) + object.runtimeConfig = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.toObject(message.runtimeConfig, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.templateUri != null && message.hasOwnProperty("templateUri")) + object.templateUri = message.templateUri; + if (message.templateMetadata != null && message.hasOwnProperty("templateMetadata")) + object.templateMetadata = $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata.toObject(message.templateMetadata, options); return object; }; /** - * Converts this Value to JSON. + * Converts this PipelineJob to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @instance * @returns {Object.} JSON object */ - Value.prototype.toJSON = function toJSON() { + PipelineJob.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Value + * Gets the default type url for PipelineJob * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.Value + * @memberof google.cloud.aiplatform.v1.PipelineJob * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PipelineJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.Value"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob"; }; - return Value; + PipelineJob.RuntimeConfig = (function() { + + /** + * Properties of a RuntimeConfig. + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @interface IRuntimeConfig + * @property {Object.|null} [parameters] RuntimeConfig parameters + * @property {string|null} [gcsOutputDirectory] RuntimeConfig gcsOutputDirectory + * @property {Object.|null} [parameterValues] RuntimeConfig parameterValues + * @property {google.cloud.aiplatform.v1.PipelineFailurePolicy|null} [failurePolicy] RuntimeConfig failurePolicy + * @property {Object.|null} [inputArtifacts] RuntimeConfig inputArtifacts + */ + + /** + * Constructs a new RuntimeConfig. + * @memberof google.cloud.aiplatform.v1.PipelineJob + * @classdesc Represents a RuntimeConfig. + * @implements IRuntimeConfig + * @constructor + * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig=} [properties] Properties to set + */ + function RuntimeConfig(properties) { + this.parameters = {}; + this.parameterValues = {}; + this.inputArtifacts = {}; + 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]]; + } + + /** + * RuntimeConfig parameters. + * @member {Object.} parameters + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.parameters = $util.emptyObject; + + /** + * RuntimeConfig gcsOutputDirectory. + * @member {string} gcsOutputDirectory + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.gcsOutputDirectory = ""; + + /** + * RuntimeConfig parameterValues. + * @member {Object.} parameterValues + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.parameterValues = $util.emptyObject; + + /** + * RuntimeConfig failurePolicy. + * @member {google.cloud.aiplatform.v1.PipelineFailurePolicy} failurePolicy + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.failurePolicy = 0; + + /** + * RuntimeConfig inputArtifacts. + * @member {Object.} inputArtifacts + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + */ + RuntimeConfig.prototype.inputArtifacts = $util.emptyObject; + + /** + * Creates a new RuntimeConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig instance + */ + RuntimeConfig.create = function create(properties) { + return new RuntimeConfig(properties); + }; + + /** + * Encodes the specified RuntimeConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RuntimeConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + for (var keys = Object.keys(message.parameters), 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.Value.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.gcsOutputDirectory != null && Object.hasOwnProperty.call(message, "gcsOutputDirectory")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsOutputDirectory); + if (message.parameterValues != null && Object.hasOwnProperty.call(message, "parameterValues")) + for (var keys = Object.keys(message.parameterValues), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.protobuf.Value.encode(message.parameterValues[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.failurePolicy != null && Object.hasOwnProperty.call(message, "failurePolicy")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.failurePolicy); + if (message.inputArtifacts != null && Object.hasOwnProperty.call(message, "inputArtifacts")) + for (var keys = Object.keys(message.inputArtifacts), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.encode(message.inputArtifacts[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + return writer; + }; + + /** + * Encodes the specified RuntimeConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.IRuntimeConfig} message RuntimeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RuntimeConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RuntimeConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @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.PipelineJob.RuntimeConfig} RuntimeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RuntimeConfig.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.PipelineJob.RuntimeConfig(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.parameters === $util.emptyObject) + message.parameters = {}; + 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.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameters[key] = value; + break; + } + case 2: { + message.gcsOutputDirectory = reader.string(); + break; + } + case 3: { + if (message.parameterValues === $util.emptyObject) + message.parameterValues = {}; + 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.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.parameterValues[key] = value; + break; + } + case 4: { + message.failurePolicy = reader.int32(); + break; + } + case 5: { + if (message.inputArtifacts === $util.emptyObject) + message.inputArtifacts = {}; + 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.PipelineJob.RuntimeConfig.InputArtifact.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.inputArtifacts[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RuntimeConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RuntimeConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RuntimeConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RuntimeConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!$util.isObject(message.parameters)) + return "parameters: object expected"; + var key = Object.keys(message.parameters); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Value.verify(message.parameters[key[i]]); + if (error) + return "parameters." + error; + } + } + if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) + if (!$util.isString(message.gcsOutputDirectory)) + return "gcsOutputDirectory: string expected"; + if (message.parameterValues != null && message.hasOwnProperty("parameterValues")) { + if (!$util.isObject(message.parameterValues)) + return "parameterValues: object expected"; + var key = Object.keys(message.parameterValues); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.parameterValues[key[i]]); + if (error) + return "parameterValues." + error; + } + } + if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) + switch (message.failurePolicy) { + default: + return "failurePolicy: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.inputArtifacts != null && message.hasOwnProperty("inputArtifacts")) { + if (!$util.isObject(message.inputArtifacts)) + return "inputArtifacts: object expected"; + var key = Object.keys(message.inputArtifacts); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify(message.inputArtifacts[key[i]]); + if (error) + return "inputArtifacts." + error; + } + } + return null; + }; + + /** + * Creates a RuntimeConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} RuntimeConfig + */ + RuntimeConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig(); + if (object.parameters) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameters: object expected"); + message.parameters = {}; + for (var keys = Object.keys(object.parameters), i = 0; i < keys.length; ++i) { + if (typeof object.parameters[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameters: object expected"); + message.parameters[keys[i]] = $root.google.cloud.aiplatform.v1.Value.fromObject(object.parameters[keys[i]]); + } + } + if (object.gcsOutputDirectory != null) + message.gcsOutputDirectory = String(object.gcsOutputDirectory); + if (object.parameterValues) { + if (typeof object.parameterValues !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameterValues: object expected"); + message.parameterValues = {}; + for (var keys = Object.keys(object.parameterValues), i = 0; i < keys.length; ++i) { + if (typeof object.parameterValues[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.parameterValues: object expected"); + message.parameterValues[keys[i]] = $root.google.protobuf.Value.fromObject(object.parameterValues[keys[i]]); + } + } + switch (object.failurePolicy) { + default: + if (typeof object.failurePolicy === "number") { + message.failurePolicy = object.failurePolicy; + break; + } + break; + case "PIPELINE_FAILURE_POLICY_UNSPECIFIED": + case 0: + message.failurePolicy = 0; + break; + case "PIPELINE_FAILURE_POLICY_FAIL_SLOW": + case 1: + message.failurePolicy = 1; + break; + case "PIPELINE_FAILURE_POLICY_FAIL_FAST": + case 2: + message.failurePolicy = 2; + break; + } + if (object.inputArtifacts) { + if (typeof object.inputArtifacts !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); + message.inputArtifacts = {}; + for (var keys = Object.keys(object.inputArtifacts), i = 0; i < keys.length; ++i) { + if (typeof object.inputArtifacts[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.inputArtifacts: object expected"); + message.inputArtifacts[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.fromObject(object.inputArtifacts[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from a RuntimeConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig} message RuntimeConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RuntimeConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.parameters = {}; + object.parameterValues = {}; + object.inputArtifacts = {}; + } + if (options.defaults) { + object.gcsOutputDirectory = ""; + object.failurePolicy = options.enums === String ? "PIPELINE_FAILURE_POLICY_UNSPECIFIED" : 0; + } + var keys2; + if (message.parameters && (keys2 = Object.keys(message.parameters)).length) { + object.parameters = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameters[keys2[j]] = $root.google.cloud.aiplatform.v1.Value.toObject(message.parameters[keys2[j]], options); + } + if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) + object.gcsOutputDirectory = message.gcsOutputDirectory; + if (message.parameterValues && (keys2 = Object.keys(message.parameterValues)).length) { + object.parameterValues = {}; + for (var j = 0; j < keys2.length; ++j) + object.parameterValues[keys2[j]] = $root.google.protobuf.Value.toObject(message.parameterValues[keys2[j]], options); + } + if (message.failurePolicy != null && message.hasOwnProperty("failurePolicy")) + object.failurePolicy = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineFailurePolicy[message.failurePolicy] === undefined ? message.failurePolicy : $root.google.cloud.aiplatform.v1.PipelineFailurePolicy[message.failurePolicy] : message.failurePolicy; + if (message.inputArtifacts && (keys2 = Object.keys(message.inputArtifacts)).length) { + object.inputArtifacts = {}; + for (var j = 0; j < keys2.length; ++j) + object.inputArtifacts[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.toObject(message.inputArtifacts[keys2[j]], options); + } + return object; + }; + + /** + * Converts this RuntimeConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @instance + * @returns {Object.} JSON object + */ + RuntimeConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RuntimeConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RuntimeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig"; + }; + + RuntimeConfig.InputArtifact = (function() { + + /** + * Properties of an InputArtifact. + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @interface IInputArtifact + * @property {string|null} [artifactId] InputArtifact artifactId + */ + + /** + * Constructs a new InputArtifact. + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig + * @classdesc Represents an InputArtifact. + * @implements IInputArtifact + * @constructor + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set + */ + function InputArtifact(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]]; + } + + /** + * InputArtifact artifactId. + * @member {string|null|undefined} artifactId + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @instance + */ + InputArtifact.prototype.artifactId = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InputArtifact kind. + * @member {"artifactId"|undefined} kind + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @instance + */ + Object.defineProperty(InputArtifact.prototype, "kind", { + get: $util.oneOfGetter($oneOfFields = ["artifactId"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InputArtifact instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact instance + */ + InputArtifact.create = function create(properties) { + return new InputArtifact(properties); + }; + + /** + * Encodes the specified InputArtifact message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InputArtifact.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifactId != null && Object.hasOwnProperty.call(message, "artifactId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifactId); + return writer; + }; + + /** + * Encodes the specified InputArtifact message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.IInputArtifact} message InputArtifact message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + InputArtifact.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an InputArtifact message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @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.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InputArtifact.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.PipelineJob.RuntimeConfig.InputArtifact(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.artifactId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an InputArtifact message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + InputArtifact.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an InputArtifact message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + InputArtifact.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.artifactId != null && message.hasOwnProperty("artifactId")) { + properties.kind = 1; + if (!$util.isString(message.artifactId)) + return "artifactId: string expected"; + } + return null; + }; + + /** + * Creates an InputArtifact message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} InputArtifact + */ + InputArtifact.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact(); + if (object.artifactId != null) + message.artifactId = String(object.artifactId); + return message; + }; + + /** + * Creates a plain object from an InputArtifact message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact} message InputArtifact + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + InputArtifact.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.artifactId != null && message.hasOwnProperty("artifactId")) { + object.artifactId = message.artifactId; + if (options.oneofs) + object.kind = "artifactId"; + } + return object; + }; + + /** + * Converts this InputArtifact to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @instance + * @returns {Object.} JSON object + */ + InputArtifact.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for InputArtifact + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + InputArtifact.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact"; + }; + + return InputArtifact; + })(); + + return RuntimeConfig; + })(); + + return PipelineJob; })(); - v1.PipelineService = (function() { + v1.PipelineTemplateMetadata = (function() { /** - * Constructs a new PipelineService service. + * Properties of a PipelineTemplateMetadata. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PipelineService - * @extends $protobuf.rpc.Service + * @interface IPipelineTemplateMetadata + * @property {string|null} [version] PipelineTemplateMetadata version + */ + + /** + * Constructs a new PipelineTemplateMetadata. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PipelineTemplateMetadata. + * @implements IPipelineTemplateMetadata * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata=} [properties] Properties to set */ - function PipelineService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + function PipelineTemplateMetadata(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]]; } - (PipelineService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PipelineService; + /** + * PipelineTemplateMetadata version. + * @member {string} version + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @instance + */ + PipelineTemplateMetadata.prototype.version = ""; /** - * Creates new PipelineService service using the specified rpc implementation. + * Creates a new PipelineTemplateMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PipelineService + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {PipelineService} RPC service. Useful where requests and/or responses are streamed. + * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata instance */ - PipelineService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + PipelineTemplateMetadata.create = function create(properties) { + return new PipelineTemplateMetadata(properties); }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef CreateTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.TrainingPipeline} [response] TrainingPipeline + * Encodes the specified PipelineTemplateMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata} message PipelineTemplateMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + PipelineTemplateMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.version); + return writer; + }; /** - * Calls CreateTrainingPipeline. - * @function createTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline - * @returns {undefined} - * @variation 1 + * Encodes the specified PipelineTemplateMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTemplateMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {google.cloud.aiplatform.v1.IPipelineTemplateMetadata} message PipelineTemplateMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(PipelineService.prototype.createTrainingPipeline = function createTrainingPipeline(request, callback) { - return this.rpcCall(createTrainingPipeline, $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest, $root.google.cloud.aiplatform.v1.TrainingPipeline, request, callback); - }, "name", { value: "CreateTrainingPipeline" }); + PipelineTemplateMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls CreateTrainingPipeline. - * @function createTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a PipelineTemplateMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @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.PipelineTemplateMetadata} PipelineTemplateMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + PipelineTemplateMetadata.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.PipelineTemplateMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 3: { + message.version = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef GetTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.TrainingPipeline} [response] TrainingPipeline + * Decodes a PipelineTemplateMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + PipelineTemplateMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetTrainingPipeline. - * @function getTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.GetTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline - * @returns {undefined} - * @variation 1 + * Verifies a PipelineTemplateMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(PipelineService.prototype.getTrainingPipeline = function getTrainingPipeline(request, callback) { - return this.rpcCall(getTrainingPipeline, $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest, $root.google.cloud.aiplatform.v1.TrainingPipeline, request, callback); - }, "name", { value: "GetTrainingPipeline" }); + PipelineTemplateMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + return null; + }; /** - * Calls GetTrainingPipeline. - * @function getTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a PipelineTemplateMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTemplateMetadata} PipelineTemplateMetadata */ + PipelineTemplateMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineTemplateMetadata(); + if (object.version != null) + message.version = String(object.version); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listTrainingPipelines}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef ListTrainingPipelinesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} [response] ListTrainingPipelinesResponse + * Creates a plain object from a PipelineTemplateMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {google.cloud.aiplatform.v1.PipelineTemplateMetadata} message PipelineTemplateMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + PipelineTemplateMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.version = ""; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + return object; + }; /** - * Calls ListTrainingPipelines. - * @function listTrainingPipelines - * @memberof google.cloud.aiplatform.v1.PipelineService + * Converts this PipelineTemplateMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata * @instance - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelinesCallback} callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(PipelineService.prototype.listTrainingPipelines = function listTrainingPipelines(request, callback) { - return this.rpcCall(listTrainingPipelines, $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest, $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse, request, callback); - }, "name", { value: "ListTrainingPipelines" }); + PipelineTemplateMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls ListTrainingPipelines. - * @function listTrainingPipelines - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for PipelineTemplateMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineTemplateMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + PipelineTemplateMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTemplateMetadata"; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deleteTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef DeleteTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + return PipelineTemplateMetadata; + })(); + + v1.PipelineJobDetail = (function() { /** - * Calls DeleteTrainingPipeline. - * @function deleteTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Properties of a PipelineJobDetail. + * @memberof google.cloud.aiplatform.v1 + * @interface IPipelineJobDetail + * @property {google.cloud.aiplatform.v1.IContext|null} [pipelineContext] PipelineJobDetail pipelineContext + * @property {google.cloud.aiplatform.v1.IContext|null} [pipelineRunContext] PipelineJobDetail pipelineRunContext + * @property {Array.|null} [taskDetails] PipelineJobDetail taskDetails */ - Object.defineProperty(PipelineService.prototype.deleteTrainingPipeline = function deleteTrainingPipeline(request, callback) { - return this.rpcCall(deleteTrainingPipeline, $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteTrainingPipeline" }); /** - * Calls DeleteTrainingPipeline. - * @function deleteTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Constructs a new PipelineJobDetail. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PipelineJobDetail. + * @implements IPipelineJobDetail + * @constructor + * @param {google.cloud.aiplatform.v1.IPipelineJobDetail=} [properties] Properties to set */ + function PipelineJobDetail(properties) { + this.taskDetails = []; + 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]]; + } /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelTrainingPipeline}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef CancelTrainingPipelineCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * PipelineJobDetail pipelineContext. + * @member {google.cloud.aiplatform.v1.IContext|null|undefined} pipelineContext + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @instance */ + PipelineJobDetail.prototype.pipelineContext = null; /** - * Calls CancelTrainingPipeline. - * @function cancelTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService + * PipelineJobDetail pipelineRunContext. + * @member {google.cloud.aiplatform.v1.IContext|null|undefined} pipelineRunContext + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @instance - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(PipelineService.prototype.cancelTrainingPipeline = function cancelTrainingPipeline(request, callback) { - return this.rpcCall(cancelTrainingPipeline, $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelTrainingPipeline" }); + PipelineJobDetail.prototype.pipelineRunContext = null; /** - * Calls CancelTrainingPipeline. - * @function cancelTrainingPipeline - * @memberof google.cloud.aiplatform.v1.PipelineService + * PipelineJobDetail taskDetails. + * @member {Array.} taskDetails + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @instance - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + PipelineJobDetail.prototype.taskDetails = $util.emptyArray; /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createPipelineJob}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef CreatePipelineJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.PipelineJob} [response] PipelineJob + * Creates a new PipelineJobDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail + * @static + * @param {google.cloud.aiplatform.v1.IPipelineJobDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail instance */ + PipelineJobDetail.create = function create(properties) { + return new PipelineJobDetail(properties); + }; /** - * Calls CreatePipelineJob. - * @function createPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.CreatePipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.createPipelineJob = function createPipelineJob(request, callback) { - return this.rpcCall(createPipelineJob, $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest, $root.google.cloud.aiplatform.v1.PipelineJob, request, callback); - }, "name", { value: "CreatePipelineJob" }); - - /** - * Calls CreatePipelineJob. - * @function createPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getPipelineJob}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef GetPipelineJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.PipelineJob} [response] PipelineJob - */ - - /** - * Calls GetPipelineJob. - * @function getPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.GetPipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.getPipelineJob = function getPipelineJob(request, callback) { - return this.rpcCall(getPipelineJob, $root.google.cloud.aiplatform.v1.GetPipelineJobRequest, $root.google.cloud.aiplatform.v1.PipelineJob, request, callback); - }, "name", { value: "GetPipelineJob" }); - - /** - * Calls GetPipelineJob. - * @function getPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listPipelineJobs}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef ListPipelineJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ListPipelineJobsResponse} [response] ListPipelineJobsResponse - */ - - /** - * Calls ListPipelineJobs. - * @function listPipelineJobs - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.ListPipelineJobsCallback} callback Node-style callback called with the error, if any, and ListPipelineJobsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.listPipelineJobs = function listPipelineJobs(request, callback) { - return this.rpcCall(listPipelineJobs, $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest, $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse, request, callback); - }, "name", { value: "ListPipelineJobs" }); - - /** - * Calls ListPipelineJobs. - * @function listPipelineJobs - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deletePipelineJob}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef DeletePipelineJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeletePipelineJob. - * @function deletePipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.DeletePipelineJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.deletePipelineJob = function deletePipelineJob(request, callback) { - return this.rpcCall(deletePipelineJob, $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeletePipelineJob" }); - - /** - * Calls DeletePipelineJob. - * @function deletePipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelPipelineJob}. - * @memberof google.cloud.aiplatform.v1.PipelineService - * @typedef CancelPipelineJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty - */ - - /** - * Calls CancelPipelineJob. - * @function cancelPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object - * @param {google.cloud.aiplatform.v1.PipelineService.CancelPipelineJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PipelineService.prototype.cancelPipelineJob = function cancelPipelineJob(request, callback) { - return this.rpcCall(cancelPipelineJob, $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelPipelineJob" }); - - /** - * Calls CancelPipelineJob. - * @function cancelPipelineJob - * @memberof google.cloud.aiplatform.v1.PipelineService - * @instance - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return PipelineService; - })(); - - v1.CreateTrainingPipelineRequest = (function() { - - /** - * Properties of a CreateTrainingPipelineRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface ICreateTrainingPipelineRequest - * @property {string|null} [parent] CreateTrainingPipelineRequest parent - * @property {google.cloud.aiplatform.v1.ITrainingPipeline|null} [trainingPipeline] CreateTrainingPipelineRequest trainingPipeline - */ - - /** - * Constructs a new CreateTrainingPipelineRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreateTrainingPipelineRequest. - * @implements ICreateTrainingPipelineRequest - * @constructor - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest=} [properties] Properties to set - */ - function CreateTrainingPipelineRequest(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]]; - } - - /** - * CreateTrainingPipelineRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest - * @instance - */ - CreateTrainingPipelineRequest.prototype.parent = ""; - - /** - * CreateTrainingPipelineRequest trainingPipeline. - * @member {google.cloud.aiplatform.v1.ITrainingPipeline|null|undefined} trainingPipeline - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest - * @instance - */ - CreateTrainingPipelineRequest.prototype.trainingPipeline = null; - - /** - * Creates a new CreateTrainingPipelineRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest instance - */ - CreateTrainingPipelineRequest.create = function create(properties) { - return new CreateTrainingPipelineRequest(properties); - }; - - /** - * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified PipelineJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTrainingPipelineRequest.encode = function encode(message, writer) { + PipelineJobDetail.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.trainingPipeline != null && Object.hasOwnProperty.call(message, "trainingPipeline")) - $root.google.cloud.aiplatform.v1.TrainingPipeline.encode(message.trainingPipeline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pipelineContext != null && Object.hasOwnProperty.call(message, "pipelineContext")) + $root.google.cloud.aiplatform.v1.Context.encode(message.pipelineContext, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.pipelineRunContext != null && Object.hasOwnProperty.call(message, "pipelineRunContext")) + $root.google.cloud.aiplatform.v1.Context.encode(message.pipelineRunContext, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.taskDetails != null && message.taskDetails.length) + for (var i = 0; i < message.taskDetails.length; ++i) + $root.google.cloud.aiplatform.v1.PipelineTaskDetail.encode(message.taskDetails[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified PipelineJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineJobDetail.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineJobDetail} message PipelineJobDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + PipelineJobDetail.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a PipelineJobDetail message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @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.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTrainingPipelineRequest.decode = function decode(reader, length) { + PipelineJobDetail.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.CreateTrainingPipelineRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineJobDetail(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.pipelineContext = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); break; } case 2: { - message.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.decode(reader, reader.uint32()); + message.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.decode(reader, reader.uint32()); + break; + } + case 3: { + if (!(message.taskDetails && message.taskDetails.length)) + message.taskDetails = []; + message.taskDetails.push($root.google.cloud.aiplatform.v1.PipelineTaskDetail.decode(reader, reader.uint32())); break; } default: @@ -122970,136 +127061,182 @@ }; /** - * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a PipelineJobDetail message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { + PipelineJobDetail.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateTrainingPipelineRequest message. + * Verifies a PipelineJobDetail message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateTrainingPipelineRequest.verify = function verify(message) { + PipelineJobDetail.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.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) { - var error = $root.google.cloud.aiplatform.v1.TrainingPipeline.verify(message.trainingPipeline); + if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) { + var error = $root.google.cloud.aiplatform.v1.Context.verify(message.pipelineContext); if (error) - return "trainingPipeline." + error; + return "pipelineContext." + error; + } + if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) { + var error = $root.google.cloud.aiplatform.v1.Context.verify(message.pipelineRunContext); + if (error) + return "pipelineRunContext." + error; + } + if (message.taskDetails != null && message.hasOwnProperty("taskDetails")) { + if (!Array.isArray(message.taskDetails)) + return "taskDetails: array expected"; + for (var i = 0; i < message.taskDetails.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.verify(message.taskDetails[i]); + if (error) + return "taskDetails." + error; + } } return null; }; /** - * Creates a CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineJobDetail message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.PipelineJobDetail} PipelineJobDetail */ - CreateTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest) + PipelineJobDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineJobDetail) return object; - var message = new $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.trainingPipeline != null) { - if (typeof object.trainingPipeline !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.trainingPipeline: object expected"); - message.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.fromObject(object.trainingPipeline); + var message = new $root.google.cloud.aiplatform.v1.PipelineJobDetail(); + if (object.pipelineContext != null) { + if (typeof object.pipelineContext !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.pipelineContext: object expected"); + message.pipelineContext = $root.google.cloud.aiplatform.v1.Context.fromObject(object.pipelineContext); + } + if (object.pipelineRunContext != null) { + if (typeof object.pipelineRunContext !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.pipelineRunContext: object expected"); + message.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.fromObject(object.pipelineRunContext); + } + if (object.taskDetails) { + if (!Array.isArray(object.taskDetails)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.taskDetails: array expected"); + message.taskDetails = []; + for (var i = 0; i < object.taskDetails.length; ++i) { + if (typeof object.taskDetails[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineJobDetail.taskDetails: object expected"); + message.taskDetails[i] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.fromObject(object.taskDetails[i]); + } } return message; }; /** - * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. + * Creates a plain object from a PipelineJobDetail message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static - * @param {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} message CreateTrainingPipelineRequest + * @param {google.cloud.aiplatform.v1.PipelineJobDetail} message PipelineJobDetail * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateTrainingPipelineRequest.toObject = function toObject(message, options) { + PipelineJobDetail.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.taskDetails = []; if (options.defaults) { - object.parent = ""; - object.trainingPipeline = null; + object.pipelineContext = null; + object.pipelineRunContext = null; + } + if (message.pipelineContext != null && message.hasOwnProperty("pipelineContext")) + object.pipelineContext = $root.google.cloud.aiplatform.v1.Context.toObject(message.pipelineContext, options); + if (message.pipelineRunContext != null && message.hasOwnProperty("pipelineRunContext")) + object.pipelineRunContext = $root.google.cloud.aiplatform.v1.Context.toObject(message.pipelineRunContext, options); + if (message.taskDetails && message.taskDetails.length) { + object.taskDetails = []; + for (var j = 0; j < message.taskDetails.length; ++j) + object.taskDetails[j] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.toObject(message.taskDetails[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) - object.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.toObject(message.trainingPipeline, options); return object; }; /** - * Converts this CreateTrainingPipelineRequest to JSON. + * Converts this PipelineJobDetail to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @instance * @returns {Object.} JSON object */ - CreateTrainingPipelineRequest.prototype.toJSON = function toJSON() { + PipelineJobDetail.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateTrainingPipelineRequest + * Gets the default type url for PipelineJobDetail * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.PipelineJobDetail * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PipelineJobDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateTrainingPipelineRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineJobDetail"; }; - return CreateTrainingPipelineRequest; + return PipelineJobDetail; })(); - v1.GetTrainingPipelineRequest = (function() { + v1.PipelineTaskDetail = (function() { /** - * Properties of a GetTrainingPipelineRequest. + * Properties of a PipelineTaskDetail. * @memberof google.cloud.aiplatform.v1 - * @interface IGetTrainingPipelineRequest - * @property {string|null} [name] GetTrainingPipelineRequest name + * @interface IPipelineTaskDetail + * @property {number|Long|null} [taskId] PipelineTaskDetail taskId + * @property {number|Long|null} [parentTaskId] PipelineTaskDetail parentTaskId + * @property {string|null} [taskName] PipelineTaskDetail taskName + * @property {google.protobuf.ITimestamp|null} [createTime] PipelineTaskDetail createTime + * @property {google.protobuf.ITimestamp|null} [startTime] PipelineTaskDetail startTime + * @property {google.protobuf.ITimestamp|null} [endTime] PipelineTaskDetail endTime + * @property {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null} [executorDetail] PipelineTaskDetail executorDetail + * @property {google.cloud.aiplatform.v1.PipelineTaskDetail.State|null} [state] PipelineTaskDetail state + * @property {google.cloud.aiplatform.v1.IExecution|null} [execution] PipelineTaskDetail execution + * @property {google.rpc.IStatus|null} [error] PipelineTaskDetail error + * @property {Array.|null} [pipelineTaskStatus] PipelineTaskDetail pipelineTaskStatus + * @property {Object.|null} [inputs] PipelineTaskDetail inputs + * @property {Object.|null} [outputs] PipelineTaskDetail outputs */ /** - * Constructs a new GetTrainingPipelineRequest. + * Constructs a new PipelineTaskDetail. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetTrainingPipelineRequest. - * @implements IGetTrainingPipelineRequest + * @classdesc Represents a PipelineTaskDetail. + * @implements IPipelineTaskDetail * @constructor - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail=} [properties] Properties to set */ - function GetTrainingPipelineRequest(properties) { + function PipelineTaskDetail(properties) { + this.pipelineTaskStatus = []; + this.inputs = {}; + this.outputs = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -123107,338 +127244,290 @@ } /** - * GetTrainingPipelineRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest + * PipelineTaskDetail taskId. + * @member {number|Long} taskId + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @instance */ - GetTrainingPipelineRequest.prototype.name = ""; - - /** - * Creates a new GetTrainingPipelineRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest instance - */ - GetTrainingPipelineRequest.create = function create(properties) { - return new GetTrainingPipelineRequest(properties); - }; - - /** - * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTrainingPipelineRequest.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 GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @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.GetTrainingPipelineRequest} GetTrainingPipelineRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTrainingPipelineRequest.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.GetTrainingPipelineRequest(); - 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 GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + PipelineTaskDetail.prototype.taskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Verifies a GetTrainingPipelineRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * PipelineTaskDetail parentTaskId. + * @member {number|Long} parentTaskId + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance */ - GetTrainingPipelineRequest.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; - }; + PipelineTaskDetail.prototype.parentTaskId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest + * PipelineTaskDetail taskName. + * @member {string} taskName + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance */ - GetTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + PipelineTaskDetail.prototype.taskName = ""; /** - * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} message GetTrainingPipelineRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * PipelineTaskDetail createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance */ - GetTrainingPipelineRequest.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; - }; + PipelineTaskDetail.prototype.createTime = null; /** - * Converts this GetTrainingPipelineRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest + * PipelineTaskDetail startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @instance - * @returns {Object.} JSON object */ - GetTrainingPipelineRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + PipelineTaskDetail.prototype.startTime = null; /** - * Gets the default type url for GetTrainingPipelineRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * PipelineTaskDetail endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance */ - GetTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetTrainingPipelineRequest"; - }; - - return GetTrainingPipelineRequest; - })(); - - v1.ListTrainingPipelinesRequest = (function() { + PipelineTaskDetail.prototype.endTime = null; /** - * Properties of a ListTrainingPipelinesRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IListTrainingPipelinesRequest - * @property {string|null} [parent] ListTrainingPipelinesRequest parent - * @property {string|null} [filter] ListTrainingPipelinesRequest filter - * @property {number|null} [pageSize] ListTrainingPipelinesRequest pageSize - * @property {string|null} [pageToken] ListTrainingPipelinesRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListTrainingPipelinesRequest readMask + * PipelineTaskDetail executorDetail. + * @member {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail|null|undefined} executorDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance */ + PipelineTaskDetail.prototype.executorDetail = null; /** - * Constructs a new ListTrainingPipelinesRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListTrainingPipelinesRequest. - * @implements IListTrainingPipelinesRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest=} [properties] Properties to set + * PipelineTaskDetail state. + * @member {google.cloud.aiplatform.v1.PipelineTaskDetail.State} state + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @instance */ - function ListTrainingPipelinesRequest(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]]; - } + PipelineTaskDetail.prototype.state = 0; /** - * ListTrainingPipelinesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * PipelineTaskDetail execution. + * @member {google.cloud.aiplatform.v1.IExecution|null|undefined} execution + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @instance */ - ListTrainingPipelinesRequest.prototype.parent = ""; + PipelineTaskDetail.prototype.execution = null; /** - * ListTrainingPipelinesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * PipelineTaskDetail error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @instance */ - ListTrainingPipelinesRequest.prototype.filter = ""; + PipelineTaskDetail.prototype.error = null; /** - * ListTrainingPipelinesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * PipelineTaskDetail pipelineTaskStatus. + * @member {Array.} pipelineTaskStatus + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @instance */ - ListTrainingPipelinesRequest.prototype.pageSize = 0; + PipelineTaskDetail.prototype.pipelineTaskStatus = $util.emptyArray; /** - * ListTrainingPipelinesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * PipelineTaskDetail inputs. + * @member {Object.} inputs + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @instance */ - ListTrainingPipelinesRequest.prototype.pageToken = ""; + PipelineTaskDetail.prototype.inputs = $util.emptyObject; /** - * ListTrainingPipelinesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * PipelineTaskDetail outputs. + * @member {Object.} outputs + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @instance */ - ListTrainingPipelinesRequest.prototype.readMask = null; + PipelineTaskDetail.prototype.outputs = $util.emptyObject; /** - * Creates a new ListTrainingPipelinesRequest instance using the specified properties. + * Creates a new PipelineTaskDetail instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest instance + * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail instance */ - ListTrainingPipelinesRequest.create = function create(properties) { - return new ListTrainingPipelinesRequest(properties); + PipelineTaskDetail.create = function create(properties) { + return new PipelineTaskDetail(properties); }; /** - * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. + * Encodes the specified PipelineTaskDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesRequest.encode = function encode(message, writer) { + PipelineTaskDetail.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.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.taskId != null && Object.hasOwnProperty.call(message, "taskId")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.taskId); + if (message.taskName != null && Object.hasOwnProperty.call(message, "taskName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.taskName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.executorDetail != null && Object.hasOwnProperty.call(message, "executorDetail")) + $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.encode(message.executorDetail, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.state); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + $root.google.cloud.aiplatform.v1.Execution.encode(message.execution, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + for (var keys = Object.keys(message.inputs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.encode(message.inputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.outputs != null && Object.hasOwnProperty.call(message, "outputs")) + for (var keys = Object.keys(message.outputs), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.encode(message.outputs[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.parentTaskId != null && Object.hasOwnProperty.call(message, "parentTaskId")) + writer.uint32(/* id 12, wireType 0 =*/96).int64(message.parentTaskId); + if (message.pipelineTaskStatus != null && message.pipelineTaskStatus.length) + for (var i = 0; i < message.pipelineTaskStatus.length; ++i) + $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.encode(message.pipelineTaskStatus[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. + * Encodes the specified PipelineTaskDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineTaskDetail} message PipelineTaskDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesRequest.encodeDelimited = function encodeDelimited(message, writer) { + PipelineTaskDetail.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. + * Decodes a PipelineTaskDetail message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @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.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesRequest.decode = function decode(reader, length) { + PipelineTaskDetail.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.ListTrainingPipelinesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.taskId = reader.int64(); + break; + } + case 12: { + message.parentTaskId = reader.int64(); break; } case 2: { - message.filter = reader.string(); + message.taskName = reader.string(); break; } case 3: { - message.pageSize = reader.int32(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 4: { - message.pageToken = reader.string(); + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 6: { + message.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.decode(reader, reader.uint32()); + break; + } + case 7: { + message.state = reader.int32(); + break; + } + case 8: { + message.execution = $root.google.cloud.aiplatform.v1.Execution.decode(reader, reader.uint32()); + break; + } + case 9: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 13: { + if (!(message.pipelineTaskStatus && message.pipelineTaskStatus.length)) + message.pipelineTaskStatus = []; + message.pipelineTaskStatus.push($root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.decode(reader, reader.uint32())); + break; + } + case 10: { + if (message.inputs === $util.emptyObject) + message.inputs = {}; + 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.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.inputs[key] = value; + break; + } + case 11: { + if (message.outputs === $util.emptyObject) + message.outputs = {}; + 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.PipelineTaskDetail.ArtifactList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.outputs[key] = value; break; } default: @@ -123450,162 +127539,967 @@ }; /** - * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskDetail message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesRequest.decodeDelimited = function decodeDelimited(reader) { + PipelineTaskDetail.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTrainingPipelinesRequest message. + * Verifies a PipelineTaskDetail message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTrainingPipelinesRequest.verify = function verify(message) { + PipelineTaskDetail.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.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.taskId != null && message.hasOwnProperty("taskId")) + if (!$util.isInteger(message.taskId) && !(message.taskId && $util.isInteger(message.taskId.low) && $util.isInteger(message.taskId.high))) + return "taskId: integer|Long expected"; + if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) + if (!$util.isInteger(message.parentTaskId) && !(message.parentTaskId && $util.isInteger(message.parentTaskId.low) && $util.isInteger(message.parentTaskId.high))) + return "parentTaskId: integer|Long expected"; + if (message.taskName != null && message.hasOwnProperty("taskName")) + if (!$util.isString(message.taskName)) + return "taskName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "readMask." + error; + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.executorDetail != null && message.hasOwnProperty("executorDetail")) { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify(message.executorDetail); + if (error) + return "executorDetail." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.execution != null && message.hasOwnProperty("execution")) { + var error = $root.google.cloud.aiplatform.v1.Execution.verify(message.execution); + if (error) + return "execution." + error; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.pipelineTaskStatus != null && message.hasOwnProperty("pipelineTaskStatus")) { + if (!Array.isArray(message.pipelineTaskStatus)) + return "pipelineTaskStatus: array expected"; + for (var i = 0; i < message.pipelineTaskStatus.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify(message.pipelineTaskStatus[i]); + if (error) + return "pipelineTaskStatus." + error; + } + } + if (message.inputs != null && message.hasOwnProperty("inputs")) { + if (!$util.isObject(message.inputs)) + return "inputs: object expected"; + var key = Object.keys(message.inputs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify(message.inputs[key[i]]); + if (error) + return "inputs." + error; + } + } + if (message.outputs != null && message.hasOwnProperty("outputs")) { + if (!$util.isObject(message.outputs)) + return "outputs: object expected"; + var key = Object.keys(message.outputs); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify(message.outputs[key[i]]); + if (error) + return "outputs." + error; + } } return null; }; /** - * Creates a ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskDetail message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail} PipelineTaskDetail */ - ListTrainingPipelinesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest) + PipelineTaskDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail) return object; - var message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail(); + if (object.taskId != null) + if ($util.Long) + (message.taskId = $util.Long.fromValue(object.taskId)).unsigned = false; + else if (typeof object.taskId === "string") + message.taskId = parseInt(object.taskId, 10); + else if (typeof object.taskId === "number") + message.taskId = object.taskId; + else if (typeof object.taskId === "object") + message.taskId = new $util.LongBits(object.taskId.low >>> 0, object.taskId.high >>> 0).toNumber(); + if (object.parentTaskId != null) + if ($util.Long) + (message.parentTaskId = $util.Long.fromValue(object.parentTaskId)).unsigned = false; + else if (typeof object.parentTaskId === "string") + message.parentTaskId = parseInt(object.parentTaskId, 10); + else if (typeof object.parentTaskId === "number") + message.parentTaskId = object.parentTaskId; + else if (typeof object.parentTaskId === "object") + message.parentTaskId = new $util.LongBits(object.parentTaskId.low >>> 0, object.parentTaskId.high >>> 0).toNumber(); + if (object.taskName != null) + message.taskName = String(object.taskName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - return message; - }; - - /** - * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest - * @static - * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} message ListTrainingPipelinesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListTrainingPipelinesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.executorDetail != null) { + if (typeof object.executorDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.executorDetail: object expected"); + message.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.fromObject(object.executorDetail); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PENDING": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "SUCCEEDED": + case 3: + message.state = 3; + break; + case "CANCEL_PENDING": + case 4: + message.state = 4; + break; + case "CANCELLING": + case 5: + message.state = 5; + break; + case "CANCELLED": + case 6: + message.state = 6; + break; + case "FAILED": + case 7: + message.state = 7; + break; + case "SKIPPED": + case 8: + message.state = 8; + break; + case "NOT_TRIGGERED": + case 9: + message.state = 9; + break; + } + if (object.execution != null) { + if (typeof object.execution !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.execution: object expected"); + message.execution = $root.google.cloud.aiplatform.v1.Execution.fromObject(object.execution); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.pipelineTaskStatus) { + if (!Array.isArray(object.pipelineTaskStatus)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.pipelineTaskStatus: array expected"); + message.pipelineTaskStatus = []; + for (var i = 0; i < object.pipelineTaskStatus.length; ++i) { + if (typeof object.pipelineTaskStatus[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.pipelineTaskStatus: object expected"); + message.pipelineTaskStatus[i] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.fromObject(object.pipelineTaskStatus[i]); + } + } + if (object.inputs) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.inputs: object expected"); + message.inputs = {}; + for (var keys = Object.keys(object.inputs), i = 0; i < keys.length; ++i) { + if (typeof object.inputs[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.inputs: object expected"); + message.inputs[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.fromObject(object.inputs[keys[i]]); + } + } + if (object.outputs) { + if (typeof object.outputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.outputs: object expected"); + message.outputs = {}; + for (var keys = Object.keys(object.outputs), i = 0; i < keys.length; ++i) { + if (typeof object.outputs[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.outputs: object expected"); + message.outputs[keys[i]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.fromObject(object.outputs[keys[i]]); + } + } + return message; + }; + + /** + * Creates a plain object from a PipelineTaskDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail} message PipelineTaskDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PipelineTaskDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.pipelineTaskStatus = []; + if (options.objects || options.defaults) { + object.inputs = {}; + object.outputs = {}; + } + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.taskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.taskId = options.longs === String ? "0" : 0; + object.taskName = ""; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.executorDetail = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.execution = null; + object.error = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.parentTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.parentTaskId = options.longs === String ? "0" : 0; + } + if (message.taskId != null && message.hasOwnProperty("taskId")) + if (typeof message.taskId === "number") + object.taskId = options.longs === String ? String(message.taskId) : message.taskId; + else + object.taskId = options.longs === String ? $util.Long.prototype.toString.call(message.taskId) : options.longs === Number ? new $util.LongBits(message.taskId.low >>> 0, message.taskId.high >>> 0).toNumber() : message.taskId; + if (message.taskName != null && message.hasOwnProperty("taskName")) + object.taskName = message.taskName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.executorDetail != null && message.hasOwnProperty("executorDetail")) + object.executorDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.toObject(message.executorDetail, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] : message.state; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = $root.google.cloud.aiplatform.v1.Execution.toObject(message.execution, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + var keys2; + if (message.inputs && (keys2 = Object.keys(message.inputs)).length) { + object.inputs = {}; + for (var j = 0; j < keys2.length; ++j) + object.inputs[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.toObject(message.inputs[keys2[j]], options); + } + if (message.outputs && (keys2 = Object.keys(message.outputs)).length) { + object.outputs = {}; + for (var j = 0; j < keys2.length; ++j) + object.outputs[keys2[j]] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.toObject(message.outputs[keys2[j]], options); + } + if (message.parentTaskId != null && message.hasOwnProperty("parentTaskId")) + if (typeof message.parentTaskId === "number") + object.parentTaskId = options.longs === String ? String(message.parentTaskId) : message.parentTaskId; + else + object.parentTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.parentTaskId) : options.longs === Number ? new $util.LongBits(message.parentTaskId.low >>> 0, message.parentTaskId.high >>> 0).toNumber() : message.parentTaskId; + if (message.pipelineTaskStatus && message.pipelineTaskStatus.length) { + object.pipelineTaskStatus = []; + for (var j = 0; j < message.pipelineTaskStatus.length; ++j) + object.pipelineTaskStatus[j] = $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.toObject(message.pipelineTaskStatus[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ListTrainingPipelinesRequest to JSON. + * Converts this PipelineTaskDetail to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @instance * @returns {Object.} JSON object */ - ListTrainingPipelinesRequest.prototype.toJSON = function toJSON() { + PipelineTaskDetail.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTrainingPipelinesRequest + * Gets the default type url for PipelineTaskDetail * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTrainingPipelinesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PipelineTaskDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListTrainingPipelinesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail"; }; - return ListTrainingPipelinesRequest; + PipelineTaskDetail.PipelineTaskStatus = (function() { + + /** + * Properties of a PipelineTaskStatus. + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @interface IPipelineTaskStatus + * @property {google.protobuf.ITimestamp|null} [updateTime] PipelineTaskStatus updateTime + * @property {google.cloud.aiplatform.v1.PipelineTaskDetail.State|null} [state] PipelineTaskStatus state + * @property {google.rpc.IStatus|null} [error] PipelineTaskStatus error + */ + + /** + * Constructs a new PipelineTaskStatus. + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @classdesc Represents a PipelineTaskStatus. + * @implements IPipelineTaskStatus + * @constructor + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set + */ + function PipelineTaskStatus(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]]; + } + + /** + * PipelineTaskStatus updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @instance + */ + PipelineTaskStatus.prototype.updateTime = null; + + /** + * PipelineTaskStatus state. + * @member {google.cloud.aiplatform.v1.PipelineTaskDetail.State} state + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @instance + */ + PipelineTaskStatus.prototype.state = 0; + + /** + * PipelineTaskStatus error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @instance + */ + PipelineTaskStatus.prototype.error = null; + + /** + * Creates a new PipelineTaskStatus instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus instance + */ + PipelineTaskStatus.create = function create(properties) { + return new PipelineTaskStatus(properties); + }; + + /** + * Encodes the specified PipelineTaskStatus message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PipelineTaskStatus.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PipelineTaskStatus message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IPipelineTaskStatus} message PipelineTaskStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PipelineTaskStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PipelineTaskStatus message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @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.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PipelineTaskStatus.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.PipelineTaskDetail.PipelineTaskStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 2: { + message.state = reader.int32(); + break; + } + case 3: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PipelineTaskStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PipelineTaskStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PipelineTaskStatus message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PipelineTaskStatus.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + return null; + }; + + /** + * Creates a PipelineTaskStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} PipelineTaskStatus + */ + PipelineTaskStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus(); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PENDING": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "SUCCEEDED": + case 3: + message.state = 3; + break; + case "CANCEL_PENDING": + case 4: + message.state = 4; + break; + case "CANCELLING": + case 5: + message.state = 5; + break; + case "CANCELLED": + case 6: + message.state = 6; + break; + case "FAILED": + case 7: + message.state = 7; + break; + case "SKIPPED": + case 8: + message.state = 8; + break; + case "NOT_TRIGGERED": + case 9: + message.state = 9; + break; + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + return message; + }; + + /** + * Creates a plain object from a PipelineTaskStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus} message PipelineTaskStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PipelineTaskStatus.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.updateTime = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.error = null; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineTaskDetail.State[message.state] : message.state; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + return object; + }; + + /** + * Converts this PipelineTaskStatus to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @instance + * @returns {Object.} JSON object + */ + PipelineTaskStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PipelineTaskStatus + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PipelineTaskStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail.PipelineTaskStatus"; + }; + + return PipelineTaskStatus; + })(); + + PipelineTaskDetail.ArtifactList = (function() { + + /** + * Properties of an ArtifactList. + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @interface IArtifactList + * @property {Array.|null} [artifacts] ArtifactList artifacts + */ + + /** + * Constructs a new ArtifactList. + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail + * @classdesc Represents an ArtifactList. + * @implements IArtifactList + * @constructor + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set + */ + function ArtifactList(properties) { + this.artifacts = []; + 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]]; + } + + /** + * ArtifactList artifacts. + * @member {Array.} artifacts + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @instance + */ + ArtifactList.prototype.artifacts = $util.emptyArray; + + /** + * Creates a new ArtifactList instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList instance + */ + ArtifactList.create = function create(properties) { + return new ArtifactList(properties); + }; + + /** + * Encodes the specified ArtifactList message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactList.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.artifacts != null && message.artifacts.length) + for (var i = 0; i < message.artifacts.length; ++i) + $root.google.cloud.aiplatform.v1.Artifact.encode(message.artifacts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ArtifactList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.IArtifactList} message ArtifactList message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ArtifactList.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ArtifactList message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @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.PipelineTaskDetail.ArtifactList} ArtifactList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactList.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.PipelineTaskDetail.ArtifactList(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.artifacts && message.artifacts.length)) + message.artifacts = []; + message.artifacts.push($root.google.cloud.aiplatform.v1.Artifact.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ArtifactList message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ArtifactList.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ArtifactList message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ArtifactList.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.artifacts != null && message.hasOwnProperty("artifacts")) { + if (!Array.isArray(message.artifacts)) + return "artifacts: array expected"; + for (var i = 0; i < message.artifacts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Artifact.verify(message.artifacts[i]); + if (error) + return "artifacts." + error; + } + } + return null; + }; + + /** + * Creates an ArtifactList message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} ArtifactList + */ + ArtifactList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList(); + if (object.artifacts) { + if (!Array.isArray(object.artifacts)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.artifacts: array expected"); + message.artifacts = []; + for (var i = 0; i < object.artifacts.length; ++i) { + if (typeof object.artifacts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList.artifacts: object expected"); + message.artifacts[i] = $root.google.cloud.aiplatform.v1.Artifact.fromObject(object.artifacts[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ArtifactList message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList} message ArtifactList + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ArtifactList.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.artifacts = []; + if (message.artifacts && message.artifacts.length) { + object.artifacts = []; + for (var j = 0; j < message.artifacts.length; ++j) + object.artifacts[j] = $root.google.cloud.aiplatform.v1.Artifact.toObject(message.artifacts[j], options); + } + return object; + }; + + /** + * Converts this ArtifactList to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @instance + * @returns {Object.} JSON object + */ + ArtifactList.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ArtifactList + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ArtifactList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskDetail.ArtifactList"; + }; + + return ArtifactList; + })(); + + /** + * State enum. + * @name google.cloud.aiplatform.v1.PipelineTaskDetail.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} RUNNING=2 RUNNING value + * @property {number} SUCCEEDED=3 SUCCEEDED value + * @property {number} CANCEL_PENDING=4 CANCEL_PENDING value + * @property {number} CANCELLING=5 CANCELLING value + * @property {number} CANCELLED=6 CANCELLED value + * @property {number} FAILED=7 FAILED value + * @property {number} SKIPPED=8 SKIPPED value + * @property {number} NOT_TRIGGERED=9 NOT_TRIGGERED value + */ + PipelineTaskDetail.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "SUCCEEDED"] = 3; + values[valuesById[4] = "CANCEL_PENDING"] = 4; + values[valuesById[5] = "CANCELLING"] = 5; + values[valuesById[6] = "CANCELLED"] = 6; + values[valuesById[7] = "FAILED"] = 7; + values[valuesById[8] = "SKIPPED"] = 8; + values[valuesById[9] = "NOT_TRIGGERED"] = 9; + return values; + })(); + + return PipelineTaskDetail; })(); - v1.ListTrainingPipelinesResponse = (function() { + v1.PipelineTaskExecutorDetail = (function() { /** - * Properties of a ListTrainingPipelinesResponse. + * Properties of a PipelineTaskExecutorDetail. * @memberof google.cloud.aiplatform.v1 - * @interface IListTrainingPipelinesResponse - * @property {Array.|null} [trainingPipelines] ListTrainingPipelinesResponse trainingPipelines - * @property {string|null} [nextPageToken] ListTrainingPipelinesResponse nextPageToken + * @interface IPipelineTaskExecutorDetail + * @property {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null} [containerDetail] PipelineTaskExecutorDetail containerDetail + * @property {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null} [customJobDetail] PipelineTaskExecutorDetail customJobDetail */ /** - * Constructs a new ListTrainingPipelinesResponse. + * Constructs a new PipelineTaskExecutorDetail. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListTrainingPipelinesResponse. - * @implements IListTrainingPipelinesResponse + * @classdesc Represents a PipelineTaskExecutorDetail. + * @implements IPipelineTaskExecutorDetail * @constructor - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail=} [properties] Properties to set */ - function ListTrainingPipelinesResponse(properties) { - this.trainingPipelines = []; + function PipelineTaskExecutorDetail(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -123613,92 +128507,103 @@ } /** - * ListTrainingPipelinesResponse trainingPipelines. - * @member {Array.} trainingPipelines - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * PipelineTaskExecutorDetail containerDetail. + * @member {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail|null|undefined} containerDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @instance */ - ListTrainingPipelinesResponse.prototype.trainingPipelines = $util.emptyArray; + PipelineTaskExecutorDetail.prototype.containerDetail = null; /** - * ListTrainingPipelinesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * PipelineTaskExecutorDetail customJobDetail. + * @member {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail|null|undefined} customJobDetail + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @instance */ - ListTrainingPipelinesResponse.prototype.nextPageToken = ""; + PipelineTaskExecutorDetail.prototype.customJobDetail = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new ListTrainingPipelinesResponse instance using the specified properties. + * PipelineTaskExecutorDetail details. + * @member {"containerDetail"|"customJobDetail"|undefined} details + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @instance + */ + Object.defineProperty(PipelineTaskExecutorDetail.prototype, "details", { + get: $util.oneOfGetter($oneOfFields = ["containerDetail", "customJobDetail"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new PipelineTaskExecutorDetail instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse instance + * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail instance */ - ListTrainingPipelinesResponse.create = function create(properties) { - return new ListTrainingPipelinesResponse(properties); + PipelineTaskExecutorDetail.create = function create(properties) { + return new PipelineTaskExecutorDetail(properties); }; /** - * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. + * Encodes the specified PipelineTaskExecutorDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesResponse.encode = function encode(message, writer) { + PipelineTaskExecutorDetail.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingPipelines != null && message.trainingPipelines.length) - for (var i = 0; i < message.trainingPipelines.length; ++i) - $root.google.cloud.aiplatform.v1.TrainingPipeline.encode(message.trainingPipelines[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.containerDetail != null && Object.hasOwnProperty.call(message, "containerDetail")) + $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.encode(message.containerDetail, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.customJobDetail != null && Object.hasOwnProperty.call(message, "customJobDetail")) + $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.encode(message.customJobDetail, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. + * Encodes the specified PipelineTaskExecutorDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPipelineTaskExecutorDetail} message PipelineTaskExecutorDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListTrainingPipelinesResponse.encodeDelimited = function encodeDelimited(message, writer) { + PipelineTaskExecutorDetail.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @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.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesResponse.decode = function decode(reader, length) { + PipelineTaskExecutorDetail.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.ListTrainingPipelinesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.trainingPipelines && message.trainingPipelines.length)) - message.trainingPipelines = []; - message.trainingPipelines.push($root.google.cloud.aiplatform.v1.TrainingPipeline.decode(reader, reader.uint32())); + message.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.decode(reader, reader.uint32()); break; } case 2: { - message.nextPageToken = reader.string(); + message.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.decode(reader, reader.uint32()); break; } default: @@ -123710,351 +128615,732 @@ }; /** - * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. + * Decodes a PipelineTaskExecutorDetail message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListTrainingPipelinesResponse.decodeDelimited = function decodeDelimited(reader) { + PipelineTaskExecutorDetail.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListTrainingPipelinesResponse message. + * Verifies a PipelineTaskExecutorDetail message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListTrainingPipelinesResponse.verify = function verify(message) { + PipelineTaskExecutorDetail.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingPipelines != null && message.hasOwnProperty("trainingPipelines")) { - if (!Array.isArray(message.trainingPipelines)) - return "trainingPipelines: array expected"; - for (var i = 0; i < message.trainingPipelines.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.TrainingPipeline.verify(message.trainingPipelines[i]); + var properties = {}; + if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { + properties.details = 1; + { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify(message.containerDetail); if (error) - return "trainingPipelines." + error; + return "containerDetail." + error; + } + } + if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { + if (properties.details === 1) + return "details: multiple values"; + properties.details = 1; + { + var error = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify(message.customJobDetail); + if (error) + return "customJobDetail." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PipelineTaskExecutorDetail message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} PipelineTaskExecutorDetail */ - ListTrainingPipelinesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse) + PipelineTaskExecutorDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail) return object; - var message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse(); - if (object.trainingPipelines) { - if (!Array.isArray(object.trainingPipelines)) - throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.trainingPipelines: array expected"); - message.trainingPipelines = []; - for (var i = 0; i < object.trainingPipelines.length; ++i) { - if (typeof object.trainingPipelines[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.trainingPipelines: object expected"); - message.trainingPipelines[i] = $root.google.cloud.aiplatform.v1.TrainingPipeline.fromObject(object.trainingPipelines[i]); - } + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail(); + if (object.containerDetail != null) { + if (typeof object.containerDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.containerDetail: object expected"); + message.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.fromObject(object.containerDetail); + } + if (object.customJobDetail != null) { + if (typeof object.customJobDetail !== "object") + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.customJobDetail: object expected"); + message.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.fromObject(object.customJobDetail); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. + * Creates a plain object from a PipelineTaskExecutorDetail message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static - * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} message ListTrainingPipelinesResponse + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail} message PipelineTaskExecutorDetail * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListTrainingPipelinesResponse.toObject = function toObject(message, options) { + PipelineTaskExecutorDetail.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.trainingPipelines = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.trainingPipelines && message.trainingPipelines.length) { - object.trainingPipelines = []; - for (var j = 0; j < message.trainingPipelines.length; ++j) - object.trainingPipelines[j] = $root.google.cloud.aiplatform.v1.TrainingPipeline.toObject(message.trainingPipelines[j], options); + if (message.containerDetail != null && message.hasOwnProperty("containerDetail")) { + object.containerDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.toObject(message.containerDetail, options); + if (options.oneofs) + object.details = "containerDetail"; + } + if (message.customJobDetail != null && message.hasOwnProperty("customJobDetail")) { + object.customJobDetail = $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.toObject(message.customJobDetail, options); + if (options.oneofs) + object.details = "customJobDetail"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListTrainingPipelinesResponse to JSON. + * Converts this PipelineTaskExecutorDetail to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @instance * @returns {Object.} JSON object */ - ListTrainingPipelinesResponse.prototype.toJSON = function toJSON() { + PipelineTaskExecutorDetail.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListTrainingPipelinesResponse + * Gets the default type url for PipelineTaskExecutorDetail * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListTrainingPipelinesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PipelineTaskExecutorDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListTrainingPipelinesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail"; }; - return ListTrainingPipelinesResponse; - })(); + PipelineTaskExecutorDetail.ContainerDetail = (function() { - v1.DeleteTrainingPipelineRequest = (function() { + /** + * Properties of a ContainerDetail. + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @interface IContainerDetail + * @property {string|null} [mainJob] ContainerDetail mainJob + * @property {string|null} [preCachingCheckJob] ContainerDetail preCachingCheckJob + * @property {Array.|null} [failedMainJobs] ContainerDetail failedMainJobs + * @property {Array.|null} [failedPreCachingCheckJobs] ContainerDetail failedPreCachingCheckJobs + */ - /** - * Properties of a DeleteTrainingPipelineRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IDeleteTrainingPipelineRequest - * @property {string|null} [name] DeleteTrainingPipelineRequest name - */ + /** + * Constructs a new ContainerDetail. + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @classdesc Represents a ContainerDetail. + * @implements IContainerDetail + * @constructor + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set + */ + function ContainerDetail(properties) { + this.failedMainJobs = []; + this.failedPreCachingCheckJobs = []; + 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]]; + } - /** - * Constructs a new DeleteTrainingPipelineRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeleteTrainingPipelineRequest. - * @implements IDeleteTrainingPipelineRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest=} [properties] Properties to set - */ - function DeleteTrainingPipelineRequest(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]]; - } + /** + * ContainerDetail mainJob. + * @member {string} mainJob + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.mainJob = ""; - /** - * DeleteTrainingPipelineRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @instance - */ - DeleteTrainingPipelineRequest.prototype.name = ""; + /** + * ContainerDetail preCachingCheckJob. + * @member {string} preCachingCheckJob + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.preCachingCheckJob = ""; - /** - * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest instance - */ - DeleteTrainingPipelineRequest.create = function create(properties) { - return new DeleteTrainingPipelineRequest(properties); - }; + /** + * ContainerDetail failedMainJobs. + * @member {Array.} failedMainJobs + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.failedMainJobs = $util.emptyArray; - /** - * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteTrainingPipelineRequest.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; - }; + /** + * ContainerDetail failedPreCachingCheckJobs. + * @member {Array.} failedPreCachingCheckJobs + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + */ + ContainerDetail.prototype.failedPreCachingCheckJobs = $util.emptyArray; - /** - * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new ContainerDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail instance + */ + ContainerDetail.create = function create(properties) { + return new ContainerDetail(properties); + }; - /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @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.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteTrainingPipelineRequest.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.DeleteTrainingPipelineRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * Encodes the specified ContainerDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainerDetail.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.mainJob != null && Object.hasOwnProperty.call(message, "mainJob")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.mainJob); + if (message.preCachingCheckJob != null && Object.hasOwnProperty.call(message, "preCachingCheckJob")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.preCachingCheckJob); + if (message.failedMainJobs != null && message.failedMainJobs.length) + for (var i = 0; i < message.failedMainJobs.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.failedMainJobs[i]); + if (message.failedPreCachingCheckJobs != null && message.failedPreCachingCheckJobs.length) + for (var i = 0; i < message.failedPreCachingCheckJobs.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.failedPreCachingCheckJobs[i]); + return writer; + }; + + /** + * Encodes the specified ContainerDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.IContainerDetail} message ContainerDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContainerDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ContainerDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @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.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainerDetail.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.PipelineTaskExecutorDetail.ContainerDetail(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.mainJob = reader.string(); + break; + } + case 2: { + message.preCachingCheckJob = reader.string(); + break; + } + case 3: { + if (!(message.failedMainJobs && message.failedMainJobs.length)) + message.failedMainJobs = []; + message.failedMainJobs.push(reader.string()); + break; + } + case 4: { + if (!(message.failedPreCachingCheckJobs && message.failedPreCachingCheckJobs.length)) + message.failedPreCachingCheckJobs = []; + message.failedPreCachingCheckJobs.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ContainerDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContainerDetail.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a DeleteTrainingPipelineRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteTrainingPipelineRequest.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; - }; + /** + * Verifies a ContainerDetail message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContainerDetail.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.mainJob != null && message.hasOwnProperty("mainJob")) + if (!$util.isString(message.mainJob)) + return "mainJob: string expected"; + if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) + if (!$util.isString(message.preCachingCheckJob)) + return "preCachingCheckJob: string expected"; + if (message.failedMainJobs != null && message.hasOwnProperty("failedMainJobs")) { + if (!Array.isArray(message.failedMainJobs)) + return "failedMainJobs: array expected"; + for (var i = 0; i < message.failedMainJobs.length; ++i) + if (!$util.isString(message.failedMainJobs[i])) + return "failedMainJobs: string[] expected"; + } + if (message.failedPreCachingCheckJobs != null && message.hasOwnProperty("failedPreCachingCheckJobs")) { + if (!Array.isArray(message.failedPreCachingCheckJobs)) + return "failedPreCachingCheckJobs: array expected"; + for (var i = 0; i < message.failedPreCachingCheckJobs.length; ++i) + if (!$util.isString(message.failedPreCachingCheckJobs[i])) + return "failedPreCachingCheckJobs: string[] expected"; + } + return null; + }; - /** - * Creates a DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest - */ - DeleteTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest) + /** + * Creates a ContainerDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} ContainerDetail + */ + ContainerDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail(); + if (object.mainJob != null) + message.mainJob = String(object.mainJob); + if (object.preCachingCheckJob != null) + message.preCachingCheckJob = String(object.preCachingCheckJob); + if (object.failedMainJobs) { + if (!Array.isArray(object.failedMainJobs)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.failedMainJobs: array expected"); + message.failedMainJobs = []; + for (var i = 0; i < object.failedMainJobs.length; ++i) + message.failedMainJobs[i] = String(object.failedMainJobs[i]); + } + if (object.failedPreCachingCheckJobs) { + if (!Array.isArray(object.failedPreCachingCheckJobs)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail.failedPreCachingCheckJobs: array expected"); + message.failedPreCachingCheckJobs = []; + for (var i = 0; i < object.failedPreCachingCheckJobs.length; ++i) + message.failedPreCachingCheckJobs[i] = String(object.failedPreCachingCheckJobs[i]); + } + return message; + }; + + /** + * Creates a plain object from a ContainerDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail} message ContainerDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ContainerDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.failedMainJobs = []; + object.failedPreCachingCheckJobs = []; + } + if (options.defaults) { + object.mainJob = ""; + object.preCachingCheckJob = ""; + } + if (message.mainJob != null && message.hasOwnProperty("mainJob")) + object.mainJob = message.mainJob; + if (message.preCachingCheckJob != null && message.hasOwnProperty("preCachingCheckJob")) + object.preCachingCheckJob = message.preCachingCheckJob; + if (message.failedMainJobs && message.failedMainJobs.length) { + object.failedMainJobs = []; + for (var j = 0; j < message.failedMainJobs.length; ++j) + object.failedMainJobs[j] = message.failedMainJobs[j]; + } + if (message.failedPreCachingCheckJobs && message.failedPreCachingCheckJobs.length) { + object.failedPreCachingCheckJobs = []; + for (var j = 0; j < message.failedPreCachingCheckJobs.length; ++j) + object.failedPreCachingCheckJobs[j] = message.failedPreCachingCheckJobs[j]; + } return object; - var message = new $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + }; - /** - * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeleteTrainingPipelineRequest.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 ContainerDetail to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @instance + * @returns {Object.} JSON object + */ + ContainerDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this DeleteTrainingPipelineRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @instance - * @returns {Object.} JSON object - */ - DeleteTrainingPipelineRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for ContainerDetail + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ContainerDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ContainerDetail"; + }; - /** - * Gets the default type url for DeleteTrainingPipelineRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DeleteTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + return ContainerDetail; + })(); + + PipelineTaskExecutorDetail.CustomJobDetail = (function() { + + /** + * Properties of a CustomJobDetail. + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @interface ICustomJobDetail + * @property {string|null} [job] CustomJobDetail job + * @property {Array.|null} [failedJobs] CustomJobDetail failedJobs + */ + + /** + * Constructs a new CustomJobDetail. + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail + * @classdesc Represents a CustomJobDetail. + * @implements ICustomJobDetail + * @constructor + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set + */ + function CustomJobDetail(properties) { + this.failedJobs = []; + 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]]; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest"; - }; - return DeleteTrainingPipelineRequest; + /** + * CustomJobDetail job. + * @member {string} job + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + */ + CustomJobDetail.prototype.job = ""; + + /** + * CustomJobDetail failedJobs. + * @member {Array.} failedJobs + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + */ + CustomJobDetail.prototype.failedJobs = $util.emptyArray; + + /** + * Creates a new CustomJobDetail instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail instance + */ + CustomJobDetail.create = function create(properties) { + return new CustomJobDetail(properties); + }; + + /** + * Encodes the specified CustomJobDetail message. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomJobDetail.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.job != null && Object.hasOwnProperty.call(message, "job")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.job); + if (message.failedJobs != null && message.failedJobs.length) + for (var i = 0; i < message.failedJobs.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.failedJobs[i]); + return writer; + }; + + /** + * Encodes the specified CustomJobDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.ICustomJobDetail} message CustomJobDetail message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomJobDetail.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomJobDetail message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @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.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomJobDetail.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.PipelineTaskExecutorDetail.CustomJobDetail(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.job = reader.string(); + break; + } + case 3: { + if (!(message.failedJobs && message.failedJobs.length)) + message.failedJobs = []; + message.failedJobs.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CustomJobDetail message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomJobDetail.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CustomJobDetail message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomJobDetail.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.job != null && message.hasOwnProperty("job")) + if (!$util.isString(message.job)) + return "job: string expected"; + if (message.failedJobs != null && message.hasOwnProperty("failedJobs")) { + if (!Array.isArray(message.failedJobs)) + return "failedJobs: array expected"; + for (var i = 0; i < message.failedJobs.length; ++i) + if (!$util.isString(message.failedJobs[i])) + return "failedJobs: string[] expected"; + } + return null; + }; + + /** + * Creates a CustomJobDetail message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} CustomJobDetail + */ + CustomJobDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail) + return object; + var message = new $root.google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail(); + if (object.job != null) + message.job = String(object.job); + if (object.failedJobs) { + if (!Array.isArray(object.failedJobs)) + throw TypeError(".google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail.failedJobs: array expected"); + message.failedJobs = []; + for (var i = 0; i < object.failedJobs.length; ++i) + message.failedJobs[i] = String(object.failedJobs[i]); + } + return message; + }; + + /** + * Creates a plain object from a CustomJobDetail message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail} message CustomJobDetail + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomJobDetail.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.failedJobs = []; + if (options.defaults) + object.job = ""; + if (message.job != null && message.hasOwnProperty("job")) + object.job = message.job; + if (message.failedJobs && message.failedJobs.length) { + object.failedJobs = []; + for (var j = 0; j < message.failedJobs.length; ++j) + object.failedJobs[j] = message.failedJobs[j]; + } + return object; + }; + + /** + * Converts this CustomJobDetail to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + * @returns {Object.} JSON object + */ + CustomJobDetail.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CustomJobDetail + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomJobDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PipelineTaskExecutorDetail.CustomJobDetail"; + }; + + return CustomJobDetail; + })(); + + return PipelineTaskExecutorDetail; })(); - v1.CancelTrainingPipelineRequest = (function() { + /** + * PipelineState enum. + * @name google.cloud.aiplatform.v1.PipelineState + * @enum {number} + * @property {number} PIPELINE_STATE_UNSPECIFIED=0 PIPELINE_STATE_UNSPECIFIED value + * @property {number} PIPELINE_STATE_QUEUED=1 PIPELINE_STATE_QUEUED value + * @property {number} PIPELINE_STATE_PENDING=2 PIPELINE_STATE_PENDING value + * @property {number} PIPELINE_STATE_RUNNING=3 PIPELINE_STATE_RUNNING value + * @property {number} PIPELINE_STATE_SUCCEEDED=4 PIPELINE_STATE_SUCCEEDED value + * @property {number} PIPELINE_STATE_FAILED=5 PIPELINE_STATE_FAILED value + * @property {number} PIPELINE_STATE_CANCELLING=6 PIPELINE_STATE_CANCELLING value + * @property {number} PIPELINE_STATE_CANCELLED=7 PIPELINE_STATE_CANCELLED value + * @property {number} PIPELINE_STATE_PAUSED=8 PIPELINE_STATE_PAUSED value + */ + v1.PipelineState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PIPELINE_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PIPELINE_STATE_QUEUED"] = 1; + values[valuesById[2] = "PIPELINE_STATE_PENDING"] = 2; + values[valuesById[3] = "PIPELINE_STATE_RUNNING"] = 3; + values[valuesById[4] = "PIPELINE_STATE_SUCCEEDED"] = 4; + values[valuesById[5] = "PIPELINE_STATE_FAILED"] = 5; + values[valuesById[6] = "PIPELINE_STATE_CANCELLING"] = 6; + values[valuesById[7] = "PIPELINE_STATE_CANCELLED"] = 7; + values[valuesById[8] = "PIPELINE_STATE_PAUSED"] = 8; + return values; + })(); + + v1.Value = (function() { /** - * Properties of a CancelTrainingPipelineRequest. + * Properties of a Value. * @memberof google.cloud.aiplatform.v1 - * @interface ICancelTrainingPipelineRequest - * @property {string|null} [name] CancelTrainingPipelineRequest name + * @interface IValue + * @property {number|Long|null} [intValue] Value intValue + * @property {number|null} [doubleValue] Value doubleValue + * @property {string|null} [stringValue] Value stringValue */ /** - * Constructs a new CancelTrainingPipelineRequest. + * Constructs a new Value. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CancelTrainingPipelineRequest. - * @implements ICancelTrainingPipelineRequest + * @classdesc Represents a Value. + * @implements IValue * @constructor - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IValue=} [properties] Properties to set */ - function CancelTrainingPipelineRequest(properties) { + function Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -124062,75 +129348,117 @@ } /** - * CancelTrainingPipelineRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * Value intValue. + * @member {number|Long|null|undefined} intValue + * @memberof google.cloud.aiplatform.v1.Value * @instance */ - CancelTrainingPipelineRequest.prototype.name = ""; + Value.prototype.intValue = null; /** - * Creates a new CancelTrainingPipelineRequest instance using the specified properties. + * Value doubleValue. + * @member {number|null|undefined} doubleValue + * @memberof google.cloud.aiplatform.v1.Value + * @instance + */ + Value.prototype.doubleValue = null; + + /** + * Value stringValue. + * @member {string|null|undefined} stringValue + * @memberof google.cloud.aiplatform.v1.Value + * @instance + */ + Value.prototype.stringValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Value value. + * @member {"intValue"|"doubleValue"|"stringValue"|undefined} value + * @memberof google.cloud.aiplatform.v1.Value + * @instance + */ + Object.defineProperty(Value.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["intValue", "doubleValue", "stringValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Value instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @static - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest instance + * @param {google.cloud.aiplatform.v1.IValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Value} Value instance */ - CancelTrainingPipelineRequest.create = function create(properties) { - return new CancelTrainingPipelineRequest(properties); + Value.create = function create(properties) { + return new Value(properties); }; /** - * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified Value message. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @static - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelTrainingPipelineRequest.encode = function encode(message, writer) { + Value.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); + if (message.intValue != null && Object.hasOwnProperty.call(message, "intValue")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.intValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); return writer; }; /** - * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. + * Encodes the specified Value message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Value.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @static - * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IValue} message Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { + Value.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. + * Decodes a Value message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.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.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelTrainingPipelineRequest.decode = function decode(reader, length) { + 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.CancelTrainingPipelineRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Value(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.intValue = reader.int64(); + break; + } + case 2: { + message.doubleValue = reader.double(); + break; + } + case 3: { + message.stringValue = reader.string(); break; } default: @@ -124142,215 +129470,611 @@ }; /** - * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. + * Decodes a Value message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.Value} Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { + Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelTrainingPipelineRequest message. + * Verifies a Value message. * @function verify - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelTrainingPipelineRequest.verify = function verify(message) { + Value.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"; + var properties = {}; + if (message.intValue != null && message.hasOwnProperty("intValue")) { + properties.value = 1; + if (!$util.isInteger(message.intValue) && !(message.intValue && $util.isInteger(message.intValue.low) && $util.isInteger(message.intValue.high))) + return "intValue: integer|Long expected"; + } + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; + } return null; }; /** - * Creates a CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Value message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest + * @returns {google.cloud.aiplatform.v1.Value} Value */ - CancelTrainingPipelineRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest) + Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Value) return object; - var message = new $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1.Value(); + if (object.intValue != null) + if ($util.Long) + (message.intValue = $util.Long.fromValue(object.intValue)).unsigned = false; + else if (typeof object.intValue === "string") + message.intValue = parseInt(object.intValue, 10); + else if (typeof object.intValue === "number") + message.intValue = object.intValue; + else if (typeof object.intValue === "object") + message.intValue = new $util.LongBits(object.intValue.low >>> 0, object.intValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + message.stringValue = String(object.stringValue); return message; }; /** - * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. + * Creates a plain object from a Value message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @static - * @param {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} message CancelTrainingPipelineRequest + * @param {google.cloud.aiplatform.v1.Value} message Value * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelTrainingPipelineRequest.toObject = function toObject(message, options) { + Value.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; + if (message.intValue != null && message.hasOwnProperty("intValue")) { + if (typeof message.intValue === "number") + object.intValue = options.longs === String ? String(message.intValue) : message.intValue; + else + object.intValue = options.longs === String ? $util.Long.prototype.toString.call(message.intValue) : options.longs === Number ? new $util.LongBits(message.intValue.low >>> 0, message.intValue.high >>> 0).toNumber() : message.intValue; + if (options.oneofs) + object.value = "intValue"; + } + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (options.oneofs) + object.value = "doubleValue"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + object.stringValue = message.stringValue; + if (options.oneofs) + object.value = "stringValue"; + } return object; }; /** - * Converts this CancelTrainingPipelineRequest to JSON. + * Converts this Value to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @instance * @returns {Object.} JSON object */ - CancelTrainingPipelineRequest.prototype.toJSON = function toJSON() { + Value.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelTrainingPipelineRequest + * Gets the default type url for Value * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest + * @memberof google.cloud.aiplatform.v1.Value * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelTrainingPipelineRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.Value"; }; - return CancelTrainingPipelineRequest; + return Value; })(); - v1.CreatePipelineJobRequest = (function() { + v1.PipelineService = (function() { /** - * Properties of a CreatePipelineJobRequest. + * Constructs a new PipelineService service. * @memberof google.cloud.aiplatform.v1 - * @interface ICreatePipelineJobRequest - * @property {string|null} [parent] CreatePipelineJobRequest parent - * @property {google.cloud.aiplatform.v1.IPipelineJob|null} [pipelineJob] CreatePipelineJobRequest pipelineJob - * @property {string|null} [pipelineJobId] CreatePipelineJobRequest pipelineJobId + * @classdesc Represents a PipelineService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function PipelineService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (PipelineService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PipelineService; /** - * Constructs a new CreatePipelineJobRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CreatePipelineJobRequest. - * @implements ICreatePipelineJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest=} [properties] Properties to set + * Creates new PipelineService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.PipelineService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {PipelineService} RPC service. Useful where requests and/or responses are streamed. */ - function CreatePipelineJobRequest(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]]; - } + PipelineService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * CreatePipelineJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef CreateTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.TrainingPipeline} [response] TrainingPipeline */ - CreatePipelineJobRequest.prototype.parent = ""; /** - * CreatePipelineJobRequest pipelineJob. - * @member {google.cloud.aiplatform.v1.IPipelineJob|null|undefined} pipelineJob - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * Calls CreateTrainingPipeline. + * @function createTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.CreateTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline + * @returns {undefined} + * @variation 1 */ - CreatePipelineJobRequest.prototype.pipelineJob = null; + Object.defineProperty(PipelineService.prototype.createTrainingPipeline = function createTrainingPipeline(request, callback) { + return this.rpcCall(createTrainingPipeline, $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest, $root.google.cloud.aiplatform.v1.TrainingPipeline, request, callback); + }, "name", { value: "CreateTrainingPipeline" }); /** - * CreatePipelineJobRequest pipelineJobId. - * @member {string} pipelineJobId - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * Calls CreateTrainingPipeline. + * @function createTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService * @instance + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} request CreateTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreatePipelineJobRequest.prototype.pipelineJobId = ""; /** - * Creates a new CreatePipelineJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef GetTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.TrainingPipeline} [response] TrainingPipeline */ - CreatePipelineJobRequest.create = function create(properties) { - return new CreatePipelineJobRequest(properties); - }; /** - * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest - * @static - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetTrainingPipeline. + * @function getTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.GetTrainingPipelineCallback} callback Node-style callback called with the error, if any, and TrainingPipeline + * @returns {undefined} + * @variation 1 */ - CreatePipelineJobRequest.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.pipelineJob != null && Object.hasOwnProperty.call(message, "pipelineJob")) - $root.google.cloud.aiplatform.v1.PipelineJob.encode(message.pipelineJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.pipelineJobId != null && Object.hasOwnProperty.call(message, "pipelineJobId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pipelineJobId); - return writer; - }; + Object.defineProperty(PipelineService.prototype.getTrainingPipeline = function getTrainingPipeline(request, callback) { + return this.rpcCall(getTrainingPipeline, $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest, $root.google.cloud.aiplatform.v1.TrainingPipeline, request, callback); + }, "name", { value: "GetTrainingPipeline" }); /** - * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. + * Calls GetTrainingPipeline. + * @function getTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} request GetTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listTrainingPipelines}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef ListTrainingPipelinesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} [response] ListTrainingPipelinesResponse + */ + + /** + * Calls ListTrainingPipelines. + * @function listTrainingPipelines + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.ListTrainingPipelinesCallback} callback Node-style callback called with the error, if any, and ListTrainingPipelinesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.listTrainingPipelines = function listTrainingPipelines(request, callback) { + return this.rpcCall(listTrainingPipelines, $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest, $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse, request, callback); + }, "name", { value: "ListTrainingPipelines" }); + + /** + * Calls ListTrainingPipelines. + * @function listTrainingPipelines + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} request ListTrainingPipelinesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deleteTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef DeleteTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteTrainingPipeline. + * @function deleteTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.DeleteTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.deleteTrainingPipeline = function deleteTrainingPipeline(request, callback) { + return this.rpcCall(deleteTrainingPipeline, $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteTrainingPipeline" }); + + /** + * Calls DeleteTrainingPipeline. + * @function deleteTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} request DeleteTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelTrainingPipeline}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef CancelTrainingPipelineCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls CancelTrainingPipeline. + * @function cancelTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.CancelTrainingPipelineCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.cancelTrainingPipeline = function cancelTrainingPipeline(request, callback) { + return this.rpcCall(cancelTrainingPipeline, $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelTrainingPipeline" }); + + /** + * Calls CancelTrainingPipeline. + * @function cancelTrainingPipeline + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} request CancelTrainingPipelineRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|createPipelineJob}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef CreatePipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.PipelineJob} [response] PipelineJob + */ + + /** + * Calls CreatePipelineJob. + * @function createPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.CreatePipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.createPipelineJob = function createPipelineJob(request, callback) { + return this.rpcCall(createPipelineJob, $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest, $root.google.cloud.aiplatform.v1.PipelineJob, request, callback); + }, "name", { value: "CreatePipelineJob" }); + + /** + * Calls CreatePipelineJob. + * @function createPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} request CreatePipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|getPipelineJob}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef GetPipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.PipelineJob} [response] PipelineJob + */ + + /** + * Calls GetPipelineJob. + * @function getPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.GetPipelineJobCallback} callback Node-style callback called with the error, if any, and PipelineJob + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.getPipelineJob = function getPipelineJob(request, callback) { + return this.rpcCall(getPipelineJob, $root.google.cloud.aiplatform.v1.GetPipelineJobRequest, $root.google.cloud.aiplatform.v1.PipelineJob, request, callback); + }, "name", { value: "GetPipelineJob" }); + + /** + * Calls GetPipelineJob. + * @function getPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} request GetPipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|listPipelineJobs}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef ListPipelineJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListPipelineJobsResponse} [response] ListPipelineJobsResponse + */ + + /** + * Calls ListPipelineJobs. + * @function listPipelineJobs + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.ListPipelineJobsCallback} callback Node-style callback called with the error, if any, and ListPipelineJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.listPipelineJobs = function listPipelineJobs(request, callback) { + return this.rpcCall(listPipelineJobs, $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest, $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse, request, callback); + }, "name", { value: "ListPipelineJobs" }); + + /** + * Calls ListPipelineJobs. + * @function listPipelineJobs + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} request ListPipelineJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|deletePipelineJob}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef DeletePipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeletePipelineJob. + * @function deletePipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.DeletePipelineJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.deletePipelineJob = function deletePipelineJob(request, callback) { + return this.rpcCall(deletePipelineJob, $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeletePipelineJob" }); + + /** + * Calls DeletePipelineJob. + * @function deletePipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} request DeletePipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PipelineService|cancelPipelineJob}. + * @memberof google.cloud.aiplatform.v1.PipelineService + * @typedef CancelPipelineJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls CancelPipelineJob. + * @function cancelPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object + * @param {google.cloud.aiplatform.v1.PipelineService.CancelPipelineJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PipelineService.prototype.cancelPipelineJob = function cancelPipelineJob(request, callback) { + return this.rpcCall(cancelPipelineJob, $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelPipelineJob" }); + + /** + * Calls CancelPipelineJob. + * @function cancelPipelineJob + * @memberof google.cloud.aiplatform.v1.PipelineService + * @instance + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} request CancelPipelineJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return PipelineService; + })(); + + v1.CreateTrainingPipelineRequest = (function() { + + /** + * Properties of a CreateTrainingPipelineRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface ICreateTrainingPipelineRequest + * @property {string|null} [parent] CreateTrainingPipelineRequest parent + * @property {google.cloud.aiplatform.v1.ITrainingPipeline|null} [trainingPipeline] CreateTrainingPipelineRequest trainingPipeline + */ + + /** + * Constructs a new CreateTrainingPipelineRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a CreateTrainingPipelineRequest. + * @implements ICreateTrainingPipelineRequest + * @constructor + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest=} [properties] Properties to set + */ + function CreateTrainingPipelineRequest(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]]; + } + + /** + * CreateTrainingPipelineRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @instance + */ + CreateTrainingPipelineRequest.prototype.parent = ""; + + /** + * CreateTrainingPipelineRequest trainingPipeline. + * @member {google.cloud.aiplatform.v1.ITrainingPipeline|null|undefined} trainingPipeline + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @instance + */ + CreateTrainingPipelineRequest.prototype.trainingPipeline = null; + + /** + * Creates a new CreateTrainingPipelineRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest instance + */ + CreateTrainingPipelineRequest.create = function create(properties) { + return new CreateTrainingPipelineRequest(properties); + }; + + /** + * Encodes the specified CreateTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateTrainingPipelineRequest.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.trainingPipeline != null && Object.hasOwnProperty.call(message, "trainingPipeline")) + $root.google.cloud.aiplatform.v1.TrainingPipeline.encode(message.trainingPipeline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICreateTrainingPipelineRequest} message CreateTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreatePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @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.CreatePipelineJobRequest} CreatePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePipelineJobRequest.decode = function decode(reader, length) { + CreateTrainingPipelineRequest.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.CreatePipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -124359,11 +130083,7 @@ break; } case 2: { - message.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.decode(reader, reader.uint32()); - break; - } - case 3: { - message.pipelineJobId = reader.string(); + message.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.decode(reader, reader.uint32()); break; } default: @@ -124375,144 +130095,136 @@ }; /** - * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreatePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreatePipelineJobRequest message. + * Verifies a CreateTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreatePipelineJobRequest.verify = function verify(message) { + CreateTrainingPipelineRequest.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.pipelineJob != null && message.hasOwnProperty("pipelineJob")) { - var error = $root.google.cloud.aiplatform.v1.PipelineJob.verify(message.pipelineJob); + if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) { + var error = $root.google.cloud.aiplatform.v1.TrainingPipeline.verify(message.trainingPipeline); if (error) - return "pipelineJob." + error; + return "trainingPipeline." + error; } - if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) - if (!$util.isString(message.pipelineJobId)) - return "pipelineJobId: string expected"; return null; }; /** - * Creates a CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} CreateTrainingPipelineRequest */ - CreatePipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest) + CreateTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.pipelineJob != null) { - if (typeof object.pipelineJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1.CreatePipelineJobRequest.pipelineJob: object expected"); - message.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.fromObject(object.pipelineJob); + if (object.trainingPipeline != null) { + if (typeof object.trainingPipeline !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreateTrainingPipelineRequest.trainingPipeline: object expected"); + message.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.fromObject(object.trainingPipeline); } - if (object.pipelineJobId != null) - message.pipelineJobId = String(object.pipelineJobId); return message; }; /** - * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateTrainingPipelineRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.CreatePipelineJobRequest} message CreatePipelineJobRequest + * @param {google.cloud.aiplatform.v1.CreateTrainingPipelineRequest} message CreateTrainingPipelineRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreatePipelineJobRequest.toObject = function toObject(message, options) { + CreateTrainingPipelineRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.pipelineJob = null; - object.pipelineJobId = ""; + object.trainingPipeline = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) - object.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.toObject(message.pipelineJob, options); - if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) - object.pipelineJobId = message.pipelineJobId; + if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) + object.trainingPipeline = $root.google.cloud.aiplatform.v1.TrainingPipeline.toObject(message.trainingPipeline, options); return object; }; /** - * Converts this CreatePipelineJobRequest to JSON. + * Converts this CreateTrainingPipelineRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @instance * @returns {Object.} JSON object */ - CreatePipelineJobRequest.prototype.toJSON = function toJSON() { + CreateTrainingPipelineRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreatePipelineJobRequest + * Gets the default type url for CreateTrainingPipelineRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CreateTrainingPipelineRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreatePipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreatePipelineJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreateTrainingPipelineRequest"; }; - return CreatePipelineJobRequest; + return CreateTrainingPipelineRequest; })(); - v1.GetPipelineJobRequest = (function() { + v1.GetTrainingPipelineRequest = (function() { /** - * Properties of a GetPipelineJobRequest. + * Properties of a GetTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IGetPipelineJobRequest - * @property {string|null} [name] GetPipelineJobRequest name + * @interface IGetTrainingPipelineRequest + * @property {string|null} [name] GetTrainingPipelineRequest name */ /** - * Constructs a new GetPipelineJobRequest. + * Constructs a new GetTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetPipelineJobRequest. - * @implements IGetPipelineJobRequest + * @classdesc Represents a GetTrainingPipelineRequest. + * @implements IGetTrainingPipelineRequest * @constructor - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest=} [properties] Properties to set */ - function GetPipelineJobRequest(properties) { + function GetTrainingPipelineRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -124520,35 +130232,35 @@ } /** - * GetPipelineJobRequest name. + * GetTrainingPipelineRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @instance */ - GetPipelineJobRequest.prototype.name = ""; + GetTrainingPipelineRequest.prototype.name = ""; /** - * Creates a new GetPipelineJobRequest instance using the specified properties. + * Creates a new GetTrainingPipelineRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest instance + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest instance */ - GetPipelineJobRequest.create = function create(properties) { - return new GetPipelineJobRequest(properties); + GetTrainingPipelineRequest.create = function create(properties) { + return new GetTrainingPipelineRequest(properties); }; /** - * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. + * Encodes the specified GetTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPipelineJobRequest.encode = function encode(message, writer) { + GetTrainingPipelineRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -124557,33 +130269,33 @@ }; /** - * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. + * Encodes the specified GetTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetTrainingPipelineRequest} message GetTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer. + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @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.GetPipelineJobRequest} GetPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPipelineJobRequest.decode = function decode(reader, length) { + GetTrainingPipelineRequest.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.GetPipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -124600,30 +130312,30 @@ }; /** - * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetPipelineJobRequest message. + * Verifies a GetTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetPipelineJobRequest.verify = function verify(message) { + GetTrainingPipelineRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -124633,32 +130345,32 @@ }; /** - * Creates a GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} GetTrainingPipelineRequest */ - GetPipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetPipelineJobRequest) + GetTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.GetPipelineJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.GetTrainingPipelineRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetTrainingPipelineRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.GetPipelineJobRequest} message GetPipelineJobRequest + * @param {google.cloud.aiplatform.v1.GetTrainingPipelineRequest} message GetTrainingPipelineRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetPipelineJobRequest.toObject = function toObject(message, options) { + GetTrainingPipelineRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -124670,57 +130382,56 @@ }; /** - * Converts this GetPipelineJobRequest to JSON. + * Converts this GetTrainingPipelineRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @instance * @returns {Object.} JSON object */ - GetPipelineJobRequest.prototype.toJSON = function toJSON() { + GetTrainingPipelineRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetPipelineJobRequest + * Gets the default type url for GetTrainingPipelineRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.GetTrainingPipelineRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetPipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetPipelineJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetTrainingPipelineRequest"; }; - return GetPipelineJobRequest; + return GetTrainingPipelineRequest; })(); - v1.ListPipelineJobsRequest = (function() { + v1.ListTrainingPipelinesRequest = (function() { /** - * Properties of a ListPipelineJobsRequest. + * Properties of a ListTrainingPipelinesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListPipelineJobsRequest - * @property {string|null} [parent] ListPipelineJobsRequest parent - * @property {string|null} [filter] ListPipelineJobsRequest filter - * @property {number|null} [pageSize] ListPipelineJobsRequest pageSize - * @property {string|null} [pageToken] ListPipelineJobsRequest pageToken - * @property {string|null} [orderBy] ListPipelineJobsRequest orderBy - * @property {google.protobuf.IFieldMask|null} [readMask] ListPipelineJobsRequest readMask + * @interface IListTrainingPipelinesRequest + * @property {string|null} [parent] ListTrainingPipelinesRequest parent + * @property {string|null} [filter] ListTrainingPipelinesRequest filter + * @property {number|null} [pageSize] ListTrainingPipelinesRequest pageSize + * @property {string|null} [pageToken] ListTrainingPipelinesRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListTrainingPipelinesRequest readMask */ /** - * Constructs a new ListPipelineJobsRequest. + * Constructs a new ListTrainingPipelinesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListPipelineJobsRequest. - * @implements IListPipelineJobsRequest + * @classdesc Represents a ListTrainingPipelinesRequest. + * @implements IListTrainingPipelinesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest=} [properties] Properties to set */ - function ListPipelineJobsRequest(properties) { + function ListTrainingPipelinesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -124728,75 +130439,67 @@ } /** - * ListPipelineJobsRequest parent. + * ListTrainingPipelinesRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance */ - ListPipelineJobsRequest.prototype.parent = ""; + ListTrainingPipelinesRequest.prototype.parent = ""; /** - * ListPipelineJobsRequest filter. + * ListTrainingPipelinesRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance */ - ListPipelineJobsRequest.prototype.filter = ""; + ListTrainingPipelinesRequest.prototype.filter = ""; /** - * ListPipelineJobsRequest pageSize. + * ListTrainingPipelinesRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance */ - ListPipelineJobsRequest.prototype.pageSize = 0; + ListTrainingPipelinesRequest.prototype.pageSize = 0; /** - * ListPipelineJobsRequest pageToken. + * ListTrainingPipelinesRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest - * @instance - */ - ListPipelineJobsRequest.prototype.pageToken = ""; - - /** - * ListPipelineJobsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance */ - ListPipelineJobsRequest.prototype.orderBy = ""; + ListTrainingPipelinesRequest.prototype.pageToken = ""; /** - * ListPipelineJobsRequest readMask. + * ListTrainingPipelinesRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance */ - ListPipelineJobsRequest.prototype.readMask = null; + ListTrainingPipelinesRequest.prototype.readMask = null; /** - * Creates a new ListPipelineJobsRequest instance using the specified properties. + * Creates a new ListTrainingPipelinesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest instance + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest instance */ - ListPipelineJobsRequest.create = function create(properties) { - return new ListPipelineJobsRequest(properties); + ListTrainingPipelinesRequest.create = function create(properties) { + return new ListTrainingPipelinesRequest(properties); }; /** - * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsRequest.encode = function encode(message, writer) { + ListTrainingPipelinesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -124807,41 +130510,39 @@ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesRequest} message ListTrainingPipelinesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListTrainingPipelinesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @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.ListPipelineJobsRequest} ListPipelineJobsRequest + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsRequest.decode = function decode(reader, length) { + ListTrainingPipelinesRequest.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.ListPipelineJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -124861,11 +130562,7 @@ message.pageToken = reader.string(); break; } - case 6: { - message.orderBy = reader.string(); - break; - } - case 7: { + case 5: { message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } @@ -124878,30 +130575,30 @@ }; /** - * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListTrainingPipelinesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ListTrainingPipelinesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPipelineJobsRequest message. + * Verifies a ListTrainingPipelinesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPipelineJobsRequest.verify = function verify(message) { + ListTrainingPipelinesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -124916,9 +130613,6 @@ if (message.pageToken != null && message.hasOwnProperty("pageToken")) if (!$util.isString(message.pageToken)) return "pageToken: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; if (message.readMask != null && message.hasOwnProperty("readMask")) { var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) @@ -124928,17 +130622,17 @@ }; /** - * Creates a ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListTrainingPipelinesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} ListTrainingPipelinesRequest */ - ListPipelineJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest) + ListTrainingPipelinesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -124947,26 +130641,24 @@ message.pageSize = object.pageSize | 0; if (object.pageToken != null) message.pageToken = String(object.pageToken); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListTrainingPipelinesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static - * @param {google.cloud.aiplatform.v1.ListPipelineJobsRequest} message ListPipelineJobsRequest + * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesRequest} message ListTrainingPipelinesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPipelineJobsRequest.toObject = function toObject(message, options) { + ListTrainingPipelinesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -124975,7 +130667,6 @@ object.filter = ""; object.pageSize = 0; object.pageToken = ""; - object.orderBy = ""; object.readMask = null; } if (message.parent != null && message.hasOwnProperty("parent")) @@ -124986,62 +130677,60 @@ object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) object.pageToken = message.pageToken; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; if (message.readMask != null && message.hasOwnProperty("readMask")) object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ListPipelineJobsRequest to JSON. + * Converts this ListTrainingPipelinesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @instance * @returns {Object.} JSON object */ - ListPipelineJobsRequest.prototype.toJSON = function toJSON() { + ListTrainingPipelinesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPipelineJobsRequest + * Gets the default type url for ListTrainingPipelinesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPipelineJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTrainingPipelinesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListPipelineJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListTrainingPipelinesRequest"; }; - return ListPipelineJobsRequest; + return ListTrainingPipelinesRequest; })(); - v1.ListPipelineJobsResponse = (function() { + v1.ListTrainingPipelinesResponse = (function() { /** - * Properties of a ListPipelineJobsResponse. + * Properties of a ListTrainingPipelinesResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IListPipelineJobsResponse - * @property {Array.|null} [pipelineJobs] ListPipelineJobsResponse pipelineJobs - * @property {string|null} [nextPageToken] ListPipelineJobsResponse nextPageToken + * @interface IListTrainingPipelinesResponse + * @property {Array.|null} [trainingPipelines] ListTrainingPipelinesResponse trainingPipelines + * @property {string|null} [nextPageToken] ListTrainingPipelinesResponse nextPageToken */ /** - * Constructs a new ListPipelineJobsResponse. + * Constructs a new ListTrainingPipelinesResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListPipelineJobsResponse. - * @implements IListPipelineJobsResponse + * @classdesc Represents a ListTrainingPipelinesResponse. + * @implements IListTrainingPipelinesResponse * @constructor - * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse=} [properties] Properties to set */ - function ListPipelineJobsResponse(properties) { - this.pipelineJobs = []; + function ListTrainingPipelinesResponse(properties) { + this.trainingPipelines = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -125049,88 +130738,88 @@ } /** - * ListPipelineJobsResponse pipelineJobs. - * @member {Array.} pipelineJobs - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * ListTrainingPipelinesResponse trainingPipelines. + * @member {Array.} trainingPipelines + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @instance */ - ListPipelineJobsResponse.prototype.pipelineJobs = $util.emptyArray; + ListTrainingPipelinesResponse.prototype.trainingPipelines = $util.emptyArray; /** - * ListPipelineJobsResponse nextPageToken. + * ListTrainingPipelinesResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @instance */ - ListPipelineJobsResponse.prototype.nextPageToken = ""; + ListTrainingPipelinesResponse.prototype.nextPageToken = ""; /** - * Creates a new ListPipelineJobsResponse instance using the specified properties. + * Creates a new ListTrainingPipelinesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse instance + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse instance */ - ListPipelineJobsResponse.create = function create(properties) { - return new ListPipelineJobsResponse(properties); + ListTrainingPipelinesResponse.create = function create(properties) { + return new ListTrainingPipelinesResponse(properties); }; /** - * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsResponse.encode = function encode(message, writer) { + ListTrainingPipelinesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.pipelineJobs != null && message.pipelineJobs.length) - for (var i = 0; i < message.pipelineJobs.length; ++i) - $root.google.cloud.aiplatform.v1.PipelineJob.encode(message.pipelineJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.trainingPipelines != null && message.trainingPipelines.length) + for (var i = 0; i < message.trainingPipelines.length; ++i) + $root.google.cloud.aiplatform.v1.TrainingPipeline.encode(message.trainingPipelines[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. + * Encodes the specified ListTrainingPipelinesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListTrainingPipelinesResponse} message ListTrainingPipelinesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListPipelineJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListTrainingPipelinesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @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.ListPipelineJobsResponse} ListPipelineJobsResponse + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsResponse.decode = function decode(reader, length) { + ListTrainingPipelinesResponse.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.ListPipelineJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.pipelineJobs && message.pipelineJobs.length)) - message.pipelineJobs = []; - message.pipelineJobs.push($root.google.cloud.aiplatform.v1.PipelineJob.decode(reader, reader.uint32())); + if (!(message.trainingPipelines && message.trainingPipelines.length)) + message.trainingPipelines = []; + message.trainingPipelines.push($root.google.cloud.aiplatform.v1.TrainingPipeline.decode(reader, reader.uint32())); break; } case 2: { @@ -125146,39 +130835,39 @@ }; /** - * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListTrainingPipelinesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListPipelineJobsResponse.decodeDelimited = function decodeDelimited(reader) { + ListTrainingPipelinesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListPipelineJobsResponse message. + * Verifies a ListTrainingPipelinesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListPipelineJobsResponse.verify = function verify(message) { + ListTrainingPipelinesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.pipelineJobs != null && message.hasOwnProperty("pipelineJobs")) { - if (!Array.isArray(message.pipelineJobs)) - return "pipelineJobs: array expected"; - for (var i = 0; i < message.pipelineJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1.PipelineJob.verify(message.pipelineJobs[i]); + if (message.trainingPipelines != null && message.hasOwnProperty("trainingPipelines")) { + if (!Array.isArray(message.trainingPipelines)) + return "trainingPipelines: array expected"; + for (var i = 0; i < message.trainingPipelines.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.TrainingPipeline.verify(message.trainingPipelines[i]); if (error) - return "pipelineJobs." + error; + return "trainingPipelines." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -125188,25 +130877,25 @@ }; /** - * Creates a ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListTrainingPipelinesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse + * @returns {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} ListTrainingPipelinesResponse */ - ListPipelineJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse) + ListTrainingPipelinesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse(); - if (object.pipelineJobs) { - if (!Array.isArray(object.pipelineJobs)) - throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsResponse.pipelineJobs: array expected"); - message.pipelineJobs = []; - for (var i = 0; i < object.pipelineJobs.length; ++i) { - if (typeof object.pipelineJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsResponse.pipelineJobs: object expected"); - message.pipelineJobs[i] = $root.google.cloud.aiplatform.v1.PipelineJob.fromObject(object.pipelineJobs[i]); + var message = new $root.google.cloud.aiplatform.v1.ListTrainingPipelinesResponse(); + if (object.trainingPipelines) { + if (!Array.isArray(object.trainingPipelines)) + throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.trainingPipelines: array expected"); + message.trainingPipelines = []; + for (var i = 0; i < object.trainingPipelines.length; ++i) { + if (typeof object.trainingPipelines[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListTrainingPipelinesResponse.trainingPipelines: object expected"); + message.trainingPipelines[i] = $root.google.cloud.aiplatform.v1.TrainingPipeline.fromObject(object.trainingPipelines[i]); } } if (object.nextPageToken != null) @@ -125215,26 +130904,26 @@ }; /** - * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListTrainingPipelinesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static - * @param {google.cloud.aiplatform.v1.ListPipelineJobsResponse} message ListPipelineJobsResponse + * @param {google.cloud.aiplatform.v1.ListTrainingPipelinesResponse} message ListTrainingPipelinesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListPipelineJobsResponse.toObject = function toObject(message, options) { + ListTrainingPipelinesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.pipelineJobs = []; + object.trainingPipelines = []; if (options.defaults) object.nextPageToken = ""; - if (message.pipelineJobs && message.pipelineJobs.length) { - object.pipelineJobs = []; - for (var j = 0; j < message.pipelineJobs.length; ++j) - object.pipelineJobs[j] = $root.google.cloud.aiplatform.v1.PipelineJob.toObject(message.pipelineJobs[j], options); + if (message.trainingPipelines && message.trainingPipelines.length) { + object.trainingPipelines = []; + for (var j = 0; j < message.trainingPipelines.length; ++j) + object.trainingPipelines[j] = $root.google.cloud.aiplatform.v1.TrainingPipeline.toObject(message.trainingPipelines[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -125242,52 +130931,52 @@ }; /** - * Converts this ListPipelineJobsResponse to JSON. + * Converts this ListTrainingPipelinesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @instance * @returns {Object.} JSON object */ - ListPipelineJobsResponse.prototype.toJSON = function toJSON() { + ListTrainingPipelinesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListPipelineJobsResponse + * Gets the default type url for ListTrainingPipelinesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse + * @memberof google.cloud.aiplatform.v1.ListTrainingPipelinesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListPipelineJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListTrainingPipelinesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListPipelineJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListTrainingPipelinesResponse"; }; - return ListPipelineJobsResponse; + return ListTrainingPipelinesResponse; })(); - v1.DeletePipelineJobRequest = (function() { + v1.DeleteTrainingPipelineRequest = (function() { /** - * Properties of a DeletePipelineJobRequest. + * Properties of a DeleteTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IDeletePipelineJobRequest - * @property {string|null} [name] DeletePipelineJobRequest name + * @interface IDeleteTrainingPipelineRequest + * @property {string|null} [name] DeleteTrainingPipelineRequest name */ /** - * Constructs a new DeletePipelineJobRequest. + * Constructs a new DeleteTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a DeletePipelineJobRequest. - * @implements IDeletePipelineJobRequest + * @classdesc Represents a DeleteTrainingPipelineRequest. + * @implements IDeleteTrainingPipelineRequest * @constructor - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest=} [properties] Properties to set */ - function DeletePipelineJobRequest(properties) { + function DeleteTrainingPipelineRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -125295,35 +130984,35 @@ } /** - * DeletePipelineJobRequest name. + * DeleteTrainingPipelineRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @instance */ - DeletePipelineJobRequest.prototype.name = ""; + DeleteTrainingPipelineRequest.prototype.name = ""; /** - * Creates a new DeletePipelineJobRequest instance using the specified properties. + * Creates a new DeleteTrainingPipelineRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest instance + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest instance */ - DeletePipelineJobRequest.create = function create(properties) { - return new DeletePipelineJobRequest(properties); + DeleteTrainingPipelineRequest.create = function create(properties) { + return new DeleteTrainingPipelineRequest(properties); }; /** - * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. + * Encodes the specified DeleteTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePipelineJobRequest.encode = function encode(message, writer) { + DeleteTrainingPipelineRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -125332,33 +131021,33 @@ }; /** - * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. + * Encodes the specified DeleteTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeletePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @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.DeletePipelineJobRequest} DeletePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePipelineJobRequest.decode = function decode(reader, length) { + DeleteTrainingPipelineRequest.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.DeletePipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -125375,30 +131064,30 @@ }; /** - * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeletePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeletePipelineJobRequest message. + * Verifies a DeleteTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeletePipelineJobRequest.verify = function verify(message) { + DeleteTrainingPipelineRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -125408,32 +131097,32 @@ }; /** - * Creates a DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest + * @returns {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} DeleteTrainingPipelineRequest */ - DeletePipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest) + DeleteTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteTrainingPipelineRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.DeletePipelineJobRequest} message DeletePipelineJobRequest + * @param {google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest} message DeleteTrainingPipelineRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeletePipelineJobRequest.toObject = function toObject(message, options) { + DeleteTrainingPipelineRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -125445,52 +131134,52 @@ }; /** - * Converts this DeletePipelineJobRequest to JSON. + * Converts this DeleteTrainingPipelineRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @instance * @returns {Object.} JSON object */ - DeletePipelineJobRequest.prototype.toJSON = function toJSON() { + DeleteTrainingPipelineRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeletePipelineJobRequest + * Gets the default type url for DeleteTrainingPipelineRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest + * @memberof google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeletePipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeletePipelineJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeleteTrainingPipelineRequest"; }; - return DeletePipelineJobRequest; + return DeleteTrainingPipelineRequest; })(); - v1.CancelPipelineJobRequest = (function() { + v1.CancelTrainingPipelineRequest = (function() { /** - * Properties of a CancelPipelineJobRequest. + * Properties of a CancelTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ICancelPipelineJobRequest - * @property {string|null} [name] CancelPipelineJobRequest name + * @interface ICancelTrainingPipelineRequest + * @property {string|null} [name] CancelTrainingPipelineRequest name */ /** - * Constructs a new CancelPipelineJobRequest. + * Constructs a new CancelTrainingPipelineRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a CancelPipelineJobRequest. - * @implements ICancelPipelineJobRequest + * @classdesc Represents a CancelTrainingPipelineRequest. + * @implements ICancelTrainingPipelineRequest * @constructor - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest=} [properties] Properties to set */ - function CancelPipelineJobRequest(properties) { + function CancelTrainingPipelineRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -125498,35 +131187,35 @@ } /** - * CancelPipelineJobRequest name. + * CancelTrainingPipelineRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @instance */ - CancelPipelineJobRequest.prototype.name = ""; + CancelTrainingPipelineRequest.prototype.name = ""; /** - * Creates a new CancelPipelineJobRequest instance using the specified properties. + * Creates a new CancelTrainingPipelineRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest instance + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest instance */ - CancelPipelineJobRequest.create = function create(properties) { - return new CancelPipelineJobRequest(properties); + CancelTrainingPipelineRequest.create = function create(properties) { + return new CancelTrainingPipelineRequest(properties); }; /** - * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. + * Encodes the specified CancelTrainingPipelineRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelPipelineJobRequest.encode = function encode(message, writer) { + CancelTrainingPipelineRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -125535,33 +131224,33 @@ }; /** - * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. + * Encodes the specified CancelTrainingPipelineRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelTrainingPipelineRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelTrainingPipelineRequest} message CancelTrainingPipelineRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelTrainingPipelineRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @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.CancelPipelineJobRequest} CancelPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelPipelineJobRequest.decode = function decode(reader, length) { + CancelTrainingPipelineRequest.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.CancelPipelineJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -125578,30 +131267,30 @@ }; /** - * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelTrainingPipelineRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + CancelTrainingPipelineRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelPipelineJobRequest message. + * Verifies a CancelTrainingPipelineRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelPipelineJobRequest.verify = function verify(message) { + CancelTrainingPipelineRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -125611,32 +131300,32 @@ }; /** - * Creates a CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelTrainingPipelineRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest + * @returns {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} CancelTrainingPipelineRequest */ - CancelPipelineJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest) + CancelTrainingPipelineRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest(); + var message = new $root.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelTrainingPipelineRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static - * @param {google.cloud.aiplatform.v1.CancelPipelineJobRequest} message CancelPipelineJobRequest + * @param {google.cloud.aiplatform.v1.CancelTrainingPipelineRequest} message CancelTrainingPipelineRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelPipelineJobRequest.toObject = function toObject(message, options) { + CancelTrainingPipelineRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -125648,69 +131337,54 @@ }; /** - * Converts this CancelPipelineJobRequest to JSON. + * Converts this CancelTrainingPipelineRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @instance * @returns {Object.} JSON object */ - CancelPipelineJobRequest.prototype.toJSON = function toJSON() { + CancelTrainingPipelineRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelPipelineJobRequest + * Gets the default type url for CancelTrainingPipelineRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest + * @memberof google.cloud.aiplatform.v1.CancelTrainingPipelineRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelPipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelTrainingPipelineRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelPipelineJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelTrainingPipelineRequest"; }; - return CancelPipelineJobRequest; + return CancelTrainingPipelineRequest; })(); - v1.TrainingPipeline = (function() { + v1.CreatePipelineJobRequest = (function() { /** - * Properties of a TrainingPipeline. + * Properties of a CreatePipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface ITrainingPipeline - * @property {string|null} [name] TrainingPipeline name - * @property {string|null} [displayName] TrainingPipeline displayName - * @property {google.cloud.aiplatform.v1.IInputDataConfig|null} [inputDataConfig] TrainingPipeline inputDataConfig - * @property {string|null} [trainingTaskDefinition] TrainingPipeline trainingTaskDefinition - * @property {google.protobuf.IValue|null} [trainingTaskInputs] TrainingPipeline trainingTaskInputs - * @property {google.protobuf.IValue|null} [trainingTaskMetadata] TrainingPipeline trainingTaskMetadata - * @property {google.cloud.aiplatform.v1.IModel|null} [modelToUpload] TrainingPipeline modelToUpload - * @property {string|null} [modelId] TrainingPipeline modelId - * @property {string|null} [parentModel] TrainingPipeline parentModel - * @property {google.cloud.aiplatform.v1.PipelineState|null} [state] TrainingPipeline state - * @property {google.rpc.IStatus|null} [error] TrainingPipeline error - * @property {google.protobuf.ITimestamp|null} [createTime] TrainingPipeline createTime - * @property {google.protobuf.ITimestamp|null} [startTime] TrainingPipeline startTime - * @property {google.protobuf.ITimestamp|null} [endTime] TrainingPipeline endTime - * @property {google.protobuf.ITimestamp|null} [updateTime] TrainingPipeline updateTime - * @property {Object.|null} [labels] TrainingPipeline labels - * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] TrainingPipeline encryptionSpec + * @interface ICreatePipelineJobRequest + * @property {string|null} [parent] CreatePipelineJobRequest parent + * @property {google.cloud.aiplatform.v1.IPipelineJob|null} [pipelineJob] CreatePipelineJobRequest pipelineJob + * @property {string|null} [pipelineJobId] CreatePipelineJobRequest pipelineJobId */ /** - * Constructs a new TrainingPipeline. + * Constructs a new CreatePipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a TrainingPipeline. - * @implements ITrainingPipeline + * @classdesc Represents a CreatePipelineJobRequest. + * @implements ICreatePipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.ITrainingPipeline=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest=} [properties] Properties to set */ - function TrainingPipeline(properties) { - this.labels = {}; + function CreatePipelineJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -125718,231 +131392,323 @@ } /** - * TrainingPipeline name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * CreatePipelineJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @instance */ - TrainingPipeline.prototype.name = ""; + CreatePipelineJobRequest.prototype.parent = ""; /** - * TrainingPipeline displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * CreatePipelineJobRequest pipelineJob. + * @member {google.cloud.aiplatform.v1.IPipelineJob|null|undefined} pipelineJob + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @instance */ - TrainingPipeline.prototype.displayName = ""; + CreatePipelineJobRequest.prototype.pipelineJob = null; /** - * TrainingPipeline inputDataConfig. - * @member {google.cloud.aiplatform.v1.IInputDataConfig|null|undefined} inputDataConfig - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * CreatePipelineJobRequest pipelineJobId. + * @member {string} pipelineJobId + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @instance */ - TrainingPipeline.prototype.inputDataConfig = null; + CreatePipelineJobRequest.prototype.pipelineJobId = ""; /** - * TrainingPipeline trainingTaskDefinition. - * @member {string} trainingTaskDefinition - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Creates a new CreatePipelineJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest instance */ - TrainingPipeline.prototype.trainingTaskDefinition = ""; + CreatePipelineJobRequest.create = function create(properties) { + return new CreatePipelineJobRequest(properties); + }; /** - * TrainingPipeline trainingTaskInputs. - * @member {google.protobuf.IValue|null|undefined} trainingTaskInputs - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Encodes the specified CreatePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - TrainingPipeline.prototype.trainingTaskInputs = null; + CreatePipelineJobRequest.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.pipelineJob != null && Object.hasOwnProperty.call(message, "pipelineJob")) + $root.google.cloud.aiplatform.v1.PipelineJob.encode(message.pipelineJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.pipelineJobId != null && Object.hasOwnProperty.call(message, "pipelineJobId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pipelineJobId); + return writer; + }; /** - * TrainingPipeline trainingTaskMetadata. - * @member {google.protobuf.IValue|null|undefined} trainingTaskMetadata - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Encodes the specified CreatePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CreatePipelineJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @static + * @param {google.cloud.aiplatform.v1.ICreatePipelineJobRequest} message CreatePipelineJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - TrainingPipeline.prototype.trainingTaskMetadata = null; + CreatePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * TrainingPipeline modelToUpload. - * @member {google.cloud.aiplatform.v1.IModel|null|undefined} modelToUpload - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @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.CreatePipelineJobRequest} CreatePipelineJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingPipeline.prototype.modelToUpload = null; + CreatePipelineJobRequest.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.CreatePipelineJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.decode(reader, reader.uint32()); + break; + } + case 3: { + message.pipelineJobId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * TrainingPipeline modelId. - * @member {string} modelId - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Decodes a CreatePipelineJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingPipeline.prototype.modelId = ""; + CreatePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * TrainingPipeline parentModel. - * @member {string} parentModel - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Verifies a CreatePipelineJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TrainingPipeline.prototype.parentModel = ""; + CreatePipelineJobRequest.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.pipelineJob != null && message.hasOwnProperty("pipelineJob")) { + var error = $root.google.cloud.aiplatform.v1.PipelineJob.verify(message.pipelineJob); + if (error) + return "pipelineJob." + error; + } + if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) + if (!$util.isString(message.pipelineJobId)) + return "pipelineJobId: string expected"; + return null; + }; /** - * TrainingPipeline state. - * @member {google.cloud.aiplatform.v1.PipelineState} state - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Creates a CreatePipelineJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.CreatePipelineJobRequest} CreatePipelineJobRequest */ - TrainingPipeline.prototype.state = 0; + CreatePipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.CreatePipelineJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.pipelineJob != null) { + if (typeof object.pipelineJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1.CreatePipelineJobRequest.pipelineJob: object expected"); + message.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.fromObject(object.pipelineJob); + } + if (object.pipelineJobId != null) + message.pipelineJobId = String(object.pipelineJobId); + return message; + }; /** - * TrainingPipeline error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Creates a plain object from a CreatePipelineJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @static + * @param {google.cloud.aiplatform.v1.CreatePipelineJobRequest} message CreatePipelineJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - TrainingPipeline.prototype.error = null; + CreatePipelineJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.pipelineJob = null; + object.pipelineJobId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.pipelineJob != null && message.hasOwnProperty("pipelineJob")) + object.pipelineJob = $root.google.cloud.aiplatform.v1.PipelineJob.toObject(message.pipelineJob, options); + if (message.pipelineJobId != null && message.hasOwnProperty("pipelineJobId")) + object.pipelineJobId = message.pipelineJobId; + return object; + }; /** - * TrainingPipeline createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * Converts this CreatePipelineJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest * @instance + * @returns {Object.} JSON object */ - TrainingPipeline.prototype.createTime = null; + CreatePipelineJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * TrainingPipeline startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Gets the default type url for CreatePipelineJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.CreatePipelineJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - TrainingPipeline.prototype.startTime = null; + CreatePipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CreatePipelineJobRequest"; + }; - /** - * TrainingPipeline endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance - */ - TrainingPipeline.prototype.endTime = null; + return CreatePipelineJobRequest; + })(); + + v1.GetPipelineJobRequest = (function() { /** - * TrainingPipeline updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Properties of a GetPipelineJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetPipelineJobRequest + * @property {string|null} [name] GetPipelineJobRequest name */ - TrainingPipeline.prototype.updateTime = null; /** - * TrainingPipeline labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1.TrainingPipeline - * @instance + * Constructs a new GetPipelineJobRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetPipelineJobRequest. + * @implements IGetPipelineJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest=} [properties] Properties to set */ - TrainingPipeline.prototype.labels = $util.emptyObject; + function GetPipelineJobRequest(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]]; + } /** - * TrainingPipeline encryptionSpec. - * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * GetPipelineJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @instance */ - TrainingPipeline.prototype.encryptionSpec = null; + GetPipelineJobRequest.prototype.name = ""; /** - * Creates a new TrainingPipeline instance using the specified properties. + * Creates a new GetPipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.ITrainingPipeline=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline instance + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest instance */ - TrainingPipeline.create = function create(properties) { - return new TrainingPipeline(properties); + GetPipelineJobRequest.create = function create(properties) { + return new GetPipelineJobRequest(properties); }; /** - * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. + * Encodes the specified GetPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.ITrainingPipeline} message TrainingPipeline message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainingPipeline.encode = function encode(message, writer) { + GetPipelineJobRequest.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); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.inputDataConfig != null && Object.hasOwnProperty.call(message, "inputDataConfig")) - $root.google.cloud.aiplatform.v1.InputDataConfig.encode(message.inputDataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.trainingTaskDefinition != null && Object.hasOwnProperty.call(message, "trainingTaskDefinition")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.trainingTaskDefinition); - if (message.trainingTaskInputs != null && Object.hasOwnProperty.call(message, "trainingTaskInputs")) - $root.google.protobuf.Value.encode(message.trainingTaskInputs, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.trainingTaskMetadata != null && Object.hasOwnProperty.call(message, "trainingTaskMetadata")) - $root.google.protobuf.Value.encode(message.trainingTaskMetadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.modelToUpload != null && Object.hasOwnProperty.call(message, "modelToUpload")) - $root.google.cloud.aiplatform.v1.Model.encode(message.modelToUpload, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.state); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) - writer.uint32(/* id 21, wireType 2 =*/170).string(message.parentModel); - if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) - writer.uint32(/* id 22, wireType 2 =*/178).string(message.modelId); return writer; }; /** - * Encodes the specified TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. + * Encodes the specified GetPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetPipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.ITrainingPipeline} message TrainingPipeline message or plain object to encode + * @param {google.cloud.aiplatform.v1.IGetPipelineJobRequest} message GetPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainingPipeline.encodeDelimited = function encodeDelimited(message, writer) { + GetPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TrainingPipeline message from the specified reader or buffer. + * Decodes a GetPipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @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.TrainingPipeline} TrainingPipeline + * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingPipeline.decode = function decode(reader, length) { + GetPipelineJobRequest.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.TrainingPipeline(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetPipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -125950,89 +131716,6 @@ message.name = reader.string(); break; } - case 2: { - message.displayName = reader.string(); - break; - } - case 3: { - message.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.decode(reader, reader.uint32()); - break; - } - case 4: { - message.trainingTaskDefinition = reader.string(); - break; - } - case 5: { - message.trainingTaskInputs = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 6: { - message.trainingTaskMetadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 7: { - message.modelToUpload = $root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32()); - break; - } - case 22: { - message.modelId = reader.string(); - break; - } - case 21: { - message.parentModel = reader.string(); - break; - } - case 9: { - message.state = reader.int32(); - break; - } - case 10: { - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - } - case 11: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 12: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 13: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 14: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 15: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 18: { - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); - break; - } default: reader.skipType(tag & 7); break; @@ -126042,381 +131725,127 @@ }; /** - * Decodes a TrainingPipeline message from the specified reader or buffer, length delimited. + * Decodes a GetPipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline + * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingPipeline.decodeDelimited = function decodeDelimited(reader) { + GetPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TrainingPipeline message. + * Verifies a GetPipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TrainingPipeline.verify = function verify(message) { + GetPipelineJobRequest.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"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) { - var error = $root.google.cloud.aiplatform.v1.InputDataConfig.verify(message.inputDataConfig); - if (error) - return "inputDataConfig." + error; - } - if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) - if (!$util.isString(message.trainingTaskDefinition)) - return "trainingTaskDefinition: string expected"; - if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) { - var error = $root.google.protobuf.Value.verify(message.trainingTaskInputs); - if (error) - return "trainingTaskInputs." + error; - } - if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) { - var error = $root.google.protobuf.Value.verify(message.trainingTaskMetadata); - if (error) - return "trainingTaskMetadata." + error; - } - if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) { - var error = $root.google.cloud.aiplatform.v1.Model.verify(message.modelToUpload); - if (error) - return "modelToUpload." + error; - } - if (message.modelId != null && message.hasOwnProperty("modelId")) - if (!$util.isString(message.modelId)) - return "modelId: string expected"; - if (message.parentModel != null && message.hasOwnProperty("parentModel")) - if (!$util.isString(message.parentModel)) - return "parentModel: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; - } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; - } return null; }; /** - * Creates a TrainingPipeline message from a plain object. Also converts values to their respective internal types. + * Creates a GetPipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline + * @returns {google.cloud.aiplatform.v1.GetPipelineJobRequest} GetPipelineJobRequest */ - TrainingPipeline.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.TrainingPipeline) + GetPipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetPipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.TrainingPipeline(); + var message = new $root.google.cloud.aiplatform.v1.GetPipelineJobRequest(); if (object.name != null) message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.inputDataConfig != null) { - if (typeof object.inputDataConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.inputDataConfig: object expected"); - message.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.fromObject(object.inputDataConfig); - } - if (object.trainingTaskDefinition != null) - message.trainingTaskDefinition = String(object.trainingTaskDefinition); - if (object.trainingTaskInputs != null) { - if (typeof object.trainingTaskInputs !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.trainingTaskInputs: object expected"); - message.trainingTaskInputs = $root.google.protobuf.Value.fromObject(object.trainingTaskInputs); - } - if (object.trainingTaskMetadata != null) { - if (typeof object.trainingTaskMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.trainingTaskMetadata: object expected"); - message.trainingTaskMetadata = $root.google.protobuf.Value.fromObject(object.trainingTaskMetadata); - } - if (object.modelToUpload != null) { - if (typeof object.modelToUpload !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.modelToUpload: object expected"); - message.modelToUpload = $root.google.cloud.aiplatform.v1.Model.fromObject(object.modelToUpload); - } - if (object.modelId != null) - message.modelId = String(object.modelId); - if (object.parentModel != null) - message.parentModel = String(object.parentModel); - switch (object.state) { - default: - if (typeof object.state === "number") { - message.state = object.state; - break; - } - break; - case "PIPELINE_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "PIPELINE_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "PIPELINE_STATE_PENDING": - case 2: - message.state = 2; - break; - case "PIPELINE_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "PIPELINE_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "PIPELINE_STATE_FAILED": - case 5: - message.state = 5; - break; - case "PIPELINE_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "PIPELINE_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "PIPELINE_STATE_PAUSED": - case 8: - message.state = 8; - break; - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); - } return message; }; /** - * Creates a plain object from a TrainingPipeline message. Also converts values to other types if specified. + * Creates a plain object from a GetPipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.TrainingPipeline} message TrainingPipeline + * @param {google.cloud.aiplatform.v1.GetPipelineJobRequest} message GetPipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TrainingPipeline.toObject = function toObject(message, options) { + GetPipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { + if (options.defaults) object.name = ""; - object.displayName = ""; - object.inputDataConfig = null; - object.trainingTaskDefinition = ""; - object.trainingTaskInputs = null; - object.trainingTaskMetadata = null; - object.modelToUpload = null; - object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; - object.error = null; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.updateTime = null; - object.encryptionSpec = null; - object.parentModel = ""; - object.modelId = ""; - } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) - object.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.toObject(message.inputDataConfig, options); - if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) - object.trainingTaskDefinition = message.trainingTaskDefinition; - if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) - object.trainingTaskInputs = $root.google.protobuf.Value.toObject(message.trainingTaskInputs, options); - if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) - object.trainingTaskMetadata = $root.google.protobuf.Value.toObject(message.trainingTaskMetadata, options); - if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) - object.modelToUpload = $root.google.cloud.aiplatform.v1.Model.toObject(message.modelToUpload, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineState[message.state] : message.state; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.parentModel != null && message.hasOwnProperty("parentModel")) - object.parentModel = message.parentModel; - if (message.modelId != null && message.hasOwnProperty("modelId")) - object.modelId = message.modelId; return object; }; /** - * Converts this TrainingPipeline to JSON. + * Converts this GetPipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @instance * @returns {Object.} JSON object */ - TrainingPipeline.prototype.toJSON = function toJSON() { + GetPipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TrainingPipeline + * Gets the default type url for GetPipelineJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @memberof google.cloud.aiplatform.v1.GetPipelineJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TrainingPipeline.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetPipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.TrainingPipeline"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.GetPipelineJobRequest"; }; - return TrainingPipeline; + return GetPipelineJobRequest; })(); - v1.InputDataConfig = (function() { + v1.ListPipelineJobsRequest = (function() { /** - * Properties of an InputDataConfig. + * Properties of a ListPipelineJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IInputDataConfig - * @property {google.cloud.aiplatform.v1.IFractionSplit|null} [fractionSplit] InputDataConfig fractionSplit - * @property {google.cloud.aiplatform.v1.IFilterSplit|null} [filterSplit] InputDataConfig filterSplit - * @property {google.cloud.aiplatform.v1.IPredefinedSplit|null} [predefinedSplit] InputDataConfig predefinedSplit - * @property {google.cloud.aiplatform.v1.ITimestampSplit|null} [timestampSplit] InputDataConfig timestampSplit - * @property {google.cloud.aiplatform.v1.IStratifiedSplit|null} [stratifiedSplit] InputDataConfig stratifiedSplit - * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [gcsDestination] InputDataConfig gcsDestination - * @property {google.cloud.aiplatform.v1.IBigQueryDestination|null} [bigqueryDestination] InputDataConfig bigqueryDestination - * @property {string|null} [datasetId] InputDataConfig datasetId - * @property {string|null} [annotationsFilter] InputDataConfig annotationsFilter - * @property {string|null} [annotationSchemaUri] InputDataConfig annotationSchemaUri - * @property {string|null} [savedQueryId] InputDataConfig savedQueryId - * @property {boolean|null} [persistMlUseAssignment] InputDataConfig persistMlUseAssignment + * @interface IListPipelineJobsRequest + * @property {string|null} [parent] ListPipelineJobsRequest parent + * @property {string|null} [filter] ListPipelineJobsRequest filter + * @property {number|null} [pageSize] ListPipelineJobsRequest pageSize + * @property {string|null} [pageToken] ListPipelineJobsRequest pageToken + * @property {string|null} [orderBy] ListPipelineJobsRequest orderBy + * @property {google.protobuf.IFieldMask|null} [readMask] ListPipelineJobsRequest readMask */ /** - * Constructs a new InputDataConfig. + * Constructs a new ListPipelineJobsRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an InputDataConfig. - * @implements IInputDataConfig + * @classdesc Represents a ListPipelineJobsRequest. + * @implements IListPipelineJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1.IInputDataConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest=} [properties] Properties to set */ - function InputDataConfig(properties) { + function ListPipelineJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -126424,254 +131853,145 @@ } /** - * InputDataConfig fractionSplit. - * @member {google.cloud.aiplatform.v1.IFractionSplit|null|undefined} fractionSplit - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.fractionSplit = null; - - /** - * InputDataConfig filterSplit. - * @member {google.cloud.aiplatform.v1.IFilterSplit|null|undefined} filterSplit - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * ListPipelineJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - InputDataConfig.prototype.filterSplit = null; + ListPipelineJobsRequest.prototype.parent = ""; /** - * InputDataConfig predefinedSplit. - * @member {google.cloud.aiplatform.v1.IPredefinedSplit|null|undefined} predefinedSplit - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * ListPipelineJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - InputDataConfig.prototype.predefinedSplit = null; + ListPipelineJobsRequest.prototype.filter = ""; /** - * InputDataConfig timestampSplit. - * @member {google.cloud.aiplatform.v1.ITimestampSplit|null|undefined} timestampSplit - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * ListPipelineJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - InputDataConfig.prototype.timestampSplit = null; + ListPipelineJobsRequest.prototype.pageSize = 0; /** - * InputDataConfig stratifiedSplit. - * @member {google.cloud.aiplatform.v1.IStratifiedSplit|null|undefined} stratifiedSplit - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * ListPipelineJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - InputDataConfig.prototype.stratifiedSplit = null; + ListPipelineJobsRequest.prototype.pageToken = ""; /** - * InputDataConfig gcsDestination. - * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} gcsDestination - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * ListPipelineJobsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - InputDataConfig.prototype.gcsDestination = null; + ListPipelineJobsRequest.prototype.orderBy = ""; /** - * InputDataConfig bigqueryDestination. - * @member {google.cloud.aiplatform.v1.IBigQueryDestination|null|undefined} bigqueryDestination - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * ListPipelineJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance */ - InputDataConfig.prototype.bigqueryDestination = null; + ListPipelineJobsRequest.prototype.readMask = null; /** - * InputDataConfig datasetId. - * @member {string} datasetId - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance + * Creates a new ListPipelineJobsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest instance */ - InputDataConfig.prototype.datasetId = ""; + ListPipelineJobsRequest.create = function create(properties) { + return new ListPipelineJobsRequest(properties); + }; /** - * InputDataConfig annotationsFilter. - * @member {string} annotationsFilter - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance + * Encodes the specified ListPipelineJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - InputDataConfig.prototype.annotationsFilter = ""; + ListPipelineJobsRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; /** - * InputDataConfig annotationSchemaUri. - * @member {string} annotationSchemaUri - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.annotationSchemaUri = ""; - - /** - * InputDataConfig savedQueryId. - * @member {string} savedQueryId - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.savedQueryId = ""; - - /** - * InputDataConfig persistMlUseAssignment. - * @member {boolean} persistMlUseAssignment - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance - */ - InputDataConfig.prototype.persistMlUseAssignment = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * InputDataConfig split. - * @member {"fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"|undefined} split - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance - */ - Object.defineProperty(InputDataConfig.prototype, "split", { - get: $util.oneOfGetter($oneOfFields = ["fractionSplit", "filterSplit", "predefinedSplit", "timestampSplit", "stratifiedSplit"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * InputDataConfig destination. - * @member {"gcsDestination"|"bigqueryDestination"|undefined} destination - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @instance - */ - Object.defineProperty(InputDataConfig.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsDestination", "bigqueryDestination"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new InputDataConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @static - * @param {google.cloud.aiplatform.v1.IInputDataConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig instance - */ - InputDataConfig.create = function create(properties) { - return new InputDataConfig(properties); - }; - - /** - * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.InputDataConfig - * @static - * @param {google.cloud.aiplatform.v1.IInputDataConfig} message InputDataConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputDataConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); - if (message.fractionSplit != null && Object.hasOwnProperty.call(message, "fractionSplit")) - $root.google.cloud.aiplatform.v1.FractionSplit.encode(message.fractionSplit, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.filterSplit != null && Object.hasOwnProperty.call(message, "filterSplit")) - $root.google.cloud.aiplatform.v1.FilterSplit.encode(message.filterSplit, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.predefinedSplit != null && Object.hasOwnProperty.call(message, "predefinedSplit")) - $root.google.cloud.aiplatform.v1.PredefinedSplit.encode(message.predefinedSplit, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.timestampSplit != null && Object.hasOwnProperty.call(message, "timestampSplit")) - $root.google.cloud.aiplatform.v1.TimestampSplit.encode(message.timestampSplit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.annotationsFilter != null && Object.hasOwnProperty.call(message, "annotationsFilter")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.annotationsFilter); - if (message.savedQueryId != null && Object.hasOwnProperty.call(message, "savedQueryId")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.savedQueryId); - if (message.gcsDestination != null && Object.hasOwnProperty.call(message, "gcsDestination")) - $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.gcsDestination, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.annotationSchemaUri != null && Object.hasOwnProperty.call(message, "annotationSchemaUri")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.annotationSchemaUri); - if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) - $root.google.cloud.aiplatform.v1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.persistMlUseAssignment != null && Object.hasOwnProperty.call(message, "persistMlUseAssignment")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.persistMlUseAssignment); - if (message.stratifiedSplit != null && Object.hasOwnProperty.call(message, "stratifiedSplit")) - $root.google.cloud.aiplatform.v1.StratifiedSplit.encode(message.stratifiedSplit, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. + * Encodes the specified ListPipelineJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1.IInputDataConfig} message InputDataConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListPipelineJobsRequest} message ListPipelineJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - InputDataConfig.encodeDelimited = function encodeDelimited(message, writer) { + ListPipelineJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an InputDataConfig message from the specified reader or buffer. + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @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.InputDataConfig} InputDataConfig + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InputDataConfig.decode = function decode(reader, length) { + ListPipelineJobsRequest.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.InputDataConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } case 2: { - message.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.decode(reader, reader.uint32()); + message.filter = reader.string(); break; } case 3: { - message.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; } case 4: { - message.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.decode(reader, reader.uint32()); - break; - } - case 5: { - message.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.decode(reader, reader.uint32()); - break; - } - case 12: { - message.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.decode(reader, reader.uint32()); - break; - } - case 8: { - message.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); - break; - } - case 10: { - message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.decode(reader, reader.uint32()); - break; - } - case 1: { - message.datasetId = reader.string(); + message.pageToken = reader.string(); break; } case 6: { - message.annotationsFilter = reader.string(); - break; - } - case 9: { - message.annotationSchemaUri = reader.string(); + message.orderBy = reader.string(); break; } case 7: { - message.savedQueryId = reader.string(); - break; - } - case 11: { - message.persistMlUseAssignment = reader.bool(); + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -126683,294 +132003,170 @@ }; /** - * Decodes an InputDataConfig message from the specified reader or buffer, length delimited. + * Decodes a ListPipelineJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - InputDataConfig.decodeDelimited = function decodeDelimited(reader) { + ListPipelineJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an InputDataConfig message. + * Verifies a ListPipelineJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - InputDataConfig.verify = function verify(message) { + ListPipelineJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1.FractionSplit.verify(message.fractionSplit); - if (error) - return "fractionSplit." + error; - } - } - if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1.FilterSplit.verify(message.filterSplit); - if (error) - return "filterSplit." + error; - } - } - if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1.PredefinedSplit.verify(message.predefinedSplit); - if (error) - return "predefinedSplit." + error; - } - } - if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1.TimestampSplit.verify(message.timestampSplit); - if (error) - return "timestampSplit." + error; - } - } - if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { - if (properties.split === 1) - return "split: multiple values"; - properties.split = 1; - { - var error = $root.google.cloud.aiplatform.v1.StratifiedSplit.verify(message.stratifiedSplit); - if (error) - return "stratifiedSplit." + error; - } - } - if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.gcsDestination); - if (error) - return "gcsDestination." + error; - } - } - if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { - if (properties.destination === 1) - return "destination: multiple values"; - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1.BigQueryDestination.verify(message.bigqueryDestination); - if (error) - return "bigqueryDestination." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; } - if (message.datasetId != null && message.hasOwnProperty("datasetId")) - if (!$util.isString(message.datasetId)) - return "datasetId: string expected"; - if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) - if (!$util.isString(message.annotationsFilter)) - return "annotationsFilter: string expected"; - if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) - if (!$util.isString(message.annotationSchemaUri)) - return "annotationSchemaUri: string expected"; - if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) - if (!$util.isString(message.savedQueryId)) - return "savedQueryId: string expected"; - if (message.persistMlUseAssignment != null && message.hasOwnProperty("persistMlUseAssignment")) - if (typeof message.persistMlUseAssignment !== "boolean") - return "persistMlUseAssignment: boolean expected"; return null; }; /** - * Creates an InputDataConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListPipelineJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsRequest} ListPipelineJobsRequest */ - InputDataConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.InputDataConfig) + ListPipelineJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.InputDataConfig(); - if (object.fractionSplit != null) { - if (typeof object.fractionSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.fractionSplit: object expected"); - message.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.fromObject(object.fractionSplit); - } - if (object.filterSplit != null) { - if (typeof object.filterSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.filterSplit: object expected"); - message.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.fromObject(object.filterSplit); - } - if (object.predefinedSplit != null) { - if (typeof object.predefinedSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.predefinedSplit: object expected"); - message.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.fromObject(object.predefinedSplit); - } - if (object.timestampSplit != null) { - if (typeof object.timestampSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.timestampSplit: object expected"); - message.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.fromObject(object.timestampSplit); - } - if (object.stratifiedSplit != null) { - if (typeof object.stratifiedSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.stratifiedSplit: object expected"); - message.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.fromObject(object.stratifiedSplit); - } - if (object.gcsDestination != null) { - if (typeof object.gcsDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.gcsDestination: object expected"); - message.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.gcsDestination); - } - if (object.bigqueryDestination != null) { - if (typeof object.bigqueryDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.bigqueryDestination: object expected"); - message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.fromObject(object.bigqueryDestination); + var message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } - if (object.datasetId != null) - message.datasetId = String(object.datasetId); - if (object.annotationsFilter != null) - message.annotationsFilter = String(object.annotationsFilter); - if (object.annotationSchemaUri != null) - message.annotationSchemaUri = String(object.annotationSchemaUri); - if (object.savedQueryId != null) - message.savedQueryId = String(object.savedQueryId); - if (object.persistMlUseAssignment != null) - message.persistMlUseAssignment = Boolean(object.persistMlUseAssignment); return message; }; /** - * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. + * Creates a plain object from a ListPipelineJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static - * @param {google.cloud.aiplatform.v1.InputDataConfig} message InputDataConfig + * @param {google.cloud.aiplatform.v1.ListPipelineJobsRequest} message ListPipelineJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - InputDataConfig.toObject = function toObject(message, options) { + ListPipelineJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.datasetId = ""; - object.annotationsFilter = ""; - object.savedQueryId = ""; - object.annotationSchemaUri = ""; - object.persistMlUseAssignment = false; - } - if (message.datasetId != null && message.hasOwnProperty("datasetId")) - object.datasetId = message.datasetId; - if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { - object.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.toObject(message.fractionSplit, options); - if (options.oneofs) - object.split = "fractionSplit"; - } - if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { - object.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.toObject(message.filterSplit, options); - if (options.oneofs) - object.split = "filterSplit"; - } - if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { - object.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.toObject(message.predefinedSplit, options); - if (options.oneofs) - object.split = "predefinedSplit"; - } - if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { - object.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.toObject(message.timestampSplit, options); - if (options.oneofs) - object.split = "timestampSplit"; - } - if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) - object.annotationsFilter = message.annotationsFilter; - if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) - object.savedQueryId = message.savedQueryId; - if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { - object.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.gcsDestination, options); - if (options.oneofs) - object.destination = "gcsDestination"; - } - if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) - object.annotationSchemaUri = message.annotationSchemaUri; - if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { - object.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.toObject(message.bigqueryDestination, options); - if (options.oneofs) - object.destination = "bigqueryDestination"; - } - if (message.persistMlUseAssignment != null && message.hasOwnProperty("persistMlUseAssignment")) - object.persistMlUseAssignment = message.persistMlUseAssignment; - if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { - object.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.toObject(message.stratifiedSplit, options); - if (options.oneofs) - object.split = "stratifiedSplit"; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.orderBy = ""; + object.readMask = null; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this InputDataConfig to JSON. + * Converts this ListPipelineJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @instance * @returns {Object.} JSON object */ - InputDataConfig.prototype.toJSON = function toJSON() { + ListPipelineJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for InputDataConfig + * Gets the default type url for ListPipelineJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - InputDataConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPipelineJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.InputDataConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListPipelineJobsRequest"; }; - return InputDataConfig; + return ListPipelineJobsRequest; })(); - v1.FractionSplit = (function() { + v1.ListPipelineJobsResponse = (function() { /** - * Properties of a FractionSplit. + * Properties of a ListPipelineJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IFractionSplit - * @property {number|null} [trainingFraction] FractionSplit trainingFraction - * @property {number|null} [validationFraction] FractionSplit validationFraction - * @property {number|null} [testFraction] FractionSplit testFraction + * @interface IListPipelineJobsResponse + * @property {Array.|null} [pipelineJobs] ListPipelineJobsResponse pipelineJobs + * @property {string|null} [nextPageToken] ListPipelineJobsResponse nextPageToken */ /** - * Constructs a new FractionSplit. + * Constructs a new ListPipelineJobsResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a FractionSplit. - * @implements IFractionSplit + * @classdesc Represents a ListPipelineJobsResponse. + * @implements IListPipelineJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1.IFractionSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse=} [properties] Properties to set */ - function FractionSplit(properties) { + function ListPipelineJobsResponse(properties) { + this.pipelineJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -126978,103 +132174,92 @@ } /** - * FractionSplit trainingFraction. - * @member {number} trainingFraction - * @memberof google.cloud.aiplatform.v1.FractionSplit - * @instance - */ - FractionSplit.prototype.trainingFraction = 0; - - /** - * FractionSplit validationFraction. - * @member {number} validationFraction - * @memberof google.cloud.aiplatform.v1.FractionSplit + * ListPipelineJobsResponse pipelineJobs. + * @member {Array.} pipelineJobs + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @instance */ - FractionSplit.prototype.validationFraction = 0; + ListPipelineJobsResponse.prototype.pipelineJobs = $util.emptyArray; /** - * FractionSplit testFraction. - * @member {number} testFraction - * @memberof google.cloud.aiplatform.v1.FractionSplit + * ListPipelineJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @instance */ - FractionSplit.prototype.testFraction = 0; + ListPipelineJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new FractionSplit instance using the specified properties. + * Creates a new ListPipelineJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IFractionSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit instance + * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse instance */ - FractionSplit.create = function create(properties) { - return new FractionSplit(properties); + ListPipelineJobsResponse.create = function create(properties) { + return new ListPipelineJobsResponse(properties); }; /** - * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. + * Encodes the specified ListPipelineJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IFractionSplit} message FractionSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FractionSplit.encode = function encode(message, writer) { + ListPipelineJobsResponse.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); + if (message.pipelineJobs != null && message.pipelineJobs.length) + for (var i = 0; i < message.pipelineJobs.length; ++i) + $root.google.cloud.aiplatform.v1.PipelineJob.encode(message.pipelineJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. + * Encodes the specified ListPipelineJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListPipelineJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1.IFractionSplit} message FractionSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListPipelineJobsResponse} message ListPipelineJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FractionSplit.encodeDelimited = function encodeDelimited(message, writer) { + ListPipelineJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FractionSplit message from the specified reader or buffer. + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @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.FractionSplit} FractionSplit + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FractionSplit.decode = function decode(reader, length) { + ListPipelineJobsResponse.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.FractionSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.trainingFraction = reader.double(); + if (!(message.pipelineJobs && message.pipelineJobs.length)) + message.pipelineJobs = []; + message.pipelineJobs.push($root.google.cloud.aiplatform.v1.PipelineJob.decode(reader, reader.uint32())); break; } case 2: { - message.validationFraction = reader.double(); - break; - } - case 3: { - message.testFraction = reader.double(); + message.nextPageToken = reader.string(); break; } default: @@ -127086,141 +132271,148 @@ }; /** - * Decodes a FractionSplit message from the specified reader or buffer, length delimited. + * Decodes a ListPipelineJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FractionSplit.decodeDelimited = function decodeDelimited(reader) { + ListPipelineJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FractionSplit message. + * Verifies a ListPipelineJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FractionSplit.verify = function verify(message) { + ListPipelineJobsResponse.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"; + if (message.pipelineJobs != null && message.hasOwnProperty("pipelineJobs")) { + if (!Array.isArray(message.pipelineJobs)) + return "pipelineJobs: array expected"; + for (var i = 0; i < message.pipelineJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.PipelineJob.verify(message.pipelineJobs[i]); + if (error) + return "pipelineJobs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a FractionSplit message from a plain object. Also converts values to their respective internal types. + * Creates a ListPipelineJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit + * @returns {google.cloud.aiplatform.v1.ListPipelineJobsResponse} ListPipelineJobsResponse */ - FractionSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.FractionSplit) + ListPipelineJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.FractionSplit(); - 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); + var message = new $root.google.cloud.aiplatform.v1.ListPipelineJobsResponse(); + if (object.pipelineJobs) { + if (!Array.isArray(object.pipelineJobs)) + throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsResponse.pipelineJobs: array expected"); + message.pipelineJobs = []; + for (var i = 0; i < object.pipelineJobs.length; ++i) { + if (typeof object.pipelineJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListPipelineJobsResponse.pipelineJobs: object expected"); + message.pipelineJobs[i] = $root.google.cloud.aiplatform.v1.PipelineJob.fromObject(object.pipelineJobs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a FractionSplit message. Also converts values to other types if specified. + * Creates a plain object from a ListPipelineJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static - * @param {google.cloud.aiplatform.v1.FractionSplit} message FractionSplit + * @param {google.cloud.aiplatform.v1.ListPipelineJobsResponse} message ListPipelineJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FractionSplit.toObject = function toObject(message, options) { + ListPipelineJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.trainingFraction = 0; - object.validationFraction = 0; - object.testFraction = 0; + if (options.arrays || options.defaults) + object.pipelineJobs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.pipelineJobs && message.pipelineJobs.length) { + object.pipelineJobs = []; + for (var j = 0; j < message.pipelineJobs.length; ++j) + object.pipelineJobs[j] = $root.google.cloud.aiplatform.v1.PipelineJob.toObject(message.pipelineJobs[j], options); } - 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; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this FractionSplit to JSON. + * Converts this ListPipelineJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @instance * @returns {Object.} JSON object */ - FractionSplit.prototype.toJSON = function toJSON() { + ListPipelineJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FractionSplit + * Gets the default type url for ListPipelineJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.FractionSplit + * @memberof google.cloud.aiplatform.v1.ListPipelineJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FractionSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListPipelineJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.FractionSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ListPipelineJobsResponse"; }; - return FractionSplit; + return ListPipelineJobsResponse; })(); - v1.FilterSplit = (function() { + v1.DeletePipelineJobRequest = (function() { /** - * Properties of a FilterSplit. + * Properties of a DeletePipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IFilterSplit - * @property {string|null} [trainingFilter] FilterSplit trainingFilter - * @property {string|null} [validationFilter] FilterSplit validationFilter - * @property {string|null} [testFilter] FilterSplit testFilter + * @interface IDeletePipelineJobRequest + * @property {string|null} [name] DeletePipelineJobRequest name */ /** - * Constructs a new FilterSplit. + * Constructs a new DeletePipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a FilterSplit. - * @implements IFilterSplit + * @classdesc Represents a DeletePipelineJobRequest. + * @implements IDeletePipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IFilterSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest=} [properties] Properties to set */ - function FilterSplit(properties) { + function DeletePipelineJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -127228,103 +132420,75 @@ } /** - * FilterSplit trainingFilter. - * @member {string} trainingFilter - * @memberof google.cloud.aiplatform.v1.FilterSplit - * @instance - */ - FilterSplit.prototype.trainingFilter = ""; - - /** - * FilterSplit validationFilter. - * @member {string} validationFilter - * @memberof google.cloud.aiplatform.v1.FilterSplit - * @instance - */ - FilterSplit.prototype.validationFilter = ""; - - /** - * FilterSplit testFilter. - * @member {string} testFilter - * @memberof google.cloud.aiplatform.v1.FilterSplit + * DeletePipelineJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @instance */ - FilterSplit.prototype.testFilter = ""; + DeletePipelineJobRequest.prototype.name = ""; /** - * Creates a new FilterSplit instance using the specified properties. + * Creates a new DeletePipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IFilterSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit instance + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest instance */ - FilterSplit.create = function create(properties) { - return new FilterSplit(properties); + DeletePipelineJobRequest.create = function create(properties) { + return new DeletePipelineJobRequest(properties); }; /** - * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. + * Encodes the specified DeletePipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IFilterSplit} message FilterSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilterSplit.encode = function encode(message, writer) { + DeletePipelineJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingFilter != null && Object.hasOwnProperty.call(message, "trainingFilter")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.trainingFilter); - if (message.validationFilter != null && Object.hasOwnProperty.call(message, "validationFilter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.validationFilter); - if (message.testFilter != null && Object.hasOwnProperty.call(message, "testFilter")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.testFilter); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. + * Encodes the specified DeletePipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeletePipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IFilterSplit} message FilterSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IDeletePipelineJobRequest} message DeletePipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FilterSplit.encodeDelimited = function encodeDelimited(message, writer) { + DeletePipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FilterSplit message from the specified reader or buffer. + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @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.FilterSplit} FilterSplit + * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FilterSplit.decode = function decode(reader, length) { + DeletePipelineJobRequest.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.FilterSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.trainingFilter = reader.string(); - break; - } - case 2: { - message.validationFilter = reader.string(); - break; - } - case 3: { - message.testFilter = reader.string(); + message.name = reader.string(); break; } default: @@ -127336,139 +132500,122 @@ }; /** - * Decodes a FilterSplit message from the specified reader or buffer, length delimited. + * Decodes a DeletePipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit + * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FilterSplit.decodeDelimited = function decodeDelimited(reader) { + DeletePipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FilterSplit message. + * Verifies a DeletePipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FilterSplit.verify = function verify(message) { + DeletePipelineJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) - if (!$util.isString(message.trainingFilter)) - return "trainingFilter: string expected"; - if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) - if (!$util.isString(message.validationFilter)) - return "validationFilter: string expected"; - if (message.testFilter != null && message.hasOwnProperty("testFilter")) - if (!$util.isString(message.testFilter)) - return "testFilter: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a FilterSplit message from a plain object. Also converts values to their respective internal types. + * Creates a DeletePipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit + * @returns {google.cloud.aiplatform.v1.DeletePipelineJobRequest} DeletePipelineJobRequest */ - FilterSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.FilterSplit) + DeletePipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.FilterSplit(); - if (object.trainingFilter != null) - message.trainingFilter = String(object.trainingFilter); - if (object.validationFilter != null) - message.validationFilter = String(object.validationFilter); - if (object.testFilter != null) - message.testFilter = String(object.testFilter); + var message = new $root.google.cloud.aiplatform.v1.DeletePipelineJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. + * Creates a plain object from a DeletePipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.FilterSplit} message FilterSplit + * @param {google.cloud.aiplatform.v1.DeletePipelineJobRequest} message DeletePipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FilterSplit.toObject = function toObject(message, options) { + DeletePipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.trainingFilter = ""; - object.validationFilter = ""; - object.testFilter = ""; - } - if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) - object.trainingFilter = message.trainingFilter; - if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) - object.validationFilter = message.validationFilter; - if (message.testFilter != null && message.hasOwnProperty("testFilter")) - object.testFilter = message.testFilter; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this FilterSplit to JSON. + * Converts this DeletePipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @instance * @returns {Object.} JSON object */ - FilterSplit.prototype.toJSON = function toJSON() { + DeletePipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for FilterSplit + * Gets the default type url for DeletePipelineJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.FilterSplit + * @memberof google.cloud.aiplatform.v1.DeletePipelineJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - FilterSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeletePipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.FilterSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.DeletePipelineJobRequest"; }; - return FilterSplit; + return DeletePipelineJobRequest; })(); - v1.PredefinedSplit = (function() { + v1.CancelPipelineJobRequest = (function() { /** - * Properties of a PredefinedSplit. + * Properties of a CancelPipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IPredefinedSplit - * @property {string|null} [key] PredefinedSplit key + * @interface ICancelPipelineJobRequest + * @property {string|null} [name] CancelPipelineJobRequest name */ /** - * Constructs a new PredefinedSplit. + * Constructs a new CancelPipelineJobRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PredefinedSplit. - * @implements IPredefinedSplit + * @classdesc Represents a CancelPipelineJobRequest. + * @implements ICancelPipelineJobRequest * @constructor - * @param {google.cloud.aiplatform.v1.IPredefinedSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest=} [properties] Properties to set */ - function PredefinedSplit(properties) { + function CancelPipelineJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -127476,75 +132623,75 @@ } /** - * PredefinedSplit key. - * @member {string} key - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * CancelPipelineJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @instance */ - PredefinedSplit.prototype.key = ""; + CancelPipelineJobRequest.prototype.name = ""; /** - * Creates a new PredefinedSplit instance using the specified properties. + * Creates a new CancelPipelineJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IPredefinedSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit instance + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest instance */ - PredefinedSplit.create = function create(properties) { - return new PredefinedSplit(properties); + CancelPipelineJobRequest.create = function create(properties) { + return new CancelPipelineJobRequest(properties); }; /** - * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. + * Encodes the specified CancelPipelineJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IPredefinedSplit} message PredefinedSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredefinedSplit.encode = function encode(message, writer) { + CancelPipelineJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. + * Encodes the specified CancelPipelineJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.CancelPipelineJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.IPredefinedSplit} message PredefinedSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.ICancelPipelineJobRequest} message CancelPipelineJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredefinedSplit.encodeDelimited = function encodeDelimited(message, writer) { + CancelPipelineJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PredefinedSplit message from the specified reader or buffer. + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @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.PredefinedSplit} PredefinedSplit + * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredefinedSplit.decode = function decode(reader, length) { + CancelPipelineJobRequest.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.PredefinedSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.key = reader.string(); + message.name = reader.string(); break; } default: @@ -127556,125 +132703,139 @@ }; /** - * Decodes a PredefinedSplit message from the specified reader or buffer, length delimited. + * Decodes a CancelPipelineJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit + * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredefinedSplit.decodeDelimited = function decodeDelimited(reader) { + CancelPipelineJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PredefinedSplit message. + * Verifies a CancelPipelineJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PredefinedSplit.verify = function verify(message) { + CancelPipelineJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a PredefinedSplit message from a plain object. Also converts values to their respective internal types. + * Creates a CancelPipelineJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit + * @returns {google.cloud.aiplatform.v1.CancelPipelineJobRequest} CancelPipelineJobRequest */ - PredefinedSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PredefinedSplit) + CancelPipelineJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.PredefinedSplit(); - if (object.key != null) - message.key = String(object.key); + var message = new $root.google.cloud.aiplatform.v1.CancelPipelineJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a PredefinedSplit message. Also converts values to other types if specified. + * Creates a plain object from a CancelPipelineJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static - * @param {google.cloud.aiplatform.v1.PredefinedSplit} message PredefinedSplit + * @param {google.cloud.aiplatform.v1.CancelPipelineJobRequest} message CancelPipelineJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PredefinedSplit.toObject = function toObject(message, options) { + CancelPipelineJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.key = ""; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this PredefinedSplit to JSON. + * Converts this CancelPipelineJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @instance * @returns {Object.} JSON object */ - PredefinedSplit.prototype.toJSON = function toJSON() { + CancelPipelineJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PredefinedSplit + * Gets the default type url for CancelPipelineJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PredefinedSplit + * @memberof google.cloud.aiplatform.v1.CancelPipelineJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PredefinedSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelPipelineJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredefinedSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.CancelPipelineJobRequest"; }; - return PredefinedSplit; + return CancelPipelineJobRequest; })(); - v1.TimestampSplit = (function() { + v1.TrainingPipeline = (function() { /** - * Properties of a TimestampSplit. + * Properties of a TrainingPipeline. * @memberof google.cloud.aiplatform.v1 - * @interface ITimestampSplit - * @property {number|null} [trainingFraction] TimestampSplit trainingFraction - * @property {number|null} [validationFraction] TimestampSplit validationFraction - * @property {number|null} [testFraction] TimestampSplit testFraction - * @property {string|null} [key] TimestampSplit key + * @interface ITrainingPipeline + * @property {string|null} [name] TrainingPipeline name + * @property {string|null} [displayName] TrainingPipeline displayName + * @property {google.cloud.aiplatform.v1.IInputDataConfig|null} [inputDataConfig] TrainingPipeline inputDataConfig + * @property {string|null} [trainingTaskDefinition] TrainingPipeline trainingTaskDefinition + * @property {google.protobuf.IValue|null} [trainingTaskInputs] TrainingPipeline trainingTaskInputs + * @property {google.protobuf.IValue|null} [trainingTaskMetadata] TrainingPipeline trainingTaskMetadata + * @property {google.cloud.aiplatform.v1.IModel|null} [modelToUpload] TrainingPipeline modelToUpload + * @property {string|null} [modelId] TrainingPipeline modelId + * @property {string|null} [parentModel] TrainingPipeline parentModel + * @property {google.cloud.aiplatform.v1.PipelineState|null} [state] TrainingPipeline state + * @property {google.rpc.IStatus|null} [error] TrainingPipeline error + * @property {google.protobuf.ITimestamp|null} [createTime] TrainingPipeline createTime + * @property {google.protobuf.ITimestamp|null} [startTime] TrainingPipeline startTime + * @property {google.protobuf.ITimestamp|null} [endTime] TrainingPipeline endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] TrainingPipeline updateTime + * @property {Object.|null} [labels] TrainingPipeline labels + * @property {google.cloud.aiplatform.v1.IEncryptionSpec|null} [encryptionSpec] TrainingPipeline encryptionSpec */ /** - * Constructs a new TimestampSplit. + * Constructs a new TrainingPipeline. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a TimestampSplit. - * @implements ITimestampSplit + * @classdesc Represents a TrainingPipeline. + * @implements ITrainingPipeline * @constructor - * @param {google.cloud.aiplatform.v1.ITimestampSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ITrainingPipeline=} [properties] Properties to set */ - function TimestampSplit(properties) { + function TrainingPipeline(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -127682,117 +132843,319 @@ } /** - * TimestampSplit trainingFraction. - * @member {number} trainingFraction - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * TrainingPipeline name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance */ - TimestampSplit.prototype.trainingFraction = 0; + TrainingPipeline.prototype.name = ""; /** - * TimestampSplit validationFraction. - * @member {number} validationFraction - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * TrainingPipeline displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance */ - TimestampSplit.prototype.validationFraction = 0; + TrainingPipeline.prototype.displayName = ""; /** - * TimestampSplit testFraction. - * @member {number} testFraction - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * TrainingPipeline inputDataConfig. + * @member {google.cloud.aiplatform.v1.IInputDataConfig|null|undefined} inputDataConfig + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance */ - TimestampSplit.prototype.testFraction = 0; + TrainingPipeline.prototype.inputDataConfig = null; /** - * TimestampSplit key. - * @member {string} key - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * TrainingPipeline trainingTaskDefinition. + * @member {string} trainingTaskDefinition + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance */ - TimestampSplit.prototype.key = ""; + TrainingPipeline.prototype.trainingTaskDefinition = ""; /** - * Creates a new TimestampSplit instance using the specified properties. + * TrainingPipeline trainingTaskInputs. + * @member {google.protobuf.IValue|null|undefined} trainingTaskInputs + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.trainingTaskInputs = null; + + /** + * TrainingPipeline trainingTaskMetadata. + * @member {google.protobuf.IValue|null|undefined} trainingTaskMetadata + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.trainingTaskMetadata = null; + + /** + * TrainingPipeline modelToUpload. + * @member {google.cloud.aiplatform.v1.IModel|null|undefined} modelToUpload + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.modelToUpload = null; + + /** + * TrainingPipeline modelId. + * @member {string} modelId + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.modelId = ""; + + /** + * TrainingPipeline parentModel. + * @member {string} parentModel + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.parentModel = ""; + + /** + * TrainingPipeline state. + * @member {google.cloud.aiplatform.v1.PipelineState} state + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.state = 0; + + /** + * TrainingPipeline error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.error = null; + + /** + * TrainingPipeline createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.createTime = null; + + /** + * TrainingPipeline startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.startTime = null; + + /** + * TrainingPipeline endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.endTime = null; + + /** + * TrainingPipeline updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.updateTime = null; + + /** + * TrainingPipeline labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.labels = $util.emptyObject; + + /** + * TrainingPipeline encryptionSpec. + * @member {google.cloud.aiplatform.v1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.encryptionSpec = null; + + /** + * Creates a new TrainingPipeline instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1.ITimestampSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit instance + * @param {google.cloud.aiplatform.v1.ITrainingPipeline=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline instance */ - TimestampSplit.create = function create(properties) { - return new TimestampSplit(properties); + TrainingPipeline.create = function create(properties) { + return new TrainingPipeline(properties); }; /** - * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. + * Encodes the specified TrainingPipeline message. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1.ITimestampSplit} message TimestampSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.ITrainingPipeline} message TrainingPipeline message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampSplit.encode = function encode(message, writer) { + TrainingPipeline.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); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.inputDataConfig != null && Object.hasOwnProperty.call(message, "inputDataConfig")) + $root.google.cloud.aiplatform.v1.InputDataConfig.encode(message.inputDataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainingTaskDefinition != null && Object.hasOwnProperty.call(message, "trainingTaskDefinition")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trainingTaskDefinition); + if (message.trainingTaskInputs != null && Object.hasOwnProperty.call(message, "trainingTaskInputs")) + $root.google.protobuf.Value.encode(message.trainingTaskInputs, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.trainingTaskMetadata != null && Object.hasOwnProperty.call(message, "trainingTaskMetadata")) + $root.google.protobuf.Value.encode(message.trainingTaskMetadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.modelToUpload != null && Object.hasOwnProperty.call(message, "modelToUpload")) + $root.google.cloud.aiplatform.v1.Model.encode(message.modelToUpload, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.state); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) + writer.uint32(/* id 21, wireType 2 =*/170).string(message.parentModel); + if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) + writer.uint32(/* id 22, wireType 2 =*/178).string(message.modelId); return writer; }; /** - * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. + * Encodes the specified TrainingPipeline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TrainingPipeline.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1.ITimestampSplit} message TimestampSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.ITrainingPipeline} message TrainingPipeline message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimestampSplit.encodeDelimited = function encodeDelimited(message, writer) { + TrainingPipeline.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TimestampSplit message from the specified reader or buffer. + * Decodes a TrainingPipeline message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @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.TimestampSplit} TimestampSplit + * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampSplit.decode = function decode(reader, length) { + TrainingPipeline.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.TimestampSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.TrainingPipeline(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.trainingFraction = reader.double(); + message.name = reader.string(); break; } case 2: { - message.validationFraction = reader.double(); + message.displayName = reader.string(); break; } case 3: { - message.testFraction = reader.double(); + message.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.decode(reader, reader.uint32()); break; } case 4: { - message.key = reader.string(); + message.trainingTaskDefinition = reader.string(); + break; + } + case 5: { + message.trainingTaskInputs = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 6: { + message.trainingTaskMetadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 7: { + message.modelToUpload = $root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32()); + break; + } + case 22: { + message.modelId = reader.string(); + break; + } + case 21: { + message.parentModel = reader.string(); + break; + } + case 9: { + message.state = reader.int32(); + break; + } + case 10: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 11: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 12: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 13: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 14: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 15: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 18: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.decode(reader, reader.uint32()); break; } default: @@ -127804,150 +133167,381 @@ }; /** - * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. + * Decodes a TrainingPipeline message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit + * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimestampSplit.decodeDelimited = function decodeDelimited(reader) { + TrainingPipeline.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TimestampSplit message. + * Verifies a TrainingPipeline message. * @function verify - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimestampSplit.verify = function verify(message) { + TrainingPipeline.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"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) { + var error = $root.google.cloud.aiplatform.v1.InputDataConfig.verify(message.inputDataConfig); + if (error) + return "inputDataConfig." + error; + } + if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) + if (!$util.isString(message.trainingTaskDefinition)) + return "trainingTaskDefinition: string expected"; + if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) { + var error = $root.google.protobuf.Value.verify(message.trainingTaskInputs); + if (error) + return "trainingTaskInputs." + error; + } + if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) { + var error = $root.google.protobuf.Value.verify(message.trainingTaskMetadata); + if (error) + return "trainingTaskMetadata." + error; + } + if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) { + var error = $root.google.cloud.aiplatform.v1.Model.verify(message.modelToUpload); + if (error) + return "modelToUpload." + error; + } + if (message.modelId != null && message.hasOwnProperty("modelId")) + if (!$util.isString(message.modelId)) + return "modelId: string expected"; + if (message.parentModel != null && message.hasOwnProperty("parentModel")) + if (!$util.isString(message.parentModel)) + return "parentModel: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } return null; }; /** - * Creates a TimestampSplit message from a plain object. Also converts values to their respective internal types. + * Creates a TrainingPipeline message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit + * @returns {google.cloud.aiplatform.v1.TrainingPipeline} TrainingPipeline */ - TimestampSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.TimestampSplit) + TrainingPipeline.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.TrainingPipeline) return object; - var message = new $root.google.cloud.aiplatform.v1.TimestampSplit(); - 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); - if (object.key != null) - message.key = String(object.key); + var message = new $root.google.cloud.aiplatform.v1.TrainingPipeline(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.inputDataConfig != null) { + if (typeof object.inputDataConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.inputDataConfig: object expected"); + message.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.fromObject(object.inputDataConfig); + } + if (object.trainingTaskDefinition != null) + message.trainingTaskDefinition = String(object.trainingTaskDefinition); + if (object.trainingTaskInputs != null) { + if (typeof object.trainingTaskInputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.trainingTaskInputs: object expected"); + message.trainingTaskInputs = $root.google.protobuf.Value.fromObject(object.trainingTaskInputs); + } + if (object.trainingTaskMetadata != null) { + if (typeof object.trainingTaskMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.trainingTaskMetadata: object expected"); + message.trainingTaskMetadata = $root.google.protobuf.Value.fromObject(object.trainingTaskMetadata); + } + if (object.modelToUpload != null) { + if (typeof object.modelToUpload !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.modelToUpload: object expected"); + message.modelToUpload = $root.google.cloud.aiplatform.v1.Model.fromObject(object.modelToUpload); + } + if (object.modelId != null) + message.modelId = String(object.modelId); + if (object.parentModel != null) + message.parentModel = String(object.parentModel); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "PIPELINE_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "PIPELINE_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "PIPELINE_STATE_PENDING": + case 2: + message.state = 2; + break; + case "PIPELINE_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "PIPELINE_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "PIPELINE_STATE_FAILED": + case 5: + message.state = 5; + break; + case "PIPELINE_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "PIPELINE_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "PIPELINE_STATE_PAUSED": + case 8: + message.state = 8; + break; + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.fromObject(object.encryptionSpec); + } return message; }; /** - * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. + * Creates a plain object from a TrainingPipeline message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static - * @param {google.cloud.aiplatform.v1.TimestampSplit} message TimestampSplit + * @param {google.cloud.aiplatform.v1.TrainingPipeline} message TrainingPipeline * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimestampSplit.toObject = function toObject(message, options) { + TrainingPipeline.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { - object.trainingFraction = 0; - object.validationFraction = 0; - object.testFraction = 0; - object.key = ""; + object.name = ""; + object.displayName = ""; + object.inputDataConfig = null; + object.trainingTaskDefinition = ""; + object.trainingTaskInputs = null; + object.trainingTaskMetadata = null; + object.modelToUpload = null; + object.state = options.enums === String ? "PIPELINE_STATE_UNSPECIFIED" : 0; + object.error = null; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.updateTime = null; + object.encryptionSpec = null; + object.parentModel = ""; + object.modelId = ""; } - 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; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.inputDataConfig != null && message.hasOwnProperty("inputDataConfig")) + object.inputDataConfig = $root.google.cloud.aiplatform.v1.InputDataConfig.toObject(message.inputDataConfig, options); + if (message.trainingTaskDefinition != null && message.hasOwnProperty("trainingTaskDefinition")) + object.trainingTaskDefinition = message.trainingTaskDefinition; + if (message.trainingTaskInputs != null && message.hasOwnProperty("trainingTaskInputs")) + object.trainingTaskInputs = $root.google.protobuf.Value.toObject(message.trainingTaskInputs, options); + if (message.trainingTaskMetadata != null && message.hasOwnProperty("trainingTaskMetadata")) + object.trainingTaskMetadata = $root.google.protobuf.Value.toObject(message.trainingTaskMetadata, options); + if (message.modelToUpload != null && message.hasOwnProperty("modelToUpload")) + object.modelToUpload = $root.google.cloud.aiplatform.v1.Model.toObject(message.modelToUpload, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1.PipelineState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1.PipelineState[message.state] : message.state; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.parentModel != null && message.hasOwnProperty("parentModel")) + object.parentModel = message.parentModel; + if (message.modelId != null && message.hasOwnProperty("modelId")) + object.modelId = message.modelId; return object; }; /** - * Converts this TimestampSplit to JSON. + * Converts this TrainingPipeline to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @instance * @returns {Object.} JSON object */ - TimestampSplit.prototype.toJSON = function toJSON() { + TrainingPipeline.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for TimestampSplit + * Gets the default type url for TrainingPipeline * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @memberof google.cloud.aiplatform.v1.TrainingPipeline * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - TimestampSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + TrainingPipeline.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.TimestampSplit"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.TrainingPipeline"; }; - return TimestampSplit; + return TrainingPipeline; })(); - v1.StratifiedSplit = (function() { + v1.InputDataConfig = (function() { /** - * Properties of a StratifiedSplit. + * Properties of an InputDataConfig. * @memberof google.cloud.aiplatform.v1 - * @interface IStratifiedSplit - * @property {number|null} [trainingFraction] StratifiedSplit trainingFraction - * @property {number|null} [validationFraction] StratifiedSplit validationFraction - * @property {number|null} [testFraction] StratifiedSplit testFraction - * @property {string|null} [key] StratifiedSplit key + * @interface IInputDataConfig + * @property {google.cloud.aiplatform.v1.IFractionSplit|null} [fractionSplit] InputDataConfig fractionSplit + * @property {google.cloud.aiplatform.v1.IFilterSplit|null} [filterSplit] InputDataConfig filterSplit + * @property {google.cloud.aiplatform.v1.IPredefinedSplit|null} [predefinedSplit] InputDataConfig predefinedSplit + * @property {google.cloud.aiplatform.v1.ITimestampSplit|null} [timestampSplit] InputDataConfig timestampSplit + * @property {google.cloud.aiplatform.v1.IStratifiedSplit|null} [stratifiedSplit] InputDataConfig stratifiedSplit + * @property {google.cloud.aiplatform.v1.IGcsDestination|null} [gcsDestination] InputDataConfig gcsDestination + * @property {google.cloud.aiplatform.v1.IBigQueryDestination|null} [bigqueryDestination] InputDataConfig bigqueryDestination + * @property {string|null} [datasetId] InputDataConfig datasetId + * @property {string|null} [annotationsFilter] InputDataConfig annotationsFilter + * @property {string|null} [annotationSchemaUri] InputDataConfig annotationSchemaUri + * @property {string|null} [savedQueryId] InputDataConfig savedQueryId + * @property {boolean|null} [persistMlUseAssignment] InputDataConfig persistMlUseAssignment */ /** - * Constructs a new StratifiedSplit. + * Constructs a new InputDataConfig. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a StratifiedSplit. - * @implements IStratifiedSplit + * @classdesc Represents an InputDataConfig. + * @implements IInputDataConfig * @constructor - * @param {google.cloud.aiplatform.v1.IStratifiedSplit=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IInputDataConfig=} [properties] Properties to set */ - function StratifiedSplit(properties) { + function InputDataConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -127955,117 +133549,254 @@ } /** - * StratifiedSplit trainingFraction. - * @member {number} trainingFraction - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * InputDataConfig fractionSplit. + * @member {google.cloud.aiplatform.v1.IFractionSplit|null|undefined} fractionSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @instance */ - StratifiedSplit.prototype.trainingFraction = 0; + InputDataConfig.prototype.fractionSplit = null; /** - * StratifiedSplit validationFraction. - * @member {number} validationFraction - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * InputDataConfig filterSplit. + * @member {google.cloud.aiplatform.v1.IFilterSplit|null|undefined} filterSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @instance */ - StratifiedSplit.prototype.validationFraction = 0; + InputDataConfig.prototype.filterSplit = null; /** - * StratifiedSplit testFraction. - * @member {number} testFraction - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * InputDataConfig predefinedSplit. + * @member {google.cloud.aiplatform.v1.IPredefinedSplit|null|undefined} predefinedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @instance */ - StratifiedSplit.prototype.testFraction = 0; + InputDataConfig.prototype.predefinedSplit = null; /** - * StratifiedSplit key. - * @member {string} key - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * InputDataConfig timestampSplit. + * @member {google.cloud.aiplatform.v1.ITimestampSplit|null|undefined} timestampSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @instance */ - StratifiedSplit.prototype.key = ""; + InputDataConfig.prototype.timestampSplit = null; /** - * Creates a new StratifiedSplit instance using the specified properties. + * InputDataConfig stratifiedSplit. + * @member {google.cloud.aiplatform.v1.IStratifiedSplit|null|undefined} stratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.stratifiedSplit = null; + + /** + * InputDataConfig gcsDestination. + * @member {google.cloud.aiplatform.v1.IGcsDestination|null|undefined} gcsDestination + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.gcsDestination = null; + + /** + * InputDataConfig bigqueryDestination. + * @member {google.cloud.aiplatform.v1.IBigQueryDestination|null|undefined} bigqueryDestination + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.bigqueryDestination = null; + + /** + * InputDataConfig datasetId. + * @member {string} datasetId + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.datasetId = ""; + + /** + * InputDataConfig annotationsFilter. + * @member {string} annotationsFilter + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.annotationsFilter = ""; + + /** + * InputDataConfig annotationSchemaUri. + * @member {string} annotationSchemaUri + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.annotationSchemaUri = ""; + + /** + * InputDataConfig savedQueryId. + * @member {string} savedQueryId + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.savedQueryId = ""; + + /** + * InputDataConfig persistMlUseAssignment. + * @member {boolean} persistMlUseAssignment + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.persistMlUseAssignment = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * InputDataConfig split. + * @member {"fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"|undefined} split + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + Object.defineProperty(InputDataConfig.prototype, "split", { + get: $util.oneOfGetter($oneOfFields = ["fractionSplit", "filterSplit", "predefinedSplit", "timestampSplit", "stratifiedSplit"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * InputDataConfig destination. + * @member {"gcsDestination"|"bigqueryDestination"|undefined} destination + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + Object.defineProperty(InputDataConfig.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcsDestination", "bigqueryDestination"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new InputDataConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static - * @param {google.cloud.aiplatform.v1.IStratifiedSplit=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit instance + * @param {google.cloud.aiplatform.v1.IInputDataConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig instance */ - StratifiedSplit.create = function create(properties) { - return new StratifiedSplit(properties); + InputDataConfig.create = function create(properties) { + return new InputDataConfig(properties); }; /** - * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. + * Encodes the specified InputDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static - * @param {google.cloud.aiplatform.v1.IStratifiedSplit} message StratifiedSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IInputDataConfig} message InputDataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StratifiedSplit.encode = function encode(message, writer) { + InputDataConfig.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); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); + if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); + if (message.fractionSplit != null && Object.hasOwnProperty.call(message, "fractionSplit")) + $root.google.cloud.aiplatform.v1.FractionSplit.encode(message.fractionSplit, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filterSplit != null && Object.hasOwnProperty.call(message, "filterSplit")) + $root.google.cloud.aiplatform.v1.FilterSplit.encode(message.filterSplit, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.predefinedSplit != null && Object.hasOwnProperty.call(message, "predefinedSplit")) + $root.google.cloud.aiplatform.v1.PredefinedSplit.encode(message.predefinedSplit, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.timestampSplit != null && Object.hasOwnProperty.call(message, "timestampSplit")) + $root.google.cloud.aiplatform.v1.TimestampSplit.encode(message.timestampSplit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.annotationsFilter != null && Object.hasOwnProperty.call(message, "annotationsFilter")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.annotationsFilter); + if (message.savedQueryId != null && Object.hasOwnProperty.call(message, "savedQueryId")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.savedQueryId); + if (message.gcsDestination != null && Object.hasOwnProperty.call(message, "gcsDestination")) + $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.gcsDestination, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.annotationSchemaUri != null && Object.hasOwnProperty.call(message, "annotationSchemaUri")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.annotationSchemaUri); + if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) + $root.google.cloud.aiplatform.v1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.persistMlUseAssignment != null && Object.hasOwnProperty.call(message, "persistMlUseAssignment")) + writer.uint32(/* id 11, wireType 0 =*/88).bool(message.persistMlUseAssignment); + if (message.stratifiedSplit != null && Object.hasOwnProperty.call(message, "stratifiedSplit")) + $root.google.cloud.aiplatform.v1.StratifiedSplit.encode(message.stratifiedSplit, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; /** - * Encodes the specified StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. + * Encodes the specified InputDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.InputDataConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static - * @param {google.cloud.aiplatform.v1.IStratifiedSplit} message StratifiedSplit message or plain object to encode + * @param {google.cloud.aiplatform.v1.IInputDataConfig} message InputDataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StratifiedSplit.encodeDelimited = function encodeDelimited(message, writer) { + InputDataConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StratifiedSplit message from the specified reader or buffer. + * Decodes an InputDataConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @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.StratifiedSplit} StratifiedSplit + * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StratifiedSplit.decode = function decode(reader, length) { + InputDataConfig.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.StratifiedSplit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.InputDataConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.trainingFraction = reader.double(); - break; - } case 2: { - message.validationFraction = reader.double(); + message.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.decode(reader, reader.uint32()); break; } case 3: { - message.testFraction = reader.double(); + message.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.decode(reader, reader.uint32()); break; } case 4: { - message.key = reader.string(); + message.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.decode(reader, reader.uint32()); + break; + } + case 5: { + message.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.decode(reader, reader.uint32()); + break; + } + case 12: { + message.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.decode(reader, reader.uint32()); + break; + } + case 8: { + message.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.decode(reader, reader.uint32()); + break; + } + case 10: { + message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.decode(reader, reader.uint32()); + break; + } + case 1: { + message.datasetId = reader.string(); + break; + } + case 6: { + message.annotationsFilter = reader.string(); + break; + } + case 9: { + message.annotationSchemaUri = reader.string(); + break; + } + case 7: { + message.savedQueryId = reader.string(); + break; + } + case 11: { + message.persistMlUseAssignment = reader.bool(); break; } default: @@ -128077,284 +133808,294 @@ }; /** - * Decodes a StratifiedSplit message from the specified reader or buffer, length delimited. + * Decodes an InputDataConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit + * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StratifiedSplit.decodeDelimited = function decodeDelimited(reader) { + InputDataConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StratifiedSplit message. + * Verifies an InputDataConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StratifiedSplit.verify = function verify(message) { + InputDataConfig.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"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; + var properties = {}; + if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1.FractionSplit.verify(message.fractionSplit); + if (error) + return "fractionSplit." + error; + } + } + if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1.FilterSplit.verify(message.filterSplit); + if (error) + return "filterSplit." + error; + } + } + if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1.PredefinedSplit.verify(message.predefinedSplit); + if (error) + return "predefinedSplit." + error; + } + } + if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1.TimestampSplit.verify(message.timestampSplit); + if (error) + return "timestampSplit." + error; + } + } + if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { + if (properties.split === 1) + return "split: multiple values"; + properties.split = 1; + { + var error = $root.google.cloud.aiplatform.v1.StratifiedSplit.verify(message.stratifiedSplit); + if (error) + return "stratifiedSplit." + error; + } + } + if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1.GcsDestination.verify(message.gcsDestination); + if (error) + return "gcsDestination." + error; + } + } + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1.BigQueryDestination.verify(message.bigqueryDestination); + if (error) + return "bigqueryDestination." + error; + } + } + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + if (!$util.isString(message.datasetId)) + return "datasetId: string expected"; + if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) + if (!$util.isString(message.annotationsFilter)) + return "annotationsFilter: string expected"; + if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) + if (!$util.isString(message.annotationSchemaUri)) + return "annotationSchemaUri: string expected"; + if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) + if (!$util.isString(message.savedQueryId)) + return "savedQueryId: string expected"; + if (message.persistMlUseAssignment != null && message.hasOwnProperty("persistMlUseAssignment")) + if (typeof message.persistMlUseAssignment !== "boolean") + return "persistMlUseAssignment: boolean expected"; return null; }; /** - * Creates a StratifiedSplit message from a plain object. Also converts values to their respective internal types. + * Creates an InputDataConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit + * @returns {google.cloud.aiplatform.v1.InputDataConfig} InputDataConfig */ - StratifiedSplit.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.StratifiedSplit) + InputDataConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.InputDataConfig) return object; - var message = new $root.google.cloud.aiplatform.v1.StratifiedSplit(); - 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); - if (object.key != null) - message.key = String(object.key); - return message; - }; - - /** - * Creates a plain object from a StratifiedSplit message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.StratifiedSplit - * @static - * @param {google.cloud.aiplatform.v1.StratifiedSplit} message StratifiedSplit - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + var message = new $root.google.cloud.aiplatform.v1.InputDataConfig(); + if (object.fractionSplit != null) { + if (typeof object.fractionSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.fractionSplit: object expected"); + message.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.fromObject(object.fractionSplit); + } + if (object.filterSplit != null) { + if (typeof object.filterSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.filterSplit: object expected"); + message.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.fromObject(object.filterSplit); + } + if (object.predefinedSplit != null) { + if (typeof object.predefinedSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.predefinedSplit: object expected"); + message.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.fromObject(object.predefinedSplit); + } + if (object.timestampSplit != null) { + if (typeof object.timestampSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.timestampSplit: object expected"); + message.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.fromObject(object.timestampSplit); + } + if (object.stratifiedSplit != null) { + if (typeof object.stratifiedSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.stratifiedSplit: object expected"); + message.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.fromObject(object.stratifiedSplit); + } + if (object.gcsDestination != null) { + if (typeof object.gcsDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.gcsDestination: object expected"); + message.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.fromObject(object.gcsDestination); + } + if (object.bigqueryDestination != null) { + if (typeof object.bigqueryDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1.InputDataConfig.bigqueryDestination: object expected"); + message.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.fromObject(object.bigqueryDestination); + } + if (object.datasetId != null) + message.datasetId = String(object.datasetId); + if (object.annotationsFilter != null) + message.annotationsFilter = String(object.annotationsFilter); + if (object.annotationSchemaUri != null) + message.annotationSchemaUri = String(object.annotationSchemaUri); + if (object.savedQueryId != null) + message.savedQueryId = String(object.savedQueryId); + if (object.persistMlUseAssignment != null) + message.persistMlUseAssignment = Boolean(object.persistMlUseAssignment); + return message; + }; + + /** + * Creates a plain object from an InputDataConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @static + * @param {google.cloud.aiplatform.v1.InputDataConfig} message InputDataConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - StratifiedSplit.toObject = function toObject(message, options) { + InputDataConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.trainingFraction = 0; - object.validationFraction = 0; - object.testFraction = 0; - object.key = ""; + object.datasetId = ""; + object.annotationsFilter = ""; + object.savedQueryId = ""; + object.annotationSchemaUri = ""; + object.persistMlUseAssignment = false; + } + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + object.datasetId = message.datasetId; + if (message.fractionSplit != null && message.hasOwnProperty("fractionSplit")) { + object.fractionSplit = $root.google.cloud.aiplatform.v1.FractionSplit.toObject(message.fractionSplit, options); + if (options.oneofs) + object.split = "fractionSplit"; + } + if (message.filterSplit != null && message.hasOwnProperty("filterSplit")) { + object.filterSplit = $root.google.cloud.aiplatform.v1.FilterSplit.toObject(message.filterSplit, options); + if (options.oneofs) + object.split = "filterSplit"; + } + if (message.predefinedSplit != null && message.hasOwnProperty("predefinedSplit")) { + object.predefinedSplit = $root.google.cloud.aiplatform.v1.PredefinedSplit.toObject(message.predefinedSplit, options); + if (options.oneofs) + object.split = "predefinedSplit"; + } + if (message.timestampSplit != null && message.hasOwnProperty("timestampSplit")) { + object.timestampSplit = $root.google.cloud.aiplatform.v1.TimestampSplit.toObject(message.timestampSplit, options); + if (options.oneofs) + object.split = "timestampSplit"; + } + if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) + object.annotationsFilter = message.annotationsFilter; + if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) + object.savedQueryId = message.savedQueryId; + if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { + object.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.gcsDestination, options); + if (options.oneofs) + object.destination = "gcsDestination"; + } + if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) + object.annotationSchemaUri = message.annotationSchemaUri; + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + object.bigqueryDestination = $root.google.cloud.aiplatform.v1.BigQueryDestination.toObject(message.bigqueryDestination, options); + if (options.oneofs) + object.destination = "bigqueryDestination"; + } + if (message.persistMlUseAssignment != null && message.hasOwnProperty("persistMlUseAssignment")) + object.persistMlUseAssignment = message.persistMlUseAssignment; + if (message.stratifiedSplit != null && message.hasOwnProperty("stratifiedSplit")) { + object.stratifiedSplit = $root.google.cloud.aiplatform.v1.StratifiedSplit.toObject(message.stratifiedSplit, options); + if (options.oneofs) + object.split = "stratifiedSplit"; } - 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; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; return object; }; /** - * Converts this StratifiedSplit to JSON. + * Converts this InputDataConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @instance * @returns {Object.} JSON object */ - StratifiedSplit.prototype.toJSON = function toJSON() { + InputDataConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for StratifiedSplit + * Gets the default type url for InputDataConfig * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @memberof google.cloud.aiplatform.v1.InputDataConfig * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - StratifiedSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + InputDataConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.StratifiedSplit"; - }; - - return StratifiedSplit; - })(); - - v1.PredictionService = (function() { - - /** - * Constructs a new PredictionService service. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PredictionService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function PredictionService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (PredictionService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PredictionService; - - /** - * Creates new PredictionService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1.PredictionService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {PredictionService} RPC service. Useful where requests and/or responses are streamed. - */ - PredictionService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + return typeUrlPrefix + "/google.cloud.aiplatform.v1.InputDataConfig"; }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|predict}. - * @memberof google.cloud.aiplatform.v1.PredictionService - * @typedef PredictCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.PredictResponse} [response] PredictResponse - */ - - /** - * Calls Predict. - * @function predict - * @memberof google.cloud.aiplatform.v1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1.IPredictRequest} request PredictRequest message or plain object - * @param {google.cloud.aiplatform.v1.PredictionService.PredictCallback} callback Node-style callback called with the error, if any, and PredictResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PredictionService.prototype.predict = function predict(request, callback) { - return this.rpcCall(predict, $root.google.cloud.aiplatform.v1.PredictRequest, $root.google.cloud.aiplatform.v1.PredictResponse, request, callback); - }, "name", { value: "Predict" }); - - /** - * Calls Predict. - * @function predict - * @memberof google.cloud.aiplatform.v1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1.IPredictRequest} request PredictRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|rawPredict}. - * @memberof google.cloud.aiplatform.v1.PredictionService - * @typedef RawPredictCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.api.HttpBody} [response] HttpBody - */ - - /** - * Calls RawPredict. - * @function rawPredict - * @memberof google.cloud.aiplatform.v1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1.IRawPredictRequest} request RawPredictRequest message or plain object - * @param {google.cloud.aiplatform.v1.PredictionService.RawPredictCallback} callback Node-style callback called with the error, if any, and HttpBody - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PredictionService.prototype.rawPredict = function rawPredict(request, callback) { - return this.rpcCall(rawPredict, $root.google.cloud.aiplatform.v1.RawPredictRequest, $root.google.api.HttpBody, request, callback); - }, "name", { value: "RawPredict" }); - - /** - * Calls RawPredict. - * @function rawPredict - * @memberof google.cloud.aiplatform.v1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1.IRawPredictRequest} request RawPredictRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|explain}. - * @memberof google.cloud.aiplatform.v1.PredictionService - * @typedef ExplainCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1.ExplainResponse} [response] ExplainResponse - */ - - /** - * Calls Explain. - * @function explain - * @memberof google.cloud.aiplatform.v1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1.IExplainRequest} request ExplainRequest message or plain object - * @param {google.cloud.aiplatform.v1.PredictionService.ExplainCallback} callback Node-style callback called with the error, if any, and ExplainResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(PredictionService.prototype.explain = function explain(request, callback) { - return this.rpcCall(explain, $root.google.cloud.aiplatform.v1.ExplainRequest, $root.google.cloud.aiplatform.v1.ExplainResponse, request, callback); - }, "name", { value: "Explain" }); - - /** - * Calls Explain. - * @function explain - * @memberof google.cloud.aiplatform.v1.PredictionService - * @instance - * @param {google.cloud.aiplatform.v1.IExplainRequest} request ExplainRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return PredictionService; + return InputDataConfig; })(); - v1.PredictRequest = (function() { + v1.FractionSplit = (function() { /** - * Properties of a PredictRequest. + * Properties of a FractionSplit. * @memberof google.cloud.aiplatform.v1 - * @interface IPredictRequest - * @property {string|null} [endpoint] PredictRequest endpoint - * @property {Array.|null} [instances] PredictRequest instances - * @property {google.protobuf.IValue|null} [parameters] PredictRequest parameters + * @interface IFractionSplit + * @property {number|null} [trainingFraction] FractionSplit trainingFraction + * @property {number|null} [validationFraction] FractionSplit validationFraction + * @property {number|null} [testFraction] FractionSplit testFraction */ /** - * Constructs a new PredictRequest. + * Constructs a new FractionSplit. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PredictRequest. - * @implements IPredictRequest + * @classdesc Represents a FractionSplit. + * @implements IFractionSplit * @constructor - * @param {google.cloud.aiplatform.v1.IPredictRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IFractionSplit=} [properties] Properties to set */ - function PredictRequest(properties) { - this.instances = []; + function FractionSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -128362,106 +134103,103 @@ } /** - * PredictRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1.PredictRequest + * FractionSplit trainingFraction. + * @member {number} trainingFraction + * @memberof google.cloud.aiplatform.v1.FractionSplit * @instance */ - PredictRequest.prototype.endpoint = ""; + FractionSplit.prototype.trainingFraction = 0; /** - * PredictRequest instances. - * @member {Array.} instances - * @memberof google.cloud.aiplatform.v1.PredictRequest + * FractionSplit validationFraction. + * @member {number} validationFraction + * @memberof google.cloud.aiplatform.v1.FractionSplit * @instance */ - PredictRequest.prototype.instances = $util.emptyArray; + FractionSplit.prototype.validationFraction = 0; /** - * PredictRequest parameters. - * @member {google.protobuf.IValue|null|undefined} parameters - * @memberof google.cloud.aiplatform.v1.PredictRequest + * FractionSplit testFraction. + * @member {number} testFraction + * @memberof google.cloud.aiplatform.v1.FractionSplit * @instance */ - PredictRequest.prototype.parameters = null; + FractionSplit.prototype.testFraction = 0; /** - * Creates a new PredictRequest instance using the specified properties. + * Creates a new FractionSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1.IPredictRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest instance + * @param {google.cloud.aiplatform.v1.IFractionSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit instance */ - PredictRequest.create = function create(properties) { - return new PredictRequest(properties); + FractionSplit.create = function create(properties) { + return new FractionSplit(properties); }; /** - * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. + * Encodes the specified FractionSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1.IPredictRequest} message PredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFractionSplit} message FractionSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredictRequest.encode = function encode(message, writer) { + FractionSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.instances != null && message.instances.length) - for (var i = 0; i < message.instances.length; ++i) - $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Value.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + 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 PredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. + * Encodes the specified FractionSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FractionSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1.IPredictRequest} message PredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFractionSplit} message FractionSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + FractionSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PredictRequest message from the specified reader or buffer. + * Decodes a FractionSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @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.PredictRequest} PredictRequest + * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredictRequest.decode = function decode(reader, length) { + FractionSplit.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.PredictRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FractionSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); + message.trainingFraction = reader.double(); break; } case 2: { - if (!(message.instances && message.instances.length)) - message.instances = []; - message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + message.validationFraction = reader.double(); break; } case 3: { - message.parameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); + message.testFraction = reader.double(); break; } default: @@ -128473,167 +134211,141 @@ }; /** - * Decodes a PredictRequest message from the specified reader or buffer, length delimited. + * Decodes a FractionSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest + * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredictRequest.decodeDelimited = function decodeDelimited(reader) { + FractionSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PredictRequest message. + * Verifies a FractionSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PredictRequest.verify = function verify(message) { + FractionSplit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.instances != null && message.hasOwnProperty("instances")) { - if (!Array.isArray(message.instances)) - return "instances: array expected"; - for (var i = 0; i < message.instances.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.instances[i]); - if (error) - return "instances." + error; - } - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - var error = $root.google.protobuf.Value.verify(message.parameters); - if (error) - return "parameters." + error; - } + 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 a PredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FractionSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest + * @returns {google.cloud.aiplatform.v1.FractionSplit} FractionSplit */ - PredictRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PredictRequest) + FractionSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FractionSplit) return object; - var message = new $root.google.cloud.aiplatform.v1.PredictRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.instances) { - if (!Array.isArray(object.instances)) - throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.instances: array expected"); - message.instances = []; - for (var i = 0; i < object.instances.length; ++i) { - if (typeof object.instances[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.instances: object expected"); - message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); - } - } - if (object.parameters != null) { - if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.parameters: object expected"); - message.parameters = $root.google.protobuf.Value.fromObject(object.parameters); - } + var message = new $root.google.cloud.aiplatform.v1.FractionSplit(); + 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 a PredictRequest message. Also converts values to other types if specified. + * Creates a plain object from a FractionSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static - * @param {google.cloud.aiplatform.v1.PredictRequest} message PredictRequest + * @param {google.cloud.aiplatform.v1.FractionSplit} message FractionSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PredictRequest.toObject = function toObject(message, options) { + FractionSplit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.instances = []; if (options.defaults) { - object.endpoint = ""; - object.parameters = null; - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.instances && message.instances.length) { - object.instances = []; - for (var j = 0; j < message.instances.length; ++j) - object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); + object.trainingFraction = 0; + object.validationFraction = 0; + object.testFraction = 0; } - if (message.parameters != null && message.hasOwnProperty("parameters")) - object.parameters = $root.google.protobuf.Value.toObject(message.parameters, options); + 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 PredictRequest to JSON. + * Converts this FractionSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @instance * @returns {Object.} JSON object */ - PredictRequest.prototype.toJSON = function toJSON() { + FractionSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PredictRequest + * Gets the default type url for FractionSplit * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PredictRequest + * @memberof google.cloud.aiplatform.v1.FractionSplit * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FractionSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredictRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FractionSplit"; }; - return PredictRequest; + return FractionSplit; })(); - v1.PredictResponse = (function() { + v1.FilterSplit = (function() { /** - * Properties of a PredictResponse. + * Properties of a FilterSplit. * @memberof google.cloud.aiplatform.v1 - * @interface IPredictResponse - * @property {Array.|null} [predictions] PredictResponse predictions - * @property {string|null} [deployedModelId] PredictResponse deployedModelId - * @property {string|null} [model] PredictResponse model - * @property {string|null} [modelVersionId] PredictResponse modelVersionId - * @property {string|null} [modelDisplayName] PredictResponse modelDisplayName + * @interface IFilterSplit + * @property {string|null} [trainingFilter] FilterSplit trainingFilter + * @property {string|null} [validationFilter] FilterSplit validationFilter + * @property {string|null} [testFilter] FilterSplit testFilter */ /** - * Constructs a new PredictResponse. + * Constructs a new FilterSplit. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a PredictResponse. - * @implements IPredictResponse + * @classdesc Represents a FilterSplit. + * @implements IFilterSplit * @constructor - * @param {google.cloud.aiplatform.v1.IPredictResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IFilterSplit=} [properties] Properties to set */ - function PredictResponse(properties) { - this.predictions = []; + function FilterSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -128641,134 +134353,103 @@ } /** - * PredictResponse predictions. - * @member {Array.} predictions - * @memberof google.cloud.aiplatform.v1.PredictResponse - * @instance - */ - PredictResponse.prototype.predictions = $util.emptyArray; - - /** - * PredictResponse deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.PredictResponse - * @instance - */ - PredictResponse.prototype.deployedModelId = ""; - - /** - * PredictResponse model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1.PredictResponse + * FilterSplit trainingFilter. + * @member {string} trainingFilter + * @memberof google.cloud.aiplatform.v1.FilterSplit * @instance */ - PredictResponse.prototype.model = ""; + FilterSplit.prototype.trainingFilter = ""; /** - * PredictResponse modelVersionId. - * @member {string} modelVersionId - * @memberof google.cloud.aiplatform.v1.PredictResponse + * FilterSplit validationFilter. + * @member {string} validationFilter + * @memberof google.cloud.aiplatform.v1.FilterSplit * @instance */ - PredictResponse.prototype.modelVersionId = ""; + FilterSplit.prototype.validationFilter = ""; /** - * PredictResponse modelDisplayName. - * @member {string} modelDisplayName - * @memberof google.cloud.aiplatform.v1.PredictResponse + * FilterSplit testFilter. + * @member {string} testFilter + * @memberof google.cloud.aiplatform.v1.FilterSplit * @instance */ - PredictResponse.prototype.modelDisplayName = ""; + FilterSplit.prototype.testFilter = ""; /** - * Creates a new PredictResponse instance using the specified properties. + * Creates a new FilterSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1.IPredictResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse instance + * @param {google.cloud.aiplatform.v1.IFilterSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit instance */ - PredictResponse.create = function create(properties) { - return new PredictResponse(properties); + FilterSplit.create = function create(properties) { + return new FilterSplit(properties); }; /** - * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. + * Encodes the specified FilterSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1.IPredictResponse} message PredictResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFilterSplit} message FilterSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredictResponse.encode = function encode(message, writer) { + FilterSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - 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 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); - if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.modelDisplayName); - if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.modelVersionId); + if (message.trainingFilter != null && Object.hasOwnProperty.call(message, "trainingFilter")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.trainingFilter); + if (message.validationFilter != null && Object.hasOwnProperty.call(message, "validationFilter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.validationFilter); + if (message.testFilter != null && Object.hasOwnProperty.call(message, "testFilter")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.testFilter); return writer; }; /** - * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. + * Encodes the specified FilterSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.FilterSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1.IPredictResponse} message PredictResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IFilterSplit} message FilterSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredictResponse.encodeDelimited = function encodeDelimited(message, writer) { + FilterSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PredictResponse message from the specified reader or buffer. + * Decodes a FilterSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @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.PredictResponse} PredictResponse + * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredictResponse.decode = function decode(reader, length) { + FilterSplit.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.PredictResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.FilterSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.predictions && message.predictions.length)) - message.predictions = []; - message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + message.trainingFilter = reader.string(); break; } case 2: { - message.deployedModelId = reader.string(); + message.validationFilter = reader.string(); break; } case 3: { - message.model = reader.string(); - break; - } - case 5: { - message.modelVersionId = reader.string(); - break; - } - case 4: { - message.modelDisplayName = reader.string(); + message.testFilter = reader.string(); break; } default: @@ -128780,174 +134461,139 @@ }; /** - * Decodes a PredictResponse message from the specified reader or buffer, length delimited. + * Decodes a FilterSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse + * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredictResponse.decodeDelimited = function decodeDelimited(reader) { + FilterSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PredictResponse message. + * Verifies a FilterSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PredictResponse.verify = function verify(message) { + FilterSplit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - if (!$util.isString(message.modelVersionId)) - return "modelVersionId: string expected"; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - if (!$util.isString(message.modelDisplayName)) - return "modelDisplayName: string expected"; + if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) + if (!$util.isString(message.trainingFilter)) + return "trainingFilter: string expected"; + if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) + if (!$util.isString(message.validationFilter)) + return "validationFilter: string expected"; + if (message.testFilter != null && message.hasOwnProperty("testFilter")) + if (!$util.isString(message.testFilter)) + return "testFilter: string expected"; return null; }; /** - * Creates a PredictResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FilterSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse + * @returns {google.cloud.aiplatform.v1.FilterSplit} FilterSplit */ - PredictResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.PredictResponse) + FilterSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.FilterSplit) return object; - var message = new $root.google.cloud.aiplatform.v1.PredictResponse(); - if (object.predictions) { - if (!Array.isArray(object.predictions)) - throw TypeError(".google.cloud.aiplatform.v1.PredictResponse.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.PredictResponse.predictions: object expected"); - message.predictions[i] = $root.google.protobuf.Value.fromObject(object.predictions[i]); - } - } - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.model != null) - message.model = String(object.model); - if (object.modelVersionId != null) - message.modelVersionId = String(object.modelVersionId); - if (object.modelDisplayName != null) - message.modelDisplayName = String(object.modelDisplayName); + var message = new $root.google.cloud.aiplatform.v1.FilterSplit(); + if (object.trainingFilter != null) + message.trainingFilter = String(object.trainingFilter); + if (object.validationFilter != null) + message.validationFilter = String(object.validationFilter); + if (object.testFilter != null) + message.testFilter = String(object.testFilter); return message; }; /** - * Creates a plain object from a PredictResponse message. Also converts values to other types if specified. + * Creates a plain object from a FilterSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static - * @param {google.cloud.aiplatform.v1.PredictResponse} message PredictResponse + * @param {google.cloud.aiplatform.v1.FilterSplit} message FilterSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PredictResponse.toObject = function toObject(message, options) { + FilterSplit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.predictions = []; if (options.defaults) { - object.deployedModelId = ""; - object.model = ""; - object.modelDisplayName = ""; - object.modelVersionId = ""; - } - 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); + object.trainingFilter = ""; + object.validationFilter = ""; + object.testFilter = ""; } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) - object.modelDisplayName = message.modelDisplayName; - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - object.modelVersionId = message.modelVersionId; + if (message.trainingFilter != null && message.hasOwnProperty("trainingFilter")) + object.trainingFilter = message.trainingFilter; + if (message.validationFilter != null && message.hasOwnProperty("validationFilter")) + object.validationFilter = message.validationFilter; + if (message.testFilter != null && message.hasOwnProperty("testFilter")) + object.testFilter = message.testFilter; return object; }; /** - * Converts this PredictResponse to JSON. + * Converts this FilterSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @instance * @returns {Object.} JSON object */ - PredictResponse.prototype.toJSON = function toJSON() { + FilterSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for PredictResponse + * Gets the default type url for FilterSplit * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.PredictResponse + * @memberof google.cloud.aiplatform.v1.FilterSplit * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - PredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + FilterSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredictResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.FilterSplit"; }; - return PredictResponse; + return FilterSplit; })(); - v1.RawPredictRequest = (function() { + v1.PredefinedSplit = (function() { /** - * Properties of a RawPredictRequest. + * Properties of a PredefinedSplit. * @memberof google.cloud.aiplatform.v1 - * @interface IRawPredictRequest - * @property {string|null} [endpoint] RawPredictRequest endpoint - * @property {google.api.IHttpBody|null} [httpBody] RawPredictRequest httpBody + * @interface IPredefinedSplit + * @property {string|null} [key] PredefinedSplit key */ /** - * Constructs a new RawPredictRequest. + * Constructs a new PredefinedSplit. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a RawPredictRequest. - * @implements IRawPredictRequest + * @classdesc Represents a PredefinedSplit. + * @implements IPredefinedSplit * @constructor - * @param {google.cloud.aiplatform.v1.IRawPredictRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPredefinedSplit=} [properties] Properties to set */ - function RawPredictRequest(properties) { + function PredefinedSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -128955,89 +134601,75 @@ } /** - * RawPredictRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1.RawPredictRequest - * @instance - */ - RawPredictRequest.prototype.endpoint = ""; - - /** - * RawPredictRequest httpBody. - * @member {google.api.IHttpBody|null|undefined} httpBody - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * PredefinedSplit key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @instance */ - RawPredictRequest.prototype.httpBody = null; + PredefinedSplit.prototype.key = ""; /** - * Creates a new RawPredictRequest instance using the specified properties. + * Creates a new PredefinedSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1.IRawPredictRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest instance + * @param {google.cloud.aiplatform.v1.IPredefinedSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit instance */ - RawPredictRequest.create = function create(properties) { - return new RawPredictRequest(properties); + PredefinedSplit.create = function create(properties) { + return new PredefinedSplit(properties); }; /** - * Encodes the specified RawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. + * Encodes the specified PredefinedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1.IRawPredictRequest} message RawPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPredefinedSplit} message PredefinedSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RawPredictRequest.encode = function encode(message, writer) { + PredefinedSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.httpBody != null && Object.hasOwnProperty.call(message, "httpBody")) - $root.google.api.HttpBody.encode(message.httpBody, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); return writer; }; /** - * Encodes the specified RawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. + * Encodes the specified PredefinedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredefinedSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1.IRawPredictRequest} message RawPredictRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPredefinedSplit} message PredefinedSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RawPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + PredefinedSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RawPredictRequest message from the specified reader or buffer. + * Decodes a PredefinedSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @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.RawPredictRequest} RawPredictRequest + * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RawPredictRequest.decode = function decode(reader, length) { + PredefinedSplit.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.RawPredictRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PredefinedSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); - break; - } - case 2: { - message.httpBody = $root.google.api.HttpBody.decode(reader, reader.uint32()); + message.key = reader.string(); break; } default: @@ -129049,141 +134681,125 @@ }; /** - * Decodes a RawPredictRequest message from the specified reader or buffer, length delimited. + * Decodes a PredefinedSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest + * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RawPredictRequest.decodeDelimited = function decodeDelimited(reader) { + PredefinedSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RawPredictRequest message. + * Verifies a PredefinedSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RawPredictRequest.verify = function verify(message) { + PredefinedSplit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.httpBody != null && message.hasOwnProperty("httpBody")) { - var error = $root.google.api.HttpBody.verify(message.httpBody); - if (error) - return "httpBody." + error; - } + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; return null; }; /** - * Creates a RawPredictRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PredefinedSplit message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest + * @returns {google.cloud.aiplatform.v1.PredefinedSplit} PredefinedSplit */ - RawPredictRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.RawPredictRequest) + PredefinedSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PredefinedSplit) return object; - var message = new $root.google.cloud.aiplatform.v1.RawPredictRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.httpBody != null) { - if (typeof object.httpBody !== "object") - throw TypeError(".google.cloud.aiplatform.v1.RawPredictRequest.httpBody: object expected"); - message.httpBody = $root.google.api.HttpBody.fromObject(object.httpBody); - } + var message = new $root.google.cloud.aiplatform.v1.PredefinedSplit(); + if (object.key != null) + message.key = String(object.key); return message; }; /** - * Creates a plain object from a RawPredictRequest message. Also converts values to other types if specified. + * Creates a plain object from a PredefinedSplit message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static - * @param {google.cloud.aiplatform.v1.RawPredictRequest} message RawPredictRequest + * @param {google.cloud.aiplatform.v1.PredefinedSplit} message PredefinedSplit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RawPredictRequest.toObject = function toObject(message, options) { + PredefinedSplit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.endpoint = ""; - object.httpBody = null; - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.httpBody != null && message.hasOwnProperty("httpBody")) - object.httpBody = $root.google.api.HttpBody.toObject(message.httpBody, options); + if (options.defaults) + object.key = ""; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; return object; }; /** - * Converts this RawPredictRequest to JSON. + * Converts this PredefinedSplit to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @instance * @returns {Object.} JSON object */ - RawPredictRequest.prototype.toJSON = function toJSON() { + PredefinedSplit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RawPredictRequest + * Gets the default type url for PredefinedSplit * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @memberof google.cloud.aiplatform.v1.PredefinedSplit * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RawPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PredefinedSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.RawPredictRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredefinedSplit"; }; - return RawPredictRequest; + return PredefinedSplit; })(); - v1.ExplainRequest = (function() { + v1.TimestampSplit = (function() { /** - * Properties of an ExplainRequest. + * Properties of a TimestampSplit. * @memberof google.cloud.aiplatform.v1 - * @interface IExplainRequest - * @property {string|null} [endpoint] ExplainRequest endpoint - * @property {Array.|null} [instances] ExplainRequest instances - * @property {google.protobuf.IValue|null} [parameters] ExplainRequest parameters - * @property {google.cloud.aiplatform.v1.IExplanationSpecOverride|null} [explanationSpecOverride] ExplainRequest explanationSpecOverride - * @property {string|null} [deployedModelId] ExplainRequest deployedModelId + * @interface ITimestampSplit + * @property {number|null} [trainingFraction] TimestampSplit trainingFraction + * @property {number|null} [validationFraction] TimestampSplit validationFraction + * @property {number|null} [testFraction] TimestampSplit testFraction + * @property {string|null} [key] TimestampSplit key */ /** - * Constructs a new ExplainRequest. + * Constructs a new TimestampSplit. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ExplainRequest. - * @implements IExplainRequest + * @classdesc Represents a TimestampSplit. + * @implements ITimestampSplit * @constructor - * @param {google.cloud.aiplatform.v1.IExplainRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.ITimestampSplit=} [properties] Properties to set */ - function ExplainRequest(properties) { - this.instances = []; + function TimestampSplit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -129191,134 +134807,390 @@ } /** - * ExplainRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1.ExplainRequest - * @instance - */ - ExplainRequest.prototype.endpoint = ""; - - /** - * ExplainRequest instances. - * @member {Array.} instances - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * TimestampSplit trainingFraction. + * @member {number} trainingFraction + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @instance */ - ExplainRequest.prototype.instances = $util.emptyArray; + TimestampSplit.prototype.trainingFraction = 0; /** - * ExplainRequest parameters. - * @member {google.protobuf.IValue|null|undefined} parameters - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * TimestampSplit validationFraction. + * @member {number} validationFraction + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @instance */ - ExplainRequest.prototype.parameters = null; + TimestampSplit.prototype.validationFraction = 0; /** - * ExplainRequest explanationSpecOverride. - * @member {google.cloud.aiplatform.v1.IExplanationSpecOverride|null|undefined} explanationSpecOverride - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * TimestampSplit testFraction. + * @member {number} testFraction + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @instance */ - ExplainRequest.prototype.explanationSpecOverride = null; + TimestampSplit.prototype.testFraction = 0; /** - * ExplainRequest deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * TimestampSplit key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @instance */ - ExplainRequest.prototype.deployedModelId = ""; + TimestampSplit.prototype.key = ""; /** - * Creates a new ExplainRequest instance using the specified properties. + * Creates a new TimestampSplit instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @static - * @param {google.cloud.aiplatform.v1.IExplainRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest instance + * @param {google.cloud.aiplatform.v1.ITimestampSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit instance */ - ExplainRequest.create = function create(properties) { - return new ExplainRequest(properties); + TimestampSplit.create = function create(properties) { + return new TimestampSplit(properties); }; /** - * Encodes the specified ExplainRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * Encodes the specified TimestampSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @static - * @param {google.cloud.aiplatform.v1.IExplainRequest} message ExplainRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ITimestampSplit} message TimestampSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplainRequest.encode = function encode(message, writer) { + TimestampSplit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.instances != null && message.instances.length) - for (var i = 0; i < message.instances.length; ++i) - $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.deployedModelId); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - $root.google.protobuf.Value.encode(message.parameters, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.explanationSpecOverride != null && Object.hasOwnProperty.call(message, "explanationSpecOverride")) - $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.encode(message.explanationSpecOverride, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + 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); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); return writer; }; /** - * Encodes the specified ExplainRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * Encodes the specified TimestampSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.TimestampSplit.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @static - * @param {google.cloud.aiplatform.v1.IExplainRequest} message ExplainRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.ITimestampSplit} message TimestampSplit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplainRequest.encodeDelimited = function encodeDelimited(message, writer) { + TimestampSplit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExplainRequest message from the specified reader or buffer. + * Decodes a TimestampSplit message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.TimestampSplit * @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.ExplainRequest} ExplainRequest + * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplainRequest.decode = function decode(reader, length) { + TimestampSplit.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.ExplainRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.TimestampSplit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.endpoint = reader.string(); + message.trainingFraction = reader.double(); break; } case 2: { - if (!(message.instances && message.instances.length)) - message.instances = []; - message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + message.validationFraction = reader.double(); + break; + } + case 3: { + message.testFraction = reader.double(); break; } case 4: { - message.parameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); + message.key = reader.string(); break; } - case 5: { - message.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.decode(reader, reader.uint32()); + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TimestampSplit message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TimestampSplit.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TimestampSplit message. + * @function verify + * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TimestampSplit.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"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + return null; + }; + + /** + * Creates a TimestampSplit message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.TimestampSplit} TimestampSplit + */ + TimestampSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.TimestampSplit) + return object; + var message = new $root.google.cloud.aiplatform.v1.TimestampSplit(); + 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); + if (object.key != null) + message.key = String(object.key); + return message; + }; + + /** + * Creates a plain object from a TimestampSplit message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @static + * @param {google.cloud.aiplatform.v1.TimestampSplit} message TimestampSplit + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TimestampSplit.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.trainingFraction = 0; + object.validationFraction = 0; + object.testFraction = 0; + object.key = ""; + } + 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; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; + return object; + }; + + /** + * Converts this TimestampSplit to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @instance + * @returns {Object.} JSON object + */ + TimestampSplit.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TimestampSplit + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.TimestampSplit + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TimestampSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.TimestampSplit"; + }; + + return TimestampSplit; + })(); + + v1.StratifiedSplit = (function() { + + /** + * Properties of a StratifiedSplit. + * @memberof google.cloud.aiplatform.v1 + * @interface IStratifiedSplit + * @property {number|null} [trainingFraction] StratifiedSplit trainingFraction + * @property {number|null} [validationFraction] StratifiedSplit validationFraction + * @property {number|null} [testFraction] StratifiedSplit testFraction + * @property {string|null} [key] StratifiedSplit key + */ + + /** + * Constructs a new StratifiedSplit. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a StratifiedSplit. + * @implements IStratifiedSplit + * @constructor + * @param {google.cloud.aiplatform.v1.IStratifiedSplit=} [properties] Properties to set + */ + function StratifiedSplit(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]]; + } + + /** + * StratifiedSplit trainingFraction. + * @member {number} trainingFraction + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @instance + */ + StratifiedSplit.prototype.trainingFraction = 0; + + /** + * StratifiedSplit validationFraction. + * @member {number} validationFraction + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @instance + */ + StratifiedSplit.prototype.validationFraction = 0; + + /** + * StratifiedSplit testFraction. + * @member {number} testFraction + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @instance + */ + StratifiedSplit.prototype.testFraction = 0; + + /** + * StratifiedSplit key. + * @member {string} key + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @instance + */ + StratifiedSplit.prototype.key = ""; + + /** + * Creates a new StratifiedSplit instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @static + * @param {google.cloud.aiplatform.v1.IStratifiedSplit=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit instance + */ + StratifiedSplit.create = function create(properties) { + return new StratifiedSplit(properties); + }; + + /** + * Encodes the specified StratifiedSplit message. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @static + * @param {google.cloud.aiplatform.v1.IStratifiedSplit} message StratifiedSplit message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StratifiedSplit.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); + if (message.key != null && Object.hasOwnProperty.call(message, "key")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.key); + return writer; + }; + + /** + * Encodes the specified StratifiedSplit message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.StratifiedSplit.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @static + * @param {google.cloud.aiplatform.v1.IStratifiedSplit} message StratifiedSplit message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StratifiedSplit.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StratifiedSplit message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @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.StratifiedSplit} StratifiedSplit + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StratifiedSplit.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.StratifiedSplit(); + 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.deployedModelId = reader.string(); + message.testFraction = reader.double(); + break; + } + case 4: { + message.key = reader.string(); break; } default: @@ -129330,30 +135202,426 @@ }; /** - * Decodes an ExplainRequest message from the specified reader or buffer, length delimited. + * Decodes a StratifiedSplit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.StratifiedSplit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest + * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplainRequest.decodeDelimited = function decodeDelimited(reader) { + StratifiedSplit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExplainRequest message. + * Verifies a StratifiedSplit message. * @function verify - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.StratifiedSplit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExplainRequest.verify = function verify(message) { + StratifiedSplit.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"; + if (message.key != null && message.hasOwnProperty("key")) + if (!$util.isString(message.key)) + return "key: string expected"; + return null; + }; + + /** + * Creates a StratifiedSplit message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.StratifiedSplit} StratifiedSplit + */ + StratifiedSplit.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.StratifiedSplit) + return object; + var message = new $root.google.cloud.aiplatform.v1.StratifiedSplit(); + 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); + if (object.key != null) + message.key = String(object.key); + return message; + }; + + /** + * Creates a plain object from a StratifiedSplit message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @static + * @param {google.cloud.aiplatform.v1.StratifiedSplit} message StratifiedSplit + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StratifiedSplit.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.trainingFraction = 0; + object.validationFraction = 0; + object.testFraction = 0; + object.key = ""; + } + 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; + if (message.key != null && message.hasOwnProperty("key")) + object.key = message.key; + return object; + }; + + /** + * Converts this StratifiedSplit to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @instance + * @returns {Object.} JSON object + */ + StratifiedSplit.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StratifiedSplit + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.StratifiedSplit + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StratifiedSplit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.StratifiedSplit"; + }; + + return StratifiedSplit; + })(); + + v1.PredictionService = (function() { + + /** + * Constructs a new PredictionService service. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PredictionService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function PredictionService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (PredictionService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PredictionService; + + /** + * Creates new PredictionService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1.PredictionService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {PredictionService} RPC service. Useful where requests and/or responses are streamed. + */ + PredictionService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|predict}. + * @memberof google.cloud.aiplatform.v1.PredictionService + * @typedef PredictCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.PredictResponse} [response] PredictResponse + */ + + /** + * Calls Predict. + * @function predict + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IPredictRequest} request PredictRequest message or plain object + * @param {google.cloud.aiplatform.v1.PredictionService.PredictCallback} callback Node-style callback called with the error, if any, and PredictResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PredictionService.prototype.predict = function predict(request, callback) { + return this.rpcCall(predict, $root.google.cloud.aiplatform.v1.PredictRequest, $root.google.cloud.aiplatform.v1.PredictResponse, request, callback); + }, "name", { value: "Predict" }); + + /** + * Calls Predict. + * @function predict + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IPredictRequest} request PredictRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|rawPredict}. + * @memberof google.cloud.aiplatform.v1.PredictionService + * @typedef RawPredictCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.api.HttpBody} [response] HttpBody + */ + + /** + * Calls RawPredict. + * @function rawPredict + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IRawPredictRequest} request RawPredictRequest message or plain object + * @param {google.cloud.aiplatform.v1.PredictionService.RawPredictCallback} callback Node-style callback called with the error, if any, and HttpBody + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PredictionService.prototype.rawPredict = function rawPredict(request, callback) { + return this.rpcCall(rawPredict, $root.google.cloud.aiplatform.v1.RawPredictRequest, $root.google.api.HttpBody, request, callback); + }, "name", { value: "RawPredict" }); + + /** + * Calls RawPredict. + * @function rawPredict + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IRawPredictRequest} request RawPredictRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.PredictionService|explain}. + * @memberof google.cloud.aiplatform.v1.PredictionService + * @typedef ExplainCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ExplainResponse} [response] ExplainResponse + */ + + /** + * Calls Explain. + * @function explain + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IExplainRequest} request ExplainRequest message or plain object + * @param {google.cloud.aiplatform.v1.PredictionService.ExplainCallback} callback Node-style callback called with the error, if any, and ExplainResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(PredictionService.prototype.explain = function explain(request, callback) { + return this.rpcCall(explain, $root.google.cloud.aiplatform.v1.ExplainRequest, $root.google.cloud.aiplatform.v1.ExplainResponse, request, callback); + }, "name", { value: "Explain" }); + + /** + * Calls Explain. + * @function explain + * @memberof google.cloud.aiplatform.v1.PredictionService + * @instance + * @param {google.cloud.aiplatform.v1.IExplainRequest} request ExplainRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return PredictionService; + })(); + + v1.PredictRequest = (function() { + + /** + * Properties of a PredictRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IPredictRequest + * @property {string|null} [endpoint] PredictRequest endpoint + * @property {Array.|null} [instances] PredictRequest instances + * @property {google.protobuf.IValue|null} [parameters] PredictRequest parameters + */ + + /** + * Constructs a new PredictRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a PredictRequest. + * @implements IPredictRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IPredictRequest=} [properties] Properties to set + */ + function PredictRequest(properties) { + this.instances = []; + 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]]; + } + + /** + * PredictRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @instance + */ + PredictRequest.prototype.endpoint = ""; + + /** + * PredictRequest instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @instance + */ + PredictRequest.prototype.instances = $util.emptyArray; + + /** + * PredictRequest parameters. + * @member {google.protobuf.IValue|null|undefined} parameters + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @instance + */ + PredictRequest.prototype.parameters = null; + + /** + * Creates a new PredictRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @static + * @param {google.cloud.aiplatform.v1.IPredictRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest instance + */ + PredictRequest.create = function create(properties) { + return new PredictRequest(properties); + }; + + /** + * Encodes the specified PredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @static + * @param {google.cloud.aiplatform.v1.IPredictRequest} message PredictRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PredictRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Value.encode(message.parameters, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @static + * @param {google.cloud.aiplatform.v1.IPredictRequest} message PredictRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PredictRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @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.PredictRequest} PredictRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PredictRequest.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.PredictRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.endpoint = reader.string(); + break; + } + case 2: { + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } + case 3: { + message.parameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PredictRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PredictRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PredictRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.PredictRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PredictRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.endpoint != null && message.hasOwnProperty("endpoint")) @@ -129373,66 +135641,51 @@ if (error) return "parameters." + error; } - if (message.explanationSpecOverride != null && message.hasOwnProperty("explanationSpecOverride")) { - var error = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.verify(message.explanationSpecOverride); - if (error) - return "explanationSpecOverride." + error; - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; return null; }; /** - * Creates an ExplainRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PredictRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.PredictRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest + * @returns {google.cloud.aiplatform.v1.PredictRequest} PredictRequest */ - ExplainRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExplainRequest) + PredictRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PredictRequest) return object; - var message = new $root.google.cloud.aiplatform.v1.ExplainRequest(); + var message = new $root.google.cloud.aiplatform.v1.PredictRequest(); if (object.endpoint != null) message.endpoint = String(object.endpoint); if (object.instances) { if (!Array.isArray(object.instances)) - throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.instances: array expected"); + throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.instances: array expected"); message.instances = []; for (var i = 0; i < object.instances.length; ++i) { if (typeof object.instances[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.instances: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.instances: object expected"); message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); } } if (object.parameters != null) { if (typeof object.parameters !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.parameters: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.PredictRequest.parameters: object expected"); message.parameters = $root.google.protobuf.Value.fromObject(object.parameters); } - if (object.explanationSpecOverride != null) { - if (typeof object.explanationSpecOverride !== "object") - throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.explanationSpecOverride: object expected"); - message.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.fromObject(object.explanationSpecOverride); - } - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); return message; }; /** - * Creates a plain object from an ExplainRequest message. Also converts values to other types if specified. + * Creates a plain object from a PredictRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.PredictRequest * @static - * @param {google.cloud.aiplatform.v1.ExplainRequest} message ExplainRequest + * @param {google.cloud.aiplatform.v1.PredictRequest} message PredictRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExplainRequest.toObject = function toObject(message, options) { + PredictRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -129440,9 +135693,7 @@ object.instances = []; if (options.defaults) { object.endpoint = ""; - object.deployedModelId = ""; object.parameters = null; - object.explanationSpecOverride = null; } if (message.endpoint != null && message.hasOwnProperty("endpoint")) object.endpoint = message.endpoint; @@ -129451,65 +135702,62 @@ for (var j = 0; j < message.instances.length; ++j) object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; if (message.parameters != null && message.hasOwnProperty("parameters")) object.parameters = $root.google.protobuf.Value.toObject(message.parameters, options); - if (message.explanationSpecOverride != null && message.hasOwnProperty("explanationSpecOverride")) - object.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.toObject(message.explanationSpecOverride, options); return object; }; /** - * Converts this ExplainRequest to JSON. + * Converts this PredictRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.PredictRequest * @instance * @returns {Object.} JSON object */ - ExplainRequest.prototype.toJSON = function toJSON() { + PredictRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ExplainRequest + * Gets the default type url for PredictRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @memberof google.cloud.aiplatform.v1.PredictRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ExplainRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + PredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExplainRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredictRequest"; }; - return ExplainRequest; + return PredictRequest; })(); - v1.ExplainResponse = (function() { + v1.PredictResponse = (function() { /** - * Properties of an ExplainResponse. + * Properties of a PredictResponse. * @memberof google.cloud.aiplatform.v1 - * @interface IExplainResponse - * @property {Array.|null} [explanations] ExplainResponse explanations - * @property {string|null} [deployedModelId] ExplainResponse deployedModelId - * @property {Array.|null} [predictions] ExplainResponse predictions + * @interface IPredictResponse + * @property {Array.|null} [predictions] PredictResponse predictions + * @property {string|null} [deployedModelId] PredictResponse deployedModelId + * @property {string|null} [model] PredictResponse model + * @property {string|null} [modelVersionId] PredictResponse modelVersionId + * @property {string|null} [modelDisplayName] PredictResponse modelDisplayName */ /** - * Constructs a new ExplainResponse. + * Constructs a new PredictResponse. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents an ExplainResponse. - * @implements IExplainResponse + * @classdesc Represents a PredictResponse. + * @implements IPredictResponse * @constructor - * @param {google.cloud.aiplatform.v1.IExplainResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IPredictResponse=} [properties] Properties to set */ - function ExplainResponse(properties) { - this.explanations = []; + function PredictResponse(properties) { this.predictions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) @@ -129518,99 +135766,118 @@ } /** - * ExplainResponse explanations. - * @member {Array.} explanations - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * PredictResponse predictions. + * @member {Array.} predictions + * @memberof google.cloud.aiplatform.v1.PredictResponse * @instance */ - ExplainResponse.prototype.explanations = $util.emptyArray; + PredictResponse.prototype.predictions = $util.emptyArray; /** - * ExplainResponse deployedModelId. + * PredictResponse deployedModelId. * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @instance */ - ExplainResponse.prototype.deployedModelId = ""; + PredictResponse.prototype.deployedModelId = ""; /** - * ExplainResponse predictions. - * @member {Array.} predictions - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * PredictResponse model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1.PredictResponse * @instance */ - ExplainResponse.prototype.predictions = $util.emptyArray; + PredictResponse.prototype.model = ""; /** - * Creates a new ExplainResponse instance using the specified properties. + * PredictResponse modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1.PredictResponse + * @instance + */ + PredictResponse.prototype.modelVersionId = ""; + + /** + * PredictResponse modelDisplayName. + * @member {string} modelDisplayName + * @memberof google.cloud.aiplatform.v1.PredictResponse + * @instance + */ + PredictResponse.prototype.modelDisplayName = ""; + + /** + * Creates a new PredictResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static - * @param {google.cloud.aiplatform.v1.IExplainResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse instance + * @param {google.cloud.aiplatform.v1.IPredictResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse instance */ - ExplainResponse.create = function create(properties) { - return new ExplainResponse(properties); + PredictResponse.create = function create(properties) { + return new PredictResponse(properties); }; /** - * Encodes the specified ExplainResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. + * Encodes the specified PredictResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static - * @param {google.cloud.aiplatform.v1.IExplainResponse} message ExplainResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPredictResponse} message PredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplainResponse.encode = function encode(message, writer) { + PredictResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.explanations != null && message.explanations.length) - for (var i = 0; i < message.explanations.length; ++i) - $root.google.cloud.aiplatform.v1.Explanation.encode(message.explanations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); 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 3, wireType 2 =*/26).fork()).ldelim(); + $root.google.protobuf.Value.encode(message.predictions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); + if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.modelDisplayName); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.modelVersionId); return writer; }; /** - * Encodes the specified ExplainResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. + * Encodes the specified PredictResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PredictResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static - * @param {google.cloud.aiplatform.v1.IExplainResponse} message ExplainResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1.IPredictResponse} message PredictResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplainResponse.encodeDelimited = function encodeDelimited(message, writer) { + PredictResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExplainResponse message from the specified reader or buffer. + * Decodes a PredictResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @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.ExplainResponse} ExplainResponse + * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplainResponse.decode = function decode(reader, length) { + PredictResponse.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.ExplainResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.PredictResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.explanations && message.explanations.length)) - message.explanations = []; - message.explanations.push($root.google.cloud.aiplatform.v1.Explanation.decode(reader, reader.uint32())); + if (!(message.predictions && message.predictions.length)) + message.predictions = []; + message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); break; } case 2: { @@ -129618,9 +135885,15 @@ break; } case 3: { - if (!(message.predictions && message.predictions.length)) - message.predictions = []; - message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + message.model = reader.string(); + break; + } + case 5: { + message.modelVersionId = reader.string(); + break; + } + case 4: { + message.modelDisplayName = reader.string(); break; } default: @@ -129632,44 +135905,32 @@ }; /** - * Decodes an ExplainResponse message from the specified reader or buffer, length delimited. + * Decodes a PredictResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse + * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplainResponse.decodeDelimited = function decodeDelimited(reader) { + PredictResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExplainResponse message. + * Verifies a PredictResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExplainResponse.verify = function verify(message) { + PredictResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.Explanation.verify(message.explanations[i]); - if (error) - return "explanations." + error; - } - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; if (message.predictions != null && message.hasOwnProperty("predictions")) { if (!Array.isArray(message.predictions)) return "predictions: array expected"; @@ -129679,82 +135940,946 @@ return "predictions." + error; } } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + if (!$util.isString(message.modelVersionId)) + return "modelVersionId: string expected"; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + if (!$util.isString(message.modelDisplayName)) + return "modelDisplayName: string expected"; return null; }; /** - * Creates an ExplainResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PredictResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse + * @returns {google.cloud.aiplatform.v1.PredictResponse} PredictResponse */ - ExplainResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.ExplainResponse) + PredictResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.PredictResponse) return object; - var message = new $root.google.cloud.aiplatform.v1.ExplainResponse(); - if (object.explanations) { - if (!Array.isArray(object.explanations)) - throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.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.ExplainResponse.explanations: object expected"); - message.explanations[i] = $root.google.cloud.aiplatform.v1.Explanation.fromObject(object.explanations[i]); - } - } - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); + var message = new $root.google.cloud.aiplatform.v1.PredictResponse(); if (object.predictions) { if (!Array.isArray(object.predictions)) - throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.predictions: array expected"); + throw TypeError(".google.cloud.aiplatform.v1.PredictResponse.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.ExplainResponse.predictions: object expected"); + throw TypeError(".google.cloud.aiplatform.v1.PredictResponse.predictions: object expected"); message.predictions[i] = $root.google.protobuf.Value.fromObject(object.predictions[i]); } } + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.model != null) + message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); + if (object.modelDisplayName != null) + message.modelDisplayName = String(object.modelDisplayName); return message; }; /** - * Creates a plain object from an ExplainResponse message. Also converts values to other types if specified. + * Creates a plain object from a PredictResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @memberof google.cloud.aiplatform.v1.PredictResponse * @static - * @param {google.cloud.aiplatform.v1.ExplainResponse} message ExplainResponse + * @param {google.cloud.aiplatform.v1.PredictResponse} message PredictResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExplainResponse.toObject = function toObject(message, options) { + PredictResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.explanations = []; + if (options.arrays || options.defaults) object.predictions = []; - } - if (options.defaults) + if (options.defaults) { object.deployedModelId = ""; - 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.Explanation.toObject(message.explanations[j], options); + object.model = ""; + object.modelDisplayName = ""; + object.modelVersionId = ""; } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; 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); } - return object; - }; - - /** - * Converts this ExplainResponse to JSON. + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) + object.modelDisplayName = message.modelDisplayName; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; + return object; + }; + + /** + * Converts this PredictResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.PredictResponse + * @instance + * @returns {Object.} JSON object + */ + PredictResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PredictResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.PredictResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PredictResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.PredictResponse"; + }; + + return PredictResponse; + })(); + + v1.RawPredictRequest = (function() { + + /** + * Properties of a RawPredictRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IRawPredictRequest + * @property {string|null} [endpoint] RawPredictRequest endpoint + * @property {google.api.IHttpBody|null} [httpBody] RawPredictRequest httpBody + */ + + /** + * Constructs a new RawPredictRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a RawPredictRequest. + * @implements IRawPredictRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IRawPredictRequest=} [properties] Properties to set + */ + function RawPredictRequest(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]]; + } + + /** + * RawPredictRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @instance + */ + RawPredictRequest.prototype.endpoint = ""; + + /** + * RawPredictRequest httpBody. + * @member {google.api.IHttpBody|null|undefined} httpBody + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @instance + */ + RawPredictRequest.prototype.httpBody = null; + + /** + * Creates a new RawPredictRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {google.cloud.aiplatform.v1.IRawPredictRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest instance + */ + RawPredictRequest.create = function create(properties) { + return new RawPredictRequest(properties); + }; + + /** + * Encodes the specified RawPredictRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {google.cloud.aiplatform.v1.IRawPredictRequest} message RawPredictRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RawPredictRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.httpBody != null && Object.hasOwnProperty.call(message, "httpBody")) + $root.google.api.HttpBody.encode(message.httpBody, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified RawPredictRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.RawPredictRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {google.cloud.aiplatform.v1.IRawPredictRequest} message RawPredictRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RawPredictRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RawPredictRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @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.RawPredictRequest} RawPredictRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RawPredictRequest.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.RawPredictRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.endpoint = reader.string(); + break; + } + case 2: { + message.httpBody = $root.google.api.HttpBody.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RawPredictRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RawPredictRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RawPredictRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RawPredictRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.httpBody != null && message.hasOwnProperty("httpBody")) { + var error = $root.google.api.HttpBody.verify(message.httpBody); + if (error) + return "httpBody." + error; + } + return null; + }; + + /** + * Creates a RawPredictRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.RawPredictRequest} RawPredictRequest + */ + RawPredictRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.RawPredictRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.RawPredictRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.httpBody != null) { + if (typeof object.httpBody !== "object") + throw TypeError(".google.cloud.aiplatform.v1.RawPredictRequest.httpBody: object expected"); + message.httpBody = $root.google.api.HttpBody.fromObject(object.httpBody); + } + return message; + }; + + /** + * Creates a plain object from a RawPredictRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {google.cloud.aiplatform.v1.RawPredictRequest} message RawPredictRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RawPredictRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.endpoint = ""; + object.httpBody = null; + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.httpBody != null && message.hasOwnProperty("httpBody")) + object.httpBody = $root.google.api.HttpBody.toObject(message.httpBody, options); + return object; + }; + + /** + * Converts this RawPredictRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @instance + * @returns {Object.} JSON object + */ + RawPredictRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RawPredictRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.RawPredictRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RawPredictRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.RawPredictRequest"; + }; + + return RawPredictRequest; + })(); + + v1.ExplainRequest = (function() { + + /** + * Properties of an ExplainRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IExplainRequest + * @property {string|null} [endpoint] ExplainRequest endpoint + * @property {Array.|null} [instances] ExplainRequest instances + * @property {google.protobuf.IValue|null} [parameters] ExplainRequest parameters + * @property {google.cloud.aiplatform.v1.IExplanationSpecOverride|null} [explanationSpecOverride] ExplainRequest explanationSpecOverride + * @property {string|null} [deployedModelId] ExplainRequest deployedModelId + */ + + /** + * Constructs a new ExplainRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ExplainRequest. + * @implements IExplainRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IExplainRequest=} [properties] Properties to set + */ + function ExplainRequest(properties) { + this.instances = []; + 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]]; + } + + /** + * ExplainRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + */ + ExplainRequest.prototype.endpoint = ""; + + /** + * ExplainRequest instances. + * @member {Array.} instances + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + */ + ExplainRequest.prototype.instances = $util.emptyArray; + + /** + * ExplainRequest parameters. + * @member {google.protobuf.IValue|null|undefined} parameters + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + */ + ExplainRequest.prototype.parameters = null; + + /** + * ExplainRequest explanationSpecOverride. + * @member {google.cloud.aiplatform.v1.IExplanationSpecOverride|null|undefined} explanationSpecOverride + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + */ + ExplainRequest.prototype.explanationSpecOverride = null; + + /** + * ExplainRequest deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + */ + ExplainRequest.prototype.deployedModelId = ""; + + /** + * Creates a new ExplainRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {google.cloud.aiplatform.v1.IExplainRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest instance + */ + ExplainRequest.create = function create(properties) { + return new ExplainRequest(properties); + }; + + /** + * Encodes the specified ExplainRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {google.cloud.aiplatform.v1.IExplainRequest} message ExplainRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplainRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.instances != null && message.instances.length) + for (var i = 0; i < message.instances.length; ++i) + $root.google.protobuf.Value.encode(message.instances[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.deployedModelId); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + $root.google.protobuf.Value.encode(message.parameters, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.explanationSpecOverride != null && Object.hasOwnProperty.call(message, "explanationSpecOverride")) + $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.encode(message.explanationSpecOverride, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExplainRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {google.cloud.aiplatform.v1.IExplainRequest} message ExplainRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplainRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExplainRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @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.ExplainRequest} ExplainRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplainRequest.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.ExplainRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.endpoint = reader.string(); + break; + } + case 2: { + if (!(message.instances && message.instances.length)) + message.instances = []; + message.instances.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } + case 4: { + message.parameters = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 5: { + message.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.decode(reader, reader.uint32()); + break; + } + case 3: { + message.deployedModelId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExplainRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplainRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExplainRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExplainRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.instances != null && message.hasOwnProperty("instances")) { + if (!Array.isArray(message.instances)) + return "instances: array expected"; + for (var i = 0; i < message.instances.length; ++i) { + var error = $root.google.protobuf.Value.verify(message.instances[i]); + if (error) + return "instances." + error; + } + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + var error = $root.google.protobuf.Value.verify(message.parameters); + if (error) + return "parameters." + error; + } + if (message.explanationSpecOverride != null && message.hasOwnProperty("explanationSpecOverride")) { + var error = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.verify(message.explanationSpecOverride); + if (error) + return "explanationSpecOverride." + error; + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + return null; + }; + + /** + * Creates an ExplainRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExplainRequest} ExplainRequest + */ + ExplainRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExplainRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.ExplainRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.instances) { + if (!Array.isArray(object.instances)) + throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.instances: array expected"); + message.instances = []; + for (var i = 0; i < object.instances.length; ++i) { + if (typeof object.instances[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.instances: object expected"); + message.instances[i] = $root.google.protobuf.Value.fromObject(object.instances[i]); + } + } + if (object.parameters != null) { + if (typeof object.parameters !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.parameters: object expected"); + message.parameters = $root.google.protobuf.Value.fromObject(object.parameters); + } + if (object.explanationSpecOverride != null) { + if (typeof object.explanationSpecOverride !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExplainRequest.explanationSpecOverride: object expected"); + message.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.fromObject(object.explanationSpecOverride); + } + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + return message; + }; + + /** + * Creates a plain object from an ExplainRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {google.cloud.aiplatform.v1.ExplainRequest} message ExplainRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExplainRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instances = []; + if (options.defaults) { + object.endpoint = ""; + object.deployedModelId = ""; + object.parameters = null; + object.explanationSpecOverride = null; + } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.instances && message.instances.length) { + object.instances = []; + for (var j = 0; j < message.instances.length; ++j) + object.instances[j] = $root.google.protobuf.Value.toObject(message.instances[j], options); + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = $root.google.protobuf.Value.toObject(message.parameters, options); + if (message.explanationSpecOverride != null && message.hasOwnProperty("explanationSpecOverride")) + object.explanationSpecOverride = $root.google.cloud.aiplatform.v1.ExplanationSpecOverride.toObject(message.explanationSpecOverride, options); + return object; + }; + + /** + * Converts this ExplainRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @instance + * @returns {Object.} JSON object + */ + ExplainRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ExplainRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1.ExplainRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExplainRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1.ExplainRequest"; + }; + + return ExplainRequest; + })(); + + v1.ExplainResponse = (function() { + + /** + * Properties of an ExplainResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IExplainResponse + * @property {Array.|null} [explanations] ExplainResponse explanations + * @property {string|null} [deployedModelId] ExplainResponse deployedModelId + * @property {Array.|null} [predictions] ExplainResponse predictions + */ + + /** + * Constructs a new ExplainResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ExplainResponse. + * @implements IExplainResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IExplainResponse=} [properties] Properties to set + */ + function ExplainResponse(properties) { + this.explanations = []; + this.predictions = []; + 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]]; + } + + /** + * ExplainResponse explanations. + * @member {Array.} explanations + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @instance + */ + ExplainResponse.prototype.explanations = $util.emptyArray; + + /** + * ExplainResponse deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @instance + */ + ExplainResponse.prototype.deployedModelId = ""; + + /** + * ExplainResponse predictions. + * @member {Array.} predictions + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @instance + */ + ExplainResponse.prototype.predictions = $util.emptyArray; + + /** + * Creates a new ExplainResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @static + * @param {google.cloud.aiplatform.v1.IExplainResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse instance + */ + ExplainResponse.create = function create(properties) { + return new ExplainResponse(properties); + }; + + /** + * Encodes the specified ExplainResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @static + * @param {google.cloud.aiplatform.v1.IExplainResponse} message ExplainResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplainResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.explanations != null && message.explanations.length) + for (var i = 0; i < message.explanations.length; ++i) + $root.google.cloud.aiplatform.v1.Explanation.encode(message.explanations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + 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 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExplainResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExplainResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @static + * @param {google.cloud.aiplatform.v1.IExplainResponse} message ExplainResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplainResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExplainResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @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.ExplainResponse} ExplainResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplainResponse.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.ExplainResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.explanations && message.explanations.length)) + message.explanations = []; + message.explanations.push($root.google.cloud.aiplatform.v1.Explanation.decode(reader, reader.uint32())); + break; + } + case 2: { + message.deployedModelId = reader.string(); + break; + } + case 3: { + if (!(message.predictions && message.predictions.length)) + message.predictions = []; + message.predictions.push($root.google.protobuf.Value.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExplainResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplainResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExplainResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExplainResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object 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.Explanation.verify(message.explanations[i]); + if (error) + return "explanations." + error; + } + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + 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; + } + } + return null; + }; + + /** + * Creates an ExplainResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExplainResponse} ExplainResponse + */ + ExplainResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExplainResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.ExplainResponse(); + if (object.explanations) { + if (!Array.isArray(object.explanations)) + throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.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.ExplainResponse.explanations: object expected"); + message.explanations[i] = $root.google.cloud.aiplatform.v1.Explanation.fromObject(object.explanations[i]); + } + } + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.predictions) { + if (!Array.isArray(object.predictions)) + throw TypeError(".google.cloud.aiplatform.v1.ExplainResponse.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.ExplainResponse.predictions: object expected"); + message.predictions[i] = $root.google.protobuf.Value.fromObject(object.predictions[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ExplainResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExplainResponse + * @static + * @param {google.cloud.aiplatform.v1.ExplainResponse} message ExplainResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExplainResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.explanations = []; + object.predictions = []; + } + if (options.defaults) + object.deployedModelId = ""; + 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.Explanation.toObject(message.explanations[j], options); + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + 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); + } + return object; + }; + + /** + * Converts this ExplainResponse to JSON. * @function toJSON * @memberof google.cloud.aiplatform.v1.ExplainResponse * @instance @@ -191500,6 +198625,7 @@ * @property {Object.|null} [labels] Model labels * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] Model encryptionSpec * @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 */ @@ -191733,6 +198859,14 @@ */ Model.prototype.modelSourceInfo = null; + /** + * Model originalModelInfo. + * @member {google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo|null|undefined} originalModelInfo + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance + */ + Model.prototype.originalModelInfo = null; + /** * Model metadataArtifact. * @member {string} metadataArtifact @@ -191825,6 +198959,8 @@ $root.google.protobuf.Timestamp.encode(message.versionCreateTime, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); if (message.versionUpdateTime != null && Object.hasOwnProperty.call(message, "versionUpdateTime")) $root.google.protobuf.Timestamp.encode(message.versionUpdateTime, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); + if (message.originalModelInfo != null && Object.hasOwnProperty.call(message, "originalModelInfo")) + $root.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.encode(message.originalModelInfo, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); if (message.modelSourceInfo != null && Object.hasOwnProperty.call(message, "modelSourceInfo")) $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")) @@ -192003,6 +199139,10 @@ message.modelSourceInfo = $root.google.cloud.aiplatform.v1beta1.ModelSourceInfo.decode(reader, reader.uint32()); break; } + case 34: { + message.originalModelInfo = $root.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.decode(reader, reader.uint32()); + break; + } case 44: { message.metadataArtifact = reader.string(); break; @@ -192180,6 +199320,11 @@ if (error) return "modelSourceInfo." + error; } + if (message.originalModelInfo != null && message.hasOwnProperty("originalModelInfo")) { + var error = $root.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.verify(message.originalModelInfo); + if (error) + return "originalModelInfo." + error; + } if (message.metadataArtifact != null && message.hasOwnProperty("metadataArtifact")) if (!$util.isString(message.metadataArtifact)) return "metadataArtifact: string expected"; @@ -192343,6 +199488,11 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.Model.modelSourceInfo: object expected"); message.modelSourceInfo = $root.google.cloud.aiplatform.v1beta1.ModelSourceInfo.fromObject(object.modelSourceInfo); } + if (object.originalModelInfo != null) { + if (typeof object.originalModelInfo !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.originalModelInfo: object expected"); + message.originalModelInfo = $root.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.fromObject(object.originalModelInfo); + } if (object.metadataArtifact != null) message.metadataArtifact = String(object.metadataArtifact); return message; @@ -192390,6 +199540,7 @@ object.versionDescription = ""; object.versionCreateTime = null; object.versionUpdateTime = null; + object.originalModelInfo = null; object.modelSourceInfo = null; object.metadataArtifact = ""; } @@ -192465,6 +199616,8 @@ object.versionCreateTime = $root.google.protobuf.Timestamp.toObject(message.versionCreateTime, options); if (message.versionUpdateTime != null && message.hasOwnProperty("versionUpdateTime")) object.versionUpdateTime = $root.google.protobuf.Timestamp.toObject(message.versionUpdateTime, options); + if (message.originalModelInfo != null && message.hasOwnProperty("originalModelInfo")) + object.originalModelInfo = $root.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.toObject(message.originalModelInfo, options); if (message.modelSourceInfo != null && message.hasOwnProperty("modelSourceInfo")) object.modelSourceInfo = $root.google.cloud.aiplatform.v1beta1.ModelSourceInfo.toObject(message.modelSourceInfo, options); if (message.metadataArtifact != null && message.hasOwnProperty("metadataArtifact")) @@ -192789,6 +199942,209 @@ return ExportFormat; })(); + Model.OriginalModelInfo = (function() { + + /** + * Properties of an OriginalModelInfo. + * @memberof google.cloud.aiplatform.v1beta1.Model + * @interface IOriginalModelInfo + * @property {string|null} [model] OriginalModelInfo model + */ + + /** + * Constructs a new OriginalModelInfo. + * @memberof google.cloud.aiplatform.v1beta1.Model + * @classdesc Represents an OriginalModelInfo. + * @implements IOriginalModelInfo + * @constructor + * @param {google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo=} [properties] Properties to set + */ + function OriginalModelInfo(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]]; + } + + /** + * OriginalModelInfo model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @instance + */ + OriginalModelInfo.prototype.model = ""; + + /** + * Creates a new OriginalModelInfo instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @static + * @param {google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo} OriginalModelInfo instance + */ + OriginalModelInfo.create = function create(properties) { + return new OriginalModelInfo(properties); + }; + + /** + * Encodes the specified OriginalModelInfo message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @static + * @param {google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo} message OriginalModelInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OriginalModelInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + return writer; + }; + + /** + * Encodes the specified OriginalModelInfo message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @static + * @param {google.cloud.aiplatform.v1beta1.Model.IOriginalModelInfo} message OriginalModelInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OriginalModelInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OriginalModelInfo message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @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.OriginalModelInfo} OriginalModelInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OriginalModelInfo.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.OriginalModelInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.model = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OriginalModelInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo} OriginalModelInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OriginalModelInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OriginalModelInfo message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OriginalModelInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + return null; + }; + + /** + * Creates an OriginalModelInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo} OriginalModelInfo + */ + OriginalModelInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo(); + if (object.model != null) + message.model = String(object.model); + return message; + }; + + /** + * Creates a plain object from an OriginalModelInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @static + * @param {google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo} message OriginalModelInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OriginalModelInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.model = ""; + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + return object; + }; + + /** + * Converts this OriginalModelInfo to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @instance + * @returns {Object.} JSON object + */ + OriginalModelInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for OriginalModelInfo + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OriginalModelInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Model.OriginalModelInfo"; + }; + + return OriginalModelInfo; + })(); + /** * DeploymentResourcesType enum. * @name google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType @@ -211498,6 +218854,7 @@ * @property {string|null} [displayName] DeployedModel displayName * @property {google.protobuf.ITimestamp|null} [createTime] DeployedModel createTime * @property {google.cloud.aiplatform.v1beta1.IExplanationSpec|null} [explanationSpec] DeployedModel explanationSpec + * @property {boolean|null} [disableExplanations] DeployedModel disableExplanations * @property {string|null} [serviceAccount] DeployedModel serviceAccount * @property {boolean|null} [enableContainerLogging] DeployedModel enableContainerLogging * @property {boolean|null} [enableAccessLogging] DeployedModel enableAccessLogging @@ -211591,6 +218948,14 @@ */ DeployedModel.prototype.explanationSpec = null; + /** + * DeployedModel disableExplanations. + * @member {boolean} disableExplanations + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @instance + */ + DeployedModel.prototype.disableExplanations = false; + /** * DeployedModel serviceAccount. * @member {string} serviceAccount @@ -211687,6 +219052,8 @@ writer.uint32(/* id 17, wireType 2 =*/138).string(message.sharedResources); if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) writer.uint32(/* id 18, wireType 2 =*/146).string(message.modelVersionId); + if (message.disableExplanations != null && Object.hasOwnProperty.call(message, "disableExplanations")) + writer.uint32(/* id 19, wireType 0 =*/152).bool(message.disableExplanations); return writer; }; @@ -211757,6 +219124,10 @@ message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.decode(reader, reader.uint32()); break; } + case 19: { + message.disableExplanations = reader.bool(); + break; + } case 11: { message.serviceAccount = reader.string(); break; @@ -211856,6 +219227,9 @@ if (error) return "explanationSpec." + error; } + if (message.disableExplanations != null && message.hasOwnProperty("disableExplanations")) + if (typeof message.disableExplanations !== "boolean") + return "disableExplanations: boolean expected"; if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) if (!$util.isString(message.serviceAccount)) return "serviceAccount: string expected"; @@ -211915,6 +219289,8 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedModel.explanationSpec: object expected"); message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.fromObject(object.explanationSpec); } + if (object.disableExplanations != null) + message.disableExplanations = Boolean(object.disableExplanations); if (object.serviceAccount != null) message.serviceAccount = String(object.serviceAccount); if (object.enableContainerLogging != null) @@ -211953,6 +219329,7 @@ object.enableAccessLogging = false; object.privateEndpoints = null; object.modelVersionId = ""; + object.disableExplanations = false; } if (message.id != null && message.hasOwnProperty("id")) object.id = message.id; @@ -211989,6 +219366,8 @@ } if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) object.modelVersionId = message.modelVersionId; + if (message.disableExplanations != null && message.hasOwnProperty("disableExplanations")) + object.disableExplanations = message.disableExplanations; return object; }; @@ -240687,6 +248066,7 @@ * @interface IMetricSpec * @property {string|null} [metricId] MetricSpec metricId * @property {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|null} [goal] MetricSpec goal + * @property {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig|null} [safetyConfig] MetricSpec safetyConfig */ /** @@ -240720,6 +248100,28 @@ */ MetricSpec.prototype.goal = 0; + /** + * MetricSpec safetyConfig. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig|null|undefined} safetyConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec + * @instance + */ + MetricSpec.prototype.safetyConfig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MetricSpec _safetyConfig. + * @member {"safetyConfig"|undefined} _safetyConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec + * @instance + */ + Object.defineProperty(MetricSpec.prototype, "_safetyConfig", { + get: $util.oneOfGetter($oneOfFields = ["safetyConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new MetricSpec instance using the specified properties. * @function create @@ -240748,6 +248150,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); if (message.goal != null && Object.hasOwnProperty.call(message, "goal")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.goal); + if (message.safetyConfig != null && Object.hasOwnProperty.call(message, "safetyConfig")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.encode(message.safetyConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -240790,6 +248194,10 @@ message.goal = reader.int32(); break; } + case 3: { + message.safetyConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -240825,6 +248233,7 @@ MetricSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.metricId != null && message.hasOwnProperty("metricId")) if (!$util.isString(message.metricId)) return "metricId: string expected"; @@ -240837,6 +248246,14 @@ case 2: break; } + if (message.safetyConfig != null && message.hasOwnProperty("safetyConfig")) { + properties._safetyConfig = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.verify(message.safetyConfig); + if (error) + return "safetyConfig." + error; + } + } return null; }; @@ -240874,6 +248291,11 @@ message.goal = 2; break; } + if (object.safetyConfig != null) { + if (typeof object.safetyConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.safetyConfig: object expected"); + message.safetyConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.fromObject(object.safetyConfig); + } return message; }; @@ -240898,6 +248320,11 @@ object.metricId = message.metricId; if (message.goal != null && message.hasOwnProperty("goal")) object.goal = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType[message.goal] === undefined ? message.goal : $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType[message.goal] : message.goal; + if (message.safetyConfig != null && message.hasOwnProperty("safetyConfig")) { + object.safetyConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.toObject(message.safetyConfig, options); + if (options.oneofs) + object._safetyConfig = "safetyConfig"; + } return object; }; @@ -240927,6 +248354,251 @@ return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec"; }; + MetricSpec.SafetyMetricConfig = (function() { + + /** + * Properties of a SafetyMetricConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec + * @interface ISafetyMetricConfig + * @property {number|null} [safetyThreshold] SafetyMetricConfig safetyThreshold + * @property {number|null} [desiredMinSafeTrialsFraction] SafetyMetricConfig desiredMinSafeTrialsFraction + */ + + /** + * Constructs a new SafetyMetricConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec + * @classdesc Represents a SafetyMetricConfig. + * @implements ISafetyMetricConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig=} [properties] Properties to set + */ + function SafetyMetricConfig(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]]; + } + + /** + * SafetyMetricConfig safetyThreshold. + * @member {number} safetyThreshold + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + */ + SafetyMetricConfig.prototype.safetyThreshold = 0; + + /** + * SafetyMetricConfig desiredMinSafeTrialsFraction. + * @member {number|null|undefined} desiredMinSafeTrialsFraction + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + */ + SafetyMetricConfig.prototype.desiredMinSafeTrialsFraction = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SafetyMetricConfig _desiredMinSafeTrialsFraction. + * @member {"desiredMinSafeTrialsFraction"|undefined} _desiredMinSafeTrialsFraction + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + */ + Object.defineProperty(SafetyMetricConfig.prototype, "_desiredMinSafeTrialsFraction", { + get: $util.oneOfGetter($oneOfFields = ["desiredMinSafeTrialsFraction"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SafetyMetricConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig instance + */ + SafetyMetricConfig.create = function create(properties) { + return new SafetyMetricConfig(properties); + }; + + /** + * Encodes the specified SafetyMetricConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig} message SafetyMetricConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyMetricConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.safetyThreshold != null && Object.hasOwnProperty.call(message, "safetyThreshold")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.safetyThreshold); + if (message.desiredMinSafeTrialsFraction != null && Object.hasOwnProperty.call(message, "desiredMinSafeTrialsFraction")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.desiredMinSafeTrialsFraction); + return writer; + }; + + /** + * Encodes the specified SafetyMetricConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.ISafetyMetricConfig} message SafetyMetricConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SafetyMetricConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @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.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyMetricConfig.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.StudySpec.MetricSpec.SafetyMetricConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.safetyThreshold = reader.double(); + break; + } + case 2: { + message.desiredMinSafeTrialsFraction = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SafetyMetricConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SafetyMetricConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SafetyMetricConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SafetyMetricConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.safetyThreshold != null && message.hasOwnProperty("safetyThreshold")) + if (typeof message.safetyThreshold !== "number") + return "safetyThreshold: number expected"; + if (message.desiredMinSafeTrialsFraction != null && message.hasOwnProperty("desiredMinSafeTrialsFraction")) { + properties._desiredMinSafeTrialsFraction = 1; + if (typeof message.desiredMinSafeTrialsFraction !== "number") + return "desiredMinSafeTrialsFraction: number expected"; + } + return null; + }; + + /** + * Creates a SafetyMetricConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig} SafetyMetricConfig + */ + SafetyMetricConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig(); + if (object.safetyThreshold != null) + message.safetyThreshold = Number(object.safetyThreshold); + if (object.desiredMinSafeTrialsFraction != null) + message.desiredMinSafeTrialsFraction = Number(object.desiredMinSafeTrialsFraction); + return message; + }; + + /** + * Creates a plain object from a SafetyMetricConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig} message SafetyMetricConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SafetyMetricConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.safetyThreshold = 0; + if (message.safetyThreshold != null && message.hasOwnProperty("safetyThreshold")) + object.safetyThreshold = options.json && !isFinite(message.safetyThreshold) ? String(message.safetyThreshold) : message.safetyThreshold; + if (message.desiredMinSafeTrialsFraction != null && message.hasOwnProperty("desiredMinSafeTrialsFraction")) { + object.desiredMinSafeTrialsFraction = options.json && !isFinite(message.desiredMinSafeTrialsFraction) ? String(message.desiredMinSafeTrialsFraction) : message.desiredMinSafeTrialsFraction; + if (options.oneofs) + object._desiredMinSafeTrialsFraction = "desiredMinSafeTrialsFraction"; + } + return object; + }; + + /** + * Converts this SafetyMetricConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @instance + * @returns {Object.} JSON object + */ + SafetyMetricConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SafetyMetricConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SafetyMetricConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.SafetyMetricConfig"; + }; + + return SafetyMetricConfig; + })(); + /** * GoalType enum. * @name google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType @@ -243169,388 +250841,5170 @@ return message; }; - /** - * Decodes an IntValueCondition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntValueCondition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an IntValueCondition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntValueCondition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IntValueCondition message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IntValueCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isInteger(message.values[i]) && !(message.values[i] && $util.isInteger(message.values[i].low) && $util.isInteger(message.values[i].high))) + return "values: integer|Long[] expected"; + } + return null; + }; + + /** + * Creates an IntValueCondition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition + */ + IntValueCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + if ($util.Long) + (message.values[i] = $util.Long.fromValue(object.values[i])).unsigned = false; + else if (typeof object.values[i] === "string") + message.values[i] = parseInt(object.values[i], 10); + else if (typeof object.values[i] === "number") + message.values[i] = object.values[i]; + else if (typeof object.values[i] === "object") + message.values[i] = new $util.LongBits(object.values[i].low >>> 0, object.values[i].high >>> 0).toNumber(); + } + return message; + }; + + /** + * Creates a plain object from an IntValueCondition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} message IntValueCondition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IntValueCondition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + if (typeof message.values[j] === "number") + object.values[j] = options.longs === String ? String(message.values[j]) : message.values[j]; + else + object.values[j] = options.longs === String ? $util.Long.prototype.toString.call(message.values[j]) : options.longs === Number ? new $util.LongBits(message.values[j].low >>> 0, message.values[j].high >>> 0).toNumber() : message.values[j]; + } + return object; + }; + + /** + * Converts this IntValueCondition to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @instance + * @returns {Object.} JSON object + */ + IntValueCondition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IntValueCondition + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IntValueCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition"; + }; + + return IntValueCondition; + })(); + + ConditionalParameterSpec.CategoricalValueCondition = (function() { + + /** + * Properties of a CategoricalValueCondition. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @interface ICategoricalValueCondition + * @property {Array.|null} [values] CategoricalValueCondition values + */ + + /** + * Constructs a new CategoricalValueCondition. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @classdesc Represents a CategoricalValueCondition. + * @implements ICategoricalValueCondition + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition=} [properties] Properties to set + */ + function CategoricalValueCondition(properties) { + this.values = []; + 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]]; + } + + /** + * CategoricalValueCondition values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @instance + */ + CategoricalValueCondition.prototype.values = $util.emptyArray; + + /** + * Creates a new CategoricalValueCondition instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition instance + */ + CategoricalValueCondition.create = function create(properties) { + return new CategoricalValueCondition(properties); + }; + + /** + * Encodes the specified CategoricalValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition} message CategoricalValueCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalValueCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); + return writer; + }; + + /** + * Encodes the specified CategoricalValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition} message CategoricalValueCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalValueCondition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CategoricalValueCondition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @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.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalValueCondition.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.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CategoricalValueCondition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalValueCondition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CategoricalValueCondition message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CategoricalValueCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; + } + return null; + }; + + /** + * Creates a CategoricalValueCondition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition + */ + CategoricalValueCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[i]); + } + return message; + }; + + /** + * Creates a plain object from a CategoricalValueCondition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} message CategoricalValueCondition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CategoricalValueCondition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; + } + return object; + }; + + /** + * Converts this CategoricalValueCondition to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @instance + * @returns {Object.} JSON object + */ + CategoricalValueCondition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CategoricalValueCondition + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CategoricalValueCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition"; + }; + + return CategoricalValueCondition; + })(); + + return ConditionalParameterSpec; + })(); + + /** + * ScaleType enum. + * @name google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType + * @enum {number} + * @property {number} SCALE_TYPE_UNSPECIFIED=0 SCALE_TYPE_UNSPECIFIED value + * @property {number} UNIT_LINEAR_SCALE=1 UNIT_LINEAR_SCALE value + * @property {number} UNIT_LOG_SCALE=2 UNIT_LOG_SCALE value + * @property {number} UNIT_REVERSE_LOG_SCALE=3 UNIT_REVERSE_LOG_SCALE value + */ + ParameterSpec.ScaleType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SCALE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "UNIT_LINEAR_SCALE"] = 1; + values[valuesById[2] = "UNIT_LOG_SCALE"] = 2; + values[valuesById[3] = "UNIT_REVERSE_LOG_SCALE"] = 3; + return values; + })(); + + return ParameterSpec; + })(); + + StudySpec.DecayCurveAutomatedStoppingSpec = (function() { + + /** + * Properties of a DecayCurveAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface IDecayCurveAutomatedStoppingSpec + * @property {boolean|null} [useElapsedDuration] DecayCurveAutomatedStoppingSpec useElapsedDuration + */ + + /** + * Constructs a new DecayCurveAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @classdesc Represents a DecayCurveAutomatedStoppingSpec. + * @implements IDecayCurveAutomatedStoppingSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec=} [properties] Properties to set + */ + function DecayCurveAutomatedStoppingSpec(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]]; + } + + /** + * DecayCurveAutomatedStoppingSpec useElapsedDuration. + * @member {boolean} useElapsedDuration + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @instance + */ + DecayCurveAutomatedStoppingSpec.prototype.useElapsedDuration = false; + + /** + * Creates a new DecayCurveAutomatedStoppingSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec instance + */ + DecayCurveAutomatedStoppingSpec.create = function create(properties) { + return new DecayCurveAutomatedStoppingSpec(properties); + }; + + /** + * Encodes the specified DecayCurveAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DecayCurveAutomatedStoppingSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useElapsedDuration); + return writer; + }; + + /** + * Encodes the specified DecayCurveAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DecayCurveAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @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.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DecayCurveAutomatedStoppingSpec.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.StudySpec.DecayCurveAutomatedStoppingSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.useElapsedDuration = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DecayCurveAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DecayCurveAutomatedStoppingSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DecayCurveAutomatedStoppingSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + if (typeof message.useElapsedDuration !== "boolean") + return "useElapsedDuration: boolean expected"; + return null; + }; + + /** + * Creates a DecayCurveAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec + */ + DecayCurveAutomatedStoppingSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec(); + if (object.useElapsedDuration != null) + message.useElapsedDuration = Boolean(object.useElapsedDuration); + return message; + }; + + /** + * Creates a plain object from a DecayCurveAutomatedStoppingSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DecayCurveAutomatedStoppingSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.useElapsedDuration = false; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + object.useElapsedDuration = message.useElapsedDuration; + return object; + }; + + /** + * Converts this DecayCurveAutomatedStoppingSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @instance + * @returns {Object.} JSON object + */ + DecayCurveAutomatedStoppingSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DecayCurveAutomatedStoppingSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DecayCurveAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec"; + }; + + return DecayCurveAutomatedStoppingSpec; + })(); + + StudySpec.MedianAutomatedStoppingSpec = (function() { + + /** + * Properties of a MedianAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface IMedianAutomatedStoppingSpec + * @property {boolean|null} [useElapsedDuration] MedianAutomatedStoppingSpec useElapsedDuration + */ + + /** + * Constructs a new MedianAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @classdesc Represents a MedianAutomatedStoppingSpec. + * @implements IMedianAutomatedStoppingSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec=} [properties] Properties to set + */ + function MedianAutomatedStoppingSpec(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]]; + } + + /** + * MedianAutomatedStoppingSpec useElapsedDuration. + * @member {boolean} useElapsedDuration + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @instance + */ + MedianAutomatedStoppingSpec.prototype.useElapsedDuration = false; + + /** + * Creates a new MedianAutomatedStoppingSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec instance + */ + MedianAutomatedStoppingSpec.create = function create(properties) { + return new MedianAutomatedStoppingSpec(properties); + }; + + /** + * Encodes the specified MedianAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MedianAutomatedStoppingSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useElapsedDuration); + return writer; + }; + + /** + * Encodes the specified MedianAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MedianAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @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.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MedianAutomatedStoppingSpec.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.StudySpec.MedianAutomatedStoppingSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.useElapsedDuration = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MedianAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MedianAutomatedStoppingSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MedianAutomatedStoppingSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + if (typeof message.useElapsedDuration !== "boolean") + return "useElapsedDuration: boolean expected"; + return null; + }; + + /** + * Creates a MedianAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec + */ + MedianAutomatedStoppingSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec(); + if (object.useElapsedDuration != null) + message.useElapsedDuration = Boolean(object.useElapsedDuration); + return message; + }; + + /** + * Creates a plain object from a MedianAutomatedStoppingSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MedianAutomatedStoppingSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.useElapsedDuration = false; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + object.useElapsedDuration = message.useElapsedDuration; + return object; + }; + + /** + * Converts this MedianAutomatedStoppingSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @instance + * @returns {Object.} JSON object + */ + MedianAutomatedStoppingSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MedianAutomatedStoppingSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MedianAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec"; + }; + + return MedianAutomatedStoppingSpec; + })(); + + StudySpec.ConvexAutomatedStoppingSpec = (function() { + + /** + * Properties of a ConvexAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface IConvexAutomatedStoppingSpec + * @property {number|Long|null} [maxStepCount] ConvexAutomatedStoppingSpec maxStepCount + * @property {number|Long|null} [minStepCount] ConvexAutomatedStoppingSpec minStepCount + * @property {number|Long|null} [minMeasurementCount] ConvexAutomatedStoppingSpec minMeasurementCount + * @property {string|null} [learningRateParameterName] ConvexAutomatedStoppingSpec learningRateParameterName + * @property {boolean|null} [useElapsedDuration] ConvexAutomatedStoppingSpec useElapsedDuration + * @property {boolean|null} [updateAllStoppedTrials] ConvexAutomatedStoppingSpec updateAllStoppedTrials + */ + + /** + * Constructs a new ConvexAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @classdesc Represents a ConvexAutomatedStoppingSpec. + * @implements IConvexAutomatedStoppingSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec=} [properties] Properties to set + */ + function ConvexAutomatedStoppingSpec(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]]; + } + + /** + * ConvexAutomatedStoppingSpec maxStepCount. + * @member {number|Long} maxStepCount + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.maxStepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ConvexAutomatedStoppingSpec minStepCount. + * @member {number|Long} minStepCount + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.minStepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ConvexAutomatedStoppingSpec minMeasurementCount. + * @member {number|Long} minMeasurementCount + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.minMeasurementCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ConvexAutomatedStoppingSpec learningRateParameterName. + * @member {string} learningRateParameterName + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.learningRateParameterName = ""; + + /** + * ConvexAutomatedStoppingSpec useElapsedDuration. + * @member {boolean} useElapsedDuration + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.useElapsedDuration = false; + + /** + * ConvexAutomatedStoppingSpec updateAllStoppedTrials. + * @member {boolean|null|undefined} updateAllStoppedTrials + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.updateAllStoppedTrials = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ConvexAutomatedStoppingSpec _updateAllStoppedTrials. + * @member {"updateAllStoppedTrials"|undefined} _updateAllStoppedTrials + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + Object.defineProperty(ConvexAutomatedStoppingSpec.prototype, "_updateAllStoppedTrials", { + get: $util.oneOfGetter($oneOfFields = ["updateAllStoppedTrials"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ConvexAutomatedStoppingSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec instance + */ + ConvexAutomatedStoppingSpec.create = function create(properties) { + return new ConvexAutomatedStoppingSpec(properties); + }; + + /** + * Encodes the specified ConvexAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConvexAutomatedStoppingSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxStepCount != null && Object.hasOwnProperty.call(message, "maxStepCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxStepCount); + if (message.minStepCount != null && Object.hasOwnProperty.call(message, "minStepCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minStepCount); + if (message.minMeasurementCount != null && Object.hasOwnProperty.call(message, "minMeasurementCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.minMeasurementCount); + if (message.learningRateParameterName != null && Object.hasOwnProperty.call(message, "learningRateParameterName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.learningRateParameterName); + if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useElapsedDuration); + if (message.updateAllStoppedTrials != null && Object.hasOwnProperty.call(message, "updateAllStoppedTrials")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.updateAllStoppedTrials); + return writer; + }; + + /** + * Encodes the specified ConvexAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConvexAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @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.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConvexAutomatedStoppingSpec.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.StudySpec.ConvexAutomatedStoppingSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.maxStepCount = reader.int64(); + break; + } + case 2: { + message.minStepCount = reader.int64(); + break; + } + case 3: { + message.minMeasurementCount = reader.int64(); + break; + } + case 4: { + message.learningRateParameterName = reader.string(); + break; + } + case 5: { + message.useElapsedDuration = reader.bool(); + break; + } + case 6: { + message.updateAllStoppedTrials = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConvexAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConvexAutomatedStoppingSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConvexAutomatedStoppingSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.maxStepCount != null && message.hasOwnProperty("maxStepCount")) + if (!$util.isInteger(message.maxStepCount) && !(message.maxStepCount && $util.isInteger(message.maxStepCount.low) && $util.isInteger(message.maxStepCount.high))) + return "maxStepCount: integer|Long expected"; + if (message.minStepCount != null && message.hasOwnProperty("minStepCount")) + if (!$util.isInteger(message.minStepCount) && !(message.minStepCount && $util.isInteger(message.minStepCount.low) && $util.isInteger(message.minStepCount.high))) + return "minStepCount: integer|Long expected"; + if (message.minMeasurementCount != null && message.hasOwnProperty("minMeasurementCount")) + if (!$util.isInteger(message.minMeasurementCount) && !(message.minMeasurementCount && $util.isInteger(message.minMeasurementCount.low) && $util.isInteger(message.minMeasurementCount.high))) + return "minMeasurementCount: integer|Long expected"; + if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) + if (!$util.isString(message.learningRateParameterName)) + return "learningRateParameterName: string expected"; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + if (typeof message.useElapsedDuration !== "boolean") + return "useElapsedDuration: boolean expected"; + if (message.updateAllStoppedTrials != null && message.hasOwnProperty("updateAllStoppedTrials")) { + properties._updateAllStoppedTrials = 1; + if (typeof message.updateAllStoppedTrials !== "boolean") + return "updateAllStoppedTrials: boolean expected"; + } + return null; + }; + + /** + * Creates a ConvexAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec + */ + ConvexAutomatedStoppingSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec(); + if (object.maxStepCount != null) + if ($util.Long) + (message.maxStepCount = $util.Long.fromValue(object.maxStepCount)).unsigned = false; + else if (typeof object.maxStepCount === "string") + message.maxStepCount = parseInt(object.maxStepCount, 10); + else if (typeof object.maxStepCount === "number") + message.maxStepCount = object.maxStepCount; + else if (typeof object.maxStepCount === "object") + message.maxStepCount = new $util.LongBits(object.maxStepCount.low >>> 0, object.maxStepCount.high >>> 0).toNumber(); + if (object.minStepCount != null) + if ($util.Long) + (message.minStepCount = $util.Long.fromValue(object.minStepCount)).unsigned = false; + else if (typeof object.minStepCount === "string") + message.minStepCount = parseInt(object.minStepCount, 10); + else if (typeof object.minStepCount === "number") + message.minStepCount = object.minStepCount; + else if (typeof object.minStepCount === "object") + message.minStepCount = new $util.LongBits(object.minStepCount.low >>> 0, object.minStepCount.high >>> 0).toNumber(); + if (object.minMeasurementCount != null) + if ($util.Long) + (message.minMeasurementCount = $util.Long.fromValue(object.minMeasurementCount)).unsigned = false; + else if (typeof object.minMeasurementCount === "string") + message.minMeasurementCount = parseInt(object.minMeasurementCount, 10); + else if (typeof object.minMeasurementCount === "number") + message.minMeasurementCount = object.minMeasurementCount; + else if (typeof object.minMeasurementCount === "object") + message.minMeasurementCount = new $util.LongBits(object.minMeasurementCount.low >>> 0, object.minMeasurementCount.high >>> 0).toNumber(); + if (object.learningRateParameterName != null) + message.learningRateParameterName = String(object.learningRateParameterName); + if (object.useElapsedDuration != null) + message.useElapsedDuration = Boolean(object.useElapsedDuration); + if (object.updateAllStoppedTrials != null) + message.updateAllStoppedTrials = Boolean(object.updateAllStoppedTrials); + return message; + }; + + /** + * Creates a plain object from a ConvexAutomatedStoppingSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConvexAutomatedStoppingSpec.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.maxStepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxStepCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.minStepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.minStepCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.minMeasurementCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.minMeasurementCount = options.longs === String ? "0" : 0; + object.learningRateParameterName = ""; + object.useElapsedDuration = false; + } + if (message.maxStepCount != null && message.hasOwnProperty("maxStepCount")) + if (typeof message.maxStepCount === "number") + object.maxStepCount = options.longs === String ? String(message.maxStepCount) : message.maxStepCount; + else + object.maxStepCount = options.longs === String ? $util.Long.prototype.toString.call(message.maxStepCount) : options.longs === Number ? new $util.LongBits(message.maxStepCount.low >>> 0, message.maxStepCount.high >>> 0).toNumber() : message.maxStepCount; + if (message.minStepCount != null && message.hasOwnProperty("minStepCount")) + if (typeof message.minStepCount === "number") + object.minStepCount = options.longs === String ? String(message.minStepCount) : message.minStepCount; + else + object.minStepCount = options.longs === String ? $util.Long.prototype.toString.call(message.minStepCount) : options.longs === Number ? new $util.LongBits(message.minStepCount.low >>> 0, message.minStepCount.high >>> 0).toNumber() : message.minStepCount; + if (message.minMeasurementCount != null && message.hasOwnProperty("minMeasurementCount")) + if (typeof message.minMeasurementCount === "number") + object.minMeasurementCount = options.longs === String ? String(message.minMeasurementCount) : message.minMeasurementCount; + else + object.minMeasurementCount = options.longs === String ? $util.Long.prototype.toString.call(message.minMeasurementCount) : options.longs === Number ? new $util.LongBits(message.minMeasurementCount.low >>> 0, message.minMeasurementCount.high >>> 0).toNumber() : message.minMeasurementCount; + if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) + object.learningRateParameterName = message.learningRateParameterName; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + object.useElapsedDuration = message.useElapsedDuration; + if (message.updateAllStoppedTrials != null && message.hasOwnProperty("updateAllStoppedTrials")) { + object.updateAllStoppedTrials = message.updateAllStoppedTrials; + if (options.oneofs) + object._updateAllStoppedTrials = "updateAllStoppedTrials"; + } + return object; + }; + + /** + * Converts this ConvexAutomatedStoppingSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + * @returns {Object.} JSON object + */ + ConvexAutomatedStoppingSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ConvexAutomatedStoppingSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConvexAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec"; + }; + + return ConvexAutomatedStoppingSpec; + })(); + + StudySpec.ConvexStopConfig = (function() { + + /** + * Properties of a ConvexStopConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface IConvexStopConfig + * @property {number|Long|null} [maxNumSteps] ConvexStopConfig maxNumSteps + * @property {number|Long|null} [minNumSteps] ConvexStopConfig minNumSteps + * @property {number|Long|null} [autoregressiveOrder] ConvexStopConfig autoregressiveOrder + * @property {string|null} [learningRateParameterName] ConvexStopConfig learningRateParameterName + * @property {boolean|null} [useSeconds] ConvexStopConfig useSeconds + */ + + /** + * Constructs a new ConvexStopConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @classdesc Represents a ConvexStopConfig. + * @implements IConvexStopConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig=} [properties] Properties to set + */ + function ConvexStopConfig(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]]; + } + + /** + * ConvexStopConfig maxNumSteps. + * @member {number|Long} maxNumSteps + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + */ + ConvexStopConfig.prototype.maxNumSteps = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ConvexStopConfig minNumSteps. + * @member {number|Long} minNumSteps + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + */ + ConvexStopConfig.prototype.minNumSteps = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ConvexStopConfig autoregressiveOrder. + * @member {number|Long} autoregressiveOrder + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + */ + ConvexStopConfig.prototype.autoregressiveOrder = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ConvexStopConfig learningRateParameterName. + * @member {string} learningRateParameterName + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + */ + ConvexStopConfig.prototype.learningRateParameterName = ""; + + /** + * ConvexStopConfig useSeconds. + * @member {boolean} useSeconds + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + */ + ConvexStopConfig.prototype.useSeconds = false; + + /** + * Creates a new ConvexStopConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig instance + */ + ConvexStopConfig.create = function create(properties) { + return new ConvexStopConfig(properties); + }; + + /** + * Encodes the specified ConvexStopConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig} message ConvexStopConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConvexStopConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxNumSteps != null && Object.hasOwnProperty.call(message, "maxNumSteps")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxNumSteps); + if (message.minNumSteps != null && Object.hasOwnProperty.call(message, "minNumSteps")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minNumSteps); + if (message.autoregressiveOrder != null && Object.hasOwnProperty.call(message, "autoregressiveOrder")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.autoregressiveOrder); + if (message.learningRateParameterName != null && Object.hasOwnProperty.call(message, "learningRateParameterName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.learningRateParameterName); + if (message.useSeconds != null && Object.hasOwnProperty.call(message, "useSeconds")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useSeconds); + return writer; + }; + + /** + * Encodes the specified ConvexStopConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig} message ConvexStopConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConvexStopConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConvexStopConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @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.StudySpec.ConvexStopConfig} ConvexStopConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConvexStopConfig.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.StudySpec.ConvexStopConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.maxNumSteps = reader.int64(); + break; + } + case 2: { + message.minNumSteps = reader.int64(); + break; + } + case 3: { + message.autoregressiveOrder = reader.int64(); + break; + } + case 4: { + message.learningRateParameterName = reader.string(); + break; + } + case 5: { + message.useSeconds = reader.bool(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ConvexStopConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConvexStopConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConvexStopConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConvexStopConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.maxNumSteps != null && message.hasOwnProperty("maxNumSteps")) + if (!$util.isInteger(message.maxNumSteps) && !(message.maxNumSteps && $util.isInteger(message.maxNumSteps.low) && $util.isInteger(message.maxNumSteps.high))) + return "maxNumSteps: integer|Long expected"; + if (message.minNumSteps != null && message.hasOwnProperty("minNumSteps")) + if (!$util.isInteger(message.minNumSteps) && !(message.minNumSteps && $util.isInteger(message.minNumSteps.low) && $util.isInteger(message.minNumSteps.high))) + return "minNumSteps: integer|Long expected"; + if (message.autoregressiveOrder != null && message.hasOwnProperty("autoregressiveOrder")) + if (!$util.isInteger(message.autoregressiveOrder) && !(message.autoregressiveOrder && $util.isInteger(message.autoregressiveOrder.low) && $util.isInteger(message.autoregressiveOrder.high))) + return "autoregressiveOrder: integer|Long expected"; + if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) + if (!$util.isString(message.learningRateParameterName)) + return "learningRateParameterName: string expected"; + if (message.useSeconds != null && message.hasOwnProperty("useSeconds")) + if (typeof message.useSeconds !== "boolean") + return "useSeconds: boolean expected"; + return null; + }; + + /** + * Creates a ConvexStopConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig + */ + ConvexStopConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig(); + if (object.maxNumSteps != null) + if ($util.Long) + (message.maxNumSteps = $util.Long.fromValue(object.maxNumSteps)).unsigned = false; + else if (typeof object.maxNumSteps === "string") + message.maxNumSteps = parseInt(object.maxNumSteps, 10); + else if (typeof object.maxNumSteps === "number") + message.maxNumSteps = object.maxNumSteps; + else if (typeof object.maxNumSteps === "object") + message.maxNumSteps = new $util.LongBits(object.maxNumSteps.low >>> 0, object.maxNumSteps.high >>> 0).toNumber(); + if (object.minNumSteps != null) + if ($util.Long) + (message.minNumSteps = $util.Long.fromValue(object.minNumSteps)).unsigned = false; + else if (typeof object.minNumSteps === "string") + message.minNumSteps = parseInt(object.minNumSteps, 10); + else if (typeof object.minNumSteps === "number") + message.minNumSteps = object.minNumSteps; + else if (typeof object.minNumSteps === "object") + message.minNumSteps = new $util.LongBits(object.minNumSteps.low >>> 0, object.minNumSteps.high >>> 0).toNumber(); + if (object.autoregressiveOrder != null) + if ($util.Long) + (message.autoregressiveOrder = $util.Long.fromValue(object.autoregressiveOrder)).unsigned = false; + else if (typeof object.autoregressiveOrder === "string") + message.autoregressiveOrder = parseInt(object.autoregressiveOrder, 10); + else if (typeof object.autoregressiveOrder === "number") + message.autoregressiveOrder = object.autoregressiveOrder; + else if (typeof object.autoregressiveOrder === "object") + message.autoregressiveOrder = new $util.LongBits(object.autoregressiveOrder.low >>> 0, object.autoregressiveOrder.high >>> 0).toNumber(); + if (object.learningRateParameterName != null) + message.learningRateParameterName = String(object.learningRateParameterName); + if (object.useSeconds != null) + message.useSeconds = Boolean(object.useSeconds); + return message; + }; + + /** + * Creates a plain object from a ConvexStopConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} message ConvexStopConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConvexStopConfig.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.maxNumSteps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxNumSteps = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.minNumSteps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.minNumSteps = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.autoregressiveOrder = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.autoregressiveOrder = options.longs === String ? "0" : 0; + object.learningRateParameterName = ""; + object.useSeconds = false; + } + if (message.maxNumSteps != null && message.hasOwnProperty("maxNumSteps")) + if (typeof message.maxNumSteps === "number") + object.maxNumSteps = options.longs === String ? String(message.maxNumSteps) : message.maxNumSteps; + else + object.maxNumSteps = options.longs === String ? $util.Long.prototype.toString.call(message.maxNumSteps) : options.longs === Number ? new $util.LongBits(message.maxNumSteps.low >>> 0, message.maxNumSteps.high >>> 0).toNumber() : message.maxNumSteps; + if (message.minNumSteps != null && message.hasOwnProperty("minNumSteps")) + if (typeof message.minNumSteps === "number") + object.minNumSteps = options.longs === String ? String(message.minNumSteps) : message.minNumSteps; + else + object.minNumSteps = options.longs === String ? $util.Long.prototype.toString.call(message.minNumSteps) : options.longs === Number ? new $util.LongBits(message.minNumSteps.low >>> 0, message.minNumSteps.high >>> 0).toNumber() : message.minNumSteps; + if (message.autoregressiveOrder != null && message.hasOwnProperty("autoregressiveOrder")) + if (typeof message.autoregressiveOrder === "number") + object.autoregressiveOrder = options.longs === String ? String(message.autoregressiveOrder) : message.autoregressiveOrder; + else + object.autoregressiveOrder = options.longs === String ? $util.Long.prototype.toString.call(message.autoregressiveOrder) : options.longs === Number ? new $util.LongBits(message.autoregressiveOrder.low >>> 0, message.autoregressiveOrder.high >>> 0).toNumber() : message.autoregressiveOrder; + if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) + object.learningRateParameterName = message.learningRateParameterName; + if (message.useSeconds != null && message.hasOwnProperty("useSeconds")) + object.useSeconds = message.useSeconds; + return object; + }; + + /** + * Converts this ConvexStopConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + * @returns {Object.} JSON object + */ + ConvexStopConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ConvexStopConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConvexStopConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig"; + }; + + return ConvexStopConfig; + })(); + + StudySpec.TransferLearningConfig = (function() { + + /** + * Properties of a TransferLearningConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface ITransferLearningConfig + * @property {boolean|null} [disableTransferLearning] TransferLearningConfig disableTransferLearning + * @property {Array.|null} [priorStudyNames] TransferLearningConfig priorStudyNames + */ + + /** + * Constructs a new TransferLearningConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @classdesc Represents a TransferLearningConfig. + * @implements ITransferLearningConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig=} [properties] Properties to set + */ + function TransferLearningConfig(properties) { + this.priorStudyNames = []; + 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]]; + } + + /** + * TransferLearningConfig disableTransferLearning. + * @member {boolean} disableTransferLearning + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @instance + */ + TransferLearningConfig.prototype.disableTransferLearning = false; + + /** + * TransferLearningConfig priorStudyNames. + * @member {Array.} priorStudyNames + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @instance + */ + TransferLearningConfig.prototype.priorStudyNames = $util.emptyArray; + + /** + * Creates a new TransferLearningConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig instance + */ + TransferLearningConfig.create = function create(properties) { + return new TransferLearningConfig(properties); + }; + + /** + * Encodes the specified TransferLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig} message TransferLearningConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TransferLearningConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.disableTransferLearning != null && Object.hasOwnProperty.call(message, "disableTransferLearning")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disableTransferLearning); + if (message.priorStudyNames != null && message.priorStudyNames.length) + for (var i = 0; i < message.priorStudyNames.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.priorStudyNames[i]); + return writer; + }; + + /** + * Encodes the specified TransferLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig} message TransferLearningConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TransferLearningConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TransferLearningConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @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.StudySpec.TransferLearningConfig} TransferLearningConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TransferLearningConfig.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.StudySpec.TransferLearningConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.disableTransferLearning = reader.bool(); + break; + } + case 2: { + if (!(message.priorStudyNames && message.priorStudyNames.length)) + message.priorStudyNames = []; + message.priorStudyNames.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a TransferLearningConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TransferLearningConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a TransferLearningConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TransferLearningConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.disableTransferLearning != null && message.hasOwnProperty("disableTransferLearning")) + if (typeof message.disableTransferLearning !== "boolean") + return "disableTransferLearning: boolean expected"; + if (message.priorStudyNames != null && message.hasOwnProperty("priorStudyNames")) { + if (!Array.isArray(message.priorStudyNames)) + return "priorStudyNames: array expected"; + for (var i = 0; i < message.priorStudyNames.length; ++i) + if (!$util.isString(message.priorStudyNames[i])) + return "priorStudyNames: string[] expected"; + } + return null; + }; + + /** + * Creates a TransferLearningConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig + */ + TransferLearningConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig(); + if (object.disableTransferLearning != null) + message.disableTransferLearning = Boolean(object.disableTransferLearning); + if (object.priorStudyNames) { + if (!Array.isArray(object.priorStudyNames)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.priorStudyNames: array expected"); + message.priorStudyNames = []; + for (var i = 0; i < object.priorStudyNames.length; ++i) + message.priorStudyNames[i] = String(object.priorStudyNames[i]); + } + return message; + }; + + /** + * Creates a plain object from a TransferLearningConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} message TransferLearningConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TransferLearningConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.priorStudyNames = []; + if (options.defaults) + object.disableTransferLearning = false; + if (message.disableTransferLearning != null && message.hasOwnProperty("disableTransferLearning")) + object.disableTransferLearning = message.disableTransferLearning; + if (message.priorStudyNames && message.priorStudyNames.length) { + object.priorStudyNames = []; + for (var j = 0; j < message.priorStudyNames.length; ++j) + object.priorStudyNames[j] = message.priorStudyNames[j]; + } + return object; + }; + + /** + * Converts this TransferLearningConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @instance + * @returns {Object.} JSON object + */ + TransferLearningConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for TransferLearningConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TransferLearningConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig"; + }; + + return TransferLearningConfig; + })(); + + /** + * Algorithm enum. + * @name google.cloud.aiplatform.v1beta1.StudySpec.Algorithm + * @enum {number} + * @property {number} ALGORITHM_UNSPECIFIED=0 ALGORITHM_UNSPECIFIED value + * @property {number} GRID_SEARCH=2 GRID_SEARCH value + * @property {number} RANDOM_SEARCH=3 RANDOM_SEARCH value + */ + StudySpec.Algorithm = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ALGORITHM_UNSPECIFIED"] = 0; + values[valuesById[2] = "GRID_SEARCH"] = 2; + values[valuesById[3] = "RANDOM_SEARCH"] = 3; + return values; + })(); + + /** + * ObservationNoise enum. + * @name google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise + * @enum {number} + * @property {number} OBSERVATION_NOISE_UNSPECIFIED=0 OBSERVATION_NOISE_UNSPECIFIED value + * @property {number} LOW=1 LOW value + * @property {number} HIGH=2 HIGH value + */ + StudySpec.ObservationNoise = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OBSERVATION_NOISE_UNSPECIFIED"] = 0; + values[valuesById[1] = "LOW"] = 1; + values[valuesById[2] = "HIGH"] = 2; + return values; + })(); + + /** + * MeasurementSelectionType enum. + * @name google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType + * @enum {number} + * @property {number} MEASUREMENT_SELECTION_TYPE_UNSPECIFIED=0 MEASUREMENT_SELECTION_TYPE_UNSPECIFIED value + * @property {number} LAST_MEASUREMENT=1 LAST_MEASUREMENT value + * @property {number} BEST_MEASUREMENT=2 BEST_MEASUREMENT value + */ + StudySpec.MeasurementSelectionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MEASUREMENT_SELECTION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "LAST_MEASUREMENT"] = 1; + values[valuesById[2] = "BEST_MEASUREMENT"] = 2; + return values; + })(); + + return StudySpec; + })(); + + v1beta1.Measurement = (function() { + + /** + * Properties of a Measurement. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IMeasurement + * @property {google.protobuf.IDuration|null} [elapsedDuration] Measurement elapsedDuration + * @property {number|Long|null} [stepCount] Measurement stepCount + * @property {Array.|null} [metrics] Measurement metrics + */ + + /** + * Constructs a new Measurement. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a Measurement. + * @implements IMeasurement + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IMeasurement=} [properties] Properties to set + */ + function Measurement(properties) { + this.metrics = []; + 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]]; + } + + /** + * Measurement elapsedDuration. + * @member {google.protobuf.IDuration|null|undefined} elapsedDuration + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @instance + */ + Measurement.prototype.elapsedDuration = null; + + /** + * Measurement stepCount. + * @member {number|Long} stepCount + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @instance + */ + Measurement.prototype.stepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Measurement metrics. + * @member {Array.} metrics + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @instance + */ + Measurement.prototype.metrics = $util.emptyArray; + + /** + * Creates a new Measurement instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @static + * @param {google.cloud.aiplatform.v1beta1.IMeasurement=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement instance + */ + Measurement.create = function create(properties) { + return new Measurement(properties); + }; + + /** + * Encodes the specified Measurement message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @static + * @param {google.cloud.aiplatform.v1beta1.IMeasurement} message Measurement message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Measurement.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.elapsedDuration != null && Object.hasOwnProperty.call(message, "elapsedDuration")) + $root.google.protobuf.Duration.encode(message.elapsedDuration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.stepCount != null && Object.hasOwnProperty.call(message, "stepCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.stepCount); + if (message.metrics != null && message.metrics.length) + for (var i = 0; i < message.metrics.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.encode(message.metrics[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Measurement message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @static + * @param {google.cloud.aiplatform.v1beta1.IMeasurement} message Measurement message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Measurement.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Measurement message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @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.Measurement} Measurement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Measurement.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.Measurement(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.elapsedDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } + case 2: { + message.stepCount = reader.int64(); + break; + } + case 3: { + if (!(message.metrics && message.metrics.length)) + message.metrics = []; + message.metrics.push($root.google.cloud.aiplatform.v1beta1.Measurement.Metric.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Measurement message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Measurement.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Measurement message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Measurement.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.elapsedDuration != null && message.hasOwnProperty("elapsedDuration")) { + var error = $root.google.protobuf.Duration.verify(message.elapsedDuration); + if (error) + return "elapsedDuration." + error; + } + if (message.stepCount != null && message.hasOwnProperty("stepCount")) + if (!$util.isInteger(message.stepCount) && !(message.stepCount && $util.isInteger(message.stepCount.low) && $util.isInteger(message.stepCount.high))) + return "stepCount: integer|Long expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + if (!Array.isArray(message.metrics)) + return "metrics: array expected"; + for (var i = 0; i < message.metrics.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.verify(message.metrics[i]); + if (error) + return "metrics." + error; + } + } + return null; + }; + + /** + * Creates a Measurement message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement + */ + Measurement.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Measurement) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Measurement(); + if (object.elapsedDuration != null) { + if (typeof object.elapsedDuration !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.elapsedDuration: object expected"); + message.elapsedDuration = $root.google.protobuf.Duration.fromObject(object.elapsedDuration); + } + if (object.stepCount != null) + if ($util.Long) + (message.stepCount = $util.Long.fromValue(object.stepCount)).unsigned = false; + else if (typeof object.stepCount === "string") + message.stepCount = parseInt(object.stepCount, 10); + else if (typeof object.stepCount === "number") + message.stepCount = object.stepCount; + else if (typeof object.stepCount === "object") + message.stepCount = new $util.LongBits(object.stepCount.low >>> 0, object.stepCount.high >>> 0).toNumber(); + if (object.metrics) { + if (!Array.isArray(object.metrics)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.metrics: array expected"); + message.metrics = []; + for (var i = 0; i < object.metrics.length; ++i) { + if (typeof object.metrics[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.metrics: object expected"); + message.metrics[i] = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.fromObject(object.metrics[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Measurement message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @static + * @param {google.cloud.aiplatform.v1beta1.Measurement} message Measurement + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Measurement.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.metrics = []; + if (options.defaults) { + object.elapsedDuration = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.stepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.stepCount = options.longs === String ? "0" : 0; + } + if (message.elapsedDuration != null && message.hasOwnProperty("elapsedDuration")) + object.elapsedDuration = $root.google.protobuf.Duration.toObject(message.elapsedDuration, options); + if (message.stepCount != null && message.hasOwnProperty("stepCount")) + if (typeof message.stepCount === "number") + object.stepCount = options.longs === String ? String(message.stepCount) : message.stepCount; + else + object.stepCount = options.longs === String ? $util.Long.prototype.toString.call(message.stepCount) : options.longs === Number ? new $util.LongBits(message.stepCount.low >>> 0, message.stepCount.high >>> 0).toNumber() : message.stepCount; + if (message.metrics && message.metrics.length) { + object.metrics = []; + for (var j = 0; j < message.metrics.length; ++j) + object.metrics[j] = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.toObject(message.metrics[j], options); + } + return object; + }; + + /** + * Converts this Measurement to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @instance + * @returns {Object.} JSON object + */ + Measurement.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Measurement + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Measurement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Measurement"; + }; + + Measurement.Metric = (function() { + + /** + * Properties of a Metric. + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @interface IMetric + * @property {string|null} [metricId] Metric metricId + * @property {number|null} [value] Metric value + */ + + /** + * Constructs a new Metric. + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @classdesc Represents a Metric. + * @implements IMetric + * @constructor + * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric=} [properties] Properties to set + */ + function Metric(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]]; + } + + /** + * Metric metricId. + * @member {string} metricId + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @instance + */ + Metric.prototype.metricId = ""; + + /** + * Metric value. + * @member {number} value + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @instance + */ + Metric.prototype.value = 0; + + /** + * Creates a new Metric instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric instance + */ + Metric.create = function create(properties) { + return new Metric(properties); + }; + + /** + * Encodes the specified Metric message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.value); + return writer; + }; + + /** + * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Metric message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @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.Measurement.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.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.Measurement.Metric(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricId = reader.string(); + break; + } + case 2: { + message.value = reader.double(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Metric message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Metric.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricId != null && message.hasOwnProperty("metricId")) + if (!$util.isString(message.metricId)) + return "metricId: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + return null; + }; + + /** + * Creates a Metric message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric + */ + Metric.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Measurement.Metric) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Measurement.Metric(); + if (object.metricId != null) + message.metricId = String(object.metricId); + if (object.value != null) + message.value = Number(object.value); + return message; + }; + + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {google.cloud.aiplatform.v1beta1.Measurement.Metric} message Metric + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Metric.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricId = ""; + object.value = 0; + } + if (message.metricId != null && message.hasOwnProperty("metricId")) + object.metricId = message.metricId; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + return object; + }; + + /** + * Converts this Metric to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @instance + * @returns {Object.} JSON object + */ + Metric.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Metric + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Metric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Measurement.Metric"; + }; + + return Metric; + })(); + + return Measurement; + })(); + + v1beta1.Index = (function() { + + /** + * Properties of an Index. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IIndex + * @property {string|null} [name] Index name + * @property {string|null} [displayName] Index displayName + * @property {string|null} [description] Index description + * @property {string|null} [metadataSchemaUri] Index metadataSchemaUri + * @property {google.protobuf.IValue|null} [metadata] Index metadata + * @property {Array.|null} [deployedIndexes] Index deployedIndexes + * @property {string|null} [etag] Index etag + * @property {Object.|null} [labels] Index labels + * @property {google.protobuf.ITimestamp|null} [createTime] Index createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Index updateTime + * @property {google.cloud.aiplatform.v1beta1.IIndexStats|null} [indexStats] Index indexStats + * @property {google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|null} [indexUpdateMethod] Index indexUpdateMethod + */ + + /** + * Constructs a new Index. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an Index. + * @implements IIndex + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IIndex=} [properties] Properties to set + */ + function Index(properties) { + this.deployedIndexes = []; + this.labels = {}; + 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]]; + } + + /** + * Index name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.name = ""; + + /** + * Index displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.displayName = ""; + + /** + * Index description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.description = ""; + + /** + * Index metadataSchemaUri. + * @member {string} metadataSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.metadataSchemaUri = ""; + + /** + * Index metadata. + * @member {google.protobuf.IValue|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.metadata = null; + + /** + * Index deployedIndexes. + * @member {Array.} deployedIndexes + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.deployedIndexes = $util.emptyArray; + + /** + * Index etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.etag = ""; + + /** + * Index labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.labels = $util.emptyObject; + + /** + * Index createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.createTime = null; + + /** + * Index updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.updateTime = null; + + /** + * Index indexStats. + * @member {google.cloud.aiplatform.v1beta1.IIndexStats|null|undefined} indexStats + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.indexStats = null; + + /** + * Index indexUpdateMethod. + * @member {google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod} indexUpdateMethod + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.indexUpdateMethod = 0; + + /** + * Creates a new Index instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Index + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndex=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Index} Index instance + */ + Index.create = function create(properties) { + return new Index(properties); + }; + + /** + * Encodes the specified Index message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Index + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndex} message Index message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Index.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); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.metadataSchemaUri != null && Object.hasOwnProperty.call(message, "metadataSchemaUri")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.metadataSchemaUri); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.deployedIndexes != null && message.deployedIndexes.length) + for (var i = 0; i < message.deployedIndexes.length; ++i) + $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.encode(message.deployedIndexes[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.etag); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.indexStats != null && Object.hasOwnProperty.call(message, "indexStats")) + $root.google.cloud.aiplatform.v1beta1.IndexStats.encode(message.indexStats, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.indexUpdateMethod != null && Object.hasOwnProperty.call(message, "indexUpdateMethod")) + writer.uint32(/* id 16, wireType 0 =*/128).int32(message.indexUpdateMethod); + return writer; + }; + + /** + * Encodes the specified Index message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Index + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndex} message Index message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Index.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Index message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Index + * @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.Index} Index + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Index.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.Index(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.description = reader.string(); + break; + } + case 4: { + message.metadataSchemaUri = reader.string(); + break; + } + case 6: { + message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + } + case 7: { + if (!(message.deployedIndexes && message.deployedIndexes.length)) + message.deployedIndexes = []; + message.deployedIndexes.push($root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.decode(reader, reader.uint32())); + break; + } + case 8: { + message.etag = reader.string(); + break; + } + case 9: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 10: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 11: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 14: { + message.indexStats = $root.google.cloud.aiplatform.v1beta1.IndexStats.decode(reader, reader.uint32()); + break; + } + case 16: { + message.indexUpdateMethod = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Index message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Index + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Index} Index + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Index.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Index message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Index + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Index.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"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) + if (!$util.isString(message.metadataSchemaUri)) + return "metadataSchemaUri: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Value.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.deployedIndexes != null && message.hasOwnProperty("deployedIndexes")) { + if (!Array.isArray(message.deployedIndexes)) + return "deployedIndexes: array expected"; + for (var i = 0; i < message.deployedIndexes.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify(message.deployedIndexes[i]); + if (error) + return "deployedIndexes." + error; + } + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.indexStats != null && message.hasOwnProperty("indexStats")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexStats.verify(message.indexStats); + if (error) + return "indexStats." + error; + } + if (message.indexUpdateMethod != null && message.hasOwnProperty("indexUpdateMethod")) + switch (message.indexUpdateMethod) { + default: + return "indexUpdateMethod: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates an Index message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Index + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Index} Index + */ + Index.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Index) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Index(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.metadataSchemaUri != null) + message.metadataSchemaUri = String(object.metadataSchemaUri); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.metadata: object expected"); + message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); + } + if (object.deployedIndexes) { + if (!Array.isArray(object.deployedIndexes)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.deployedIndexes: array expected"); + message.deployedIndexes = []; + for (var i = 0; i < object.deployedIndexes.length; ++i) { + if (typeof object.deployedIndexes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.deployedIndexes: object expected"); + message.deployedIndexes[i] = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.fromObject(object.deployedIndexes[i]); + } + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.indexStats != null) { + if (typeof object.indexStats !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.indexStats: object expected"); + message.indexStats = $root.google.cloud.aiplatform.v1beta1.IndexStats.fromObject(object.indexStats); + } + switch (object.indexUpdateMethod) { + default: + if (typeof object.indexUpdateMethod === "number") { + message.indexUpdateMethod = object.indexUpdateMethod; + break; + } + break; + case "INDEX_UPDATE_METHOD_UNSPECIFIED": + case 0: + message.indexUpdateMethod = 0; + break; + case "BATCH_UPDATE": + case 1: + message.indexUpdateMethod = 1; + break; + case "STREAM_UPDATE": + case 2: + message.indexUpdateMethod = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an Index message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Index + * @static + * @param {google.cloud.aiplatform.v1beta1.Index} message Index + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Index.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.deployedIndexes = []; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.description = ""; + object.metadataSchemaUri = ""; + object.metadata = null; + object.etag = ""; + object.createTime = null; + object.updateTime = null; + object.indexStats = null; + object.indexUpdateMethod = options.enums === String ? "INDEX_UPDATE_METHOD_UNSPECIFIED" : 0; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) + object.metadataSchemaUri = message.metadataSchemaUri; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); + if (message.deployedIndexes && message.deployedIndexes.length) { + object.deployedIndexes = []; + for (var j = 0; j < message.deployedIndexes.length; ++j) + object.deployedIndexes[j] = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.toObject(message.deployedIndexes[j], options); + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.indexStats != null && message.hasOwnProperty("indexStats")) + object.indexStats = $root.google.cloud.aiplatform.v1beta1.IndexStats.toObject(message.indexStats, options); + if (message.indexUpdateMethod != null && message.hasOwnProperty("indexUpdateMethod")) + object.indexUpdateMethod = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod[message.indexUpdateMethod] === undefined ? message.indexUpdateMethod : $root.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod[message.indexUpdateMethod] : message.indexUpdateMethod; + return object; + }; + + /** + * Converts this Index to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + * @returns {Object.} JSON object + */ + Index.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Index + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.Index + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Index.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Index"; + }; + + /** + * IndexUpdateMethod enum. + * @name google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod + * @enum {number} + * @property {number} INDEX_UPDATE_METHOD_UNSPECIFIED=0 INDEX_UPDATE_METHOD_UNSPECIFIED value + * @property {number} BATCH_UPDATE=1 BATCH_UPDATE value + * @property {number} STREAM_UPDATE=2 STREAM_UPDATE value + */ + Index.IndexUpdateMethod = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "INDEX_UPDATE_METHOD_UNSPECIFIED"] = 0; + values[valuesById[1] = "BATCH_UPDATE"] = 1; + values[valuesById[2] = "STREAM_UPDATE"] = 2; + return values; + })(); + + return Index; + })(); + + v1beta1.IndexDatapoint = (function() { + + /** + * Properties of an IndexDatapoint. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IIndexDatapoint + * @property {string|null} [datapointId] IndexDatapoint datapointId + * @property {Array.|null} [featureVector] IndexDatapoint featureVector + * @property {Array.|null} [restricts] IndexDatapoint restricts + * @property {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null} [crowdingTag] IndexDatapoint crowdingTag + */ + + /** + * Constructs a new IndexDatapoint. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an IndexDatapoint. + * @implements IIndexDatapoint + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint=} [properties] Properties to set + */ + function IndexDatapoint(properties) { + this.featureVector = []; + this.restricts = []; + 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]]; + } + + /** + * IndexDatapoint datapointId. + * @member {string} datapointId + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.datapointId = ""; + + /** + * IndexDatapoint featureVector. + * @member {Array.} featureVector + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.featureVector = $util.emptyArray; + + /** + * IndexDatapoint restricts. + * @member {Array.} restricts + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.restricts = $util.emptyArray; + + /** + * IndexDatapoint crowdingTag. + * @member {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null|undefined} crowdingTag + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @instance + */ + IndexDatapoint.prototype.crowdingTag = null; + + /** + * Creates a new IndexDatapoint instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint instance + */ + IndexDatapoint.create = function create(properties) { + return new IndexDatapoint(properties); + }; + + /** + * Encodes the specified IndexDatapoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint} message IndexDatapoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexDatapoint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.datapointId != null && Object.hasOwnProperty.call(message, "datapointId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.datapointId); + if (message.featureVector != null && message.featureVector.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.featureVector.length; ++i) + writer.float(message.featureVector[i]); + writer.ldelim(); + } + if (message.restricts != null && message.restricts.length) + for (var i = 0; i < message.restricts.length; ++i) + $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.encode(message.restricts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.crowdingTag != null && Object.hasOwnProperty.call(message, "crowdingTag")) + $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.encode(message.crowdingTag, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified IndexDatapoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint} message IndexDatapoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexDatapoint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IndexDatapoint message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @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.IndexDatapoint} IndexDatapoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexDatapoint.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.IndexDatapoint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.datapointId = reader.string(); + break; + } + case 2: { + if (!(message.featureVector && message.featureVector.length)) + message.featureVector = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.featureVector.push(reader.float()); + } else + message.featureVector.push(reader.float()); + break; + } + case 4: { + if (!(message.restricts && message.restricts.length)) + message.restricts = []; + message.restricts.push($root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.decode(reader, reader.uint32())); + break; + } + case 5: { + message.crowdingTag = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IndexDatapoint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexDatapoint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IndexDatapoint message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IndexDatapoint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.datapointId != null && message.hasOwnProperty("datapointId")) + if (!$util.isString(message.datapointId)) + return "datapointId: string expected"; + if (message.featureVector != null && message.hasOwnProperty("featureVector")) { + if (!Array.isArray(message.featureVector)) + return "featureVector: array expected"; + for (var i = 0; i < message.featureVector.length; ++i) + if (typeof message.featureVector[i] !== "number") + return "featureVector: number[] expected"; + } + if (message.restricts != null && message.hasOwnProperty("restricts")) { + if (!Array.isArray(message.restricts)) + return "restricts: array expected"; + for (var i = 0; i < message.restricts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify(message.restricts[i]); + if (error) + return "restricts." + error; + } + } + if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify(message.crowdingTag); + if (error) + return "crowdingTag." + error; + } + return null; + }; + + /** + * Creates an IndexDatapoint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint + */ + IndexDatapoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexDatapoint) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint(); + if (object.datapointId != null) + message.datapointId = String(object.datapointId); + if (object.featureVector) { + if (!Array.isArray(object.featureVector)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.featureVector: array expected"); + message.featureVector = []; + for (var i = 0; i < object.featureVector.length; ++i) + message.featureVector[i] = Number(object.featureVector[i]); + } + if (object.restricts) { + if (!Array.isArray(object.restricts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.restricts: array expected"); + message.restricts = []; + for (var i = 0; i < object.restricts.length; ++i) { + if (typeof object.restricts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.restricts: object expected"); + message.restricts[i] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.fromObject(object.restricts[i]); + } + } + if (object.crowdingTag != null) { + if (typeof object.crowdingTag !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.crowdingTag: object expected"); + message.crowdingTag = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.fromObject(object.crowdingTag); + } + return message; + }; + + /** + * Creates a plain object from an IndexDatapoint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint} message IndexDatapoint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IndexDatapoint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.featureVector = []; + object.restricts = []; + } + if (options.defaults) { + object.datapointId = ""; + object.crowdingTag = null; + } + if (message.datapointId != null && message.hasOwnProperty("datapointId")) + object.datapointId = message.datapointId; + if (message.featureVector && message.featureVector.length) { + object.featureVector = []; + for (var j = 0; j < message.featureVector.length; ++j) + object.featureVector[j] = options.json && !isFinite(message.featureVector[j]) ? String(message.featureVector[j]) : message.featureVector[j]; + } + if (message.restricts && message.restricts.length) { + object.restricts = []; + for (var j = 0; j < message.restricts.length; ++j) + object.restricts[j] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.toObject(message.restricts[j], options); + } + if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) + object.crowdingTag = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.toObject(message.crowdingTag, options); + return object; + }; + + /** + * Converts this IndexDatapoint to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @instance + * @returns {Object.} JSON object + */ + IndexDatapoint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IndexDatapoint + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IndexDatapoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexDatapoint"; + }; + + IndexDatapoint.Restriction = (function() { + + /** + * Properties of a Restriction. + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @interface IRestriction + * @property {string|null} [namespace] Restriction namespace + * @property {Array.|null} [allowList] Restriction allowList + * @property {Array.|null} [denyList] Restriction denyList + */ + + /** + * Constructs a new Restriction. + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @classdesc Represents a Restriction. + * @implements IRestriction + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction=} [properties] Properties to set + */ + function Restriction(properties) { + this.allowList = []; + this.denyList = []; + 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]]; + } + + /** + * Restriction namespace. + * @member {string} namespace + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @instance + */ + Restriction.prototype.namespace = ""; + + /** + * Restriction allowList. + * @member {Array.} allowList + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @instance + */ + Restriction.prototype.allowList = $util.emptyArray; + + /** + * Restriction denyList. + * @member {Array.} denyList + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @instance + */ + Restriction.prototype.denyList = $util.emptyArray; + + /** + * Creates a new Restriction instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction instance + */ + Restriction.create = function create(properties) { + return new Restriction(properties); + }; + + /** + * Encodes the specified Restriction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction} message Restriction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Restriction.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.namespace != null && Object.hasOwnProperty.call(message, "namespace")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namespace); + if (message.allowList != null && message.allowList.length) + for (var i = 0; i < message.allowList.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.allowList[i]); + if (message.denyList != null && message.denyList.length) + for (var i = 0; i < message.denyList.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.denyList[i]); + return writer; + }; + + /** + * Encodes the specified Restriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction} message Restriction message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Restriction.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Restriction message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @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.IndexDatapoint.Restriction} Restriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Restriction.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.IndexDatapoint.Restriction(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.namespace = reader.string(); + break; + } + case 2: { + if (!(message.allowList && message.allowList.length)) + message.allowList = []; + message.allowList.push(reader.string()); + break; + } + case 3: { + if (!(message.denyList && message.denyList.length)) + message.denyList = []; + message.denyList.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Restriction message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Restriction.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Restriction message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Restriction.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.namespace != null && message.hasOwnProperty("namespace")) + if (!$util.isString(message.namespace)) + return "namespace: string expected"; + if (message.allowList != null && message.hasOwnProperty("allowList")) { + if (!Array.isArray(message.allowList)) + return "allowList: array expected"; + for (var i = 0; i < message.allowList.length; ++i) + if (!$util.isString(message.allowList[i])) + return "allowList: string[] expected"; + } + if (message.denyList != null && message.hasOwnProperty("denyList")) { + if (!Array.isArray(message.denyList)) + return "denyList: array expected"; + for (var i = 0; i < message.denyList.length; ++i) + if (!$util.isString(message.denyList[i])) + return "denyList: string[] expected"; + } + return null; + }; + + /** + * Creates a Restriction message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction + */ + Restriction.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction(); + if (object.namespace != null) + message.namespace = String(object.namespace); + if (object.allowList) { + if (!Array.isArray(object.allowList)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.allowList: array expected"); + message.allowList = []; + for (var i = 0; i < object.allowList.length; ++i) + message.allowList[i] = String(object.allowList[i]); + } + if (object.denyList) { + if (!Array.isArray(object.denyList)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.denyList: array expected"); + message.denyList = []; + for (var i = 0; i < object.denyList.length; ++i) + message.denyList[i] = String(object.denyList[i]); + } + return message; + }; + + /** + * Creates a plain object from a Restriction message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} message Restriction + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Restriction.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.allowList = []; + object.denyList = []; + } + if (options.defaults) + object.namespace = ""; + if (message.namespace != null && message.hasOwnProperty("namespace")) + object.namespace = message.namespace; + if (message.allowList && message.allowList.length) { + object.allowList = []; + for (var j = 0; j < message.allowList.length; ++j) + object.allowList[j] = message.allowList[j]; + } + if (message.denyList && message.denyList.length) { + object.denyList = []; + for (var j = 0; j < message.denyList.length; ++j) + object.denyList[j] = message.denyList[j]; + } + return object; + }; + + /** + * Converts this Restriction to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @instance + * @returns {Object.} JSON object + */ + Restriction.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Restriction + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Restriction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction"; + }; + + return Restriction; + })(); + + IndexDatapoint.CrowdingTag = (function() { + + /** + * Properties of a CrowdingTag. + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @interface ICrowdingTag + * @property {string|null} [crowdingAttribute] CrowdingTag crowdingAttribute + */ + + /** + * Constructs a new CrowdingTag. + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @classdesc Represents a CrowdingTag. + * @implements ICrowdingTag + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag=} [properties] Properties to set + */ + function CrowdingTag(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]]; + } + + /** + * CrowdingTag crowdingAttribute. + * @member {string} crowdingAttribute + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @instance + */ + CrowdingTag.prototype.crowdingAttribute = ""; + + /** + * Creates a new CrowdingTag instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag instance + */ + CrowdingTag.create = function create(properties) { + return new CrowdingTag(properties); + }; + + /** + * Encodes the specified CrowdingTag message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag} message CrowdingTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CrowdingTag.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.crowdingAttribute != null && Object.hasOwnProperty.call(message, "crowdingAttribute")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.crowdingAttribute); + return writer; + }; + + /** + * Encodes the specified CrowdingTag message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag} message CrowdingTag message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CrowdingTag.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CrowdingTag message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @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.IndexDatapoint.CrowdingTag} CrowdingTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CrowdingTag.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.IndexDatapoint.CrowdingTag(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.crowdingAttribute = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CrowdingTag message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CrowdingTag.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CrowdingTag message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CrowdingTag.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.crowdingAttribute != null && message.hasOwnProperty("crowdingAttribute")) + if (!$util.isString(message.crowdingAttribute)) + return "crowdingAttribute: string expected"; + return null; + }; + + /** + * Creates a CrowdingTag message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag + */ + CrowdingTag.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag(); + if (object.crowdingAttribute != null) + message.crowdingAttribute = String(object.crowdingAttribute); + return message; + }; + + /** + * Creates a plain object from a CrowdingTag message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} message CrowdingTag + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CrowdingTag.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.crowdingAttribute = ""; + if (message.crowdingAttribute != null && message.hasOwnProperty("crowdingAttribute")) + object.crowdingAttribute = message.crowdingAttribute; + return object; + }; + + /** + * Converts this CrowdingTag to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @instance + * @returns {Object.} JSON object + */ + CrowdingTag.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CrowdingTag + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CrowdingTag.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag"; + }; + + return CrowdingTag; + })(); + + return IndexDatapoint; + })(); + + v1beta1.IndexStats = (function() { + + /** + * Properties of an IndexStats. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IIndexStats + * @property {number|Long|null} [vectorsCount] IndexStats vectorsCount + * @property {number|null} [shardsCount] IndexStats shardsCount + */ + + /** + * Constructs a new IndexStats. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an IndexStats. + * @implements IIndexStats + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IIndexStats=} [properties] Properties to set + */ + function IndexStats(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]]; + } + + /** + * IndexStats vectorsCount. + * @member {number|Long} vectorsCount + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @instance + */ + IndexStats.prototype.vectorsCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * IndexStats shardsCount. + * @member {number} shardsCount + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @instance + */ + IndexStats.prototype.shardsCount = 0; + + /** + * Creates a new IndexStats instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexStats=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats instance + */ + IndexStats.create = function create(properties) { + return new IndexStats(properties); + }; + + /** + * Encodes the specified IndexStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexStats} message IndexStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexStats.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.vectorsCount != null && Object.hasOwnProperty.call(message, "vectorsCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.vectorsCount); + if (message.shardsCount != null && Object.hasOwnProperty.call(message, "shardsCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.shardsCount); + return writer; + }; + + /** + * Encodes the specified IndexStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexStats} message IndexStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexStats.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IndexStats message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @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.IndexStats} IndexStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexStats.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.IndexStats(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.vectorsCount = reader.int64(); + break; + } + case 2: { + message.shardsCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IndexStats message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexStats.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IndexStats message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IndexStats.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.vectorsCount != null && message.hasOwnProperty("vectorsCount")) + if (!$util.isInteger(message.vectorsCount) && !(message.vectorsCount && $util.isInteger(message.vectorsCount.low) && $util.isInteger(message.vectorsCount.high))) + return "vectorsCount: integer|Long expected"; + if (message.shardsCount != null && message.hasOwnProperty("shardsCount")) + if (!$util.isInteger(message.shardsCount)) + return "shardsCount: integer expected"; + return null; + }; + + /** + * Creates an IndexStats message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats + */ + IndexStats.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexStats) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.IndexStats(); + if (object.vectorsCount != null) + if ($util.Long) + (message.vectorsCount = $util.Long.fromValue(object.vectorsCount)).unsigned = false; + else if (typeof object.vectorsCount === "string") + message.vectorsCount = parseInt(object.vectorsCount, 10); + else if (typeof object.vectorsCount === "number") + message.vectorsCount = object.vectorsCount; + else if (typeof object.vectorsCount === "object") + message.vectorsCount = new $util.LongBits(object.vectorsCount.low >>> 0, object.vectorsCount.high >>> 0).toNumber(); + if (object.shardsCount != null) + message.shardsCount = object.shardsCount | 0; + return message; + }; + + /** + * Creates a plain object from an IndexStats message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexStats} message IndexStats + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IndexStats.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.vectorsCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.vectorsCount = options.longs === String ? "0" : 0; + object.shardsCount = 0; + } + if (message.vectorsCount != null && message.hasOwnProperty("vectorsCount")) + if (typeof message.vectorsCount === "number") + object.vectorsCount = options.longs === String ? String(message.vectorsCount) : message.vectorsCount; + else + object.vectorsCount = options.longs === String ? $util.Long.prototype.toString.call(message.vectorsCount) : options.longs === Number ? new $util.LongBits(message.vectorsCount.low >>> 0, message.vectorsCount.high >>> 0).toNumber() : message.vectorsCount; + if (message.shardsCount != null && message.hasOwnProperty("shardsCount")) + object.shardsCount = message.shardsCount; + return object; + }; + + /** + * Converts this IndexStats to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @instance + * @returns {Object.} JSON object + */ + IndexStats.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IndexStats + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IndexStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexStats"; + }; + + return IndexStats; + })(); + + v1beta1.IndexEndpoint = (function() { + + /** + * Properties of an IndexEndpoint. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IIndexEndpoint + * @property {string|null} [name] IndexEndpoint name + * @property {string|null} [displayName] IndexEndpoint displayName + * @property {string|null} [description] IndexEndpoint description + * @property {Array.|null} [deployedIndexes] IndexEndpoint deployedIndexes + * @property {string|null} [etag] IndexEndpoint etag + * @property {Object.|null} [labels] IndexEndpoint labels + * @property {google.protobuf.ITimestamp|null} [createTime] IndexEndpoint createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] IndexEndpoint updateTime + * @property {string|null} [network] IndexEndpoint network + * @property {boolean|null} [enablePrivateServiceConnect] IndexEndpoint enablePrivateServiceConnect + * @property {google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig|null} [privateServiceConnectConfig] IndexEndpoint privateServiceConnectConfig + */ + + /** + * Constructs a new IndexEndpoint. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an IndexEndpoint. + * @implements IIndexEndpoint + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint=} [properties] Properties to set + */ + function IndexEndpoint(properties) { + this.deployedIndexes = []; + this.labels = {}; + 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]]; + } + + /** + * IndexEndpoint name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.name = ""; + + /** + * IndexEndpoint displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.displayName = ""; + + /** + * IndexEndpoint description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.description = ""; + + /** + * IndexEndpoint deployedIndexes. + * @member {Array.} deployedIndexes + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.deployedIndexes = $util.emptyArray; + + /** + * IndexEndpoint etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.etag = ""; + + /** + * IndexEndpoint labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.labels = $util.emptyObject; + + /** + * IndexEndpoint createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.createTime = null; + + /** + * IndexEndpoint updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.updateTime = null; + + /** + * IndexEndpoint network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.network = ""; + + /** + * IndexEndpoint enablePrivateServiceConnect. + * @member {boolean} enablePrivateServiceConnect + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.enablePrivateServiceConnect = false; + + /** + * IndexEndpoint privateServiceConnectConfig. + * @member {google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig|null|undefined} privateServiceConnectConfig + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.privateServiceConnectConfig = null; + + /** + * Creates a new IndexEndpoint instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint instance + */ + IndexEndpoint.create = function create(properties) { + return new IndexEndpoint(properties); + }; + + /** + * Encodes the specified IndexEndpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint} message IndexEndpoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexEndpoint.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); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.deployedIndexes != null && message.deployedIndexes.length) + for (var i = 0; i < message.deployedIndexes.length; ++i) + $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndexes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.etag); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.network); + if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.enablePrivateServiceConnect); + if (message.privateServiceConnectConfig != null && Object.hasOwnProperty.call(message, "privateServiceConnectConfig")) + $root.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.encode(message.privateServiceConnectConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified IndexEndpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint} message IndexEndpoint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexEndpoint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IndexEndpoint message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @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.IndexEndpoint} IndexEndpoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexEndpoint.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.IndexEndpoint(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.displayName = reader.string(); + break; + } + case 3: { + message.description = reader.string(); + break; + } + case 4: { + if (!(message.deployedIndexes && message.deployedIndexes.length)) + message.deployedIndexes = []; + message.deployedIndexes.push($root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32())); + break; + } + case 5: { + message.etag = reader.string(); + break; + } + case 6: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 7: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 9: { + message.network = reader.string(); + break; + } + case 10: { + message.enablePrivateServiceConnect = reader.bool(); + break; + } + case 12: { + message.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IndexEndpoint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexEndpoint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IndexEndpoint message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IndexEndpoint.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"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.deployedIndexes != null && message.hasOwnProperty("deployedIndexes")) { + if (!Array.isArray(message.deployedIndexes)) + return "deployedIndexes: array expected"; + for (var i = 0; i < message.deployedIndexes.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndexes[i]); + if (error) + return "deployedIndexes." + error; + } + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + if (typeof message.enablePrivateServiceConnect !== "boolean") + return "enablePrivateServiceConnect: boolean expected"; + if (message.privateServiceConnectConfig != null && message.hasOwnProperty("privateServiceConnectConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.verify(message.privateServiceConnectConfig); + if (error) + return "privateServiceConnectConfig." + error; + } + return null; + }; + + /** + * Creates an IndexEndpoint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint + */ + IndexEndpoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexEndpoint) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.IndexEndpoint(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.deployedIndexes) { + if (!Array.isArray(object.deployedIndexes)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.deployedIndexes: array expected"); + message.deployedIndexes = []; + for (var i = 0; i < object.deployedIndexes.length; ++i) { + if (typeof object.deployedIndexes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.deployedIndexes: object expected"); + message.deployedIndexes[i] = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndexes[i]); + } + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.network != null) + message.network = String(object.network); + if (object.enablePrivateServiceConnect != null) + message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); + if (object.privateServiceConnectConfig != null) { + if (typeof object.privateServiceConnectConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.privateServiceConnectConfig: object expected"); + message.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.fromObject(object.privateServiceConnectConfig); + } + return message; + }; + + /** + * Creates a plain object from an IndexEndpoint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} message IndexEndpoint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IndexEndpoint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.deployedIndexes = []; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.description = ""; + object.etag = ""; + object.createTime = null; + object.updateTime = null; + object.network = ""; + object.enablePrivateServiceConnect = false; + object.privateServiceConnectConfig = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.deployedIndexes && message.deployedIndexes.length) { + object.deployedIndexes = []; + for (var j = 0; j < message.deployedIndexes.length; ++j) + object.deployedIndexes[j] = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndexes[j], options); + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; + if (message.privateServiceConnectConfig != null && message.hasOwnProperty("privateServiceConnectConfig")) + object.privateServiceConnectConfig = $root.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.toObject(message.privateServiceConnectConfig, options); + return object; + }; + + /** + * Converts this IndexEndpoint to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + * @returns {Object.} JSON object + */ + IndexEndpoint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IndexEndpoint + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IndexEndpoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexEndpoint"; + }; + + return IndexEndpoint; + })(); + + v1beta1.DeployedIndex = (function() { + + /** + * Properties of a DeployedIndex. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeployedIndex + * @property {string|null} [id] DeployedIndex id + * @property {string|null} [index] DeployedIndex index + * @property {string|null} [displayName] DeployedIndex displayName + * @property {google.protobuf.ITimestamp|null} [createTime] DeployedIndex createTime + * @property {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null} [privateEndpoints] DeployedIndex privateEndpoints + * @property {google.protobuf.ITimestamp|null} [indexSyncTime] DeployedIndex indexSyncTime + * @property {google.cloud.aiplatform.v1beta1.IAutomaticResources|null} [automaticResources] DeployedIndex automaticResources + * @property {google.cloud.aiplatform.v1beta1.IDedicatedResources|null} [dedicatedResources] DeployedIndex dedicatedResources + * @property {boolean|null} [enableAccessLogging] DeployedIndex enableAccessLogging + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null} [deployedIndexAuthConfig] DeployedIndex deployedIndexAuthConfig + * @property {Array.|null} [reservedIpRanges] DeployedIndex reservedIpRanges + * @property {string|null} [deploymentGroup] DeployedIndex deploymentGroup + */ + + /** + * Constructs a new DeployedIndex. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeployedIndex. + * @implements IDeployedIndex + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex=} [properties] Properties to set + */ + function DeployedIndex(properties) { + this.reservedIpRanges = []; + 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]]; + } + + /** + * DeployedIndex id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.id = ""; + + /** + * DeployedIndex index. + * @member {string} index + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.index = ""; + + /** + * DeployedIndex displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.displayName = ""; + + /** + * DeployedIndex createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.createTime = null; + + /** + * DeployedIndex privateEndpoints. + * @member {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null|undefined} privateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.privateEndpoints = null; + + /** + * DeployedIndex indexSyncTime. + * @member {google.protobuf.ITimestamp|null|undefined} indexSyncTime + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.indexSyncTime = null; - /** - * Verifies an IntValueCondition message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IntValueCondition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isInteger(message.values[i]) && !(message.values[i] && $util.isInteger(message.values[i].low) && $util.isInteger(message.values[i].high))) - return "values: integer|Long[] expected"; - } - return null; - }; + /** + * DeployedIndex automaticResources. + * @member {google.cloud.aiplatform.v1beta1.IAutomaticResources|null|undefined} automaticResources + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.automaticResources = null; - /** - * Creates an IntValueCondition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition - */ - IntValueCondition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - if ($util.Long) - (message.values[i] = $util.Long.fromValue(object.values[i])).unsigned = false; - else if (typeof object.values[i] === "string") - message.values[i] = parseInt(object.values[i], 10); - else if (typeof object.values[i] === "number") - message.values[i] = object.values[i]; - else if (typeof object.values[i] === "object") - message.values[i] = new $util.LongBits(object.values[i].low >>> 0, object.values[i].high >>> 0).toNumber(); - } - return message; - }; + /** + * DeployedIndex dedicatedResources. + * @member {google.cloud.aiplatform.v1beta1.IDedicatedResources|null|undefined} dedicatedResources + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.dedicatedResources = null; - /** - * Creates a plain object from an IntValueCondition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} message IntValueCondition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IntValueCondition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - if (typeof message.values[j] === "number") - object.values[j] = options.longs === String ? String(message.values[j]) : message.values[j]; - else - object.values[j] = options.longs === String ? $util.Long.prototype.toString.call(message.values[j]) : options.longs === Number ? new $util.LongBits(message.values[j].low >>> 0, message.values[j].high >>> 0).toNumber() : message.values[j]; - } - return object; - }; + /** + * DeployedIndex enableAccessLogging. + * @member {boolean} enableAccessLogging + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.enableAccessLogging = false; - /** - * Converts this IntValueCondition to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @instance - * @returns {Object.} JSON object - */ - IntValueCondition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * DeployedIndex deployedIndexAuthConfig. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null|undefined} deployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.deployedIndexAuthConfig = null; - /** - * Gets the default type url for IntValueCondition - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - IntValueCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition"; - }; + /** + * DeployedIndex reservedIpRanges. + * @member {Array.} reservedIpRanges + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.reservedIpRanges = $util.emptyArray; - return IntValueCondition; - })(); + /** + * DeployedIndex deploymentGroup. + * @member {string} deploymentGroup + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.deploymentGroup = ""; - ConditionalParameterSpec.CategoricalValueCondition = (function() { + /** + * Creates a new DeployedIndex instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex instance + */ + DeployedIndex.create = function create(properties) { + return new DeployedIndex(properties); + }; - /** - * Properties of a CategoricalValueCondition. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @interface ICategoricalValueCondition - * @property {Array.|null} [values] CategoricalValueCondition values - */ + /** + * Encodes the specified DeployedIndex message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex} message DeployedIndex message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployedIndex.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.index); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.privateEndpoints != null && Object.hasOwnProperty.call(message, "privateEndpoints")) + $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.encode(message.privateEndpoints, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.indexSyncTime != null && Object.hasOwnProperty.call(message, "indexSyncTime")) + $root.google.protobuf.Timestamp.encode(message.indexSyncTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.automaticResources != null && Object.hasOwnProperty.call(message, "automaticResources")) + $root.google.cloud.aiplatform.v1beta1.AutomaticResources.encode(message.automaticResources, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.enableAccessLogging != null && Object.hasOwnProperty.call(message, "enableAccessLogging")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.enableAccessLogging); + if (message.deployedIndexAuthConfig != null && Object.hasOwnProperty.call(message, "deployedIndexAuthConfig")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.encode(message.deployedIndexAuthConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedIpRanges != null && message.reservedIpRanges.length) + for (var i = 0; i < message.reservedIpRanges.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedIpRanges[i]); + if (message.deploymentGroup != null && Object.hasOwnProperty.call(message, "deploymentGroup")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.deploymentGroup); + if (message.dedicatedResources != null && Object.hasOwnProperty.call(message, "dedicatedResources")) + $root.google.cloud.aiplatform.v1beta1.DedicatedResources.encode(message.dedicatedResources, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + return writer; + }; - /** - * Constructs a new CategoricalValueCondition. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @classdesc Represents a CategoricalValueCondition. - * @implements ICategoricalValueCondition - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition=} [properties] Properties to set - */ - function CategoricalValueCondition(properties) { - this.values = []; - 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]]; + /** + * Encodes the specified DeployedIndex message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex} message DeployedIndex message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployedIndex.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeployedIndex message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @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.DeployedIndex} DeployedIndex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployedIndex.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.DeployedIndex(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.id = reader.string(); + break; + } + case 2: { + message.index = reader.string(); + break; + } + case 3: { + message.displayName = reader.string(); + break; + } + case 4: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.decode(reader, reader.uint32()); + break; + } + case 6: { + message.indexSyncTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 7: { + message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.decode(reader, reader.uint32()); + break; + } + case 16: { + message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.decode(reader, reader.uint32()); + break; + } + case 8: { + message.enableAccessLogging = reader.bool(); + break; + } + case 9: { + message.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.decode(reader, reader.uint32()); + break; + } + case 10: { + if (!(message.reservedIpRanges && message.reservedIpRanges.length)) + message.reservedIpRanges = []; + message.reservedIpRanges.push(reader.string()); + break; + } + case 11: { + message.deploymentGroup = reader.string(); + break; } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * CategoricalValueCondition values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @instance - */ - CategoricalValueCondition.prototype.values = $util.emptyArray; + /** + * Decodes a DeployedIndex message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployedIndex.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a new CategoricalValueCondition instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition instance - */ - CategoricalValueCondition.create = function create(properties) { - return new CategoricalValueCondition(properties); - }; + /** + * Verifies a DeployedIndex message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeployedIndex.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isString(message.index)) + return "index: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify(message.privateEndpoints); + if (error) + return "privateEndpoints." + error; + } + if (message.indexSyncTime != null && message.hasOwnProperty("indexSyncTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.indexSyncTime); + if (error) + return "indexSyncTime." + error; + } + if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) { + var error = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.verify(message.automaticResources); + if (error) + return "automaticResources." + error; + } + if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) { + var error = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.verify(message.dedicatedResources); + if (error) + return "dedicatedResources." + error; + } + if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) + if (typeof message.enableAccessLogging !== "boolean") + return "enableAccessLogging: boolean expected"; + if (message.deployedIndexAuthConfig != null && message.hasOwnProperty("deployedIndexAuthConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify(message.deployedIndexAuthConfig); + if (error) + return "deployedIndexAuthConfig." + error; + } + if (message.reservedIpRanges != null && message.hasOwnProperty("reservedIpRanges")) { + if (!Array.isArray(message.reservedIpRanges)) + return "reservedIpRanges: array expected"; + for (var i = 0; i < message.reservedIpRanges.length; ++i) + if (!$util.isString(message.reservedIpRanges[i])) + return "reservedIpRanges: string[] expected"; + } + if (message.deploymentGroup != null && message.hasOwnProperty("deploymentGroup")) + if (!$util.isString(message.deploymentGroup)) + return "deploymentGroup: string expected"; + return null; + }; - /** - * Encodes the specified CategoricalValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition} message CategoricalValueCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CategoricalValueCondition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); - return writer; - }; + /** + * Creates a DeployedIndex message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex + */ + DeployedIndex.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndex) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndex(); + if (object.id != null) + message.id = String(object.id); + if (object.index != null) + message.index = String(object.index); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.privateEndpoints != null) { + if (typeof object.privateEndpoints !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.privateEndpoints: object expected"); + message.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.fromObject(object.privateEndpoints); + } + if (object.indexSyncTime != null) { + if (typeof object.indexSyncTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.indexSyncTime: object expected"); + message.indexSyncTime = $root.google.protobuf.Timestamp.fromObject(object.indexSyncTime); + } + if (object.automaticResources != null) { + if (typeof object.automaticResources !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.automaticResources: object expected"); + message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.fromObject(object.automaticResources); + } + if (object.dedicatedResources != null) { + if (typeof object.dedicatedResources !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.dedicatedResources: object expected"); + message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.fromObject(object.dedicatedResources); + } + if (object.enableAccessLogging != null) + message.enableAccessLogging = Boolean(object.enableAccessLogging); + if (object.deployedIndexAuthConfig != null) { + if (typeof object.deployedIndexAuthConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.deployedIndexAuthConfig: object expected"); + message.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.fromObject(object.deployedIndexAuthConfig); + } + if (object.reservedIpRanges) { + if (!Array.isArray(object.reservedIpRanges)) + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.reservedIpRanges: array expected"); + message.reservedIpRanges = []; + for (var i = 0; i < object.reservedIpRanges.length; ++i) + message.reservedIpRanges[i] = String(object.reservedIpRanges[i]); + } + if (object.deploymentGroup != null) + message.deploymentGroup = String(object.deploymentGroup); + return message; + }; - /** - * Encodes the specified CategoricalValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition} message CategoricalValueCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CategoricalValueCondition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a plain object from a DeployedIndex message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @static + * @param {google.cloud.aiplatform.v1beta1.DeployedIndex} message DeployedIndex + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeployedIndex.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.reservedIpRanges = []; + if (options.defaults) { + object.id = ""; + object.index = ""; + object.displayName = ""; + object.createTime = null; + object.privateEndpoints = null; + object.indexSyncTime = null; + object.automaticResources = null; + object.enableAccessLogging = false; + object.deployedIndexAuthConfig = null; + object.deploymentGroup = ""; + object.dedicatedResources = null; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) + object.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.toObject(message.privateEndpoints, options); + if (message.indexSyncTime != null && message.hasOwnProperty("indexSyncTime")) + object.indexSyncTime = $root.google.protobuf.Timestamp.toObject(message.indexSyncTime, options); + if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) + object.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.toObject(message.automaticResources, options); + if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) + object.enableAccessLogging = message.enableAccessLogging; + if (message.deployedIndexAuthConfig != null && message.hasOwnProperty("deployedIndexAuthConfig")) + object.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.toObject(message.deployedIndexAuthConfig, options); + if (message.reservedIpRanges && message.reservedIpRanges.length) { + object.reservedIpRanges = []; + for (var j = 0; j < message.reservedIpRanges.length; ++j) + object.reservedIpRanges[j] = message.reservedIpRanges[j]; + } + if (message.deploymentGroup != null && message.hasOwnProperty("deploymentGroup")) + object.deploymentGroup = message.deploymentGroup; + if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) + object.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.toObject(message.dedicatedResources, options); + return object; + }; - /** - * Decodes a CategoricalValueCondition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @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.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CategoricalValueCondition.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.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Converts this DeployedIndex to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + * @returns {Object.} JSON object + */ + DeployedIndex.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a CategoricalValueCondition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CategoricalValueCondition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Gets the default type url for DeployedIndex + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeployedIndex.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployedIndex"; + }; - /** - * Verifies a CategoricalValueCondition message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CategoricalValueCondition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isString(message.values[i])) - return "values: string[] expected"; - } - return null; - }; + return DeployedIndex; + })(); - /** - * Creates a CategoricalValueCondition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition - */ - CategoricalValueCondition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = String(object.values[i]); - } - return message; - }; + v1beta1.DeployedIndexAuthConfig = (function() { - /** - * Creates a plain object from a CategoricalValueCondition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} message CategoricalValueCondition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CategoricalValueCondition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = message.values[j]; - } - return object; - }; + /** + * Properties of a DeployedIndexAuthConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeployedIndexAuthConfig + * @property {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null} [authProvider] DeployedIndexAuthConfig authProvider + */ - /** - * Converts this CategoricalValueCondition to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @instance - * @returns {Object.} JSON object - */ - CategoricalValueCondition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Constructs a new DeployedIndexAuthConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeployedIndexAuthConfig. + * @implements IDeployedIndexAuthConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig=} [properties] Properties to set + */ + function DeployedIndexAuthConfig(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]]; + } - /** - * Gets the default type url for CategoricalValueCondition - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CategoricalValueCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition"; - }; + /** + * DeployedIndexAuthConfig authProvider. + * @member {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null|undefined} authProvider + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @instance + */ + DeployedIndexAuthConfig.prototype.authProvider = null; - return CategoricalValueCondition; - })(); + /** + * Creates a new DeployedIndexAuthConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig instance + */ + DeployedIndexAuthConfig.create = function create(properties) { + return new DeployedIndexAuthConfig(properties); + }; - return ConditionalParameterSpec; - })(); + /** + * Encodes the specified DeployedIndexAuthConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployedIndexAuthConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.authProvider != null && Object.hasOwnProperty.call(message, "authProvider")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.encode(message.authProvider, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * ScaleType enum. - * @name google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType - * @enum {number} - * @property {number} SCALE_TYPE_UNSPECIFIED=0 SCALE_TYPE_UNSPECIFIED value - * @property {number} UNIT_LINEAR_SCALE=1 UNIT_LINEAR_SCALE value - * @property {number} UNIT_LOG_SCALE=2 UNIT_LOG_SCALE value - * @property {number} UNIT_REVERSE_LOG_SCALE=3 UNIT_REVERSE_LOG_SCALE value - */ - ParameterSpec.ScaleType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SCALE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "UNIT_LINEAR_SCALE"] = 1; - values[valuesById[2] = "UNIT_LOG_SCALE"] = 2; - values[valuesById[3] = "UNIT_REVERSE_LOG_SCALE"] = 3; - return values; - })(); + /** + * Encodes the specified DeployedIndexAuthConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployedIndexAuthConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - return ParameterSpec; - })(); + /** + * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @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.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployedIndexAuthConfig.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.DeployedIndexAuthConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - StudySpec.DecayCurveAutomatedStoppingSpec = (function() { + /** + * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployedIndexAuthConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeployedIndexAuthConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeployedIndexAuthConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.authProvider != null && message.hasOwnProperty("authProvider")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify(message.authProvider); + if (error) + return "authProvider." + error; + } + return null; + }; + + /** + * Creates a DeployedIndexAuthConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + */ + DeployedIndexAuthConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig(); + if (object.authProvider != null) { + if (typeof object.authProvider !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.authProvider: object expected"); + message.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.fromObject(object.authProvider); + } + return message; + }; + + /** + * Creates a plain object from a DeployedIndexAuthConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} message DeployedIndexAuthConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeployedIndexAuthConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.authProvider = null; + if (message.authProvider != null && message.hasOwnProperty("authProvider")) + object.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.toObject(message.authProvider, options); + return object; + }; + + /** + * Converts this DeployedIndexAuthConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @instance + * @returns {Object.} JSON object + */ + DeployedIndexAuthConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeployedIndexAuthConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeployedIndexAuthConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig"; + }; + + DeployedIndexAuthConfig.AuthProvider = (function() { /** - * Properties of a DecayCurveAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface IDecayCurveAutomatedStoppingSpec - * @property {boolean|null} [useElapsedDuration] DecayCurveAutomatedStoppingSpec useElapsedDuration + * Properties of an AuthProvider. + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @interface IAuthProvider + * @property {Array.|null} [audiences] AuthProvider audiences + * @property {Array.|null} [allowedIssuers] AuthProvider allowedIssuers */ /** - * Constructs a new DecayCurveAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @classdesc Represents a DecayCurveAutomatedStoppingSpec. - * @implements IDecayCurveAutomatedStoppingSpec + * Constructs a new AuthProvider. + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @classdesc Represents an AuthProvider. + * @implements IAuthProvider * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider=} [properties] Properties to set */ - function DecayCurveAutomatedStoppingSpec(properties) { + function AuthProvider(properties) { + this.audiences = []; + this.allowedIssuers = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -243558,75 +256012,95 @@ } /** - * DecayCurveAutomatedStoppingSpec useElapsedDuration. - * @member {boolean} useElapsedDuration - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * AuthProvider audiences. + * @member {Array.} audiences + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @instance */ - DecayCurveAutomatedStoppingSpec.prototype.useElapsedDuration = false; + AuthProvider.prototype.audiences = $util.emptyArray; /** - * Creates a new DecayCurveAutomatedStoppingSpec instance using the specified properties. + * AuthProvider allowedIssuers. + * @member {Array.} allowedIssuers + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @instance + */ + AuthProvider.prototype.allowedIssuers = $util.emptyArray; + + /** + * Creates a new AuthProvider instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec instance + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider instance */ - DecayCurveAutomatedStoppingSpec.create = function create(properties) { - return new DecayCurveAutomatedStoppingSpec(properties); + AuthProvider.create = function create(properties) { + return new AuthProvider(properties); }; /** - * Encodes the specified DecayCurveAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. + * Encodes the specified AuthProvider message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DecayCurveAutomatedStoppingSpec.encode = function encode(message, writer) { + AuthProvider.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useElapsedDuration); + if (message.audiences != null && message.audiences.length) + for (var i = 0; i < message.audiences.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.audiences[i]); + if (message.allowedIssuers != null && message.allowedIssuers.length) + for (var i = 0; i < message.allowedIssuers.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.allowedIssuers[i]); return writer; }; /** - * Encodes the specified DecayCurveAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. + * Encodes the specified AuthProvider message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DecayCurveAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { + AuthProvider.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer. + * Decodes an AuthProvider message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @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.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DecayCurveAutomatedStoppingSpec.decode = function decode(reader, length) { + AuthProvider.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.StudySpec.DecayCurveAutomatedStoppingSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.useElapsedDuration = reader.bool(); + if (!(message.audiences && message.audiences.length)) + message.audiences = []; + message.audiences.push(reader.string()); + break; + } + case 2: { + if (!(message.allowedIssuers && message.allowedIssuers.length)) + message.allowedIssuers = []; + message.allowedIssuers.push(reader.string()); break; } default: @@ -243638,1340 +256112,2120 @@ }; /** - * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * Decodes an AuthProvider message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DecayCurveAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { + AuthProvider.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DecayCurveAutomatedStoppingSpec message. + * Verifies an AuthProvider message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DecayCurveAutomatedStoppingSpec.verify = function verify(message) { + AuthProvider.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - if (typeof message.useElapsedDuration !== "boolean") - return "useElapsedDuration: boolean expected"; + if (message.audiences != null && message.hasOwnProperty("audiences")) { + if (!Array.isArray(message.audiences)) + return "audiences: array expected"; + for (var i = 0; i < message.audiences.length; ++i) + if (!$util.isString(message.audiences[i])) + return "audiences: string[] expected"; + } + if (message.allowedIssuers != null && message.hasOwnProperty("allowedIssuers")) { + if (!Array.isArray(message.allowedIssuers)) + return "allowedIssuers: array expected"; + for (var i = 0; i < message.allowedIssuers.length; ++i) + if (!$util.isString(message.allowedIssuers[i])) + return "allowedIssuers: string[] expected"; + } return null; }; /** - * Creates a DecayCurveAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * Creates an AuthProvider message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider */ - DecayCurveAutomatedStoppingSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) + AuthProvider.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec(); - if (object.useElapsedDuration != null) - message.useElapsedDuration = Boolean(object.useElapsedDuration); + var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider(); + if (object.audiences) { + if (!Array.isArray(object.audiences)) + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.audiences: array expected"); + message.audiences = []; + for (var i = 0; i < object.audiences.length; ++i) + message.audiences[i] = String(object.audiences[i]); + } + if (object.allowedIssuers) { + if (!Array.isArray(object.allowedIssuers)) + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.allowedIssuers: array expected"); + message.allowedIssuers = []; + for (var i = 0; i < object.allowedIssuers.length; ++i) + message.allowedIssuers[i] = String(object.allowedIssuers[i]); + } return message; }; /** - * Creates a plain object from a DecayCurveAutomatedStoppingSpec message. Also converts values to other types if specified. + * Creates a plain object from an AuthProvider message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} message AuthProvider * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DecayCurveAutomatedStoppingSpec.toObject = function toObject(message, options) { + AuthProvider.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.useElapsedDuration = false; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - object.useElapsedDuration = message.useElapsedDuration; + if (options.arrays || options.defaults) { + object.audiences = []; + object.allowedIssuers = []; + } + if (message.audiences && message.audiences.length) { + object.audiences = []; + for (var j = 0; j < message.audiences.length; ++j) + object.audiences[j] = message.audiences[j]; + } + if (message.allowedIssuers && message.allowedIssuers.length) { + object.allowedIssuers = []; + for (var j = 0; j < message.allowedIssuers.length; ++j) + object.allowedIssuers[j] = message.allowedIssuers[j]; + } return object; }; /** - * Converts this DecayCurveAutomatedStoppingSpec to JSON. + * Converts this AuthProvider to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider * @instance * @returns {Object.} JSON object */ - DecayCurveAutomatedStoppingSpec.prototype.toJSON = function toJSON() { + AuthProvider.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Gets the default type url for DecayCurveAutomatedStoppingSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - DecayCurveAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec"; - }; + /** + * Gets the default type url for AuthProvider + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AuthProvider.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider"; + }; + + return AuthProvider; + })(); + + return DeployedIndexAuthConfig; + })(); + + v1beta1.IndexPrivateEndpoints = (function() { + + /** + * Properties of an IndexPrivateEndpoints. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IIndexPrivateEndpoints + * @property {string|null} [matchGrpcAddress] IndexPrivateEndpoints matchGrpcAddress + * @property {string|null} [serviceAttachment] IndexPrivateEndpoints serviceAttachment + */ + + /** + * Constructs a new IndexPrivateEndpoints. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an IndexPrivateEndpoints. + * @implements IIndexPrivateEndpoints + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints=} [properties] Properties to set + */ + function IndexPrivateEndpoints(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]]; + } + + /** + * IndexPrivateEndpoints matchGrpcAddress. + * @member {string} matchGrpcAddress + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @instance + */ + IndexPrivateEndpoints.prototype.matchGrpcAddress = ""; + + /** + * IndexPrivateEndpoints serviceAttachment. + * @member {string} serviceAttachment + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @instance + */ + IndexPrivateEndpoints.prototype.serviceAttachment = ""; + + /** + * Creates a new IndexPrivateEndpoints instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints instance + */ + IndexPrivateEndpoints.create = function create(properties) { + return new IndexPrivateEndpoints(properties); + }; + + /** + * Encodes the specified IndexPrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints} message IndexPrivateEndpoints message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexPrivateEndpoints.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.matchGrpcAddress != null && Object.hasOwnProperty.call(message, "matchGrpcAddress")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.matchGrpcAddress); + if (message.serviceAttachment != null && Object.hasOwnProperty.call(message, "serviceAttachment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAttachment); + return writer; + }; + + /** + * Encodes the specified IndexPrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @static + * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints} message IndexPrivateEndpoints message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IndexPrivateEndpoints.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IndexPrivateEndpoints message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @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.IndexPrivateEndpoints} IndexPrivateEndpoints + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexPrivateEndpoints.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.IndexPrivateEndpoints(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.matchGrpcAddress = reader.string(); + break; + } + case 2: { + message.serviceAttachment = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an IndexPrivateEndpoints message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IndexPrivateEndpoints.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IndexPrivateEndpoints message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IndexPrivateEndpoints.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.matchGrpcAddress != null && message.hasOwnProperty("matchGrpcAddress")) + if (!$util.isString(message.matchGrpcAddress)) + return "matchGrpcAddress: string expected"; + if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) + if (!$util.isString(message.serviceAttachment)) + return "serviceAttachment: string expected"; + return null; + }; + + /** + * Creates an IndexPrivateEndpoints message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints + */ + IndexPrivateEndpoints.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints(); + if (object.matchGrpcAddress != null) + message.matchGrpcAddress = String(object.matchGrpcAddress); + if (object.serviceAttachment != null) + message.serviceAttachment = String(object.serviceAttachment); + return message; + }; + + /** + * Creates a plain object from an IndexPrivateEndpoints message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @static + * @param {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} message IndexPrivateEndpoints + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IndexPrivateEndpoints.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.matchGrpcAddress = ""; + object.serviceAttachment = ""; + } + if (message.matchGrpcAddress != null && message.hasOwnProperty("matchGrpcAddress")) + object.matchGrpcAddress = message.matchGrpcAddress; + if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) + object.serviceAttachment = message.serviceAttachment; + return object; + }; + + /** + * Converts this IndexPrivateEndpoints to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @instance + * @returns {Object.} JSON object + */ + IndexPrivateEndpoints.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for IndexPrivateEndpoints + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IndexPrivateEndpoints.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints"; + }; + + return IndexPrivateEndpoints; + })(); + + v1beta1.PrivateServiceConnectConfig = (function() { + + /** + * Properties of a PrivateServiceConnectConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IPrivateServiceConnectConfig + * @property {boolean|null} [enablePrivateServiceConnect] PrivateServiceConnectConfig enablePrivateServiceConnect + * @property {Array.|null} [projectAllowlist] PrivateServiceConnectConfig projectAllowlist + */ + + /** + * Constructs a new PrivateServiceConnectConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a PrivateServiceConnectConfig. + * @implements IPrivateServiceConnectConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig=} [properties] Properties to set + */ + function PrivateServiceConnectConfig(properties) { + this.projectAllowlist = []; + 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]]; + } + + /** + * PrivateServiceConnectConfig enablePrivateServiceConnect. + * @member {boolean} enablePrivateServiceConnect + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @instance + */ + PrivateServiceConnectConfig.prototype.enablePrivateServiceConnect = false; + + /** + * PrivateServiceConnectConfig projectAllowlist. + * @member {Array.} projectAllowlist + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @instance + */ + PrivateServiceConnectConfig.prototype.projectAllowlist = $util.emptyArray; + + /** + * Creates a new PrivateServiceConnectConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig} PrivateServiceConnectConfig instance + */ + PrivateServiceConnectConfig.create = function create(properties) { + return new PrivateServiceConnectConfig(properties); + }; + + /** + * Encodes the specified PrivateServiceConnectConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig} message PrivateServiceConnectConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateServiceConnectConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateServiceConnect); + if (message.projectAllowlist != null && message.projectAllowlist.length) + for (var i = 0; i < message.projectAllowlist.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.projectAllowlist[i]); + return writer; + }; + + /** + * Encodes the specified PrivateServiceConnectConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.IPrivateServiceConnectConfig} message PrivateServiceConnectConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PrivateServiceConnectConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @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.PrivateServiceConnectConfig} PrivateServiceConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateServiceConnectConfig.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.PrivateServiceConnectConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.enablePrivateServiceConnect = reader.bool(); + break; + } + case 2: { + if (!(message.projectAllowlist && message.projectAllowlist.length)) + message.projectAllowlist = []; + message.projectAllowlist.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PrivateServiceConnectConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig} PrivateServiceConnectConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PrivateServiceConnectConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PrivateServiceConnectConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PrivateServiceConnectConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + if (typeof message.enablePrivateServiceConnect !== "boolean") + return "enablePrivateServiceConnect: boolean expected"; + if (message.projectAllowlist != null && message.hasOwnProperty("projectAllowlist")) { + if (!Array.isArray(message.projectAllowlist)) + return "projectAllowlist: array expected"; + for (var i = 0; i < message.projectAllowlist.length; ++i) + if (!$util.isString(message.projectAllowlist[i])) + return "projectAllowlist: string[] expected"; + } + return null; + }; + + /** + * Creates a PrivateServiceConnectConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig} PrivateServiceConnectConfig + */ + PrivateServiceConnectConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig(); + if (object.enablePrivateServiceConnect != null) + message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); + if (object.projectAllowlist) { + if (!Array.isArray(object.projectAllowlist)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig.projectAllowlist: array expected"); + message.projectAllowlist = []; + for (var i = 0; i < object.projectAllowlist.length; ++i) + message.projectAllowlist[i] = String(object.projectAllowlist[i]); + } + return message; + }; + + /** + * Creates a plain object from a PrivateServiceConnectConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig} message PrivateServiceConnectConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PrivateServiceConnectConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.projectAllowlist = []; + if (options.defaults) + object.enablePrivateServiceConnect = false; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; + if (message.projectAllowlist && message.projectAllowlist.length) { + object.projectAllowlist = []; + for (var j = 0; j < message.projectAllowlist.length; ++j) + object.projectAllowlist[j] = message.projectAllowlist[j]; + } + return object; + }; + + /** + * Converts this PrivateServiceConnectConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @instance + * @returns {Object.} JSON object + */ + PrivateServiceConnectConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for PrivateServiceConnectConfig + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PrivateServiceConnectConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PrivateServiceConnectConfig"; + }; + + return PrivateServiceConnectConfig; + })(); + + v1beta1.IndexEndpointService = (function() { + + /** + * Constructs a new IndexEndpointService service. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an IndexEndpointService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function IndexEndpointService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (IndexEndpointService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexEndpointService; + + /** + * Creates new IndexEndpointService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {IndexEndpointService} RPC service. Useful where requests and/or responses are streamed. + */ + IndexEndpointService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|createIndexEndpoint}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef CreateIndexEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateIndexEndpoint. + * @function createIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} request CreateIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpointCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.createIndexEndpoint = function createIndexEndpoint(request, callback) { + return this.rpcCall(createIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateIndexEndpoint" }); + + /** + * Calls CreateIndexEndpoint. + * @function createIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} request CreateIndexEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|getIndexEndpoint}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef GetIndexEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} [response] IndexEndpoint + */ + + /** + * Calls GetIndexEndpoint. + * @function getIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} request GetIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpointCallback} callback Node-style callback called with the error, if any, and IndexEndpoint + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.getIndexEndpoint = function getIndexEndpoint(request, callback) { + return this.rpcCall(getIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest, $root.google.cloud.aiplatform.v1beta1.IndexEndpoint, request, callback); + }, "name", { value: "GetIndexEndpoint" }); + + /** + * Calls GetIndexEndpoint. + * @function getIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} request GetIndexEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|listIndexEndpoints}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef ListIndexEndpointsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} [response] ListIndexEndpointsResponse + */ + + /** + * Calls ListIndexEndpoints. + * @function listIndexEndpoints + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} request ListIndexEndpointsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpointsCallback} callback Node-style callback called with the error, if any, and ListIndexEndpointsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.listIndexEndpoints = function listIndexEndpoints(request, callback) { + return this.rpcCall(listIndexEndpoints, $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest, $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse, request, callback); + }, "name", { value: "ListIndexEndpoints" }); + + /** + * Calls ListIndexEndpoints. + * @function listIndexEndpoints + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} request ListIndexEndpointsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|updateIndexEndpoint}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef UpdateIndexEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} [response] IndexEndpoint + */ + + /** + * Calls UpdateIndexEndpoint. + * @function updateIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} request UpdateIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpointCallback} callback Node-style callback called with the error, if any, and IndexEndpoint + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.updateIndexEndpoint = function updateIndexEndpoint(request, callback) { + return this.rpcCall(updateIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest, $root.google.cloud.aiplatform.v1beta1.IndexEndpoint, request, callback); + }, "name", { value: "UpdateIndexEndpoint" }); + + /** + * Calls UpdateIndexEndpoint. + * @function updateIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} request UpdateIndexEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|deleteIndexEndpoint}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef DeleteIndexEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteIndexEndpoint. + * @function deleteIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} request DeleteIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpointCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.deleteIndexEndpoint = function deleteIndexEndpoint(request, callback) { + return this.rpcCall(deleteIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteIndexEndpoint" }); + + /** + * Calls DeleteIndexEndpoint. + * @function deleteIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} request DeleteIndexEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|deployIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef DeployIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeployIndex. + * @function deployIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} request DeployIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.deployIndex = function deployIndex(request, callback) { + return this.rpcCall(deployIndex, $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeployIndex" }); + + /** + * Calls DeployIndex. + * @function deployIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} request DeployIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|undeployIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef UndeployIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UndeployIndex. + * @function undeployIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} request UndeployIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.undeployIndex = function undeployIndex(request, callback) { + return this.rpcCall(undeployIndex, $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UndeployIndex" }); + + /** + * Calls UndeployIndex. + * @function undeployIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} request UndeployIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|mutateDeployedIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef MutateDeployedIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls MutateDeployedIndex. + * @function mutateDeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.mutateDeployedIndex = function mutateDeployedIndex(request, callback) { + return this.rpcCall(mutateDeployedIndex, $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "MutateDeployedIndex" }); + + /** + * Calls MutateDeployedIndex. + * @function mutateDeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return IndexEndpointService; + })(); + + v1beta1.CreateIndexEndpointRequest = (function() { + + /** + * Properties of a CreateIndexEndpointRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateIndexEndpointRequest + * @property {string|null} [parent] CreateIndexEndpointRequest parent + * @property {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null} [indexEndpoint] CreateIndexEndpointRequest indexEndpoint + */ + + /** + * Constructs a new CreateIndexEndpointRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateIndexEndpointRequest. + * @implements ICreateIndexEndpointRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest=} [properties] Properties to set + */ + function CreateIndexEndpointRequest(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]]; + } + + /** + * CreateIndexEndpointRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @instance + */ + CreateIndexEndpointRequest.prototype.parent = ""; + + /** + * CreateIndexEndpointRequest indexEndpoint. + * @member {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null|undefined} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @instance + */ + CreateIndexEndpointRequest.prototype.indexEndpoint = null; + + /** + * Creates a new CreateIndexEndpointRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest instance + */ + CreateIndexEndpointRequest.create = function create(properties) { + return new CreateIndexEndpointRequest(properties); + }; + + /** + * Encodes the specified CreateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} message CreateIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateIndexEndpointRequest.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.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoint, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} message CreateIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @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.CreateIndexEndpointRequest} CreateIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateIndexEndpointRequest.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.CreateIndexEndpointRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateIndexEndpointRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateIndexEndpointRequest.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.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoint); + if (error) + return "indexEndpoint." + error; + } + return null; + }; + + /** + * Creates a CreateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest + */ + CreateIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.indexEndpoint != null) { + if (typeof object.indexEndpoint !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.indexEndpoint: object expected"); + message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoint); + } + return message; + }; + + /** + * Creates a plain object from a CreateIndexEndpointRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} message CreateIndexEndpointRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateIndexEndpointRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.indexEndpoint = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoint, options); + return object; + }; + + /** + * Converts this CreateIndexEndpointRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @instance + * @returns {Object.} JSON object + */ + CreateIndexEndpointRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CreateIndexEndpointRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest"; + }; - return DecayCurveAutomatedStoppingSpec; - })(); + return CreateIndexEndpointRequest; + })(); - StudySpec.MedianAutomatedStoppingSpec = (function() { + v1beta1.CreateIndexEndpointOperationMetadata = (function() { - /** - * Properties of a MedianAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface IMedianAutomatedStoppingSpec - * @property {boolean|null} [useElapsedDuration] MedianAutomatedStoppingSpec useElapsedDuration - */ + /** + * Properties of a CreateIndexEndpointOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateIndexEndpointOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexEndpointOperationMetadata genericMetadata + */ - /** - * Constructs a new MedianAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @classdesc Represents a MedianAutomatedStoppingSpec. - * @implements IMedianAutomatedStoppingSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec=} [properties] Properties to set - */ - function MedianAutomatedStoppingSpec(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]]; - } + /** + * Constructs a new CreateIndexEndpointOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateIndexEndpointOperationMetadata. + * @implements ICreateIndexEndpointOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set + */ + function CreateIndexEndpointOperationMetadata(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]]; + } - /** - * MedianAutomatedStoppingSpec useElapsedDuration. - * @member {boolean} useElapsedDuration - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @instance - */ - MedianAutomatedStoppingSpec.prototype.useElapsedDuration = false; + /** + * CreateIndexEndpointOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @instance + */ + CreateIndexEndpointOperationMetadata.prototype.genericMetadata = null; - /** - * Creates a new MedianAutomatedStoppingSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec instance - */ - MedianAutomatedStoppingSpec.create = function create(properties) { - return new MedianAutomatedStoppingSpec(properties); - }; + /** + * Creates a new CreateIndexEndpointOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata instance + */ + CreateIndexEndpointOperationMetadata.create = function create(properties) { + return new CreateIndexEndpointOperationMetadata(properties); + }; - /** - * Encodes the specified MedianAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MedianAutomatedStoppingSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useElapsedDuration); - return writer; - }; + /** + * Encodes the specified CreateIndexEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateIndexEndpointOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified MedianAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MedianAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified CreateIndexEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateIndexEndpointOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @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.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MedianAutomatedStoppingSpec.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.StudySpec.MedianAutomatedStoppingSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.useElapsedDuration = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @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.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateIndexEndpointOperationMetadata.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.CreateIndexEndpointOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MedianAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a MedianAutomatedStoppingSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MedianAutomatedStoppingSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - if (typeof message.useElapsedDuration !== "boolean") - return "useElapsedDuration: boolean expected"; - return null; - }; + /** + * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateIndexEndpointOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a MedianAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec - */ - MedianAutomatedStoppingSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec(); - if (object.useElapsedDuration != null) - message.useElapsedDuration = Boolean(object.useElapsedDuration); - return message; - }; + /** + * Verifies a CreateIndexEndpointOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateIndexEndpointOperationMetadata.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.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; - /** - * Creates a plain object from a MedianAutomatedStoppingSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MedianAutomatedStoppingSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.useElapsedDuration = false; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - object.useElapsedDuration = message.useElapsedDuration; + /** + * Creates a CreateIndexEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + */ + CreateIndexEndpointOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata) return object; - }; - - /** - * Converts this MedianAutomatedStoppingSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @instance - * @returns {Object.} JSON object - */ - MedianAutomatedStoppingSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for MedianAutomatedStoppingSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - MedianAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec"; - }; - - return MedianAutomatedStoppingSpec; - })(); - - StudySpec.ConvexAutomatedStoppingSpec = (function() { - - /** - * Properties of a ConvexAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface IConvexAutomatedStoppingSpec - * @property {number|Long|null} [maxStepCount] ConvexAutomatedStoppingSpec maxStepCount - * @property {number|Long|null} [minStepCount] ConvexAutomatedStoppingSpec minStepCount - * @property {number|Long|null} [minMeasurementCount] ConvexAutomatedStoppingSpec minMeasurementCount - * @property {string|null} [learningRateParameterName] ConvexAutomatedStoppingSpec learningRateParameterName - * @property {boolean|null} [useElapsedDuration] ConvexAutomatedStoppingSpec useElapsedDuration - * @property {boolean|null} [updateAllStoppedTrials] ConvexAutomatedStoppingSpec updateAllStoppedTrials - */ - - /** - * Constructs a new ConvexAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @classdesc Represents a ConvexAutomatedStoppingSpec. - * @implements IConvexAutomatedStoppingSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec=} [properties] Properties to set - */ - function ConvexAutomatedStoppingSpec(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]]; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } + return message; + }; - /** - * ConvexAutomatedStoppingSpec maxStepCount. - * @member {number|Long} maxStepCount - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.maxStepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Creates a plain object from a CreateIndexEndpointOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateIndexEndpointOperationMetadata.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.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; - /** - * ConvexAutomatedStoppingSpec minStepCount. - * @member {number|Long} minStepCount - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.minStepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Converts this CreateIndexEndpointOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + CreateIndexEndpointOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * ConvexAutomatedStoppingSpec minMeasurementCount. - * @member {number|Long} minMeasurementCount - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.minMeasurementCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Gets the default type url for CreateIndexEndpointOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateIndexEndpointOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata"; + }; - /** - * ConvexAutomatedStoppingSpec learningRateParameterName. - * @member {string} learningRateParameterName - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.learningRateParameterName = ""; + return CreateIndexEndpointOperationMetadata; + })(); - /** - * ConvexAutomatedStoppingSpec useElapsedDuration. - * @member {boolean} useElapsedDuration - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.useElapsedDuration = false; + v1beta1.GetIndexEndpointRequest = (function() { - /** - * ConvexAutomatedStoppingSpec updateAllStoppedTrials. - * @member {boolean|null|undefined} updateAllStoppedTrials - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.updateAllStoppedTrials = null; + /** + * Properties of a GetIndexEndpointRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGetIndexEndpointRequest + * @property {string|null} [name] GetIndexEndpointRequest name + */ - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Constructs a new GetIndexEndpointRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GetIndexEndpointRequest. + * @implements IGetIndexEndpointRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest=} [properties] Properties to set + */ + function GetIndexEndpointRequest(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]]; + } - /** - * ConvexAutomatedStoppingSpec _updateAllStoppedTrials. - * @member {"updateAllStoppedTrials"|undefined} _updateAllStoppedTrials - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - Object.defineProperty(ConvexAutomatedStoppingSpec.prototype, "_updateAllStoppedTrials", { - get: $util.oneOfGetter($oneOfFields = ["updateAllStoppedTrials"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * GetIndexEndpointRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @instance + */ + GetIndexEndpointRequest.prototype.name = ""; - /** - * Creates a new ConvexAutomatedStoppingSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec instance - */ - ConvexAutomatedStoppingSpec.create = function create(properties) { - return new ConvexAutomatedStoppingSpec(properties); - }; + /** + * Creates a new GetIndexEndpointRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest instance + */ + GetIndexEndpointRequest.create = function create(properties) { + return new GetIndexEndpointRequest(properties); + }; - /** - * Encodes the specified ConvexAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConvexAutomatedStoppingSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.maxStepCount != null && Object.hasOwnProperty.call(message, "maxStepCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxStepCount); - if (message.minStepCount != null && Object.hasOwnProperty.call(message, "minStepCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minStepCount); - if (message.minMeasurementCount != null && Object.hasOwnProperty.call(message, "minMeasurementCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.minMeasurementCount); - if (message.learningRateParameterName != null && Object.hasOwnProperty.call(message, "learningRateParameterName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.learningRateParameterName); - if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useElapsedDuration); - if (message.updateAllStoppedTrials != null && Object.hasOwnProperty.call(message, "updateAllStoppedTrials")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.updateAllStoppedTrials); - return writer; - }; + /** + * Encodes the specified GetIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} message GetIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIndexEndpointRequest.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 ConvexAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConvexAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified GetIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} message GetIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @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.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConvexAutomatedStoppingSpec.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.StudySpec.ConvexAutomatedStoppingSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.maxStepCount = reader.int64(); - break; - } - case 2: { - message.minStepCount = reader.int64(); - break; - } - case 3: { - message.minMeasurementCount = reader.int64(); - break; - } - case 4: { - message.learningRateParameterName = reader.string(); - break; - } - case 5: { - message.useElapsedDuration = reader.bool(); - break; - } - case 6: { - message.updateAllStoppedTrials = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Decodes a GetIndexEndpointRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @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.GetIndexEndpointRequest} GetIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIndexEndpointRequest.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.GetIndexEndpointRequest(); + 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 ConvexAutomatedStoppingSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConvexAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a ConvexAutomatedStoppingSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConvexAutomatedStoppingSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.maxStepCount != null && message.hasOwnProperty("maxStepCount")) - if (!$util.isInteger(message.maxStepCount) && !(message.maxStepCount && $util.isInteger(message.maxStepCount.low) && $util.isInteger(message.maxStepCount.high))) - return "maxStepCount: integer|Long expected"; - if (message.minStepCount != null && message.hasOwnProperty("minStepCount")) - if (!$util.isInteger(message.minStepCount) && !(message.minStepCount && $util.isInteger(message.minStepCount.low) && $util.isInteger(message.minStepCount.high))) - return "minStepCount: integer|Long expected"; - if (message.minMeasurementCount != null && message.hasOwnProperty("minMeasurementCount")) - if (!$util.isInteger(message.minMeasurementCount) && !(message.minMeasurementCount && $util.isInteger(message.minMeasurementCount.low) && $util.isInteger(message.minMeasurementCount.high))) - return "minMeasurementCount: integer|Long expected"; - if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) - if (!$util.isString(message.learningRateParameterName)) - return "learningRateParameterName: string expected"; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - if (typeof message.useElapsedDuration !== "boolean") - return "useElapsedDuration: boolean expected"; - if (message.updateAllStoppedTrials != null && message.hasOwnProperty("updateAllStoppedTrials")) { - properties._updateAllStoppedTrials = 1; - if (typeof message.updateAllStoppedTrials !== "boolean") - return "updateAllStoppedTrials: boolean expected"; - } - return null; - }; + /** + * Decodes a GetIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a ConvexAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec - */ - ConvexAutomatedStoppingSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec(); - if (object.maxStepCount != null) - if ($util.Long) - (message.maxStepCount = $util.Long.fromValue(object.maxStepCount)).unsigned = false; - else if (typeof object.maxStepCount === "string") - message.maxStepCount = parseInt(object.maxStepCount, 10); - else if (typeof object.maxStepCount === "number") - message.maxStepCount = object.maxStepCount; - else if (typeof object.maxStepCount === "object") - message.maxStepCount = new $util.LongBits(object.maxStepCount.low >>> 0, object.maxStepCount.high >>> 0).toNumber(); - if (object.minStepCount != null) - if ($util.Long) - (message.minStepCount = $util.Long.fromValue(object.minStepCount)).unsigned = false; - else if (typeof object.minStepCount === "string") - message.minStepCount = parseInt(object.minStepCount, 10); - else if (typeof object.minStepCount === "number") - message.minStepCount = object.minStepCount; - else if (typeof object.minStepCount === "object") - message.minStepCount = new $util.LongBits(object.minStepCount.low >>> 0, object.minStepCount.high >>> 0).toNumber(); - if (object.minMeasurementCount != null) - if ($util.Long) - (message.minMeasurementCount = $util.Long.fromValue(object.minMeasurementCount)).unsigned = false; - else if (typeof object.minMeasurementCount === "string") - message.minMeasurementCount = parseInt(object.minMeasurementCount, 10); - else if (typeof object.minMeasurementCount === "number") - message.minMeasurementCount = object.minMeasurementCount; - else if (typeof object.minMeasurementCount === "object") - message.minMeasurementCount = new $util.LongBits(object.minMeasurementCount.low >>> 0, object.minMeasurementCount.high >>> 0).toNumber(); - if (object.learningRateParameterName != null) - message.learningRateParameterName = String(object.learningRateParameterName); - if (object.useElapsedDuration != null) - message.useElapsedDuration = Boolean(object.useElapsedDuration); - if (object.updateAllStoppedTrials != null) - message.updateAllStoppedTrials = Boolean(object.updateAllStoppedTrials); - return message; - }; + /** + * Verifies a GetIndexEndpointRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetIndexEndpointRequest.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 plain object from a ConvexAutomatedStoppingSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConvexAutomatedStoppingSpec.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.maxStepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.maxStepCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.minStepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.minStepCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.minMeasurementCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.minMeasurementCount = options.longs === String ? "0" : 0; - object.learningRateParameterName = ""; - object.useElapsedDuration = false; - } - if (message.maxStepCount != null && message.hasOwnProperty("maxStepCount")) - if (typeof message.maxStepCount === "number") - object.maxStepCount = options.longs === String ? String(message.maxStepCount) : message.maxStepCount; - else - object.maxStepCount = options.longs === String ? $util.Long.prototype.toString.call(message.maxStepCount) : options.longs === Number ? new $util.LongBits(message.maxStepCount.low >>> 0, message.maxStepCount.high >>> 0).toNumber() : message.maxStepCount; - if (message.minStepCount != null && message.hasOwnProperty("minStepCount")) - if (typeof message.minStepCount === "number") - object.minStepCount = options.longs === String ? String(message.minStepCount) : message.minStepCount; - else - object.minStepCount = options.longs === String ? $util.Long.prototype.toString.call(message.minStepCount) : options.longs === Number ? new $util.LongBits(message.minStepCount.low >>> 0, message.minStepCount.high >>> 0).toNumber() : message.minStepCount; - if (message.minMeasurementCount != null && message.hasOwnProperty("minMeasurementCount")) - if (typeof message.minMeasurementCount === "number") - object.minMeasurementCount = options.longs === String ? String(message.minMeasurementCount) : message.minMeasurementCount; - else - object.minMeasurementCount = options.longs === String ? $util.Long.prototype.toString.call(message.minMeasurementCount) : options.longs === Number ? new $util.LongBits(message.minMeasurementCount.low >>> 0, message.minMeasurementCount.high >>> 0).toNumber() : message.minMeasurementCount; - if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) - object.learningRateParameterName = message.learningRateParameterName; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - object.useElapsedDuration = message.useElapsedDuration; - if (message.updateAllStoppedTrials != null && message.hasOwnProperty("updateAllStoppedTrials")) { - object.updateAllStoppedTrials = message.updateAllStoppedTrials; - if (options.oneofs) - object._updateAllStoppedTrials = "updateAllStoppedTrials"; - } + /** + * Creates a GetIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest + */ + GetIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this ConvexAutomatedStoppingSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - * @returns {Object.} JSON object - */ - ConvexAutomatedStoppingSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a GetIndexEndpointRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} message GetIndexEndpointRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetIndexEndpointRequest.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; + }; - /** - * Gets the default type url for ConvexAutomatedStoppingSpec - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ConvexAutomatedStoppingSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec"; - }; + /** + * Converts this GetIndexEndpointRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @instance + * @returns {Object.} JSON object + */ + GetIndexEndpointRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ConvexAutomatedStoppingSpec; - })(); + /** + * Gets the default type url for GetIndexEndpointRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest"; + }; - StudySpec.ConvexStopConfig = (function() { + return GetIndexEndpointRequest; + })(); - /** - * Properties of a ConvexStopConfig. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface IConvexStopConfig - * @property {number|Long|null} [maxNumSteps] ConvexStopConfig maxNumSteps - * @property {number|Long|null} [minNumSteps] ConvexStopConfig minNumSteps - * @property {number|Long|null} [autoregressiveOrder] ConvexStopConfig autoregressiveOrder - * @property {string|null} [learningRateParameterName] ConvexStopConfig learningRateParameterName - * @property {boolean|null} [useSeconds] ConvexStopConfig useSeconds - */ + v1beta1.ListIndexEndpointsRequest = (function() { - /** - * Constructs a new ConvexStopConfig. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @classdesc Represents a ConvexStopConfig. - * @implements IConvexStopConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig=} [properties] Properties to set - */ - function ConvexStopConfig(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]]; - } + /** + * Properties of a ListIndexEndpointsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListIndexEndpointsRequest + * @property {string|null} [parent] ListIndexEndpointsRequest parent + * @property {string|null} [filter] ListIndexEndpointsRequest filter + * @property {number|null} [pageSize] ListIndexEndpointsRequest pageSize + * @property {string|null} [pageToken] ListIndexEndpointsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListIndexEndpointsRequest readMask + */ - /** - * ConvexStopConfig maxNumSteps. - * @member {number|Long} maxNumSteps - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @instance - */ - ConvexStopConfig.prototype.maxNumSteps = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Constructs a new ListIndexEndpointsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListIndexEndpointsRequest. + * @implements IListIndexEndpointsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest=} [properties] Properties to set + */ + function ListIndexEndpointsRequest(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]]; + } - /** - * ConvexStopConfig minNumSteps. - * @member {number|Long} minNumSteps - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @instance - */ - ConvexStopConfig.prototype.minNumSteps = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * ListIndexEndpointsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.parent = ""; - /** - * ConvexStopConfig autoregressiveOrder. - * @member {number|Long} autoregressiveOrder - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @instance - */ - ConvexStopConfig.prototype.autoregressiveOrder = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * ListIndexEndpointsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.filter = ""; - /** - * ConvexStopConfig learningRateParameterName. - * @member {string} learningRateParameterName - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @instance - */ - ConvexStopConfig.prototype.learningRateParameterName = ""; + /** + * ListIndexEndpointsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.pageSize = 0; - /** - * ConvexStopConfig useSeconds. - * @member {boolean} useSeconds - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @instance - */ - ConvexStopConfig.prototype.useSeconds = false; + /** + * ListIndexEndpointsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.pageToken = ""; - /** - * Creates a new ConvexStopConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig instance - */ - ConvexStopConfig.create = function create(properties) { - return new ConvexStopConfig(properties); - }; + /** + * ListIndexEndpointsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.readMask = null; - /** - * Encodes the specified ConvexStopConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig} message ConvexStopConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConvexStopConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.maxNumSteps != null && Object.hasOwnProperty.call(message, "maxNumSteps")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxNumSteps); - if (message.minNumSteps != null && Object.hasOwnProperty.call(message, "minNumSteps")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minNumSteps); - if (message.autoregressiveOrder != null && Object.hasOwnProperty.call(message, "autoregressiveOrder")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.autoregressiveOrder); - if (message.learningRateParameterName != null && Object.hasOwnProperty.call(message, "learningRateParameterName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.learningRateParameterName); - if (message.useSeconds != null && Object.hasOwnProperty.call(message, "useSeconds")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useSeconds); - return writer; - }; + /** + * Creates a new ListIndexEndpointsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest instance + */ + ListIndexEndpointsRequest.create = function create(properties) { + return new ListIndexEndpointsRequest(properties); + }; - /** - * Encodes the specified ConvexStopConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig} message ConvexStopConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConvexStopConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ListIndexEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListIndexEndpointsRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; - /** - * Decodes a ConvexStopConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @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.StudySpec.ConvexStopConfig} ConvexStopConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConvexStopConfig.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.StudySpec.ConvexStopConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.maxNumSteps = reader.int64(); - break; - } - case 2: { - message.minNumSteps = reader.int64(); - break; - } - case 3: { - message.autoregressiveOrder = reader.int64(); - break; - } - case 4: { - message.learningRateParameterName = reader.string(); - break; - } - case 5: { - message.useSeconds = reader.bool(); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified ListIndexEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListIndexEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @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.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListIndexEndpointsRequest.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.ListIndexEndpointsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a ConvexStopConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConvexStopConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a ConvexStopConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConvexStopConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.maxNumSteps != null && message.hasOwnProperty("maxNumSteps")) - if (!$util.isInteger(message.maxNumSteps) && !(message.maxNumSteps && $util.isInteger(message.maxNumSteps.low) && $util.isInteger(message.maxNumSteps.high))) - return "maxNumSteps: integer|Long expected"; - if (message.minNumSteps != null && message.hasOwnProperty("minNumSteps")) - if (!$util.isInteger(message.minNumSteps) && !(message.minNumSteps && $util.isInteger(message.minNumSteps.low) && $util.isInteger(message.minNumSteps.high))) - return "minNumSteps: integer|Long expected"; - if (message.autoregressiveOrder != null && message.hasOwnProperty("autoregressiveOrder")) - if (!$util.isInteger(message.autoregressiveOrder) && !(message.autoregressiveOrder && $util.isInteger(message.autoregressiveOrder.low) && $util.isInteger(message.autoregressiveOrder.high))) - return "autoregressiveOrder: integer|Long expected"; - if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) - if (!$util.isString(message.learningRateParameterName)) - return "learningRateParameterName: string expected"; - if (message.useSeconds != null && message.hasOwnProperty("useSeconds")) - if (typeof message.useSeconds !== "boolean") - return "useSeconds: boolean expected"; - return null; - }; + /** + * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListIndexEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a ConvexStopConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig - */ - ConvexStopConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig(); - if (object.maxNumSteps != null) - if ($util.Long) - (message.maxNumSteps = $util.Long.fromValue(object.maxNumSteps)).unsigned = false; - else if (typeof object.maxNumSteps === "string") - message.maxNumSteps = parseInt(object.maxNumSteps, 10); - else if (typeof object.maxNumSteps === "number") - message.maxNumSteps = object.maxNumSteps; - else if (typeof object.maxNumSteps === "object") - message.maxNumSteps = new $util.LongBits(object.maxNumSteps.low >>> 0, object.maxNumSteps.high >>> 0).toNumber(); - if (object.minNumSteps != null) - if ($util.Long) - (message.minNumSteps = $util.Long.fromValue(object.minNumSteps)).unsigned = false; - else if (typeof object.minNumSteps === "string") - message.minNumSteps = parseInt(object.minNumSteps, 10); - else if (typeof object.minNumSteps === "number") - message.minNumSteps = object.minNumSteps; - else if (typeof object.minNumSteps === "object") - message.minNumSteps = new $util.LongBits(object.minNumSteps.low >>> 0, object.minNumSteps.high >>> 0).toNumber(); - if (object.autoregressiveOrder != null) - if ($util.Long) - (message.autoregressiveOrder = $util.Long.fromValue(object.autoregressiveOrder)).unsigned = false; - else if (typeof object.autoregressiveOrder === "string") - message.autoregressiveOrder = parseInt(object.autoregressiveOrder, 10); - else if (typeof object.autoregressiveOrder === "number") - message.autoregressiveOrder = object.autoregressiveOrder; - else if (typeof object.autoregressiveOrder === "object") - message.autoregressiveOrder = new $util.LongBits(object.autoregressiveOrder.low >>> 0, object.autoregressiveOrder.high >>> 0).toNumber(); - if (object.learningRateParameterName != null) - message.learningRateParameterName = String(object.learningRateParameterName); - if (object.useSeconds != null) - message.useSeconds = Boolean(object.useSeconds); - return message; - }; + /** + * Verifies a ListIndexEndpointsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListIndexEndpointsRequest.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.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + return null; + }; - /** - * Creates a plain object from a ConvexStopConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} message ConvexStopConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConvexStopConfig.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.maxNumSteps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.maxNumSteps = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.minNumSteps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.minNumSteps = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.autoregressiveOrder = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.autoregressiveOrder = options.longs === String ? "0" : 0; - object.learningRateParameterName = ""; - object.useSeconds = false; - } - if (message.maxNumSteps != null && message.hasOwnProperty("maxNumSteps")) - if (typeof message.maxNumSteps === "number") - object.maxNumSteps = options.longs === String ? String(message.maxNumSteps) : message.maxNumSteps; - else - object.maxNumSteps = options.longs === String ? $util.Long.prototype.toString.call(message.maxNumSteps) : options.longs === Number ? new $util.LongBits(message.maxNumSteps.low >>> 0, message.maxNumSteps.high >>> 0).toNumber() : message.maxNumSteps; - if (message.minNumSteps != null && message.hasOwnProperty("minNumSteps")) - if (typeof message.minNumSteps === "number") - object.minNumSteps = options.longs === String ? String(message.minNumSteps) : message.minNumSteps; - else - object.minNumSteps = options.longs === String ? $util.Long.prototype.toString.call(message.minNumSteps) : options.longs === Number ? new $util.LongBits(message.minNumSteps.low >>> 0, message.minNumSteps.high >>> 0).toNumber() : message.minNumSteps; - if (message.autoregressiveOrder != null && message.hasOwnProperty("autoregressiveOrder")) - if (typeof message.autoregressiveOrder === "number") - object.autoregressiveOrder = options.longs === String ? String(message.autoregressiveOrder) : message.autoregressiveOrder; - else - object.autoregressiveOrder = options.longs === String ? $util.Long.prototype.toString.call(message.autoregressiveOrder) : options.longs === Number ? new $util.LongBits(message.autoregressiveOrder.low >>> 0, message.autoregressiveOrder.high >>> 0).toNumber() : message.autoregressiveOrder; - if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) - object.learningRateParameterName = message.learningRateParameterName; - if (message.useSeconds != null && message.hasOwnProperty("useSeconds")) - object.useSeconds = message.useSeconds; + /** + * Creates a ListIndexEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + */ + ListIndexEndpointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; - /** - * Converts this ConvexStopConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @instance - * @returns {Object.} JSON object - */ - ConvexStopConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ListIndexEndpointsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} message ListIndexEndpointsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListIndexEndpointsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + return object; + }; - /** - * Gets the default type url for ConvexStopConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ConvexStopConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig"; - }; + /** + * Converts this ListIndexEndpointsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @instance + * @returns {Object.} JSON object + */ + ListIndexEndpointsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ConvexStopConfig; - })(); + /** + * Gets the default type url for ListIndexEndpointsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListIndexEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest"; + }; - StudySpec.TransferLearningConfig = (function() { + return ListIndexEndpointsRequest; + })(); - /** - * Properties of a TransferLearningConfig. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface ITransferLearningConfig - * @property {boolean|null} [disableTransferLearning] TransferLearningConfig disableTransferLearning - * @property {Array.|null} [priorStudyNames] TransferLearningConfig priorStudyNames - */ + v1beta1.ListIndexEndpointsResponse = (function() { - /** - * Constructs a new TransferLearningConfig. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @classdesc Represents a TransferLearningConfig. - * @implements ITransferLearningConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig=} [properties] Properties to set - */ - function TransferLearningConfig(properties) { - this.priorStudyNames = []; - 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]]; - } + /** + * Properties of a ListIndexEndpointsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListIndexEndpointsResponse + * @property {Array.|null} [indexEndpoints] ListIndexEndpointsResponse indexEndpoints + * @property {string|null} [nextPageToken] ListIndexEndpointsResponse nextPageToken + */ - /** - * TransferLearningConfig disableTransferLearning. - * @member {boolean} disableTransferLearning - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @instance - */ - TransferLearningConfig.prototype.disableTransferLearning = false; + /** + * Constructs a new ListIndexEndpointsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListIndexEndpointsResponse. + * @implements IListIndexEndpointsResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse=} [properties] Properties to set + */ + function ListIndexEndpointsResponse(properties) { + this.indexEndpoints = []; + 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]]; + } - /** - * TransferLearningConfig priorStudyNames. - * @member {Array.} priorStudyNames - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @instance - */ - TransferLearningConfig.prototype.priorStudyNames = $util.emptyArray; + /** + * ListIndexEndpointsResponse indexEndpoints. + * @member {Array.} indexEndpoints + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @instance + */ + ListIndexEndpointsResponse.prototype.indexEndpoints = $util.emptyArray; - /** - * Creates a new TransferLearningConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig instance - */ - TransferLearningConfig.create = function create(properties) { - return new TransferLearningConfig(properties); - }; + /** + * ListIndexEndpointsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @instance + */ + ListIndexEndpointsResponse.prototype.nextPageToken = ""; - /** - * Encodes the specified TransferLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig} message TransferLearningConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TransferLearningConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.disableTransferLearning != null && Object.hasOwnProperty.call(message, "disableTransferLearning")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disableTransferLearning); - if (message.priorStudyNames != null && message.priorStudyNames.length) - for (var i = 0; i < message.priorStudyNames.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.priorStudyNames[i]); - return writer; - }; + /** + * Creates a new ListIndexEndpointsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse instance + */ + ListIndexEndpointsResponse.create = function create(properties) { + return new ListIndexEndpointsResponse(properties); + }; - /** - * Encodes the specified TransferLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ITransferLearningConfig} message TransferLearningConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TransferLearningConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ListIndexEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListIndexEndpointsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.indexEndpoints != null && message.indexEndpoints.length) + for (var i = 0; i < message.indexEndpoints.length; ++i) + $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoints[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; - /** - * Decodes a TransferLearningConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @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.StudySpec.TransferLearningConfig} TransferLearningConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransferLearningConfig.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.StudySpec.TransferLearningConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.disableTransferLearning = reader.bool(); - break; - } - case 2: { - if (!(message.priorStudyNames && message.priorStudyNames.length)) - message.priorStudyNames = []; - message.priorStudyNames.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); + /** + * Encodes the specified ListIndexEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListIndexEndpointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @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.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListIndexEndpointsResponse.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.ListIndexEndpointsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.indexEndpoints && message.indexEndpoints.length)) + message.indexEndpoints = []; + message.indexEndpoints.push($root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a TransferLearningConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TransferLearningConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a TransferLearningConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TransferLearningConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.disableTransferLearning != null && message.hasOwnProperty("disableTransferLearning")) - if (typeof message.disableTransferLearning !== "boolean") - return "disableTransferLearning: boolean expected"; - if (message.priorStudyNames != null && message.hasOwnProperty("priorStudyNames")) { - if (!Array.isArray(message.priorStudyNames)) - return "priorStudyNames: array expected"; - for (var i = 0; i < message.priorStudyNames.length; ++i) - if (!$util.isString(message.priorStudyNames[i])) - return "priorStudyNames: string[] expected"; - } - return null; - }; + /** + * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListIndexEndpointsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a TransferLearningConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} TransferLearningConfig - */ - TransferLearningConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig(); - if (object.disableTransferLearning != null) - message.disableTransferLearning = Boolean(object.disableTransferLearning); - if (object.priorStudyNames) { - if (!Array.isArray(object.priorStudyNames)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig.priorStudyNames: array expected"); - message.priorStudyNames = []; - for (var i = 0; i < object.priorStudyNames.length; ++i) - message.priorStudyNames[i] = String(object.priorStudyNames[i]); + /** + * Verifies a ListIndexEndpointsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListIndexEndpointsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.indexEndpoints != null && message.hasOwnProperty("indexEndpoints")) { + if (!Array.isArray(message.indexEndpoints)) + return "indexEndpoints: array expected"; + for (var i = 0; i < message.indexEndpoints.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoints[i]); + if (error) + return "indexEndpoints." + error; } - return message; - }; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; - /** - * Creates a plain object from a TransferLearningConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig} message TransferLearningConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TransferLearningConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.priorStudyNames = []; - if (options.defaults) - object.disableTransferLearning = false; - if (message.disableTransferLearning != null && message.hasOwnProperty("disableTransferLearning")) - object.disableTransferLearning = message.disableTransferLearning; - if (message.priorStudyNames && message.priorStudyNames.length) { - object.priorStudyNames = []; - for (var j = 0; j < message.priorStudyNames.length; ++j) - object.priorStudyNames[j] = message.priorStudyNames[j]; - } + /** + * Creates a ListIndexEndpointsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + */ + ListIndexEndpointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) return object; - }; - - /** - * Converts this TransferLearningConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @instance - * @returns {Object.} JSON object - */ - TransferLearningConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for TransferLearningConfig - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - TransferLearningConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse(); + if (object.indexEndpoints) { + if (!Array.isArray(object.indexEndpoints)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.indexEndpoints: array expected"); + message.indexEndpoints = []; + for (var i = 0; i < object.indexEndpoints.length; ++i) { + if (typeof object.indexEndpoints[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.indexEndpoints: object expected"); + message.indexEndpoints[i] = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoints[i]); } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.StudySpec.TransferLearningConfig"; - }; - - return TransferLearningConfig; - })(); + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; /** - * Algorithm enum. - * @name google.cloud.aiplatform.v1beta1.StudySpec.Algorithm - * @enum {number} - * @property {number} ALGORITHM_UNSPECIFIED=0 ALGORITHM_UNSPECIFIED value - * @property {number} GRID_SEARCH=2 GRID_SEARCH value - * @property {number} RANDOM_SEARCH=3 RANDOM_SEARCH value + * Creates a plain object from a ListIndexEndpointsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} message ListIndexEndpointsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - StudySpec.Algorithm = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ALGORITHM_UNSPECIFIED"] = 0; - values[valuesById[2] = "GRID_SEARCH"] = 2; - values[valuesById[3] = "RANDOM_SEARCH"] = 3; - return values; - })(); + ListIndexEndpointsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.indexEndpoints = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.indexEndpoints && message.indexEndpoints.length) { + object.indexEndpoints = []; + for (var j = 0; j < message.indexEndpoints.length; ++j) + object.indexEndpoints[j] = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoints[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; /** - * ObservationNoise enum. - * @name google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise - * @enum {number} - * @property {number} OBSERVATION_NOISE_UNSPECIFIED=0 OBSERVATION_NOISE_UNSPECIFIED value - * @property {number} LOW=1 LOW value - * @property {number} HIGH=2 HIGH value + * Converts this ListIndexEndpointsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @instance + * @returns {Object.} JSON object */ - StudySpec.ObservationNoise = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OBSERVATION_NOISE_UNSPECIFIED"] = 0; - values[valuesById[1] = "LOW"] = 1; - values[valuesById[2] = "HIGH"] = 2; - return values; - })(); + ListIndexEndpointsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * MeasurementSelectionType enum. - * @name google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType - * @enum {number} - * @property {number} MEASUREMENT_SELECTION_TYPE_UNSPECIFIED=0 MEASUREMENT_SELECTION_TYPE_UNSPECIFIED value - * @property {number} LAST_MEASUREMENT=1 LAST_MEASUREMENT value - * @property {number} BEST_MEASUREMENT=2 BEST_MEASUREMENT value + * Gets the default type url for ListIndexEndpointsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ - StudySpec.MeasurementSelectionType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MEASUREMENT_SELECTION_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "LAST_MEASUREMENT"] = 1; - values[valuesById[2] = "BEST_MEASUREMENT"] = 2; - return values; - })(); + ListIndexEndpointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse"; + }; - return StudySpec; + return ListIndexEndpointsResponse; })(); - v1beta1.Measurement = (function() { + v1beta1.UpdateIndexEndpointRequest = (function() { /** - * Properties of a Measurement. + * Properties of an UpdateIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMeasurement - * @property {google.protobuf.IDuration|null} [elapsedDuration] Measurement elapsedDuration - * @property {number|Long|null} [stepCount] Measurement stepCount - * @property {Array.|null} [metrics] Measurement metrics + * @interface IUpdateIndexEndpointRequest + * @property {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null} [indexEndpoint] UpdateIndexEndpointRequest indexEndpoint + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIndexEndpointRequest updateMask */ /** - * Constructs a new Measurement. + * Constructs a new UpdateIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Measurement. - * @implements IMeasurement + * @classdesc Represents an UpdateIndexEndpointRequest. + * @implements IUpdateIndexEndpointRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMeasurement=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest=} [properties] Properties to set */ - function Measurement(properties) { - this.metrics = []; + function UpdateIndexEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -244979,106 +258233,89 @@ } /** - * Measurement elapsedDuration. - * @member {google.protobuf.IDuration|null|undefined} elapsedDuration - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @instance - */ - Measurement.prototype.elapsedDuration = null; - - /** - * Measurement stepCount. - * @member {number|Long} stepCount - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * UpdateIndexEndpointRequest indexEndpoint. + * @member {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null|undefined} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @instance */ - Measurement.prototype.stepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UpdateIndexEndpointRequest.prototype.indexEndpoint = null; /** - * Measurement metrics. - * @member {Array.} metrics - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * UpdateIndexEndpointRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @instance */ - Measurement.prototype.metrics = $util.emptyArray; + UpdateIndexEndpointRequest.prototype.updateMask = null; /** - * Creates a new Measurement instance using the specified properties. + * Creates a new UpdateIndexEndpointRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMeasurement=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest instance */ - Measurement.create = function create(properties) { - return new Measurement(properties); + UpdateIndexEndpointRequest.create = function create(properties) { + return new UpdateIndexEndpointRequest(properties); }; /** - * Encodes the specified Measurement message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. + * Encodes the specified UpdateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMeasurement} message Measurement message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} message UpdateIndexEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Measurement.encode = function encode(message, writer) { + UpdateIndexEndpointRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.elapsedDuration != null && Object.hasOwnProperty.call(message, "elapsedDuration")) - $root.google.protobuf.Duration.encode(message.elapsedDuration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.stepCount != null && Object.hasOwnProperty.call(message, "stepCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.stepCount); - if (message.metrics != null && message.metrics.length) - for (var i = 0; i < message.metrics.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.encode(message.metrics[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoint, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Measurement message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. + * Encodes the specified UpdateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMeasurement} message Measurement message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} message UpdateIndexEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Measurement.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Measurement message from the specified reader or buffer. + * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @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.Measurement} Measurement + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Measurement.decode = function decode(reader, length) { + UpdateIndexEndpointRequest.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.Measurement(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.elapsedDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32()); break; } case 2: { - message.stepCount = reader.int64(); - break; - } - case 3: { - if (!(message.metrics && message.metrics.length)) - message.metrics = []; - message.metrics.push($root.google.cloud.aiplatform.v1beta1.Measurement.Metric.decode(reader, reader.uint32())); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -245090,416 +258327,141 @@ }; /** - * Decodes a Measurement message from the specified reader or buffer, length delimited. + * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Measurement.decodeDelimited = function decodeDelimited(reader) { + UpdateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Measurement message. + * Verifies an UpdateIndexEndpointRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Measurement.verify = function verify(message) { + UpdateIndexEndpointRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.elapsedDuration != null && message.hasOwnProperty("elapsedDuration")) { - var error = $root.google.protobuf.Duration.verify(message.elapsedDuration); + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoint); if (error) - return "elapsedDuration." + error; + return "indexEndpoint." + error; } - if (message.stepCount != null && message.hasOwnProperty("stepCount")) - if (!$util.isInteger(message.stepCount) && !(message.stepCount && $util.isInteger(message.stepCount.low) && $util.isInteger(message.stepCount.high))) - return "stepCount: integer|Long expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - if (!Array.isArray(message.metrics)) - return "metrics: array expected"; - for (var i = 0; i < message.metrics.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.verify(message.metrics[i]); - if (error) - return "metrics." + error; - } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a Measurement message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest */ - Measurement.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Measurement) + UpdateIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Measurement(); - if (object.elapsedDuration != null) { - if (typeof object.elapsedDuration !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.elapsedDuration: object expected"); - message.elapsedDuration = $root.google.protobuf.Duration.fromObject(object.elapsedDuration); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest(); + if (object.indexEndpoint != null) { + if (typeof object.indexEndpoint !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.indexEndpoint: object expected"); + message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoint); } - if (object.stepCount != null) - if ($util.Long) - (message.stepCount = $util.Long.fromValue(object.stepCount)).unsigned = false; - else if (typeof object.stepCount === "string") - message.stepCount = parseInt(object.stepCount, 10); - else if (typeof object.stepCount === "number") - message.stepCount = object.stepCount; - else if (typeof object.stepCount === "object") - message.stepCount = new $util.LongBits(object.stepCount.low >>> 0, object.stepCount.high >>> 0).toNumber(); - if (object.metrics) { - if (!Array.isArray(object.metrics)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.metrics: array expected"); - message.metrics = []; - for (var i = 0; i < object.metrics.length; ++i) { - if (typeof object.metrics[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.metrics: object expected"); - message.metrics[i] = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.fromObject(object.metrics[i]); - } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a Measurement message. Also converts values to other types if specified. + * Creates a plain object from an UpdateIndexEndpointRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.Measurement} message Measurement + * @param {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} message UpdateIndexEndpointRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Measurement.toObject = function toObject(message, options) { + UpdateIndexEndpointRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.metrics = []; if (options.defaults) { - object.elapsedDuration = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.stepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.stepCount = options.longs === String ? "0" : 0; - } - if (message.elapsedDuration != null && message.hasOwnProperty("elapsedDuration")) - object.elapsedDuration = $root.google.protobuf.Duration.toObject(message.elapsedDuration, options); - if (message.stepCount != null && message.hasOwnProperty("stepCount")) - if (typeof message.stepCount === "number") - object.stepCount = options.longs === String ? String(message.stepCount) : message.stepCount; - else - object.stepCount = options.longs === String ? $util.Long.prototype.toString.call(message.stepCount) : options.longs === Number ? new $util.LongBits(message.stepCount.low >>> 0, message.stepCount.high >>> 0).toNumber() : message.stepCount; - if (message.metrics && message.metrics.length) { - object.metrics = []; - for (var j = 0; j < message.metrics.length; ++j) - object.metrics[j] = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.toObject(message.metrics[j], options); + object.indexEndpoint = null; + object.updateMask = null; } + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoint, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this Measurement to JSON. + * Converts this UpdateIndexEndpointRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @instance * @returns {Object.} JSON object */ - Measurement.prototype.toJSON = function toJSON() { + UpdateIndexEndpointRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Measurement + * Gets the default type url for UpdateIndexEndpointRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Measurement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Measurement"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest"; }; - Measurement.Metric = (function() { - - /** - * Properties of a Metric. - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @interface IMetric - * @property {string|null} [metricId] Metric metricId - * @property {number|null} [value] Metric value - */ - - /** - * Constructs a new Metric. - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @classdesc Represents a Metric. - * @implements IMetric - * @constructor - * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric=} [properties] Properties to set - */ - function Metric(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]]; - } - - /** - * Metric metricId. - * @member {string} metricId - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @instance - */ - Metric.prototype.metricId = ""; - - /** - * Metric value. - * @member {number} value - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @instance - */ - Metric.prototype.value = 0; - - /** - * Creates a new Metric instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric instance - */ - Metric.create = function create(properties) { - return new Metric(properties); - }; - - /** - * Encodes the specified Metric message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.value); - return writer; - }; - - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Metric message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @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.Measurement.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.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.Measurement.Metric(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.metricId = reader.string(); - break; - } - case 2: { - message.value = reader.double(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Metric message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Metric.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metricId != null && message.hasOwnProperty("metricId")) - if (!$util.isString(message.metricId)) - return "metricId: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "number") - return "value: number expected"; - return null; - }; - - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric - */ - Metric.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Measurement.Metric) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Measurement.Metric(); - if (object.metricId != null) - message.metricId = String(object.metricId); - if (object.value != null) - message.value = Number(object.value); - return message; - }; - - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {google.cloud.aiplatform.v1beta1.Measurement.Metric} message Metric - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Metric.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.metricId = ""; - object.value = 0; - } - if (message.metricId != null && message.hasOwnProperty("metricId")) - object.metricId = message.metricId; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; - return object; - }; - - /** - * Converts this Metric to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @instance - * @returns {Object.} JSON object - */ - Metric.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Metric - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Metric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Measurement.Metric"; - }; - - return Metric; - })(); - - return Measurement; + return UpdateIndexEndpointRequest; })(); - v1beta1.Index = (function() { + v1beta1.DeleteIndexEndpointRequest = (function() { /** - * Properties of an Index. + * Properties of a DeleteIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IIndex - * @property {string|null} [name] Index name - * @property {string|null} [displayName] Index displayName - * @property {string|null} [description] Index description - * @property {string|null} [metadataSchemaUri] Index metadataSchemaUri - * @property {google.protobuf.IValue|null} [metadata] Index metadata - * @property {Array.|null} [deployedIndexes] Index deployedIndexes - * @property {string|null} [etag] Index etag - * @property {Object.|null} [labels] Index labels - * @property {google.protobuf.ITimestamp|null} [createTime] Index createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Index updateTime - * @property {google.cloud.aiplatform.v1beta1.IIndexStats|null} [indexStats] Index indexStats - * @property {google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod|null} [indexUpdateMethod] Index indexUpdateMethod + * @interface IDeleteIndexEndpointRequest + * @property {string|null} [name] DeleteIndexEndpointRequest name */ /** - * Constructs a new Index. + * Constructs a new DeleteIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an Index. - * @implements IIndex + * @classdesc Represents a DeleteIndexEndpointRequest. + * @implements IDeleteIndexEndpointRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IIndex=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest=} [properties] Properties to set */ - function Index(properties) { - this.deployedIndexes = []; - this.labels = {}; + function DeleteIndexEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -245507,252 +258469,510 @@ } /** - * Index name. + * DeleteIndexEndpointRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest * @instance */ - Index.prototype.name = ""; + DeleteIndexEndpointRequest.prototype.name = ""; /** - * Index displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Creates a new DeleteIndexEndpointRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest instance */ - Index.prototype.displayName = ""; + DeleteIndexEndpointRequest.create = function create(properties) { + return new DeleteIndexEndpointRequest(properties); + }; /** - * Index description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Encodes the specified DeleteIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Index.prototype.description = ""; + DeleteIndexEndpointRequest.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; + }; /** - * Index metadataSchemaUri. - * @member {string} metadataSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Encodes the specified DeleteIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Index.prototype.metadataSchemaUri = ""; + DeleteIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Index metadata. - * @member {google.protobuf.IValue|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @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.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Index.prototype.metadata = null; + DeleteIndexEndpointRequest.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.DeleteIndexEndpointRequest(); + 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; + }; /** - * Index deployedIndexes. - * @member {Array.} deployedIndexes - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Index.prototype.deployedIndexes = $util.emptyArray; + DeleteIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Index etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Verifies a DeleteIndexEndpointRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Index.prototype.etag = ""; + DeleteIndexEndpointRequest.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; + }; /** - * Index labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Creates a DeleteIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest */ - Index.prototype.labels = $util.emptyObject; + DeleteIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Index createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance + * Creates a plain object from a DeleteIndexEndpointRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} message DeleteIndexEndpointRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Index.prototype.createTime = null; + DeleteIndexEndpointRequest.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; + }; /** - * Index updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.Index + * Converts this DeleteIndexEndpointRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest * @instance + * @returns {Object.} JSON object */ - Index.prototype.updateTime = null; + DeleteIndexEndpointRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Index indexStats. - * @member {google.cloud.aiplatform.v1beta1.IIndexStats|null|undefined} indexStats - * @memberof google.cloud.aiplatform.v1beta1.Index + * Gets the default type url for DeleteIndexEndpointRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest"; + }; + + return DeleteIndexEndpointRequest; + })(); + + v1beta1.DeployIndexRequest = (function() { + + /** + * Properties of a DeployIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeployIndexRequest + * @property {string|null} [indexEndpoint] DeployIndexRequest indexEndpoint + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] DeployIndexRequest deployedIndex + */ + + /** + * Constructs a new DeployIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeployIndexRequest. + * @implements IDeployIndexRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest=} [properties] Properties to set + */ + function DeployIndexRequest(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]]; + } + + /** + * DeployIndexRequest indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @instance */ - Index.prototype.indexStats = null; + DeployIndexRequest.prototype.indexEndpoint = ""; /** - * Index indexUpdateMethod. - * @member {google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod} indexUpdateMethod - * @memberof google.cloud.aiplatform.v1beta1.Index + * DeployIndexRequest deployedIndex. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @instance */ - Index.prototype.indexUpdateMethod = 0; + DeployIndexRequest.prototype.deployedIndex = null; /** - * Creates a new Index instance using the specified properties. + * Creates a new DeployIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndex=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Index} Index instance + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest instance */ - Index.create = function create(properties) { - return new Index(properties); + DeployIndexRequest.create = function create(properties) { + return new DeployIndexRequest(properties); }; /** - * Encodes the specified Index message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. + * Encodes the specified DeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndex} message Index message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} message DeployIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Index.encode = function encode(message, writer) { + DeployIndexRequest.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); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.metadataSchemaUri != null && Object.hasOwnProperty.call(message, "metadataSchemaUri")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.metadataSchemaUri); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.deployedIndexes != null && message.deployedIndexes.length) - for (var i = 0; i < message.deployedIndexes.length; ++i) - $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.encode(message.deployedIndexes[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.etag); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.indexStats != null && Object.hasOwnProperty.call(message, "indexStats")) - $root.google.cloud.aiplatform.v1beta1.IndexStats.encode(message.indexStats, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.indexUpdateMethod != null && Object.hasOwnProperty.call(message, "indexUpdateMethod")) - writer.uint32(/* id 16, wireType 0 =*/128).int32(message.indexUpdateMethod); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); + if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Index message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. + * Encodes the specified DeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndex} message Index message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} message DeployIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Index.encodeDelimited = function encodeDelimited(message, writer) { + DeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Index message from the specified reader or buffer. + * Decodes a DeployIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @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.Index} Index + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Index.decode = function decode(reader, length) { + DeployIndexRequest.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.Index(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.indexEndpoint = reader.string(); break; } case 2: { - message.displayName = reader.string(); - break; - } - case 3: { - message.description = reader.string(); - break; - } - case 4: { - message.metadataSchemaUri = reader.string(); - break; - } - case 6: { - message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - } - case 7: { - if (!(message.deployedIndexes && message.deployedIndexes.length)) - message.deployedIndexes = []; - message.deployedIndexes.push($root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.decode(reader, reader.uint32())); - break; - } - case 8: { - message.etag = reader.string(); - break; - } - case 9: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 10: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 11: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 14: { - message.indexStats = $root.google.cloud.aiplatform.v1beta1.IndexStats.decode(reader, reader.uint32()); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); break; } - case 16: { - message.indexUpdateMethod = reader.int32(); + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeployIndexRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeployIndexRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeployIndexRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + if (!$util.isString(message.indexEndpoint)) + return "indexEndpoint: string expected"; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); + if (error) + return "deployedIndex." + error; + } + return null; + }; + + /** + * Creates a DeployIndexRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest + */ + DeployIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest(); + if (object.indexEndpoint != null) + message.indexEndpoint = String(object.indexEndpoint); + if (object.deployedIndex != null) { + if (typeof object.deployedIndex !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexRequest.deployedIndex: object expected"); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); + } + return message; + }; + + /** + * Creates a plain object from a DeployIndexRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeployIndexRequest} message DeployIndexRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeployIndexRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.indexEndpoint = ""; + object.deployedIndex = null; + } + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = message.indexEndpoint; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) + object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); + return object; + }; + + /** + * Converts this DeployIndexRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @instance + * @returns {Object.} JSON object + */ + DeployIndexRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for DeployIndexRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeployIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployIndexRequest"; + }; + + return DeployIndexRequest; + })(); + + v1beta1.DeployIndexResponse = (function() { + + /** + * Properties of a DeployIndexResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeployIndexResponse + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] DeployIndexResponse deployedIndex + */ + + /** + * Constructs a new DeployIndexResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeployIndexResponse. + * @implements IDeployIndexResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse=} [properties] Properties to set + */ + function DeployIndexResponse(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]]; + } + + /** + * DeployIndexResponse deployedIndex. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @instance + */ + DeployIndexResponse.prototype.deployedIndex = null; + + /** + * Creates a new DeployIndexResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse instance + */ + DeployIndexResponse.create = function create(properties) { + return new DeployIndexResponse(properties); + }; + + /** + * Encodes the specified DeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse} message DeployIndexResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployIndexResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified DeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse} message DeployIndexResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeployIndexResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @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.DeployIndexResponse} DeployIndexResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeployIndexResponse.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.DeployIndexResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); break; } default: @@ -245764,309 +258984,128 @@ }; /** - * Decodes an Index message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Index} Index + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Index.decodeDelimited = function decodeDelimited(reader) { + DeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Index message. + * Verifies a DeployIndexResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Index.verify = function verify(message) { + DeployIndexResponse.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"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) - if (!$util.isString(message.metadataSchemaUri)) - return "metadataSchemaUri: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Value.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.deployedIndexes != null && message.hasOwnProperty("deployedIndexes")) { - if (!Array.isArray(message.deployedIndexes)) - return "deployedIndexes: array expected"; - for (var i = 0; i < message.deployedIndexes.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify(message.deployedIndexes[i]); - if (error) - return "deployedIndexes." + error; - } - } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.indexStats != null && message.hasOwnProperty("indexStats")) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexStats.verify(message.indexStats); + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); if (error) - return "indexStats." + error; + return "deployedIndex." + error; } - if (message.indexUpdateMethod != null && message.hasOwnProperty("indexUpdateMethod")) - switch (message.indexUpdateMethod) { - default: - return "indexUpdateMethod: enum value expected"; - case 0: - case 1: - case 2: - break; - } return null; }; /** - * Creates an Index message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Index} Index + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse */ - Index.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Index) + DeployIndexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Index(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.metadataSchemaUri != null) - message.metadataSchemaUri = String(object.metadataSchemaUri); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.metadata: object expected"); - message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); - } - if (object.deployedIndexes) { - if (!Array.isArray(object.deployedIndexes)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.deployedIndexes: array expected"); - message.deployedIndexes = []; - for (var i = 0; i < object.deployedIndexes.length; ++i) { - if (typeof object.deployedIndexes[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.deployedIndexes: object expected"); - message.deployedIndexes[i] = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.fromObject(object.deployedIndexes[i]); - } - } - if (object.etag != null) - message.etag = String(object.etag); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.indexStats != null) { - if (typeof object.indexStats !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.indexStats: object expected"); - message.indexStats = $root.google.cloud.aiplatform.v1beta1.IndexStats.fromObject(object.indexStats); - } - switch (object.indexUpdateMethod) { - default: - if (typeof object.indexUpdateMethod === "number") { - message.indexUpdateMethod = object.indexUpdateMethod; - break; - } - break; - case "INDEX_UPDATE_METHOD_UNSPECIFIED": - case 0: - message.indexUpdateMethod = 0; - break; - case "BATCH_UPDATE": - case 1: - message.indexUpdateMethod = 1; - break; - case "STREAM_UPDATE": - case 2: - message.indexUpdateMethod = 2; - break; + var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexResponse(); + if (object.deployedIndex != null) { + if (typeof object.deployedIndex !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexResponse.deployedIndex: object expected"); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); } return message; }; /** - * Creates a plain object from an Index message. Also converts values to other types if specified. + * Creates a plain object from a DeployIndexResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.Index} message Index + * @param {google.cloud.aiplatform.v1beta1.DeployIndexResponse} message DeployIndexResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Index.toObject = function toObject(message, options) { + DeployIndexResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.deployedIndexes = []; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.metadataSchemaUri = ""; - object.metadata = null; - object.etag = ""; - object.createTime = null; - object.updateTime = null; - object.indexStats = null; - object.indexUpdateMethod = options.enums === String ? "INDEX_UPDATE_METHOD_UNSPECIFIED" : 0; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) - object.metadataSchemaUri = message.metadataSchemaUri; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); - if (message.deployedIndexes && message.deployedIndexes.length) { - object.deployedIndexes = []; - for (var j = 0; j < message.deployedIndexes.length; ++j) - object.deployedIndexes[j] = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.toObject(message.deployedIndexes[j], options); - } - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.indexStats != null && message.hasOwnProperty("indexStats")) - object.indexStats = $root.google.cloud.aiplatform.v1beta1.IndexStats.toObject(message.indexStats, options); - if (message.indexUpdateMethod != null && message.hasOwnProperty("indexUpdateMethod")) - object.indexUpdateMethod = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod[message.indexUpdateMethod] === undefined ? message.indexUpdateMethod : $root.google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod[message.indexUpdateMethod] : message.indexUpdateMethod; + if (options.defaults) + object.deployedIndex = null; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) + object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); return object; }; /** - * Converts this Index to JSON. + * Converts this DeployIndexResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @instance * @returns {Object.} JSON object */ - Index.prototype.toJSON = function toJSON() { + DeployIndexResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for Index + * Gets the default type url for DeployIndexResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.Index + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - Index.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeployIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.Index"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployIndexResponse"; }; - /** - * IndexUpdateMethod enum. - * @name google.cloud.aiplatform.v1beta1.Index.IndexUpdateMethod - * @enum {number} - * @property {number} INDEX_UPDATE_METHOD_UNSPECIFIED=0 INDEX_UPDATE_METHOD_UNSPECIFIED value - * @property {number} BATCH_UPDATE=1 BATCH_UPDATE value - * @property {number} STREAM_UPDATE=2 STREAM_UPDATE value - */ - Index.IndexUpdateMethod = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INDEX_UPDATE_METHOD_UNSPECIFIED"] = 0; - values[valuesById[1] = "BATCH_UPDATE"] = 1; - values[valuesById[2] = "STREAM_UPDATE"] = 2; - return values; - })(); - - return Index; + return DeployIndexResponse; })(); - v1beta1.IndexDatapoint = (function() { + v1beta1.DeployIndexOperationMetadata = (function() { /** - * Properties of an IndexDatapoint. + * Properties of a DeployIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IIndexDatapoint - * @property {string|null} [datapointId] IndexDatapoint datapointId - * @property {Array.|null} [featureVector] IndexDatapoint featureVector - * @property {Array.|null} [restricts] IndexDatapoint restricts - * @property {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null} [crowdingTag] IndexDatapoint crowdingTag + * @interface IDeployIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeployIndexOperationMetadata genericMetadata + * @property {string|null} [deployedIndexId] DeployIndexOperationMetadata deployedIndexId */ /** - * Constructs a new IndexDatapoint. + * Constructs a new DeployIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IndexDatapoint. - * @implements IIndexDatapoint + * @classdesc Represents a DeployIndexOperationMetadata. + * @implements IDeployIndexOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata=} [properties] Properties to set */ - function IndexDatapoint(properties) { - this.featureVector = []; - this.restricts = []; + function DeployIndexOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246074,131 +259113,89 @@ } /** - * IndexDatapoint datapointId. - * @member {string} datapointId - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint - * @instance - */ - IndexDatapoint.prototype.datapointId = ""; - - /** - * IndexDatapoint featureVector. - * @member {Array.} featureVector - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint - * @instance - */ - IndexDatapoint.prototype.featureVector = $util.emptyArray; - - /** - * IndexDatapoint restricts. - * @member {Array.} restricts - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * DeployIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @instance */ - IndexDatapoint.prototype.restricts = $util.emptyArray; + DeployIndexOperationMetadata.prototype.genericMetadata = null; /** - * IndexDatapoint crowdingTag. - * @member {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag|null|undefined} crowdingTag - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * DeployIndexOperationMetadata deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @instance */ - IndexDatapoint.prototype.crowdingTag = null; + DeployIndexOperationMetadata.prototype.deployedIndexId = ""; /** - * Creates a new IndexDatapoint instance using the specified properties. + * Creates a new DeployIndexOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint instance + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata instance */ - IndexDatapoint.create = function create(properties) { - return new IndexDatapoint(properties); + DeployIndexOperationMetadata.create = function create(properties) { + return new DeployIndexOperationMetadata(properties); }; /** - * Encodes the specified IndexDatapoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. + * Encodes the specified DeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint} message IndexDatapoint message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexDatapoint.encode = function encode(message, writer) { + DeployIndexOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.datapointId != null && Object.hasOwnProperty.call(message, "datapointId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.datapointId); - if (message.featureVector != null && message.featureVector.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.featureVector.length; ++i) - writer.float(message.featureVector[i]); - writer.ldelim(); - } - if (message.restricts != null && message.restricts.length) - for (var i = 0; i < message.restricts.length; ++i) - $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.encode(message.restricts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.crowdingTag != null && Object.hasOwnProperty.call(message, "crowdingTag")) - $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.encode(message.crowdingTag, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); return writer; }; /** - * Encodes the specified IndexDatapoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.verify|verify} messages. + * Encodes the specified DeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexDatapoint} message IndexDatapoint message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexDatapoint.encodeDelimited = function encodeDelimited(message, writer) { + DeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IndexDatapoint message from the specified reader or buffer. + * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @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.IndexDatapoint} IndexDatapoint + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexDatapoint.decode = function decode(reader, length) { + DeployIndexOperationMetadata.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.IndexDatapoint(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.datapointId = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } case 2: { - if (!(message.featureVector && message.featureVector.length)) - message.featureVector = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.featureVector.push(reader.float()); - } else - message.featureVector.push(reader.float()); - break; - } - case 4: { - if (!(message.restricts && message.restricts.length)) - message.restricts = []; - message.restricts.push($root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.decode(reader, reader.uint32())); - break; - } - case 5: { - message.crowdingTag = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.decode(reader, reader.uint32()); + message.deployedIndexId = reader.string(); break; } default: @@ -246210,670 +259207,137 @@ }; /** - * Decodes an IndexDatapoint message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexDatapoint.decodeDelimited = function decodeDelimited(reader) { + DeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IndexDatapoint message. + * Verifies a DeployIndexOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IndexDatapoint.verify = function verify(message) { + DeployIndexOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.datapointId != null && message.hasOwnProperty("datapointId")) - if (!$util.isString(message.datapointId)) - return "datapointId: string expected"; - if (message.featureVector != null && message.hasOwnProperty("featureVector")) { - if (!Array.isArray(message.featureVector)) - return "featureVector: array expected"; - for (var i = 0; i < message.featureVector.length; ++i) - if (typeof message.featureVector[i] !== "number") - return "featureVector: number[] expected"; - } - if (message.restricts != null && message.hasOwnProperty("restricts")) { - if (!Array.isArray(message.restricts)) - return "restricts: array expected"; - for (var i = 0; i < message.restricts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify(message.restricts[i]); - if (error) - return "restricts." + error; - } - } - if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify(message.crowdingTag); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "crowdingTag." + error; + return "genericMetadata." + error; } + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + if (!$util.isString(message.deployedIndexId)) + return "deployedIndexId: string expected"; return null; }; /** - * Creates an IndexDatapoint message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint} IndexDatapoint + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata */ - IndexDatapoint.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexDatapoint) + DeployIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint(); - if (object.datapointId != null) - message.datapointId = String(object.datapointId); - if (object.featureVector) { - if (!Array.isArray(object.featureVector)) - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.featureVector: array expected"); - message.featureVector = []; - for (var i = 0; i < object.featureVector.length; ++i) - message.featureVector[i] = Number(object.featureVector[i]); - } - if (object.restricts) { - if (!Array.isArray(object.restricts)) - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.restricts: array expected"); - message.restricts = []; - for (var i = 0; i < object.restricts.length; ++i) { - if (typeof object.restricts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.restricts: object expected"); - message.restricts[i] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.fromObject(object.restricts[i]); - } - } - if (object.crowdingTag != null) { - if (typeof object.crowdingTag !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.crowdingTag: object expected"); - message.crowdingTag = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.fromObject(object.crowdingTag); + var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } + if (object.deployedIndexId != null) + message.deployedIndexId = String(object.deployedIndexId); return message; }; /** - * Creates a plain object from an IndexDatapoint message. Also converts values to other types if specified. + * Creates a plain object from a DeployIndexOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint} message IndexDatapoint + * @param {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} message DeployIndexOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IndexDatapoint.toObject = function toObject(message, options) { + DeployIndexOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.featureVector = []; - object.restricts = []; - } if (options.defaults) { - object.datapointId = ""; - object.crowdingTag = null; - } - if (message.datapointId != null && message.hasOwnProperty("datapointId")) - object.datapointId = message.datapointId; - if (message.featureVector && message.featureVector.length) { - object.featureVector = []; - for (var j = 0; j < message.featureVector.length; ++j) - object.featureVector[j] = options.json && !isFinite(message.featureVector[j]) ? String(message.featureVector[j]) : message.featureVector[j]; - } - if (message.restricts && message.restricts.length) { - object.restricts = []; - for (var j = 0; j < message.restricts.length; ++j) - object.restricts[j] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.toObject(message.restricts[j], options); - } - if (message.crowdingTag != null && message.hasOwnProperty("crowdingTag")) - object.crowdingTag = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.toObject(message.crowdingTag, options); - return object; - }; - - /** - * Converts this IndexDatapoint to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint - * @instance - * @returns {Object.} JSON object - */ - IndexDatapoint.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for IndexDatapoint - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - IndexDatapoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexDatapoint"; - }; - - IndexDatapoint.Restriction = (function() { - - /** - * Properties of a Restriction. - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint - * @interface IRestriction - * @property {string|null} [namespace] Restriction namespace - * @property {Array.|null} [allowList] Restriction allowList - * @property {Array.|null} [denyList] Restriction denyList - */ - - /** - * Constructs a new Restriction. - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint - * @classdesc Represents a Restriction. - * @implements IRestriction - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction=} [properties] Properties to set - */ - function Restriction(properties) { - this.allowList = []; - this.denyList = []; - 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]]; - } - - /** - * Restriction namespace. - * @member {string} namespace - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @instance - */ - Restriction.prototype.namespace = ""; - - /** - * Restriction allowList. - * @member {Array.} allowList - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @instance - */ - Restriction.prototype.allowList = $util.emptyArray; - - /** - * Restriction denyList. - * @member {Array.} denyList - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @instance - */ - Restriction.prototype.denyList = $util.emptyArray; - - /** - * Creates a new Restriction instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction instance - */ - Restriction.create = function create(properties) { - return new Restriction(properties); - }; - - /** - * Encodes the specified Restriction message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction} message Restriction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Restriction.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.namespace != null && Object.hasOwnProperty.call(message, "namespace")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.namespace); - if (message.allowList != null && message.allowList.length) - for (var i = 0; i < message.allowList.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.allowList[i]); - if (message.denyList != null && message.denyList.length) - for (var i = 0; i < message.denyList.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.denyList[i]); - return writer; - }; - - /** - * Encodes the specified Restriction message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.IRestriction} message Restriction message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Restriction.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Restriction message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @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.IndexDatapoint.Restriction} Restriction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Restriction.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.IndexDatapoint.Restriction(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.namespace = reader.string(); - break; - } - case 2: { - if (!(message.allowList && message.allowList.length)) - message.allowList = []; - message.allowList.push(reader.string()); - break; - } - case 3: { - if (!(message.denyList && message.denyList.length)) - message.denyList = []; - message.denyList.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Restriction message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Restriction.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Restriction message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Restriction.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.namespace != null && message.hasOwnProperty("namespace")) - if (!$util.isString(message.namespace)) - return "namespace: string expected"; - if (message.allowList != null && message.hasOwnProperty("allowList")) { - if (!Array.isArray(message.allowList)) - return "allowList: array expected"; - for (var i = 0; i < message.allowList.length; ++i) - if (!$util.isString(message.allowList[i])) - return "allowList: string[] expected"; - } - if (message.denyList != null && message.hasOwnProperty("denyList")) { - if (!Array.isArray(message.denyList)) - return "denyList: array expected"; - for (var i = 0; i < message.denyList.length; ++i) - if (!$util.isString(message.denyList[i])) - return "denyList: string[] expected"; - } - return null; - }; - - /** - * Creates a Restriction message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} Restriction - */ - Restriction.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction(); - if (object.namespace != null) - message.namespace = String(object.namespace); - if (object.allowList) { - if (!Array.isArray(object.allowList)) - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.allowList: array expected"); - message.allowList = []; - for (var i = 0; i < object.allowList.length; ++i) - message.allowList[i] = String(object.allowList[i]); - } - if (object.denyList) { - if (!Array.isArray(object.denyList)) - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction.denyList: array expected"); - message.denyList = []; - for (var i = 0; i < object.denyList.length; ++i) - message.denyList[i] = String(object.denyList[i]); - } - return message; - }; - - /** - * Creates a plain object from a Restriction message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction} message Restriction - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Restriction.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.allowList = []; - object.denyList = []; - } - if (options.defaults) - object.namespace = ""; - if (message.namespace != null && message.hasOwnProperty("namespace")) - object.namespace = message.namespace; - if (message.allowList && message.allowList.length) { - object.allowList = []; - for (var j = 0; j < message.allowList.length; ++j) - object.allowList[j] = message.allowList[j]; - } - if (message.denyList && message.denyList.length) { - object.denyList = []; - for (var j = 0; j < message.denyList.length; ++j) - object.denyList[j] = message.denyList[j]; - } - return object; - }; - - /** - * Converts this Restriction to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @instance - * @returns {Object.} JSON object - */ - Restriction.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for Restriction - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - Restriction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexDatapoint.Restriction"; - }; - - return Restriction; - })(); - - IndexDatapoint.CrowdingTag = (function() { - - /** - * Properties of a CrowdingTag. - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint - * @interface ICrowdingTag - * @property {string|null} [crowdingAttribute] CrowdingTag crowdingAttribute - */ - - /** - * Constructs a new CrowdingTag. - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint - * @classdesc Represents a CrowdingTag. - * @implements ICrowdingTag - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag=} [properties] Properties to set - */ - function CrowdingTag(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]]; - } - - /** - * CrowdingTag crowdingAttribute. - * @member {string} crowdingAttribute - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @instance - */ - CrowdingTag.prototype.crowdingAttribute = ""; - - /** - * Creates a new CrowdingTag instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag instance - */ - CrowdingTag.create = function create(properties) { - return new CrowdingTag(properties); - }; - - /** - * Encodes the specified CrowdingTag message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag} message CrowdingTag message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CrowdingTag.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.crowdingAttribute != null && Object.hasOwnProperty.call(message, "crowdingAttribute")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.crowdingAttribute); - return writer; - }; - - /** - * Encodes the specified CrowdingTag message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.ICrowdingTag} message CrowdingTag message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CrowdingTag.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CrowdingTag message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @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.IndexDatapoint.CrowdingTag} CrowdingTag - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CrowdingTag.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.IndexDatapoint.CrowdingTag(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.crowdingAttribute = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CrowdingTag message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CrowdingTag.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CrowdingTag message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CrowdingTag.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.crowdingAttribute != null && message.hasOwnProperty("crowdingAttribute")) - if (!$util.isString(message.crowdingAttribute)) - return "crowdingAttribute: string expected"; - return null; - }; - - /** - * Creates a CrowdingTag message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} CrowdingTag - */ - CrowdingTag.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag(); - if (object.crowdingAttribute != null) - message.crowdingAttribute = String(object.crowdingAttribute); - return message; - }; - - /** - * Creates a plain object from a CrowdingTag message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag} message CrowdingTag - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CrowdingTag.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.crowdingAttribute = ""; - if (message.crowdingAttribute != null && message.hasOwnProperty("crowdingAttribute")) - object.crowdingAttribute = message.crowdingAttribute; - return object; - }; - - /** - * Converts this CrowdingTag to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @instance - * @returns {Object.} JSON object - */ - CrowdingTag.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + object.genericMetadata = null; + object.deployedIndexId = ""; + } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + object.deployedIndexId = message.deployedIndexId; + return object; + }; - /** - * Gets the default type url for CrowdingTag - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CrowdingTag.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexDatapoint.CrowdingTag"; - }; + /** + * Converts this DeployIndexOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + DeployIndexOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return CrowdingTag; - })(); + /** + * Gets the default type url for DeployIndexOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeployIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata"; + }; - return IndexDatapoint; + return DeployIndexOperationMetadata; })(); - v1beta1.IndexStats = (function() { + v1beta1.UndeployIndexRequest = (function() { /** - * Properties of an IndexStats. + * Properties of an UndeployIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IIndexStats - * @property {number|Long|null} [vectorsCount] IndexStats vectorsCount - * @property {number|null} [shardsCount] IndexStats shardsCount + * @interface IUndeployIndexRequest + * @property {string|null} [indexEndpoint] UndeployIndexRequest indexEndpoint + * @property {string|null} [deployedIndexId] UndeployIndexRequest deployedIndexId */ /** - * Constructs a new IndexStats. + * Constructs a new UndeployIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IndexStats. - * @implements IIndexStats + * @classdesc Represents an UndeployIndexRequest. + * @implements IUndeployIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IIndexStats=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest=} [properties] Properties to set */ - function IndexStats(properties) { + function UndeployIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -246881,89 +259345,89 @@ } /** - * IndexStats vectorsCount. - * @member {number|Long} vectorsCount - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * UndeployIndexRequest indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @instance */ - IndexStats.prototype.vectorsCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UndeployIndexRequest.prototype.indexEndpoint = ""; /** - * IndexStats shardsCount. - * @member {number} shardsCount - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * UndeployIndexRequest deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @instance */ - IndexStats.prototype.shardsCount = 0; + UndeployIndexRequest.prototype.deployedIndexId = ""; /** - * Creates a new IndexStats instance using the specified properties. + * Creates a new UndeployIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexStats=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest instance */ - IndexStats.create = function create(properties) { - return new IndexStats(properties); + UndeployIndexRequest.create = function create(properties) { + return new UndeployIndexRequest(properties); }; /** - * Encodes the specified IndexStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. + * Encodes the specified UndeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexStats} message IndexStats message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} message UndeployIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexStats.encode = function encode(message, writer) { + UndeployIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.vectorsCount != null && Object.hasOwnProperty.call(message, "vectorsCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.vectorsCount); - if (message.shardsCount != null && Object.hasOwnProperty.call(message, "shardsCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.shardsCount); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); + if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); return writer; }; /** - * Encodes the specified IndexStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexStats.verify|verify} messages. + * Encodes the specified UndeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexStats} message IndexStats message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} message UndeployIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexStats.encodeDelimited = function encodeDelimited(message, writer) { + UndeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IndexStats message from the specified reader or buffer. + * Decodes an UndeployIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @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.IndexStats} IndexStats + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexStats.decode = function decode(reader, length) { + UndeployIndexRequest.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.IndexStats(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.vectorsCount = reader.int64(); + message.indexEndpoint = reader.string(); break; } case 2: { - message.shardsCount = reader.int32(); + message.deployedIndexId = reader.string(); break; } default: @@ -246975,156 +259439,130 @@ }; /** - * Decodes an IndexStats message from the specified reader or buffer, length delimited. + * Decodes an UndeployIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexStats.decodeDelimited = function decodeDelimited(reader) { + UndeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IndexStats message. + * Verifies an UndeployIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IndexStats.verify = function verify(message) { + UndeployIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.vectorsCount != null && message.hasOwnProperty("vectorsCount")) - if (!$util.isInteger(message.vectorsCount) && !(message.vectorsCount && $util.isInteger(message.vectorsCount.low) && $util.isInteger(message.vectorsCount.high))) - return "vectorsCount: integer|Long expected"; - if (message.shardsCount != null && message.hasOwnProperty("shardsCount")) - if (!$util.isInteger(message.shardsCount)) - return "shardsCount: integer expected"; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + if (!$util.isString(message.indexEndpoint)) + return "indexEndpoint: string expected"; + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + if (!$util.isString(message.deployedIndexId)) + return "deployedIndexId: string expected"; return null; }; /** - * Creates an IndexStats message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.IndexStats} IndexStats + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest */ - IndexStats.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexStats) + UndeployIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.IndexStats(); - if (object.vectorsCount != null) - if ($util.Long) - (message.vectorsCount = $util.Long.fromValue(object.vectorsCount)).unsigned = false; - else if (typeof object.vectorsCount === "string") - message.vectorsCount = parseInt(object.vectorsCount, 10); - else if (typeof object.vectorsCount === "number") - message.vectorsCount = object.vectorsCount; - else if (typeof object.vectorsCount === "object") - message.vectorsCount = new $util.LongBits(object.vectorsCount.low >>> 0, object.vectorsCount.high >>> 0).toNumber(); - if (object.shardsCount != null) - message.shardsCount = object.shardsCount | 0; + var message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest(); + if (object.indexEndpoint != null) + message.indexEndpoint = String(object.indexEndpoint); + if (object.deployedIndexId != null) + message.deployedIndexId = String(object.deployedIndexId); return message; }; /** - * Creates a plain object from an IndexStats message. Also converts values to other types if specified. + * Creates a plain object from an UndeployIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IndexStats} message IndexStats + * @param {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} message UndeployIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IndexStats.toObject = function toObject(message, options) { + UndeployIndexRequest.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.vectorsCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.vectorsCount = options.longs === String ? "0" : 0; - object.shardsCount = 0; + object.indexEndpoint = ""; + object.deployedIndexId = ""; } - if (message.vectorsCount != null && message.hasOwnProperty("vectorsCount")) - if (typeof message.vectorsCount === "number") - object.vectorsCount = options.longs === String ? String(message.vectorsCount) : message.vectorsCount; - else - object.vectorsCount = options.longs === String ? $util.Long.prototype.toString.call(message.vectorsCount) : options.longs === Number ? new $util.LongBits(message.vectorsCount.low >>> 0, message.vectorsCount.high >>> 0).toNumber() : message.vectorsCount; - if (message.shardsCount != null && message.hasOwnProperty("shardsCount")) - object.shardsCount = message.shardsCount; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = message.indexEndpoint; + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + object.deployedIndexId = message.deployedIndexId; return object; }; /** - * Converts this IndexStats to JSON. + * Converts this UndeployIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @instance * @returns {Object.} JSON object */ - IndexStats.prototype.toJSON = function toJSON() { + UndeployIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for IndexStats + * Gets the default type url for UndeployIndexRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.IndexStats + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - IndexStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UndeployIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexStats"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UndeployIndexRequest"; }; - return IndexStats; + return UndeployIndexRequest; })(); - v1beta1.IndexEndpoint = (function() { + v1beta1.UndeployIndexResponse = (function() { /** - * Properties of an IndexEndpoint. + * Properties of an UndeployIndexResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IIndexEndpoint - * @property {string|null} [name] IndexEndpoint name - * @property {string|null} [displayName] IndexEndpoint displayName - * @property {string|null} [description] IndexEndpoint description - * @property {Array.|null} [deployedIndexes] IndexEndpoint deployedIndexes - * @property {string|null} [etag] IndexEndpoint etag - * @property {Object.|null} [labels] IndexEndpoint labels - * @property {google.protobuf.ITimestamp|null} [createTime] IndexEndpoint createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] IndexEndpoint updateTime - * @property {string|null} [network] IndexEndpoint network - * @property {boolean|null} [enablePrivateServiceConnect] IndexEndpoint enablePrivateServiceConnect + * @interface IUndeployIndexResponse */ /** - * Constructs a new IndexEndpoint. + * Constructs a new UndeployIndexResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IndexEndpoint. - * @implements IIndexEndpoint + * @classdesc Represents an UndeployIndexResponse. + * @implements IUndeployIndexResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse=} [properties] Properties to set */ - function IndexEndpoint(properties) { - this.deployedIndexes = []; - this.labels = {}; + function UndeployIndexResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -247132,224 +259570,251 @@ } /** - * IndexEndpoint name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance + * Creates a new UndeployIndexResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse instance */ - IndexEndpoint.prototype.name = ""; + UndeployIndexResponse.create = function create(properties) { + return new UndeployIndexResponse(properties); + }; /** - * IndexEndpoint displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance + * Encodes the specified UndeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse} message UndeployIndexResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - IndexEndpoint.prototype.displayName = ""; + UndeployIndexResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; /** - * IndexEndpoint description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance + * Encodes the specified UndeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse} message UndeployIndexResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - IndexEndpoint.prototype.description = ""; + UndeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * IndexEndpoint deployedIndexes. - * @member {Array.} deployedIndexes - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance + * Decodes an UndeployIndexResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @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.UndeployIndexResponse} UndeployIndexResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexEndpoint.prototype.deployedIndexes = $util.emptyArray; + UndeployIndexResponse.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.UndeployIndexResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * IndexEndpoint etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance + * Decodes an UndeployIndexResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexEndpoint.prototype.etag = ""; + UndeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * IndexEndpoint labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance + * Verifies an UndeployIndexResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IndexEndpoint.prototype.labels = $util.emptyObject; + UndeployIndexResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; /** - * IndexEndpoint createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance + * Creates an UndeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse */ - IndexEndpoint.prototype.createTime = null; + UndeployIndexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse) + return object; + return new $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse(); + }; /** - * IndexEndpoint updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance + * Creates a plain object from an UndeployIndexResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} message UndeployIndexResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - IndexEndpoint.prototype.updateTime = null; + UndeployIndexResponse.toObject = function toObject() { + return {}; + }; /** - * IndexEndpoint network. - * @member {string} network - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * Converts this UndeployIndexResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse * @instance + * @returns {Object.} JSON object */ - IndexEndpoint.prototype.network = ""; + UndeployIndexResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * IndexEndpoint enablePrivateServiceConnect. - * @member {boolean} enablePrivateServiceConnect - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * Gets the default type url for UndeployIndexResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UndeployIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UndeployIndexResponse"; + }; + + return UndeployIndexResponse; + })(); + + v1beta1.UndeployIndexOperationMetadata = (function() { + + /** + * Properties of an UndeployIndexOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUndeployIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UndeployIndexOperationMetadata genericMetadata + */ + + /** + * Constructs a new UndeployIndexOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UndeployIndexOperationMetadata. + * @implements IUndeployIndexOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata=} [properties] Properties to set + */ + function UndeployIndexOperationMetadata(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]]; + } + + /** + * UndeployIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @instance */ - IndexEndpoint.prototype.enablePrivateServiceConnect = false; + UndeployIndexOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new IndexEndpoint instance using the specified properties. + * Creates a new UndeployIndexOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata instance */ - IndexEndpoint.create = function create(properties) { - return new IndexEndpoint(properties); + UndeployIndexOperationMetadata.create = function create(properties) { + return new UndeployIndexOperationMetadata(properties); }; /** - * Encodes the specified IndexEndpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. + * Encodes the specified UndeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint} message IndexEndpoint message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexEndpoint.encode = function encode(message, writer) { + UndeployIndexOperationMetadata.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); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.deployedIndexes != null && message.deployedIndexes.length) - for (var i = 0; i < message.deployedIndexes.length; ++i) - $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndexes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.etag); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.network); - if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.enablePrivateServiceConnect); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified IndexEndpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. + * Encodes the specified UndeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint} message IndexEndpoint message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexEndpoint.encodeDelimited = function encodeDelimited(message, writer) { + UndeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IndexEndpoint message from the specified reader or buffer. + * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @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.IndexEndpoint} IndexEndpoint + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexEndpoint.decode = function decode(reader, length) { + UndeployIndexOperationMetadata.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.IndexEndpoint(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); - break; - } - case 2: { - message.displayName = reader.string(); - break; - } - case 3: { - message.description = reader.string(); - break; - } - case 4: { - if (!(message.deployedIndexes && message.deployedIndexes.length)) - message.deployedIndexes = []; - message.deployedIndexes.push($root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32())); - break; - } - case 5: { - message.etag = reader.string(); - break; - } - case 6: { - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - } - case 7: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 8: { - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 9: { - message.network = reader.string(); - break; - } - case 10: { - message.enablePrivateServiceConnect = reader.bool(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -247361,250 +259826,128 @@ }; /** - * Decodes an IndexEndpoint message from the specified reader or buffer, length delimited. + * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexEndpoint.decodeDelimited = function decodeDelimited(reader) { + UndeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IndexEndpoint message. + * Verifies an UndeployIndexOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IndexEndpoint.verify = function verify(message) { + UndeployIndexOperationMetadata.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"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.deployedIndexes != null && message.hasOwnProperty("deployedIndexes")) { - if (!Array.isArray(message.deployedIndexes)) - return "deployedIndexes: array expected"; - for (var i = 0; i < message.deployedIndexes.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndexes[i]); - if (error) - return "deployedIndexes." + error; - } - } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "updateTime." + error; + return "genericMetadata." + error; } - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) - if (typeof message.enablePrivateServiceConnect !== "boolean") - return "enablePrivateServiceConnect: boolean expected"; return null; }; /** - * Creates an IndexEndpoint message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata */ - IndexEndpoint.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexEndpoint) + UndeployIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.IndexEndpoint(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.deployedIndexes) { - if (!Array.isArray(object.deployedIndexes)) - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.deployedIndexes: array expected"); - message.deployedIndexes = []; - for (var i = 0; i < object.deployedIndexes.length; ++i) { - if (typeof object.deployedIndexes[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.deployedIndexes: object expected"); - message.deployedIndexes[i] = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndexes[i]); - } - } - if (object.etag != null) - message.etag = String(object.etag); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + var message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.network != null) - message.network = String(object.network); - if (object.enablePrivateServiceConnect != null) - message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); return message; }; /** - * Creates a plain object from an IndexEndpoint message. Also converts values to other types if specified. + * Creates a plain object from an UndeployIndexOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} message IndexEndpoint + * @param {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} message UndeployIndexOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IndexEndpoint.toObject = function toObject(message, options) { + UndeployIndexOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.deployedIndexes = []; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.etag = ""; - object.createTime = null; - object.updateTime = null; - object.network = ""; - object.enablePrivateServiceConnect = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.deployedIndexes && message.deployedIndexes.length) { - object.deployedIndexes = []; - for (var j = 0; j < message.deployedIndexes.length; ++j) - object.deployedIndexes[j] = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndexes[j], options); - } - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) - object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this IndexEndpoint to JSON. + * Converts this UndeployIndexOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @instance * @returns {Object.} JSON object */ - IndexEndpoint.prototype.toJSON = function toJSON() { + UndeployIndexOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for IndexEndpoint + * Gets the default type url for UndeployIndexOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - IndexEndpoint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UndeployIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexEndpoint"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata"; }; - return IndexEndpoint; + return UndeployIndexOperationMetadata; })(); - v1beta1.DeployedIndex = (function() { + v1beta1.MutateDeployedIndexRequest = (function() { /** - * Properties of a DeployedIndex. + * Properties of a MutateDeployedIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployedIndex - * @property {string|null} [id] DeployedIndex id - * @property {string|null} [index] DeployedIndex index - * @property {string|null} [displayName] DeployedIndex displayName - * @property {google.protobuf.ITimestamp|null} [createTime] DeployedIndex createTime - * @property {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null} [privateEndpoints] DeployedIndex privateEndpoints - * @property {google.protobuf.ITimestamp|null} [indexSyncTime] DeployedIndex indexSyncTime - * @property {google.cloud.aiplatform.v1beta1.IAutomaticResources|null} [automaticResources] DeployedIndex automaticResources - * @property {google.cloud.aiplatform.v1beta1.IDedicatedResources|null} [dedicatedResources] DeployedIndex dedicatedResources - * @property {boolean|null} [enableAccessLogging] DeployedIndex enableAccessLogging - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null} [deployedIndexAuthConfig] DeployedIndex deployedIndexAuthConfig - * @property {Array.|null} [reservedIpRanges] DeployedIndex reservedIpRanges - * @property {string|null} [deploymentGroup] DeployedIndex deploymentGroup + * @interface IMutateDeployedIndexRequest + * @property {string|null} [indexEndpoint] MutateDeployedIndexRequest indexEndpoint + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexRequest deployedIndex */ /** - * Constructs a new DeployedIndex. + * Constructs a new MutateDeployedIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployedIndex. - * @implements IDeployedIndex + * @classdesc Represents a MutateDeployedIndexRequest. + * @implements IMutateDeployedIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest=} [properties] Properties to set */ - function DeployedIndex(properties) { - this.reservedIpRanges = []; + function MutateDeployedIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -247612,232 +259955,306 @@ } /** - * DeployedIndex id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * MutateDeployedIndexRequest indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest * @instance */ - DeployedIndex.prototype.id = ""; + MutateDeployedIndexRequest.prototype.indexEndpoint = ""; /** - * DeployedIndex index. - * @member {string} index - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * MutateDeployedIndexRequest deployedIndex. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest * @instance */ - DeployedIndex.prototype.index = ""; + MutateDeployedIndexRequest.prototype.deployedIndex = null; /** - * DeployedIndex displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance + * Creates a new MutateDeployedIndexRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest instance */ - DeployedIndex.prototype.displayName = ""; + MutateDeployedIndexRequest.create = function create(properties) { + return new MutateDeployedIndexRequest(properties); + }; /** - * DeployedIndex createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance + * Encodes the specified MutateDeployedIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - DeployedIndex.prototype.createTime = null; + MutateDeployedIndexRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); + if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * DeployedIndex privateEndpoints. - * @member {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null|undefined} privateEndpoints - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance + * Encodes the specified MutateDeployedIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - DeployedIndex.prototype.privateEndpoints = null; + MutateDeployedIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * DeployedIndex indexSyncTime. - * @member {google.protobuf.ITimestamp|null|undefined} indexSyncTime - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance + * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @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.MutateDeployedIndexRequest} MutateDeployedIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndex.prototype.indexSyncTime = null; + MutateDeployedIndexRequest.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.MutateDeployedIndexRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.indexEndpoint = reader.string(); + break; + } + case 2: { + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * DeployedIndex automaticResources. - * @member {google.cloud.aiplatform.v1beta1.IAutomaticResources|null|undefined} automaticResources - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance + * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndex.prototype.automaticResources = null; + MutateDeployedIndexRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * DeployedIndex dedicatedResources. - * @member {google.cloud.aiplatform.v1beta1.IDedicatedResources|null|undefined} dedicatedResources - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance + * Verifies a MutateDeployedIndexRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployedIndex.prototype.dedicatedResources = null; + MutateDeployedIndexRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + if (!$util.isString(message.indexEndpoint)) + return "indexEndpoint: string expected"; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); + if (error) + return "deployedIndex." + error; + } + return null; + }; /** - * DeployedIndex enableAccessLogging. - * @member {boolean} enableAccessLogging - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance + * Creates a MutateDeployedIndexRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest */ - DeployedIndex.prototype.enableAccessLogging = false; + MutateDeployedIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest(); + if (object.indexEndpoint != null) + message.indexEndpoint = String(object.indexEndpoint); + if (object.deployedIndex != null) { + if (typeof object.deployedIndex !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.deployedIndex: object expected"); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); + } + return message; + }; /** - * DeployedIndex deployedIndexAuthConfig. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null|undefined} deployedIndexAuthConfig - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * Creates a plain object from a MutateDeployedIndexRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} message MutateDeployedIndexRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MutateDeployedIndexRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.indexEndpoint = ""; + object.deployedIndex = null; + } + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = message.indexEndpoint; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) + object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); + return object; + }; + + /** + * Converts this MutateDeployedIndexRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest * @instance + * @returns {Object.} JSON object + */ + MutateDeployedIndexRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MutateDeployedIndexRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MutateDeployedIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest"; + }; + + return MutateDeployedIndexRequest; + })(); + + v1beta1.MutateDeployedIndexResponse = (function() { + + /** + * Properties of a MutateDeployedIndexResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IMutateDeployedIndexResponse + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexResponse deployedIndex */ - DeployedIndex.prototype.deployedIndexAuthConfig = null; /** - * DeployedIndex reservedIpRanges. - * @member {Array.} reservedIpRanges - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance + * Constructs a new MutateDeployedIndexResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a MutateDeployedIndexResponse. + * @implements IMutateDeployedIndexResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse=} [properties] Properties to set */ - DeployedIndex.prototype.reservedIpRanges = $util.emptyArray; + function MutateDeployedIndexResponse(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]]; + } /** - * DeployedIndex deploymentGroup. - * @member {string} deploymentGroup - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * MutateDeployedIndexResponse deployedIndex. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @instance */ - DeployedIndex.prototype.deploymentGroup = ""; + MutateDeployedIndexResponse.prototype.deployedIndex = null; /** - * Creates a new DeployedIndex instance using the specified properties. + * Creates a new MutateDeployedIndexResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex instance + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse instance */ - DeployedIndex.create = function create(properties) { - return new DeployedIndex(properties); + MutateDeployedIndexResponse.create = function create(properties) { + return new MutateDeployedIndexResponse(properties); }; /** - * Encodes the specified DeployedIndex message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. + * Encodes the specified MutateDeployedIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex} message DeployedIndex message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedIndex.encode = function encode(message, writer) { + MutateDeployedIndexResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.index); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.privateEndpoints != null && Object.hasOwnProperty.call(message, "privateEndpoints")) - $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.encode(message.privateEndpoints, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.indexSyncTime != null && Object.hasOwnProperty.call(message, "indexSyncTime")) - $root.google.protobuf.Timestamp.encode(message.indexSyncTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.automaticResources != null && Object.hasOwnProperty.call(message, "automaticResources")) - $root.google.cloud.aiplatform.v1beta1.AutomaticResources.encode(message.automaticResources, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.enableAccessLogging != null && Object.hasOwnProperty.call(message, "enableAccessLogging")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.enableAccessLogging); - if (message.deployedIndexAuthConfig != null && Object.hasOwnProperty.call(message, "deployedIndexAuthConfig")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.encode(message.deployedIndexAuthConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.reservedIpRanges != null && message.reservedIpRanges.length) - for (var i = 0; i < message.reservedIpRanges.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedIpRanges[i]); - if (message.deploymentGroup != null && Object.hasOwnProperty.call(message, "deploymentGroup")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.deploymentGroup); - if (message.dedicatedResources != null && Object.hasOwnProperty.call(message, "dedicatedResources")) - $root.google.cloud.aiplatform.v1beta1.DedicatedResources.encode(message.dedicatedResources, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeployedIndex message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. + * Encodes the specified MutateDeployedIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex} message DeployedIndex message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedIndex.encodeDelimited = function encodeDelimited(message, writer) { + MutateDeployedIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployedIndex message from the specified reader or buffer. + * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @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.DeployedIndex} DeployedIndex + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndex.decode = function decode(reader, length) { + MutateDeployedIndexResponse.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.DeployedIndex(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.id = reader.string(); - break; - } - case 2: { - message.index = reader.string(); - break; - } - case 3: { - message.displayName = reader.string(); - break; - } - case 4: { - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 5: { - message.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.decode(reader, reader.uint32()); - break; - } - case 6: { - message.indexSyncTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 7: { - message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.decode(reader, reader.uint32()); - break; - } - case 16: { - message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.decode(reader, reader.uint32()); - break; - } - case 8: { - message.enableAccessLogging = reader.bool(); - break; - } - case 9: { - message.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.decode(reader, reader.uint32()); - break; - } - case 10: { - if (!(message.reservedIpRanges && message.reservedIpRanges.length)) - message.reservedIpRanges = []; - message.reservedIpRanges.push(reader.string()); - break; - } - case 11: { - message.deploymentGroup = reader.string(); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); break; } default: @@ -247849,254 +260266,128 @@ }; /** - * Decodes a DeployedIndex message from the specified reader or buffer, length delimited. + * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndex.decodeDelimited = function decodeDelimited(reader) { + MutateDeployedIndexResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployedIndex message. + * Verifies a MutateDeployedIndexResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployedIndex.verify = function verify(message) { + MutateDeployedIndexResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isString(message.index)) - return "index: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify(message.privateEndpoints); - if (error) - return "privateEndpoints." + error; - } - if (message.indexSyncTime != null && message.hasOwnProperty("indexSyncTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.indexSyncTime); - if (error) - return "indexSyncTime." + error; - } - if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) { - var error = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.verify(message.automaticResources); - if (error) - return "automaticResources." + error; - } - if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) { - var error = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.verify(message.dedicatedResources); - if (error) - return "dedicatedResources." + error; - } - if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) - if (typeof message.enableAccessLogging !== "boolean") - return "enableAccessLogging: boolean expected"; - if (message.deployedIndexAuthConfig != null && message.hasOwnProperty("deployedIndexAuthConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify(message.deployedIndexAuthConfig); + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); if (error) - return "deployedIndexAuthConfig." + error; - } - if (message.reservedIpRanges != null && message.hasOwnProperty("reservedIpRanges")) { - if (!Array.isArray(message.reservedIpRanges)) - return "reservedIpRanges: array expected"; - for (var i = 0; i < message.reservedIpRanges.length; ++i) - if (!$util.isString(message.reservedIpRanges[i])) - return "reservedIpRanges: string[] expected"; + return "deployedIndex." + error; } - if (message.deploymentGroup != null && message.hasOwnProperty("deploymentGroup")) - if (!$util.isString(message.deploymentGroup)) - return "deploymentGroup: string expected"; return null; }; /** - * Creates a DeployedIndex message from a plain object. Also converts values to their respective internal types. + * Creates a MutateDeployedIndexResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse */ - DeployedIndex.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndex) + MutateDeployedIndexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndex(); - if (object.id != null) - message.id = String(object.id); - if (object.index != null) - message.index = String(object.index); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.privateEndpoints != null) { - if (typeof object.privateEndpoints !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.privateEndpoints: object expected"); - message.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.fromObject(object.privateEndpoints); - } - if (object.indexSyncTime != null) { - if (typeof object.indexSyncTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.indexSyncTime: object expected"); - message.indexSyncTime = $root.google.protobuf.Timestamp.fromObject(object.indexSyncTime); - } - if (object.automaticResources != null) { - if (typeof object.automaticResources !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.automaticResources: object expected"); - message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.fromObject(object.automaticResources); - } - if (object.dedicatedResources != null) { - if (typeof object.dedicatedResources !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.dedicatedResources: object expected"); - message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.fromObject(object.dedicatedResources); - } - if (object.enableAccessLogging != null) - message.enableAccessLogging = Boolean(object.enableAccessLogging); - if (object.deployedIndexAuthConfig != null) { - if (typeof object.deployedIndexAuthConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.deployedIndexAuthConfig: object expected"); - message.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.fromObject(object.deployedIndexAuthConfig); - } - if (object.reservedIpRanges) { - if (!Array.isArray(object.reservedIpRanges)) - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.reservedIpRanges: array expected"); - message.reservedIpRanges = []; - for (var i = 0; i < object.reservedIpRanges.length; ++i) - message.reservedIpRanges[i] = String(object.reservedIpRanges[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse(); + if (object.deployedIndex != null) { + if (typeof object.deployedIndex !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.deployedIndex: object expected"); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); } - if (object.deploymentGroup != null) - message.deploymentGroup = String(object.deploymentGroup); return message; }; /** - * Creates a plain object from a DeployedIndex message. Also converts values to other types if specified. + * Creates a plain object from a MutateDeployedIndexResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndex} message DeployedIndex + * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} message MutateDeployedIndexResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployedIndex.toObject = function toObject(message, options) { + MutateDeployedIndexResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.reservedIpRanges = []; - if (options.defaults) { - object.id = ""; - object.index = ""; - object.displayName = ""; - object.createTime = null; - object.privateEndpoints = null; - object.indexSyncTime = null; - object.automaticResources = null; - object.enableAccessLogging = false; - object.deployedIndexAuthConfig = null; - object.deploymentGroup = ""; - object.dedicatedResources = null; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) - object.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.toObject(message.privateEndpoints, options); - if (message.indexSyncTime != null && message.hasOwnProperty("indexSyncTime")) - object.indexSyncTime = $root.google.protobuf.Timestamp.toObject(message.indexSyncTime, options); - if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) - object.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.toObject(message.automaticResources, options); - if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) - object.enableAccessLogging = message.enableAccessLogging; - if (message.deployedIndexAuthConfig != null && message.hasOwnProperty("deployedIndexAuthConfig")) - object.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.toObject(message.deployedIndexAuthConfig, options); - if (message.reservedIpRanges && message.reservedIpRanges.length) { - object.reservedIpRanges = []; - for (var j = 0; j < message.reservedIpRanges.length; ++j) - object.reservedIpRanges[j] = message.reservedIpRanges[j]; - } - if (message.deploymentGroup != null && message.hasOwnProperty("deploymentGroup")) - object.deploymentGroup = message.deploymentGroup; - if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) - object.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.toObject(message.dedicatedResources, options); + if (options.defaults) + object.deployedIndex = null; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) + object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); return object; }; /** - * Converts this DeployedIndex to JSON. + * Converts this MutateDeployedIndexResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @instance * @returns {Object.} JSON object */ - DeployedIndex.prototype.toJSON = function toJSON() { + MutateDeployedIndexResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployedIndex + * Gets the default type url for MutateDeployedIndexResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployedIndex.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MutateDeployedIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployedIndex"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse"; }; - return DeployedIndex; + return MutateDeployedIndexResponse; })(); - v1beta1.DeployedIndexAuthConfig = (function() { + v1beta1.MutateDeployedIndexOperationMetadata = (function() { /** - * Properties of a DeployedIndexAuthConfig. + * Properties of a MutateDeployedIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployedIndexAuthConfig - * @property {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null} [authProvider] DeployedIndexAuthConfig authProvider + * @interface IMutateDeployedIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] MutateDeployedIndexOperationMetadata genericMetadata + * @property {string|null} [deployedIndexId] MutateDeployedIndexOperationMetadata deployedIndexId */ /** - * Constructs a new DeployedIndexAuthConfig. + * Constructs a new MutateDeployedIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployedIndexAuthConfig. - * @implements IDeployedIndexAuthConfig + * @classdesc Represents a MutateDeployedIndexOperationMetadata. + * @implements IMutateDeployedIndexOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set */ - function DeployedIndexAuthConfig(properties) { + function MutateDeployedIndexOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -248104,75 +260395,89 @@ } /** - * DeployedIndexAuthConfig authProvider. - * @member {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null|undefined} authProvider - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * MutateDeployedIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @instance */ - DeployedIndexAuthConfig.prototype.authProvider = null; + MutateDeployedIndexOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new DeployedIndexAuthConfig instance using the specified properties. + * MutateDeployedIndexOperationMetadata deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @instance + */ + MutateDeployedIndexOperationMetadata.prototype.deployedIndexId = ""; + + /** + * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig instance + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata instance */ - DeployedIndexAuthConfig.create = function create(properties) { - return new DeployedIndexAuthConfig(properties); + MutateDeployedIndexOperationMetadata.create = function create(properties) { + return new MutateDeployedIndexOperationMetadata(properties); }; /** - * Encodes the specified DeployedIndexAuthConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. + * Encodes the specified MutateDeployedIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedIndexAuthConfig.encode = function encode(message, writer) { + MutateDeployedIndexOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.authProvider != null && Object.hasOwnProperty.call(message, "authProvider")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.encode(message.authProvider, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); return writer; }; /** - * Encodes the specified DeployedIndexAuthConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. + * Encodes the specified MutateDeployedIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedIndexAuthConfig.encodeDelimited = function encodeDelimited(message, writer) { + MutateDeployedIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer. + * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @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.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndexAuthConfig.decode = function decode(reader, length) { + MutateDeployedIndexOperationMetadata.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.DeployedIndexAuthConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.decode(reader, reader.uint32()); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + case 2: { + message.deployedIndexId = reader.string(); break; } default: @@ -248184,387 +260489,403 @@ }; /** - * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer, length delimited. + * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndexAuthConfig.decodeDelimited = function decodeDelimited(reader) { + MutateDeployedIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployedIndexAuthConfig message. + * Verifies a MutateDeployedIndexOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployedIndexAuthConfig.verify = function verify(message) { + MutateDeployedIndexOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.authProvider != null && message.hasOwnProperty("authProvider")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify(message.authProvider); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "authProvider." + error; + return "genericMetadata." + error; } + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + if (!$util.isString(message.deployedIndexId)) + return "deployedIndexId: string expected"; return null; }; /** - * Creates a DeployedIndexAuthConfig message from a plain object. Also converts values to their respective internal types. + * Creates a MutateDeployedIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata */ - DeployedIndexAuthConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig) + MutateDeployedIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig(); - if (object.authProvider != null) { - if (typeof object.authProvider !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.authProvider: object expected"); - message.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.fromObject(object.authProvider); + var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } + if (object.deployedIndexId != null) + message.deployedIndexId = String(object.deployedIndexId); return message; }; /** - * Creates a plain object from a DeployedIndexAuthConfig message. Also converts values to other types if specified. + * Creates a plain object from a MutateDeployedIndexOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} message DeployedIndexAuthConfig + * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployedIndexAuthConfig.toObject = function toObject(message, options) { + MutateDeployedIndexOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.authProvider = null; - if (message.authProvider != null && message.hasOwnProperty("authProvider")) - object.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.toObject(message.authProvider, options); + if (options.defaults) { + object.genericMetadata = null; + object.deployedIndexId = ""; + } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + object.deployedIndexId = message.deployedIndexId; return object; }; /** - * Converts this DeployedIndexAuthConfig to JSON. + * Converts this MutateDeployedIndexOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @instance * @returns {Object.} JSON object */ - DeployedIndexAuthConfig.prototype.toJSON = function toJSON() { + MutateDeployedIndexOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployedIndexAuthConfig + * Gets the default type url for MutateDeployedIndexOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployedIndexAuthConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + MutateDeployedIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata"; }; - DeployedIndexAuthConfig.AuthProvider = (function() { + return MutateDeployedIndexOperationMetadata; + })(); - /** - * Properties of an AuthProvider. - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig - * @interface IAuthProvider - * @property {Array.|null} [audiences] AuthProvider audiences - * @property {Array.|null} [allowedIssuers] AuthProvider allowedIssuers - */ + v1beta1.IndexService = (function() { - /** - * Constructs a new AuthProvider. - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig - * @classdesc Represents an AuthProvider. - * @implements IAuthProvider - * @constructor - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider=} [properties] Properties to set - */ - function AuthProvider(properties) { - this.audiences = []; - this.allowedIssuers = []; - 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]]; - } + /** + * Constructs a new IndexService service. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an IndexService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function IndexService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } - /** - * AuthProvider audiences. - * @member {Array.} audiences - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @instance - */ - AuthProvider.prototype.audiences = $util.emptyArray; + (IndexService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexService; - /** - * AuthProvider allowedIssuers. - * @member {Array.} allowedIssuers - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @instance - */ - AuthProvider.prototype.allowedIssuers = $util.emptyArray; + /** + * Creates new IndexService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {IndexService} RPC service. Useful where requests and/or responses are streamed. + */ + IndexService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; - /** - * Creates a new AuthProvider instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider instance - */ - AuthProvider.create = function create(properties) { - return new AuthProvider(properties); - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|createIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef CreateIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - /** - * Encodes the specified AuthProvider message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuthProvider.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.audiences != null && message.audiences.length) - for (var i = 0; i < message.audiences.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.audiences[i]); - if (message.allowedIssuers != null && message.allowedIssuers.length) - for (var i = 0; i < message.allowedIssuers.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.allowedIssuers[i]); - return writer; - }; + /** + * Calls CreateIndex. + * @function createIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} request CreateIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.CreateIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.createIndex = function createIndex(request, callback) { + return this.rpcCall(createIndex, $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateIndex" }); - /** - * Encodes the specified AuthProvider message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuthProvider.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Calls CreateIndex. + * @function createIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} request CreateIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Decodes an AuthProvider message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @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.DeployedIndexAuthConfig.AuthProvider} AuthProvider - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuthProvider.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.DeployedIndexAuthConfig.AuthProvider(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.audiences && message.audiences.length)) - message.audiences = []; - message.audiences.push(reader.string()); - break; - } - case 2: { - if (!(message.allowedIssuers && message.allowedIssuers.length)) - message.allowedIssuers = []; - message.allowedIssuers.push(reader.string()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|getIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef GetIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Index} [response] Index + */ - /** - * Decodes an AuthProvider message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuthProvider.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Calls GetIndex. + * @function getIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} request GetIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.GetIndexCallback} callback Node-style callback called with the error, if any, and Index + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.getIndex = function getIndex(request, callback) { + return this.rpcCall(getIndex, $root.google.cloud.aiplatform.v1beta1.GetIndexRequest, $root.google.cloud.aiplatform.v1beta1.Index, request, callback); + }, "name", { value: "GetIndex" }); - /** - * Verifies an AuthProvider message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AuthProvider.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.audiences != null && message.hasOwnProperty("audiences")) { - if (!Array.isArray(message.audiences)) - return "audiences: array expected"; - for (var i = 0; i < message.audiences.length; ++i) - if (!$util.isString(message.audiences[i])) - return "audiences: string[] expected"; - } - if (message.allowedIssuers != null && message.hasOwnProperty("allowedIssuers")) { - if (!Array.isArray(message.allowedIssuers)) - return "allowedIssuers: array expected"; - for (var i = 0; i < message.allowedIssuers.length; ++i) - if (!$util.isString(message.allowedIssuers[i])) - return "allowedIssuers: string[] expected"; - } - return null; - }; + /** + * Calls GetIndex. + * @function getIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} request GetIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Creates an AuthProvider message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider - */ - AuthProvider.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider(); - if (object.audiences) { - if (!Array.isArray(object.audiences)) - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.audiences: array expected"); - message.audiences = []; - for (var i = 0; i < object.audiences.length; ++i) - message.audiences[i] = String(object.audiences[i]); - } - if (object.allowedIssuers) { - if (!Array.isArray(object.allowedIssuers)) - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.allowedIssuers: array expected"); - message.allowedIssuers = []; - for (var i = 0; i < object.allowedIssuers.length; ++i) - message.allowedIssuers[i] = String(object.allowedIssuers[i]); - } - return message; - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|listIndexes}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef ListIndexesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListIndexesResponse} [response] ListIndexesResponse + */ - /** - * Creates a plain object from an AuthProvider message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} message AuthProvider - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - AuthProvider.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.audiences = []; - object.allowedIssuers = []; - } - if (message.audiences && message.audiences.length) { - object.audiences = []; - for (var j = 0; j < message.audiences.length; ++j) - object.audiences[j] = message.audiences[j]; - } - if (message.allowedIssuers && message.allowedIssuers.length) { - object.allowedIssuers = []; - for (var j = 0; j < message.allowedIssuers.length; ++j) - object.allowedIssuers[j] = message.allowedIssuers[j]; - } - return object; - }; + /** + * Calls ListIndexes. + * @function listIndexes + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} request ListIndexesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.ListIndexesCallback} callback Node-style callback called with the error, if any, and ListIndexesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.listIndexes = function listIndexes(request, callback) { + return this.rpcCall(listIndexes, $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest, $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse, request, callback); + }, "name", { value: "ListIndexes" }); - /** - * Converts this AuthProvider to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @instance - * @returns {Object.} JSON object - */ - AuthProvider.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Calls ListIndexes. + * @function listIndexes + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} request ListIndexesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Gets the default type url for AuthProvider - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - AuthProvider.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider"; - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|updateIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef UpdateIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - return AuthProvider; - })(); + /** + * Calls UpdateIndex. + * @function updateIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} request UpdateIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.UpdateIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.updateIndex = function updateIndex(request, callback) { + return this.rpcCall(updateIndex, $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateIndex" }); - return DeployedIndexAuthConfig; + /** + * Calls UpdateIndex. + * @function updateIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} request UpdateIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|deleteIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef DeleteIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteIndex. + * @function deleteIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.DeleteIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.deleteIndex = function deleteIndex(request, callback) { + return this.rpcCall(deleteIndex, $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteIndex" }); + + /** + * Calls DeleteIndex. + * @function deleteIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|upsertDatapoints}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef UpsertDatapointsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} [response] UpsertDatapointsResponse + */ + + /** + * Calls UpsertDatapoints. + * @function upsertDatapoints + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} request UpsertDatapointsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapointsCallback} callback Node-style callback called with the error, if any, and UpsertDatapointsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.upsertDatapoints = function upsertDatapoints(request, callback) { + return this.rpcCall(upsertDatapoints, $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest, $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse, request, callback); + }, "name", { value: "UpsertDatapoints" }); + + /** + * Calls UpsertDatapoints. + * @function upsertDatapoints + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} request UpsertDatapointsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|removeDatapoints}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef RemoveDatapointsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} [response] RemoveDatapointsResponse + */ + + /** + * Calls RemoveDatapoints. + * @function removeDatapoints + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} request RemoveDatapointsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapointsCallback} callback Node-style callback called with the error, if any, and RemoveDatapointsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexService.prototype.removeDatapoints = function removeDatapoints(request, callback) { + return this.rpcCall(removeDatapoints, $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest, $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse, request, callback); + }, "name", { value: "RemoveDatapoints" }); + + /** + * Calls RemoveDatapoints. + * @function removeDatapoints + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} request RemoveDatapointsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return IndexService; })(); - v1beta1.IndexPrivateEndpoints = (function() { + v1beta1.CreateIndexRequest = (function() { /** - * Properties of an IndexPrivateEndpoints. + * Properties of a CreateIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IIndexPrivateEndpoints - * @property {string|null} [matchGrpcAddress] IndexPrivateEndpoints matchGrpcAddress - * @property {string|null} [serviceAttachment] IndexPrivateEndpoints serviceAttachment + * @interface ICreateIndexRequest + * @property {string|null} [parent] CreateIndexRequest parent + * @property {google.cloud.aiplatform.v1beta1.IIndex|null} [index] CreateIndexRequest index */ /** - * Constructs a new IndexPrivateEndpoints. + * Constructs a new CreateIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IndexPrivateEndpoints. - * @implements IIndexPrivateEndpoints + * @classdesc Represents a CreateIndexRequest. + * @implements ICreateIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest=} [properties] Properties to set */ - function IndexPrivateEndpoints(properties) { + function CreateIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -248572,89 +260893,89 @@ } /** - * IndexPrivateEndpoints matchGrpcAddress. - * @member {string} matchGrpcAddress - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * CreateIndexRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @instance */ - IndexPrivateEndpoints.prototype.matchGrpcAddress = ""; + CreateIndexRequest.prototype.parent = ""; /** - * IndexPrivateEndpoints serviceAttachment. - * @member {string} serviceAttachment - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * CreateIndexRequest index. + * @member {google.cloud.aiplatform.v1beta1.IIndex|null|undefined} index + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @instance */ - IndexPrivateEndpoints.prototype.serviceAttachment = ""; + CreateIndexRequest.prototype.index = null; /** - * Creates a new IndexPrivateEndpoints instance using the specified properties. + * Creates a new CreateIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints instance + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest instance */ - IndexPrivateEndpoints.create = function create(properties) { - return new IndexPrivateEndpoints(properties); + CreateIndexRequest.create = function create(properties) { + return new CreateIndexRequest(properties); }; /** - * Encodes the specified IndexPrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. + * Encodes the specified CreateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints} message IndexPrivateEndpoints message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} message CreateIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexPrivateEndpoints.encode = function encode(message, writer) { + CreateIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.matchGrpcAddress != null && Object.hasOwnProperty.call(message, "matchGrpcAddress")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.matchGrpcAddress); - if (message.serviceAttachment != null && Object.hasOwnProperty.call(message, "serviceAttachment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAttachment); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + $root.google.cloud.aiplatform.v1beta1.Index.encode(message.index, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified IndexPrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. + * Encodes the specified CreateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints} message IndexPrivateEndpoints message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} message CreateIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IndexPrivateEndpoints.encodeDelimited = function encodeDelimited(message, writer) { + CreateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IndexPrivateEndpoints message from the specified reader or buffer. + * Decodes a CreateIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @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.IndexPrivateEndpoints} IndexPrivateEndpoints + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexPrivateEndpoints.decode = function decode(reader, length) { + CreateIndexRequest.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.IndexPrivateEndpoints(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.matchGrpcAddress = reader.string(); + message.parent = reader.string(); break; } case 2: { - message.serviceAttachment = reader.string(); + message.index = $root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32()); break; } default: @@ -248666,431 +260987,373 @@ }; /** - * Decodes an IndexPrivateEndpoints message from the specified reader or buffer, length delimited. + * Decodes a CreateIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IndexPrivateEndpoints.decodeDelimited = function decodeDelimited(reader) { + CreateIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IndexPrivateEndpoints message. + * Verifies a CreateIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IndexPrivateEndpoints.verify = function verify(message) { + CreateIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.matchGrpcAddress != null && message.hasOwnProperty("matchGrpcAddress")) - if (!$util.isString(message.matchGrpcAddress)) - return "matchGrpcAddress: string expected"; - if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) - if (!$util.isString(message.serviceAttachment)) - return "serviceAttachment: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.index != null && message.hasOwnProperty("index")) { + var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.index); + if (error) + return "index." + error; + } return null; }; /** - * Creates an IndexPrivateEndpoints message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest */ - IndexPrivateEndpoints.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints) + CreateIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints(); - if (object.matchGrpcAddress != null) - message.matchGrpcAddress = String(object.matchGrpcAddress); - if (object.serviceAttachment != null) - message.serviceAttachment = String(object.serviceAttachment); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.index != null) { + if (typeof object.index !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexRequest.index: object expected"); + message.index = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.index); + } return message; }; /** - * Creates a plain object from an IndexPrivateEndpoints message. Also converts values to other types if specified. + * Creates a plain object from a CreateIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} message IndexPrivateEndpoints + * @param {google.cloud.aiplatform.v1beta1.CreateIndexRequest} message CreateIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IndexPrivateEndpoints.toObject = function toObject(message, options) { + CreateIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.matchGrpcAddress = ""; - object.serviceAttachment = ""; + object.parent = ""; + object.index = null; } - if (message.matchGrpcAddress != null && message.hasOwnProperty("matchGrpcAddress")) - object.matchGrpcAddress = message.matchGrpcAddress; - if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) - object.serviceAttachment = message.serviceAttachment; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.index != null && message.hasOwnProperty("index")) + object.index = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.index, options); return object; }; /** - * Converts this IndexPrivateEndpoints to JSON. + * Converts this CreateIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @instance * @returns {Object.} JSON object */ - IndexPrivateEndpoints.prototype.toJSON = function toJSON() { + CreateIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for IndexPrivateEndpoints + * Gets the default type url for CreateIndexRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - IndexPrivateEndpoints.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateIndexRequest"; }; - return IndexPrivateEndpoints; + return CreateIndexRequest; })(); - v1beta1.IndexEndpointService = (function() { + v1beta1.CreateIndexOperationMetadata = (function() { /** - * Constructs a new IndexEndpointService service. + * Properties of a CreateIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IndexEndpointService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function IndexEndpointService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (IndexEndpointService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexEndpointService; - - /** - * Creates new IndexEndpointService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {IndexEndpointService} RPC service. Useful where requests and/or responses are streamed. - */ - IndexEndpointService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|createIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef CreateIndexEndpointCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls CreateIndexEndpoint. - * @function createIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} request CreateIndexEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpointCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexEndpointService.prototype.createIndexEndpoint = function createIndexEndpoint(request, callback) { - return this.rpcCall(createIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateIndexEndpoint" }); - - /** - * Calls CreateIndexEndpoint. - * @function createIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} request CreateIndexEndpointRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|getIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef GetIndexEndpointCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} [response] IndexEndpoint - */ - - /** - * Calls GetIndexEndpoint. - * @function getIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} request GetIndexEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpointCallback} callback Node-style callback called with the error, if any, and IndexEndpoint - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexEndpointService.prototype.getIndexEndpoint = function getIndexEndpoint(request, callback) { - return this.rpcCall(getIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest, $root.google.cloud.aiplatform.v1beta1.IndexEndpoint, request, callback); - }, "name", { value: "GetIndexEndpoint" }); - - /** - * Calls GetIndexEndpoint. - * @function getIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} request GetIndexEndpointRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|listIndexEndpoints}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef ListIndexEndpointsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} [response] ListIndexEndpointsResponse - */ - - /** - * Calls ListIndexEndpoints. - * @function listIndexEndpoints - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} request ListIndexEndpointsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpointsCallback} callback Node-style callback called with the error, if any, and ListIndexEndpointsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexEndpointService.prototype.listIndexEndpoints = function listIndexEndpoints(request, callback) { - return this.rpcCall(listIndexEndpoints, $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest, $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse, request, callback); - }, "name", { value: "ListIndexEndpoints" }); - - /** - * Calls ListIndexEndpoints. - * @function listIndexEndpoints - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} request ListIndexEndpointsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|updateIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef UpdateIndexEndpointCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} [response] IndexEndpoint + * @interface ICreateIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexOperationMetadata genericMetadata + * @property {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null} [nearestNeighborSearchOperationMetadata] CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ /** - * Calls UpdateIndexEndpoint. - * @function updateIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} request UpdateIndexEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpointCallback} callback Node-style callback called with the error, if any, and IndexEndpoint - * @returns {undefined} - * @variation 1 + * Constructs a new CreateIndexOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateIndexOperationMetadata. + * @implements ICreateIndexOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata=} [properties] Properties to set */ - Object.defineProperty(IndexEndpointService.prototype.updateIndexEndpoint = function updateIndexEndpoint(request, callback) { - return this.rpcCall(updateIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest, $root.google.cloud.aiplatform.v1beta1.IndexEndpoint, request, callback); - }, "name", { value: "UpdateIndexEndpoint" }); + function CreateIndexOperationMetadata(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]]; + } /** - * Calls UpdateIndexEndpoint. - * @function updateIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * CreateIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} request UpdateIndexEndpointRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|deleteIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef DeleteIndexEndpointCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation */ + CreateIndexOperationMetadata.prototype.genericMetadata = null; /** - * Calls DeleteIndexEndpoint. - * @function deleteIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. + * @member {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} request DeleteIndexEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpointCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(IndexEndpointService.prototype.deleteIndexEndpoint = function deleteIndexEndpoint(request, callback) { - return this.rpcCall(deleteIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteIndexEndpoint" }); + CreateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; /** - * Calls DeleteIndexEndpoint. - * @function deleteIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} request DeleteIndexEndpointRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new CreateIndexOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata instance */ + CreateIndexOperationMetadata.create = function create(properties) { + return new CreateIndexOperationMetadata(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|deployIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef DeployIndexCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Encodes the specified CreateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CreateIndexOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nearestNeighborSearchOperationMetadata != null && Object.hasOwnProperty.call(message, "nearestNeighborSearchOperationMetadata")) + $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.encode(message.nearestNeighborSearchOperationMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls DeployIndex. - * @function deployIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} request DeployIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndexCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified CreateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(IndexEndpointService.prototype.deployIndex = function deployIndex(request, callback) { - return this.rpcCall(deployIndex, $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeployIndex" }); + CreateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls DeployIndex. - * @function deployIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} request DeployIndexRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @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.CreateIndexOperationMetadata} CreateIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CreateIndexOperationMetadata.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.CreateIndexOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + case 2: { + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|undeployIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef UndeployIndexCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CreateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls UndeployIndex. - * @function undeployIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} request UndeployIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndexCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Verifies a CreateIndexOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(IndexEndpointService.prototype.undeployIndex = function undeployIndex(request, callback) { - return this.rpcCall(undeployIndex, $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UndeployIndex" }); + CreateIndexOperationMetadata.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.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); + if (error) + return "nearestNeighborSearchOperationMetadata." + error; + } + return null; + }; /** - * Calls UndeployIndex. - * @function undeployIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} request UndeployIndexRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a CreateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata */ + CreateIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.nearestNeighborSearchOperationMetadata != null) { + if (typeof object.nearestNeighborSearchOperationMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService|mutateDeployedIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef MutateDeployedIndexCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a plain object from a CreateIndexOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} message CreateIndexOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + CreateIndexOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.genericMetadata = null; + object.nearestNeighborSearchOperationMetadata = null; + } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) + object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); + return object; + }; /** - * Calls MutateDeployedIndex. - * @function mutateDeployedIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * Converts this CreateIndexOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata * @instance - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndexCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(IndexEndpointService.prototype.mutateDeployedIndex = function mutateDeployedIndex(request, callback) { - return this.rpcCall(mutateDeployedIndex, $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "MutateDeployedIndex" }); + CreateIndexOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls MutateDeployedIndex. - * @function mutateDeployedIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for CreateIndexOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + CreateIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata"; + }; - return IndexEndpointService; + return CreateIndexOperationMetadata; })(); - v1beta1.CreateIndexEndpointRequest = (function() { + v1beta1.GetIndexRequest = (function() { /** - * Properties of a CreateIndexEndpointRequest. + * Properties of a GetIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateIndexEndpointRequest - * @property {string|null} [parent] CreateIndexEndpointRequest parent - * @property {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null} [indexEndpoint] CreateIndexEndpointRequest indexEndpoint + * @interface IGetIndexRequest + * @property {string|null} [name] GetIndexRequest name */ /** - * Constructs a new CreateIndexEndpointRequest. + * Constructs a new GetIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateIndexEndpointRequest. - * @implements ICreateIndexEndpointRequest + * @classdesc Represents a GetIndexRequest. + * @implements IGetIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest=} [properties] Properties to set */ - function CreateIndexEndpointRequest(properties) { + function GetIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -249098,89 +261361,75 @@ } /** - * CreateIndexEndpointRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest - * @instance - */ - CreateIndexEndpointRequest.prototype.parent = ""; - - /** - * CreateIndexEndpointRequest indexEndpoint. - * @member {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null|undefined} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * GetIndexRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @instance */ - CreateIndexEndpointRequest.prototype.indexEndpoint = null; + GetIndexRequest.prototype.name = ""; /** - * Creates a new CreateIndexEndpointRequest instance using the specified properties. + * Creates a new GetIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest instance */ - CreateIndexEndpointRequest.create = function create(properties) { - return new CreateIndexEndpointRequest(properties); + GetIndexRequest.create = function create(properties) { + return new GetIndexRequest(properties); }; /** - * Encodes the specified CreateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. + * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} message CreateIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} message GetIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIndexEndpointRequest.encode = function encode(message, writer) { + GetIndexRequest.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.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoint, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. + * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} message CreateIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} message GetIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer. + * Decodes a GetIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @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.CreateIndexEndpointRequest} CreateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIndexEndpointRequest.decode = function decode(reader, length) { + GetIndexRequest.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.CreateIndexEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -249192,136 +261441,126 @@ }; /** - * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + GetIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateIndexEndpointRequest message. + * Verifies a GetIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateIndexEndpointRequest.verify = function verify(message) { + GetIndexRequest.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.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoint); - if (error) - return "indexEndpoint." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest */ - CreateIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest) + GetIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.indexEndpoint != null) { - if (typeof object.indexEndpoint !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.indexEndpoint: object expected"); - message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoint); - } + var message = new $root.google.cloud.aiplatform.v1beta1.GetIndexRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateIndexEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} message CreateIndexEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.GetIndexRequest} message GetIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateIndexEndpointRequest.toObject = function toObject(message, options) { + GetIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.indexEndpoint = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoint, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateIndexEndpointRequest to JSON. + * Converts this GetIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @instance * @returns {Object.} JSON object */ - CreateIndexEndpointRequest.prototype.toJSON = function toJSON() { + GetIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateIndexEndpointRequest + * Gets the default type url for GetIndexRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetIndexRequest"; }; - return CreateIndexEndpointRequest; + return GetIndexRequest; })(); - v1beta1.CreateIndexEndpointOperationMetadata = (function() { + v1beta1.ListIndexesRequest = (function() { /** - * Properties of a CreateIndexEndpointOperationMetadata. + * Properties of a ListIndexesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateIndexEndpointOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexEndpointOperationMetadata genericMetadata + * @interface IListIndexesRequest + * @property {string|null} [parent] ListIndexesRequest parent + * @property {string|null} [filter] ListIndexesRequest filter + * @property {number|null} [pageSize] ListIndexesRequest pageSize + * @property {string|null} [pageToken] ListIndexesRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListIndexesRequest readMask */ /** - * Constructs a new CreateIndexEndpointOperationMetadata. + * Constructs a new ListIndexesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateIndexEndpointOperationMetadata. - * @implements ICreateIndexEndpointOperationMetadata + * @classdesc Represents a ListIndexesRequest. + * @implements IListIndexesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest=} [properties] Properties to set */ - function CreateIndexEndpointOperationMetadata(properties) { + function ListIndexesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -249329,75 +261568,131 @@ } /** - * CreateIndexEndpointOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * ListIndexesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @instance */ - CreateIndexEndpointOperationMetadata.prototype.genericMetadata = null; + ListIndexesRequest.prototype.parent = ""; /** - * Creates a new CreateIndexEndpointOperationMetadata instance using the specified properties. + * ListIndexesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @instance + */ + ListIndexesRequest.prototype.filter = ""; + + /** + * ListIndexesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @instance + */ + ListIndexesRequest.prototype.pageSize = 0; + + /** + * ListIndexesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @instance + */ + ListIndexesRequest.prototype.pageToken = ""; + + /** + * ListIndexesRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @instance + */ + ListIndexesRequest.prototype.readMask = null; + + /** + * Creates a new ListIndexesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest instance */ - CreateIndexEndpointOperationMetadata.create = function create(properties) { - return new CreateIndexEndpointOperationMetadata(properties); + ListIndexesRequest.create = function create(properties) { + return new ListIndexesRequest(properties); }; /** - * Encodes the specified CreateIndexEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} message ListIndexesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIndexEndpointOperationMetadata.encode = function encode(message, writer) { + ListIndexesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateIndexEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * Encodes the specified ListIndexesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} message ListIndexesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIndexEndpointOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListIndexesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer. + * Decodes a ListIndexesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @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.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIndexEndpointOperationMetadata.decode = function decode(reader, length) { + ListIndexesRequest.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.CreateIndexEndpointOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -249409,127 +261704,162 @@ }; /** - * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIndexEndpointOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListIndexesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateIndexEndpointOperationMetadata message. + * Verifies a ListIndexesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateIndexEndpointOperationMetadata.verify = function verify(message) { + ListIndexesRequest.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.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "genericMetadata." + error; + return "readMask." + error; } return null; }; /** - * Creates a CreateIndexEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest */ - CreateIndexEndpointOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata) + ListIndexesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a CreateIndexEndpointOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListIndexesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListIndexesRequest} message ListIndexesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateIndexEndpointOperationMetadata.toObject = function toObject(message, options) { + ListIndexesRequest.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.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this CreateIndexEndpointOperationMetadata to JSON. + * Converts this ListIndexesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @instance * @returns {Object.} JSON object */ - CreateIndexEndpointOperationMetadata.prototype.toJSON = function toJSON() { + ListIndexesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateIndexEndpointOperationMetadata + * Gets the default type url for ListIndexesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateIndexEndpointOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListIndexesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListIndexesRequest"; }; - return CreateIndexEndpointOperationMetadata; + return ListIndexesRequest; })(); - v1beta1.GetIndexEndpointRequest = (function() { + v1beta1.ListIndexesResponse = (function() { /** - * Properties of a GetIndexEndpointRequest. + * Properties of a ListIndexesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetIndexEndpointRequest - * @property {string|null} [name] GetIndexEndpointRequest name + * @interface IListIndexesResponse + * @property {Array.|null} [indexes] ListIndexesResponse indexes + * @property {string|null} [nextPageToken] ListIndexesResponse nextPageToken */ /** - * Constructs a new GetIndexEndpointRequest. + * Constructs a new ListIndexesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetIndexEndpointRequest. - * @implements IGetIndexEndpointRequest + * @classdesc Represents a ListIndexesResponse. + * @implements IListIndexesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse=} [properties] Properties to set */ - function GetIndexEndpointRequest(properties) { + function ListIndexesResponse(properties) { + this.indexes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -249537,75 +261867,92 @@ } /** - * GetIndexEndpointRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * ListIndexesResponse indexes. + * @member {Array.} indexes + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @instance */ - GetIndexEndpointRequest.prototype.name = ""; + ListIndexesResponse.prototype.indexes = $util.emptyArray; /** - * Creates a new GetIndexEndpointRequest instance using the specified properties. + * ListIndexesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @instance + */ + ListIndexesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListIndexesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse instance */ - GetIndexEndpointRequest.create = function create(properties) { - return new GetIndexEndpointRequest(properties); + ListIndexesResponse.create = function create(properties) { + return new ListIndexesResponse(properties); }; /** - * Encodes the specified GetIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. + * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} message GetIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse} message ListIndexesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIndexEndpointRequest.encode = function encode(message, writer) { + ListIndexesResponse.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); + if (message.indexes != null && message.indexes.length) + for (var i = 0; i < message.indexes.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Index.encode(message.indexes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified GetIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. + * Encodes the specified ListIndexesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} message GetIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse} message ListIndexesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListIndexesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIndexEndpointRequest message from the specified reader or buffer. + * Decodes a ListIndexesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @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.GetIndexEndpointRequest} GetIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIndexEndpointRequest.decode = function decode(reader, length) { + ListIndexesResponse.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.GetIndexEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.indexes && message.indexes.length)) + message.indexes = []; + message.indexes.push($root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -249617,126 +261964,149 @@ }; /** - * Decodes a GetIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + ListIndexesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIndexEndpointRequest message. + * Verifies a ListIndexesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIndexEndpointRequest.verify = function verify(message) { + ListIndexesResponse.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"; + if (message.indexes != null && message.hasOwnProperty("indexes")) { + if (!Array.isArray(message.indexes)) + return "indexes: array expected"; + for (var i = 0; i < message.indexes.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.indexes[i]); + if (error) + return "indexes." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GetIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse */ - GetIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest) + ListIndexesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse(); + if (object.indexes) { + if (!Array.isArray(object.indexes)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesResponse.indexes: array expected"); + message.indexes = []; + for (var i = 0; i < object.indexes.length; ++i) { + if (typeof object.indexes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesResponse.indexes: object expected"); + message.indexes[i] = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.indexes[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GetIndexEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} message GetIndexEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.ListIndexesResponse} message ListIndexesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIndexEndpointRequest.toObject = function toObject(message, options) { + ListIndexesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.indexes = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.indexes && message.indexes.length) { + object.indexes = []; + for (var j = 0; j < message.indexes.length; ++j) + object.indexes[j] = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.indexes[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GetIndexEndpointRequest to JSON. + * Converts this ListIndexesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @instance * @returns {Object.} JSON object */ - GetIndexEndpointRequest.prototype.toJSON = function toJSON() { + ListIndexesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetIndexEndpointRequest + * Gets the default type url for ListIndexesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListIndexesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListIndexesResponse"; }; - return GetIndexEndpointRequest; + return ListIndexesResponse; })(); - v1beta1.ListIndexEndpointsRequest = (function() { + v1beta1.UpdateIndexRequest = (function() { /** - * Properties of a ListIndexEndpointsRequest. + * Properties of an UpdateIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListIndexEndpointsRequest - * @property {string|null} [parent] ListIndexEndpointsRequest parent - * @property {string|null} [filter] ListIndexEndpointsRequest filter - * @property {number|null} [pageSize] ListIndexEndpointsRequest pageSize - * @property {string|null} [pageToken] ListIndexEndpointsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListIndexEndpointsRequest readMask + * @interface IUpdateIndexRequest + * @property {google.cloud.aiplatform.v1beta1.IIndex|null} [index] UpdateIndexRequest index + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIndexRequest updateMask */ /** - * Constructs a new ListIndexEndpointsRequest. + * Constructs a new UpdateIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListIndexEndpointsRequest. - * @implements IListIndexEndpointsRequest + * @classdesc Represents an UpdateIndexRequest. + * @implements IUpdateIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest=} [properties] Properties to set */ - function ListIndexEndpointsRequest(properties) { + function UpdateIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -249744,131 +262114,89 @@ } /** - * ListIndexEndpointsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest - * @instance - */ - ListIndexEndpointsRequest.prototype.parent = ""; - - /** - * ListIndexEndpointsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest - * @instance - */ - ListIndexEndpointsRequest.prototype.filter = ""; - - /** - * ListIndexEndpointsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest - * @instance - */ - ListIndexEndpointsRequest.prototype.pageSize = 0; - - /** - * ListIndexEndpointsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * UpdateIndexRequest index. + * @member {google.cloud.aiplatform.v1beta1.IIndex|null|undefined} index + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @instance */ - ListIndexEndpointsRequest.prototype.pageToken = ""; + UpdateIndexRequest.prototype.index = null; /** - * ListIndexEndpointsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * UpdateIndexRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @instance */ - ListIndexEndpointsRequest.prototype.readMask = null; + UpdateIndexRequest.prototype.updateMask = null; /** - * Creates a new ListIndexEndpointsRequest instance using the specified properties. + * Creates a new UpdateIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest instance */ - ListIndexEndpointsRequest.create = function create(properties) { - return new ListIndexEndpointsRequest(properties); + UpdateIndexRequest.create = function create(properties) { + return new UpdateIndexRequest(properties); }; /** - * Encodes the specified ListIndexEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. + * Encodes the specified UpdateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} message UpdateIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexEndpointsRequest.encode = function encode(message, writer) { + UpdateIndexRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + $root.google.cloud.aiplatform.v1beta1.Index.encode(message.index, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListIndexEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. + * Encodes the specified UpdateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} message UpdateIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer. + * Decodes an UpdateIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @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.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexEndpointsRequest.decode = function decode(reader, length) { + UpdateIndexRequest.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.ListIndexEndpointsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.index = $root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32()); break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -249880,162 +262208,142 @@ }; /** - * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIndexEndpointsRequest message. + * Verifies an UpdateIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIndexEndpointsRequest.verify = function verify(message) { + UpdateIndexRequest.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.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.index != null && message.hasOwnProperty("index")) { + var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.index); if (error) - return "readMask." + error; + return "index." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a ListIndexEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest */ - ListIndexEndpointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) + UpdateIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest(); + if (object.index != null) { + if (typeof object.index !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexRequest.index: object expected"); + message.index = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.index); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a ListIndexEndpointsRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} message ListIndexEndpointsRequest + * @param {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} message UpdateIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIndexEndpointsRequest.toObject = function toObject(message, options) { + UpdateIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + object.index = null; + object.updateMask = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.index != null && message.hasOwnProperty("index")) + object.index = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.index, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ListIndexEndpointsRequest to JSON. + * Converts this UpdateIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @instance * @returns {Object.} JSON object */ - ListIndexEndpointsRequest.prototype.toJSON = function toJSON() { + UpdateIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListIndexEndpointsRequest + * Gets the default type url for UpdateIndexRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListIndexEndpointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateIndexRequest"; }; - return ListIndexEndpointsRequest; + return UpdateIndexRequest; })(); - v1beta1.ListIndexEndpointsResponse = (function() { + v1beta1.UpdateIndexOperationMetadata = (function() { /** - * Properties of a ListIndexEndpointsResponse. + * Properties of an UpdateIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListIndexEndpointsResponse - * @property {Array.|null} [indexEndpoints] ListIndexEndpointsResponse indexEndpoints - * @property {string|null} [nextPageToken] ListIndexEndpointsResponse nextPageToken + * @interface IUpdateIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateIndexOperationMetadata genericMetadata + * @property {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null} [nearestNeighborSearchOperationMetadata] UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ /** - * Constructs a new ListIndexEndpointsResponse. + * Constructs a new UpdateIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListIndexEndpointsResponse. - * @implements IListIndexEndpointsResponse + * @classdesc Represents an UpdateIndexOperationMetadata. + * @implements IUpdateIndexOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata=} [properties] Properties to set */ - function ListIndexEndpointsResponse(properties) { - this.indexEndpoints = []; + function UpdateIndexOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -250043,92 +262351,89 @@ } /** - * ListIndexEndpointsResponse indexEndpoints. - * @member {Array.} indexEndpoints - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * UpdateIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @instance */ - ListIndexEndpointsResponse.prototype.indexEndpoints = $util.emptyArray; + UpdateIndexOperationMetadata.prototype.genericMetadata = null; /** - * ListIndexEndpointsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. + * @member {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @instance */ - ListIndexEndpointsResponse.prototype.nextPageToken = ""; + UpdateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; /** - * Creates a new ListIndexEndpointsResponse instance using the specified properties. + * Creates a new UpdateIndexOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata instance */ - ListIndexEndpointsResponse.create = function create(properties) { - return new ListIndexEndpointsResponse(properties); + UpdateIndexOperationMetadata.create = function create(properties) { + return new UpdateIndexOperationMetadata(properties); }; /** - * Encodes the specified ListIndexEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. + * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexEndpointsResponse.encode = function encode(message, writer) { + UpdateIndexOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoints != null && message.indexEndpoints.length) - for (var i = 0; i < message.indexEndpoints.length; ++i) - $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoints[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nearestNeighborSearchOperationMetadata != null && Object.hasOwnProperty.call(message, "nearestNeighborSearchOperationMetadata")) + $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.encode(message.nearestNeighborSearchOperationMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListIndexEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. + * Encodes the specified UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexEndpointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer. + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @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.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexEndpointsResponse.decode = function decode(reader, length) { + UpdateIndexOperationMetadata.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.ListIndexEndpointsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.indexEndpoints && message.indexEndpoints.length)) - message.indexEndpoints = []; - message.indexEndpoints.push($root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32())); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } case 2: { - message.nextPageToken = reader.string(); + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -250140,149 +262445,141 @@ }; /** - * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexEndpointsResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIndexEndpointsResponse message. + * Verifies an UpdateIndexOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIndexEndpointsResponse.verify = function verify(message) { + UpdateIndexOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoints != null && message.hasOwnProperty("indexEndpoints")) { - if (!Array.isArray(message.indexEndpoints)) - return "indexEndpoints: array expected"; - for (var i = 0; i < message.indexEndpoints.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoints[i]); - if (error) - return "indexEndpoints." + error; - } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); + if (error) + return "nearestNeighborSearchOperationMetadata." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListIndexEndpointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata */ - ListIndexEndpointsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) + UpdateIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse(); - if (object.indexEndpoints) { - if (!Array.isArray(object.indexEndpoints)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.indexEndpoints: array expected"); - message.indexEndpoints = []; - for (var i = 0; i < object.indexEndpoints.length; ++i) { - if (typeof object.indexEndpoints[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.indexEndpoints: object expected"); - message.indexEndpoints[i] = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoints[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.nearestNeighborSearchOperationMetadata != null) { + if (typeof object.nearestNeighborSearchOperationMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListIndexEndpointsResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} message ListIndexEndpointsResponse + * @param {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} message UpdateIndexOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIndexEndpointsResponse.toObject = function toObject(message, options) { + UpdateIndexOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.indexEndpoints = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.indexEndpoints && message.indexEndpoints.length) { - object.indexEndpoints = []; - for (var j = 0; j < message.indexEndpoints.length; ++j) - object.indexEndpoints[j] = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoints[j], options); + if (options.defaults) { + object.genericMetadata = null; + object.nearestNeighborSearchOperationMetadata = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) + object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); return object; }; /** - * Converts this ListIndexEndpointsResponse to JSON. + * Converts this UpdateIndexOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @instance * @returns {Object.} JSON object */ - ListIndexEndpointsResponse.prototype.toJSON = function toJSON() { + UpdateIndexOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListIndexEndpointsResponse + * Gets the default type url for UpdateIndexOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListIndexEndpointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata"; }; - return ListIndexEndpointsResponse; + return UpdateIndexOperationMetadata; })(); - v1beta1.UpdateIndexEndpointRequest = (function() { + v1beta1.DeleteIndexRequest = (function() { /** - * Properties of an UpdateIndexEndpointRequest. + * Properties of a DeleteIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateIndexEndpointRequest - * @property {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null} [indexEndpoint] UpdateIndexEndpointRequest indexEndpoint - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIndexEndpointRequest updateMask + * @interface IDeleteIndexRequest + * @property {string|null} [name] DeleteIndexRequest name */ /** - * Constructs a new UpdateIndexEndpointRequest. + * Constructs a new DeleteIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateIndexEndpointRequest. - * @implements IUpdateIndexEndpointRequest + * @classdesc Represents a DeleteIndexRequest. + * @implements IDeleteIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set */ - function UpdateIndexEndpointRequest(properties) { + function DeleteIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -250290,89 +262587,75 @@ } /** - * UpdateIndexEndpointRequest indexEndpoint. - * @member {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null|undefined} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest - * @instance - */ - UpdateIndexEndpointRequest.prototype.indexEndpoint = null; - - /** - * UpdateIndexEndpointRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * DeleteIndexRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @instance */ - UpdateIndexEndpointRequest.prototype.updateMask = null; + DeleteIndexRequest.prototype.name = ""; /** - * Creates a new UpdateIndexEndpointRequest instance using the specified properties. + * Creates a new DeleteIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest instance */ - UpdateIndexEndpointRequest.create = function create(properties) { - return new UpdateIndexEndpointRequest(properties); + DeleteIndexRequest.create = function create(properties) { + return new DeleteIndexRequest(properties); }; /** - * Encodes the specified UpdateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. + * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} message UpdateIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexEndpointRequest.encode = function encode(message, writer) { + DeleteIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoint, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. + * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} message UpdateIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer. + * Decodes a DeleteIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @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.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexEndpointRequest.decode = function decode(reader, length) { + DeleteIndexRequest.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.UpdateIndexEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32()); - break; - } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -250384,141 +262667,124 @@ }; /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIndexEndpointRequest message. + * Verifies a DeleteIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIndexEndpointRequest.verify = function verify(message) { + DeleteIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoint); - if (error) - return "indexEndpoint." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest */ - UpdateIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest) + DeleteIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest(); - if (object.indexEndpoint != null) { - if (typeof object.indexEndpoint !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.indexEndpoint: object expected"); - message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoint); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateIndexEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} message UpdateIndexEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} message DeleteIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIndexEndpointRequest.toObject = function toObject(message, options) { + DeleteIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.indexEndpoint = null; - object.updateMask = null; - } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoint, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateIndexEndpointRequest to JSON. + * Converts this DeleteIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @instance * @returns {Object.} JSON object */ - UpdateIndexEndpointRequest.prototype.toJSON = function toJSON() { + DeleteIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateIndexEndpointRequest + * Gets the default type url for DeleteIndexRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteIndexRequest"; }; - return UpdateIndexEndpointRequest; + return DeleteIndexRequest; })(); - v1beta1.DeleteIndexEndpointRequest = (function() { + v1beta1.UpsertDatapointsRequest = (function() { /** - * Properties of a DeleteIndexEndpointRequest. + * Properties of an UpsertDatapointsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteIndexEndpointRequest - * @property {string|null} [name] DeleteIndexEndpointRequest name + * @interface IUpsertDatapointsRequest + * @property {string|null} [index] UpsertDatapointsRequest index + * @property {Array.|null} [datapoints] UpsertDatapointsRequest datapoints */ /** - * Constructs a new DeleteIndexEndpointRequest. + * Constructs a new UpsertDatapointsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteIndexEndpointRequest. - * @implements IDeleteIndexEndpointRequest + * @classdesc Represents an UpsertDatapointsRequest. + * @implements IUpsertDatapointsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest=} [properties] Properties to set */ - function DeleteIndexEndpointRequest(properties) { + function UpsertDatapointsRequest(properties) { + this.datapoints = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -250526,75 +262792,92 @@ } /** - * DeleteIndexEndpointRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * UpsertDatapointsRequest index. + * @member {string} index + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @instance */ - DeleteIndexEndpointRequest.prototype.name = ""; + UpsertDatapointsRequest.prototype.index = ""; /** - * Creates a new DeleteIndexEndpointRequest instance using the specified properties. + * UpsertDatapointsRequest datapoints. + * @member {Array.} datapoints + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @instance + */ + UpsertDatapointsRequest.prototype.datapoints = $util.emptyArray; + + /** + * Creates a new UpsertDatapointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest instance */ - DeleteIndexEndpointRequest.create = function create(properties) { - return new DeleteIndexEndpointRequest(properties); + UpsertDatapointsRequest.create = function create(properties) { + return new UpsertDatapointsRequest(properties); }; /** - * Encodes the specified DeleteIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * Encodes the specified UpsertDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} message UpsertDatapointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIndexEndpointRequest.encode = function encode(message, writer) { + UpsertDatapointsRequest.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); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.index); + if (message.datapoints != null && message.datapoints.length) + for (var i = 0; i < message.datapoints.length; ++i) + $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.encode(message.datapoints[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * Encodes the specified UpsertDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} message UpsertDatapointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpsertDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer. + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @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.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexEndpointRequest.decode = function decode(reader, length) { + UpsertDatapointsRequest.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.DeleteIndexEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.index = reader.string(); + break; + } + case 2: { + if (!(message.datapoints && message.datapoints.length)) + message.datapoints = []; + message.datapoints.push($root.google.cloud.aiplatform.v1beta1.IndexDatapoint.decode(reader, reader.uint32())); break; } default: @@ -250606,123 +262889,147 @@ }; /** - * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes an UpsertDatapointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + UpsertDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteIndexEndpointRequest message. + * Verifies an UpsertDatapointsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteIndexEndpointRequest.verify = function verify(message) { + UpsertDatapointsRequest.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"; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isString(message.index)) + return "index: string expected"; + if (message.datapoints != null && message.hasOwnProperty("datapoints")) { + if (!Array.isArray(message.datapoints)) + return "datapoints: array expected"; + for (var i = 0; i < message.datapoints.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.verify(message.datapoints[i]); + if (error) + return "datapoints." + error; + } + } return null; }; /** - * Creates a DeleteIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpsertDatapointsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest */ - DeleteIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest) + UpsertDatapointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest(); + if (object.index != null) + message.index = String(object.index); + if (object.datapoints) { + if (!Array.isArray(object.datapoints)) + throw TypeError(".google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.datapoints: array expected"); + message.datapoints = []; + for (var i = 0; i < object.datapoints.length; ++i) { + if (typeof object.datapoints[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.datapoints: object expected"); + message.datapoints[i] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.fromObject(object.datapoints[i]); + } + } return message; }; /** - * Creates a plain object from a DeleteIndexEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpsertDatapointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} message DeleteIndexEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} message UpsertDatapointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteIndexEndpointRequest.toObject = function toObject(message, options) { + UpsertDatapointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.datapoints = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.index = ""; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.datapoints && message.datapoints.length) { + object.datapoints = []; + for (var j = 0; j < message.datapoints.length; ++j) + object.datapoints[j] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.toObject(message.datapoints[j], options); + } return object; }; /** - * Converts this DeleteIndexEndpointRequest to JSON. + * Converts this UpsertDatapointsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @instance * @returns {Object.} JSON object */ - DeleteIndexEndpointRequest.prototype.toJSON = function toJSON() { + UpsertDatapointsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteIndexEndpointRequest + * Gets the default type url for UpsertDatapointsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteIndexEndpointRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpsertDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest"; }; - return DeleteIndexEndpointRequest; + return UpsertDatapointsRequest; })(); - v1beta1.DeployIndexRequest = (function() { + v1beta1.UpsertDatapointsResponse = (function() { /** - * Properties of a DeployIndexRequest. + * Properties of an UpsertDatapointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployIndexRequest - * @property {string|null} [indexEndpoint] DeployIndexRequest indexEndpoint - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] DeployIndexRequest deployedIndex + * @interface IUpsertDatapointsResponse */ /** - * Constructs a new DeployIndexRequest. + * Constructs a new UpsertDatapointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployIndexRequest. - * @implements IDeployIndexRequest + * @classdesc Represents an UpsertDatapointsResponse. + * @implements IUpsertDatapointsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse=} [properties] Properties to set */ - function DeployIndexRequest(properties) { + function UpsertDatapointsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -250730,91 +263037,63 @@ } /** - * DeployIndexRequest indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest - * @instance - */ - DeployIndexRequest.prototype.indexEndpoint = ""; - - /** - * DeployIndexRequest deployedIndex. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest - * @instance - */ - DeployIndexRequest.prototype.deployedIndex = null; - - /** - * Creates a new DeployIndexRequest instance using the specified properties. + * Creates a new UpsertDatapointsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse instance */ - DeployIndexRequest.create = function create(properties) { - return new DeployIndexRequest(properties); + UpsertDatapointsResponse.create = function create(properties) { + return new UpsertDatapointsResponse(properties); }; /** - * Encodes the specified DeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. + * Encodes the specified UpsertDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} message DeployIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse} message UpsertDatapointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexRequest.encode = function encode(message, writer) { + UpsertDatapointsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); - if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. + * Encodes the specified UpsertDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} message DeployIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse} message UpsertDatapointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpsertDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployIndexRequest message from the specified reader or buffer. + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @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.DeployIndexRequest} DeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexRequest.decode = function decode(reader, length) { + UpsertDatapointsResponse.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.DeployIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse(); while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.indexEndpoint = reader.string(); - break; - } - case 2: { - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); - break; - } + var tag = reader.uint32(); + switch (tag >>> 3) { default: reader.skipType(tag & 7); break; @@ -250824,136 +263103,111 @@ }; /** - * Decodes a DeployIndexRequest message from the specified reader or buffer, length delimited. + * Decodes an UpsertDatapointsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { + UpsertDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployIndexRequest message. + * Verifies an UpsertDatapointsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployIndexRequest.verify = function verify(message) { + UpsertDatapointsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - if (!$util.isString(message.indexEndpoint)) - return "indexEndpoint: string expected"; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); - if (error) - return "deployedIndex." + error; - } return null; }; /** - * Creates a DeployIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpsertDatapointsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse */ - DeployIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest) + UpsertDatapointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest(); - if (object.indexEndpoint != null) - message.indexEndpoint = String(object.indexEndpoint); - if (object.deployedIndex != null) { - if (typeof object.deployedIndex !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexRequest.deployedIndex: object expected"); - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); - } - return message; + return new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse(); }; /** - * Creates a plain object from a DeployIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpsertDatapointsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DeployIndexRequest} message DeployIndexRequest + * @param {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} message UpsertDatapointsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployIndexRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndex = null; - } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = message.indexEndpoint; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) - object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); - return object; + UpsertDatapointsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this DeployIndexRequest to JSON. + * Converts this UpsertDatapointsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @instance * @returns {Object.} JSON object */ - DeployIndexRequest.prototype.toJSON = function toJSON() { + UpsertDatapointsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployIndexRequest + * Gets the default type url for UpsertDatapointsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpsertDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployIndexRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse"; }; - return DeployIndexRequest; + return UpsertDatapointsResponse; })(); - v1beta1.DeployIndexResponse = (function() { + v1beta1.RemoveDatapointsRequest = (function() { /** - * Properties of a DeployIndexResponse. + * Properties of a RemoveDatapointsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployIndexResponse - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] DeployIndexResponse deployedIndex + * @interface IRemoveDatapointsRequest + * @property {string|null} [index] RemoveDatapointsRequest index + * @property {Array.|null} [datapointIds] RemoveDatapointsRequest datapointIds */ /** - * Constructs a new DeployIndexResponse. + * Constructs a new RemoveDatapointsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployIndexResponse. - * @implements IDeployIndexResponse + * @classdesc Represents a RemoveDatapointsRequest. + * @implements IRemoveDatapointsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest=} [properties] Properties to set */ - function DeployIndexResponse(properties) { + function RemoveDatapointsRequest(properties) { + this.datapointIds = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -250961,75 +263215,92 @@ } /** - * DeployIndexResponse deployedIndex. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * RemoveDatapointsRequest index. + * @member {string} index + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @instance */ - DeployIndexResponse.prototype.deployedIndex = null; + RemoveDatapointsRequest.prototype.index = ""; /** - * Creates a new DeployIndexResponse instance using the specified properties. + * RemoveDatapointsRequest datapointIds. + * @member {Array.} datapointIds + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @instance + */ + RemoveDatapointsRequest.prototype.datapointIds = $util.emptyArray; + + /** + * Creates a new RemoveDatapointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse instance + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest instance */ - DeployIndexResponse.create = function create(properties) { - return new DeployIndexResponse(properties); + RemoveDatapointsRequest.create = function create(properties) { + return new RemoveDatapointsRequest(properties); }; /** - * Encodes the specified DeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. + * Encodes the specified RemoveDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse} message DeployIndexResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} message RemoveDatapointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexResponse.encode = function encode(message, writer) { + RemoveDatapointsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.index); + if (message.datapointIds != null && message.datapointIds.length) + for (var i = 0; i < message.datapointIds.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.datapointIds[i]); return writer; }; /** - * Encodes the specified DeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. + * Encodes the specified RemoveDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse} message DeployIndexResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} message RemoveDatapointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + RemoveDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployIndexResponse message from the specified reader or buffer. + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @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.DeployIndexResponse} DeployIndexResponse + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexResponse.decode = function decode(reader, length) { + RemoveDatapointsRequest.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.DeployIndexResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); + message.index = reader.string(); + break; + } + case 2: { + if (!(message.datapointIds && message.datapointIds.length)) + message.datapointIds = []; + message.datapointIds.push(reader.string()); break; } default: @@ -251041,128 +263312,142 @@ }; /** - * Decodes a DeployIndexResponse message from the specified reader or buffer, length delimited. + * Decodes a RemoveDatapointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { + RemoveDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployIndexResponse message. + * Verifies a RemoveDatapointsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployIndexResponse.verify = function verify(message) { + RemoveDatapointsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); - if (error) - return "deployedIndex." + error; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isString(message.index)) + return "index: string expected"; + if (message.datapointIds != null && message.hasOwnProperty("datapointIds")) { + if (!Array.isArray(message.datapointIds)) + return "datapointIds: array expected"; + for (var i = 0; i < message.datapointIds.length; ++i) + if (!$util.isString(message.datapointIds[i])) + return "datapointIds: string[] expected"; } return null; }; /** - * Creates a DeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveDatapointsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest */ - DeployIndexResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexResponse) + RemoveDatapointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexResponse(); - if (object.deployedIndex != null) { - if (typeof object.deployedIndex !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexResponse.deployedIndex: object expected"); - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); + var message = new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest(); + if (object.index != null) + message.index = String(object.index); + if (object.datapointIds) { + if (!Array.isArray(object.datapointIds)) + throw TypeError(".google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.datapointIds: array expected"); + message.datapointIds = []; + for (var i = 0; i < object.datapointIds.length; ++i) + message.datapointIds[i] = String(object.datapointIds[i]); } return message; }; /** - * Creates a plain object from a DeployIndexResponse message. Also converts values to other types if specified. + * Creates a plain object from a RemoveDatapointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeployIndexResponse} message DeployIndexResponse + * @param {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} message RemoveDatapointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployIndexResponse.toObject = function toObject(message, options) { + RemoveDatapointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.datapointIds = []; if (options.defaults) - object.deployedIndex = null; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) - object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); + object.index = ""; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.datapointIds && message.datapointIds.length) { + object.datapointIds = []; + for (var j = 0; j < message.datapointIds.length; ++j) + object.datapointIds[j] = message.datapointIds[j]; + } return object; }; /** - * Converts this DeployIndexResponse to JSON. + * Converts this RemoveDatapointsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @instance * @returns {Object.} JSON object */ - DeployIndexResponse.prototype.toJSON = function toJSON() { + RemoveDatapointsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployIndexResponse + * Gets the default type url for RemoveDatapointsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployIndexResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest"; }; - return DeployIndexResponse; + return RemoveDatapointsRequest; })(); - v1beta1.DeployIndexOperationMetadata = (function() { + v1beta1.RemoveDatapointsResponse = (function() { /** - * Properties of a DeployIndexOperationMetadata. + * Properties of a RemoveDatapointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeployIndexOperationMetadata genericMetadata - * @property {string|null} [deployedIndexId] DeployIndexOperationMetadata deployedIndexId + * @interface IRemoveDatapointsResponse */ /** - * Constructs a new DeployIndexOperationMetadata. + * Constructs a new RemoveDatapointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployIndexOperationMetadata. - * @implements IDeployIndexOperationMetadata + * @classdesc Represents a RemoveDatapointsResponse. + * @implements IRemoveDatapointsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse=} [properties] Properties to set */ - function DeployIndexOperationMetadata(properties) { + function RemoveDatapointsResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -251170,91 +263455,63 @@ } /** - * DeployIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata - * @instance - */ - DeployIndexOperationMetadata.prototype.genericMetadata = null; - - /** - * DeployIndexOperationMetadata deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata - * @instance - */ - DeployIndexOperationMetadata.prototype.deployedIndexId = ""; - - /** - * Creates a new DeployIndexOperationMetadata instance using the specified properties. + * Creates a new RemoveDatapointsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse instance */ - DeployIndexOperationMetadata.create = function create(properties) { - return new DeployIndexOperationMetadata(properties); + RemoveDatapointsResponse.create = function create(properties) { + return new RemoveDatapointsResponse(properties); }; /** - * Encodes the specified DeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. + * Encodes the specified RemoveDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse} message RemoveDatapointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexOperationMetadata.encode = function encode(message, writer) { + RemoveDatapointsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); return writer; }; /** - * Encodes the specified DeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. + * Encodes the specified RemoveDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse} message RemoveDatapointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + RemoveDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer. + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @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.DeployIndexOperationMetadata} DeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexOperationMetadata.decode = function decode(reader, length) { + RemoveDatapointsResponse.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.DeployIndexOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); - break; - } - case 2: { - message.deployedIndexId = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -251264,137 +263521,111 @@ }; /** - * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a RemoveDatapointsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + RemoveDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployIndexOperationMetadata message. + * Verifies a RemoveDatapointsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployIndexOperationMetadata.verify = function verify(message) { + RemoveDatapointsResponse.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.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - if (!$util.isString(message.deployedIndexId)) - return "deployedIndexId: string expected"; return null; }; /** - * Creates a DeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a RemoveDatapointsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse */ - DeployIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata) + RemoveDatapointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.deployedIndexId != null) - message.deployedIndexId = String(object.deployedIndexId); - return message; + return new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse(); }; /** - * Creates a plain object from a DeployIndexOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a RemoveDatapointsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} message DeployIndexOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} message RemoveDatapointsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployIndexOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.deployedIndexId = ""; - } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - object.deployedIndexId = message.deployedIndexId; - return object; + RemoveDatapointsResponse.toObject = function toObject() { + return {}; }; /** - * Converts this DeployIndexOperationMetadata to JSON. + * Converts this RemoveDatapointsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @instance * @returns {Object.} JSON object */ - DeployIndexOperationMetadata.prototype.toJSON = function toJSON() { + RemoveDatapointsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeployIndexOperationMetadata + * Gets the default type url for RemoveDatapointsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeployIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + RemoveDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse"; }; - return DeployIndexOperationMetadata; + return RemoveDatapointsResponse; })(); - v1beta1.UndeployIndexRequest = (function() { + v1beta1.NearestNeighborSearchOperationMetadata = (function() { /** - * Properties of an UndeployIndexRequest. + * Properties of a NearestNeighborSearchOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUndeployIndexRequest - * @property {string|null} [indexEndpoint] UndeployIndexRequest indexEndpoint - * @property {string|null} [deployedIndexId] UndeployIndexRequest deployedIndexId + * @interface INearestNeighborSearchOperationMetadata + * @property {Array.|null} [contentValidationStats] NearestNeighborSearchOperationMetadata contentValidationStats + * @property {number|Long|null} [dataBytesCount] NearestNeighborSearchOperationMetadata dataBytesCount */ /** - * Constructs a new UndeployIndexRequest. + * Constructs a new NearestNeighborSearchOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployIndexRequest. - * @implements IUndeployIndexRequest + * @classdesc Represents a NearestNeighborSearchOperationMetadata. + * @implements INearestNeighborSearchOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set */ - function UndeployIndexRequest(properties) { + function NearestNeighborSearchOperationMetadata(properties) { + this.contentValidationStats = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -251402,89 +263633,92 @@ } /** - * UndeployIndexRequest indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * NearestNeighborSearchOperationMetadata contentValidationStats. + * @member {Array.} contentValidationStats + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @instance */ - UndeployIndexRequest.prototype.indexEndpoint = ""; + NearestNeighborSearchOperationMetadata.prototype.contentValidationStats = $util.emptyArray; /** - * UndeployIndexRequest deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * NearestNeighborSearchOperationMetadata dataBytesCount. + * @member {number|Long} dataBytesCount + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @instance */ - UndeployIndexRequest.prototype.deployedIndexId = ""; + NearestNeighborSearchOperationMetadata.prototype.dataBytesCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new UndeployIndexRequest instance using the specified properties. + * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata instance */ - UndeployIndexRequest.create = function create(properties) { - return new UndeployIndexRequest(properties); + NearestNeighborSearchOperationMetadata.create = function create(properties) { + return new NearestNeighborSearchOperationMetadata(properties); }; /** - * Encodes the specified UndeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. + * Encodes the specified NearestNeighborSearchOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} message UndeployIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployIndexRequest.encode = function encode(message, writer) { + NearestNeighborSearchOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); - if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); + if (message.contentValidationStats != null && message.contentValidationStats.length) + for (var i = 0; i < message.contentValidationStats.length; ++i) + $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.encode(message.contentValidationStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.dataBytesCount != null && Object.hasOwnProperty.call(message, "dataBytesCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.dataBytesCount); return writer; }; /** - * Encodes the specified UndeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. + * Encodes the specified NearestNeighborSearchOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} message UndeployIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + NearestNeighborSearchOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeployIndexRequest message from the specified reader or buffer. + * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @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.UndeployIndexRequest} UndeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployIndexRequest.decode = function decode(reader, length) { + NearestNeighborSearchOperationMetadata.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.UndeployIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.indexEndpoint = reader.string(); + if (!(message.contentValidationStats && message.contentValidationStats.length)) + message.contentValidationStats = []; + message.contentValidationStats.push($root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.decode(reader, reader.uint32())); break; } case 2: { - message.deployedIndexId = reader.string(); + message.dataBytesCount = reader.int64(); break; } default: @@ -251496,2128 +263730,2047 @@ }; /** - * Decodes an UndeployIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { + NearestNeighborSearchOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeployIndexRequest message. + * Verifies a NearestNeighborSearchOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UndeployIndexRequest.verify = function verify(message) { + NearestNeighborSearchOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - if (!$util.isString(message.indexEndpoint)) - return "indexEndpoint: string expected"; - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - if (!$util.isString(message.deployedIndexId)) - return "deployedIndexId: string expected"; + if (message.contentValidationStats != null && message.hasOwnProperty("contentValidationStats")) { + if (!Array.isArray(message.contentValidationStats)) + return "contentValidationStats: array expected"; + for (var i = 0; i < message.contentValidationStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify(message.contentValidationStats[i]); + if (error) + return "contentValidationStats." + error; + } + } + if (message.dataBytesCount != null && message.hasOwnProperty("dataBytesCount")) + if (!$util.isInteger(message.dataBytesCount) && !(message.dataBytesCount && $util.isInteger(message.dataBytesCount.low) && $util.isInteger(message.dataBytesCount.high))) + return "dataBytesCount: integer|Long expected"; return null; }; /** - * Creates an UndeployIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NearestNeighborSearchOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata */ - UndeployIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest) + NearestNeighborSearchOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest(); - if (object.indexEndpoint != null) - message.indexEndpoint = String(object.indexEndpoint); - if (object.deployedIndexId != null) - message.deployedIndexId = String(object.deployedIndexId); + var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata(); + if (object.contentValidationStats) { + if (!Array.isArray(object.contentValidationStats)) + throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.contentValidationStats: array expected"); + message.contentValidationStats = []; + for (var i = 0; i < object.contentValidationStats.length; ++i) { + if (typeof object.contentValidationStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.contentValidationStats: object expected"); + message.contentValidationStats[i] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.fromObject(object.contentValidationStats[i]); + } + } + if (object.dataBytesCount != null) + if ($util.Long) + (message.dataBytesCount = $util.Long.fromValue(object.dataBytesCount)).unsigned = false; + else if (typeof object.dataBytesCount === "string") + message.dataBytesCount = parseInt(object.dataBytesCount, 10); + else if (typeof object.dataBytesCount === "number") + message.dataBytesCount = object.dataBytesCount; + else if (typeof object.dataBytesCount === "object") + message.dataBytesCount = new $util.LongBits(object.dataBytesCount.low >>> 0, object.dataBytesCount.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from an UndeployIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from a NearestNeighborSearchOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} message UndeployIndexRequest + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeployIndexRequest.toObject = function toObject(message, options) { + NearestNeighborSearchOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndexId = ""; + if (options.arrays || options.defaults) + object.contentValidationStats = []; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.dataBytesCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.dataBytesCount = options.longs === String ? "0" : 0; + if (message.contentValidationStats && message.contentValidationStats.length) { + object.contentValidationStats = []; + for (var j = 0; j < message.contentValidationStats.length; ++j) + object.contentValidationStats[j] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.toObject(message.contentValidationStats[j], options); } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = message.indexEndpoint; - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - object.deployedIndexId = message.deployedIndexId; + if (message.dataBytesCount != null && message.hasOwnProperty("dataBytesCount")) + if (typeof message.dataBytesCount === "number") + object.dataBytesCount = options.longs === String ? String(message.dataBytesCount) : message.dataBytesCount; + else + object.dataBytesCount = options.longs === String ? $util.Long.prototype.toString.call(message.dataBytesCount) : options.longs === Number ? new $util.LongBits(message.dataBytesCount.low >>> 0, message.dataBytesCount.high >>> 0).toNumber() : message.dataBytesCount; return object; }; /** - * Converts this UndeployIndexRequest to JSON. + * Converts this NearestNeighborSearchOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @instance * @returns {Object.} JSON object */ - UndeployIndexRequest.prototype.toJSON = function toJSON() { + NearestNeighborSearchOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UndeployIndexRequest + * Gets the default type url for NearestNeighborSearchOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UndeployIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NearestNeighborSearchOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UndeployIndexRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata"; }; - return UndeployIndexRequest; - })(); + NearestNeighborSearchOperationMetadata.RecordError = (function() { - v1beta1.UndeployIndexResponse = (function() { + /** + * Properties of a RecordError. + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @interface IRecordError + * @property {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|null} [errorType] RecordError errorType + * @property {string|null} [errorMessage] RecordError errorMessage + * @property {string|null} [sourceGcsUri] RecordError sourceGcsUri + * @property {string|null} [embeddingId] RecordError embeddingId + * @property {string|null} [rawRecord] RecordError rawRecord + */ - /** - * Properties of an UndeployIndexResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUndeployIndexResponse - */ + /** + * Constructs a new RecordError. + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @classdesc Represents a RecordError. + * @implements IRecordError + * @constructor + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set + */ + function RecordError(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]]; + } - /** - * Constructs a new UndeployIndexResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployIndexResponse. - * @implements IUndeployIndexResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse=} [properties] Properties to set - */ - function UndeployIndexResponse(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]]; - } + /** + * RecordError errorType. + * @member {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType} errorType + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.errorType = 0; - /** - * Creates a new UndeployIndexResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse instance - */ - UndeployIndexResponse.create = function create(properties) { - return new UndeployIndexResponse(properties); - }; + /** + * RecordError errorMessage. + * @member {string} errorMessage + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.errorMessage = ""; - /** - * Encodes the specified UndeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse} message UndeployIndexResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UndeployIndexResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + /** + * RecordError sourceGcsUri. + * @member {string} sourceGcsUri + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.sourceGcsUri = ""; - /** - * Encodes the specified UndeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse} message UndeployIndexResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UndeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * RecordError embeddingId. + * @member {string} embeddingId + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.embeddingId = ""; - /** - * Decodes an UndeployIndexResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @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.UndeployIndexResponse} UndeployIndexResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UndeployIndexResponse.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.UndeployIndexResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { + /** + * RecordError rawRecord. + * @member {string} rawRecord + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.rawRecord = ""; + + /** + * Creates a new RecordError instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError instance + */ + RecordError.create = function create(properties) { + return new RecordError(properties); + }; + + /** + * Encodes the specified RecordError message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError} message RecordError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordError.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.errorType != null && Object.hasOwnProperty.call(message, "errorType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.errorType); + if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorMessage); + if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceGcsUri); + if (message.embeddingId != null && Object.hasOwnProperty.call(message, "embeddingId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.embeddingId); + if (message.rawRecord != null && Object.hasOwnProperty.call(message, "rawRecord")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.rawRecord); + return writer; + }; + + /** + * Encodes the specified RecordError message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError} message RecordError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordError.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecordError message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @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.NearestNeighborSearchOperationMetadata.RecordError} RecordError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordError.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.NearestNeighborSearchOperationMetadata.RecordError(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.errorType = reader.int32(); + break; + } + case 2: { + message.errorMessage = reader.string(); + break; + } + case 3: { + message.sourceGcsUri = reader.string(); + break; + } + case 4: { + message.embeddingId = reader.string(); + break; + } + case 5: { + message.rawRecord = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RecordError message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordError.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecordError message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecordError.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.errorType != null && message.hasOwnProperty("errorType")) + switch (message.errorType) { + default: + return "errorType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + if (!$util.isString(message.errorMessage)) + return "errorMessage: string expected"; + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + if (!$util.isString(message.sourceGcsUri)) + return "sourceGcsUri: string expected"; + if (message.embeddingId != null && message.hasOwnProperty("embeddingId")) + if (!$util.isString(message.embeddingId)) + return "embeddingId: string expected"; + if (message.rawRecord != null && message.hasOwnProperty("rawRecord")) + if (!$util.isString(message.rawRecord)) + return "rawRecord: string expected"; + return null; + }; + + /** + * Creates a RecordError message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError + */ + RecordError.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError(); + switch (object.errorType) { default: - reader.skipType(tag & 7); + if (typeof object.errorType === "number") { + message.errorType = object.errorType; + break; + } + break; + case "ERROR_TYPE_UNSPECIFIED": + case 0: + message.errorType = 0; + break; + case "EMPTY_LINE": + case 1: + message.errorType = 1; + break; + case "INVALID_JSON_SYNTAX": + case 2: + message.errorType = 2; + break; + case "INVALID_CSV_SYNTAX": + case 3: + message.errorType = 3; + break; + case "INVALID_AVRO_SYNTAX": + case 4: + message.errorType = 4; + break; + case "INVALID_EMBEDDING_ID": + case 5: + message.errorType = 5; + break; + case "EMBEDDING_SIZE_MISMATCH": + case 6: + message.errorType = 6; break; + case "NAMESPACE_MISSING": + case 7: + message.errorType = 7; + break; + } + if (object.errorMessage != null) + message.errorMessage = String(object.errorMessage); + if (object.sourceGcsUri != null) + message.sourceGcsUri = String(object.sourceGcsUri); + if (object.embeddingId != null) + message.embeddingId = String(object.embeddingId); + if (object.rawRecord != null) + message.rawRecord = String(object.rawRecord); + return message; + }; + + /** + * Creates a plain object from a RecordError message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} message RecordError + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordError.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.errorType = options.enums === String ? "ERROR_TYPE_UNSPECIFIED" : 0; + object.errorMessage = ""; + object.sourceGcsUri = ""; + object.embeddingId = ""; + object.rawRecord = ""; + } + if (message.errorType != null && message.hasOwnProperty("errorType")) + object.errorType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType[message.errorType] === undefined ? message.errorType : $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType[message.errorType] : message.errorType; + if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + object.errorMessage = message.errorMessage; + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + object.sourceGcsUri = message.sourceGcsUri; + if (message.embeddingId != null && message.hasOwnProperty("embeddingId")) + object.embeddingId = message.embeddingId; + if (message.rawRecord != null && message.hasOwnProperty("rawRecord")) + object.rawRecord = message.rawRecord; + return object; + }; + + /** + * Converts this RecordError to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + * @returns {Object.} JSON object + */ + RecordError.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for RecordError + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecordError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; } - } - return message; - }; - - /** - * Decodes an UndeployIndexResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UndeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError"; + }; - /** - * Verifies an UndeployIndexResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UndeployIndexResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + /** + * RecordErrorType enum. + * @name google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType + * @enum {number} + * @property {number} ERROR_TYPE_UNSPECIFIED=0 ERROR_TYPE_UNSPECIFIED value + * @property {number} EMPTY_LINE=1 EMPTY_LINE value + * @property {number} INVALID_JSON_SYNTAX=2 INVALID_JSON_SYNTAX value + * @property {number} INVALID_CSV_SYNTAX=3 INVALID_CSV_SYNTAX value + * @property {number} INVALID_AVRO_SYNTAX=4 INVALID_AVRO_SYNTAX value + * @property {number} INVALID_EMBEDDING_ID=5 INVALID_EMBEDDING_ID value + * @property {number} EMBEDDING_SIZE_MISMATCH=6 EMBEDDING_SIZE_MISMATCH value + * @property {number} NAMESPACE_MISSING=7 NAMESPACE_MISSING value + */ + RecordError.RecordErrorType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ERROR_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EMPTY_LINE"] = 1; + values[valuesById[2] = "INVALID_JSON_SYNTAX"] = 2; + values[valuesById[3] = "INVALID_CSV_SYNTAX"] = 3; + values[valuesById[4] = "INVALID_AVRO_SYNTAX"] = 4; + values[valuesById[5] = "INVALID_EMBEDDING_ID"] = 5; + values[valuesById[6] = "EMBEDDING_SIZE_MISMATCH"] = 6; + values[valuesById[7] = "NAMESPACE_MISSING"] = 7; + return values; + })(); - /** - * Creates an UndeployIndexResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse - */ - UndeployIndexResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse) - return object; - return new $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse(); - }; + return RecordError; + })(); - /** - * Creates a plain object from an UndeployIndexResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} message UndeployIndexResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UndeployIndexResponse.toObject = function toObject() { - return {}; - }; + NearestNeighborSearchOperationMetadata.ContentValidationStats = (function() { - /** - * Converts this UndeployIndexResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @instance - * @returns {Object.} JSON object - */ - UndeployIndexResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of a ContentValidationStats. + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @interface IContentValidationStats + * @property {string|null} [sourceGcsUri] ContentValidationStats sourceGcsUri + * @property {number|Long|null} [validRecordCount] ContentValidationStats validRecordCount + * @property {number|Long|null} [invalidRecordCount] ContentValidationStats invalidRecordCount + * @property {Array.|null} [partialErrors] ContentValidationStats partialErrors + */ - /** - * Gets the default type url for UndeployIndexResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UndeployIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + /** + * Constructs a new ContentValidationStats. + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @classdesc Represents a ContentValidationStats. + * @implements IContentValidationStats + * @constructor + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set + */ + function ContentValidationStats(properties) { + this.partialErrors = []; + 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]]; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UndeployIndexResponse"; - }; - return UndeployIndexResponse; - })(); - - v1beta1.UndeployIndexOperationMetadata = (function() { + /** + * ContentValidationStats sourceGcsUri. + * @member {string} sourceGcsUri + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.sourceGcsUri = ""; - /** - * Properties of an UndeployIndexOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUndeployIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UndeployIndexOperationMetadata genericMetadata - */ + /** + * ContentValidationStats validRecordCount. + * @member {number|Long} validRecordCount + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.validRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Constructs a new UndeployIndexOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployIndexOperationMetadata. - * @implements IUndeployIndexOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata=} [properties] Properties to set - */ - function UndeployIndexOperationMetadata(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]]; - } + /** + * ContentValidationStats invalidRecordCount. + * @member {number|Long} invalidRecordCount + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.invalidRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * UndeployIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @instance - */ - UndeployIndexOperationMetadata.prototype.genericMetadata = null; + /** + * ContentValidationStats partialErrors. + * @member {Array.} partialErrors + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.partialErrors = $util.emptyArray; - /** - * Creates a new UndeployIndexOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata instance - */ - UndeployIndexOperationMetadata.create = function create(properties) { - return new UndeployIndexOperationMetadata(properties); - }; + /** + * Creates a new ContentValidationStats instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats instance + */ + ContentValidationStats.create = function create(properties) { + return new ContentValidationStats(properties); + }; - /** - * Encodes the specified UndeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UndeployIndexOperationMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContentValidationStats.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceGcsUri); + if (message.validRecordCount != null && Object.hasOwnProperty.call(message, "validRecordCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.validRecordCount); + if (message.invalidRecordCount != null && Object.hasOwnProperty.call(message, "invalidRecordCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.invalidRecordCount); + if (message.partialErrors != null && message.partialErrors.length) + for (var i = 0; i < message.partialErrors.length; ++i) + $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.encode(message.partialErrors[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified UndeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UndeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContentValidationStats.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @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.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UndeployIndexOperationMetadata.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.UndeployIndexOperationMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + /** + * Decodes a ContentValidationStats message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @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.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContentValidationStats.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.NearestNeighborSearchOperationMetadata.ContentValidationStats(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.sourceGcsUri = reader.string(); + break; + } + case 2: { + message.validRecordCount = reader.int64(); + break; + } + case 3: { + message.invalidRecordCount = reader.int64(); + break; + } + case 4: { + if (!(message.partialErrors && message.partialErrors.length)) + message.partialErrors = []; + message.partialErrors.push($root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UndeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ContentValidationStats message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContentValidationStats.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an UndeployIndexOperationMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UndeployIndexOperationMetadata.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.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - return null; - }; + /** + * Verifies a ContentValidationStats message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContentValidationStats.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + if (!$util.isString(message.sourceGcsUri)) + return "sourceGcsUri: string expected"; + if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) + if (!$util.isInteger(message.validRecordCount) && !(message.validRecordCount && $util.isInteger(message.validRecordCount.low) && $util.isInteger(message.validRecordCount.high))) + return "validRecordCount: integer|Long expected"; + if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) + if (!$util.isInteger(message.invalidRecordCount) && !(message.invalidRecordCount && $util.isInteger(message.invalidRecordCount.low) && $util.isInteger(message.invalidRecordCount.high))) + return "invalidRecordCount: integer|Long expected"; + if (message.partialErrors != null && message.hasOwnProperty("partialErrors")) { + if (!Array.isArray(message.partialErrors)) + return "partialErrors: array expected"; + for (var i = 0; i < message.partialErrors.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify(message.partialErrors[i]); + if (error) + return "partialErrors." + error; + } + } + return null; + }; - /** - * Creates an UndeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata - */ - UndeployIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata) + /** + * Creates a ContentValidationStats message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats + */ + ContentValidationStats.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); + if (object.sourceGcsUri != null) + message.sourceGcsUri = String(object.sourceGcsUri); + if (object.validRecordCount != null) + if ($util.Long) + (message.validRecordCount = $util.Long.fromValue(object.validRecordCount)).unsigned = false; + else if (typeof object.validRecordCount === "string") + message.validRecordCount = parseInt(object.validRecordCount, 10); + else if (typeof object.validRecordCount === "number") + message.validRecordCount = object.validRecordCount; + else if (typeof object.validRecordCount === "object") + message.validRecordCount = new $util.LongBits(object.validRecordCount.low >>> 0, object.validRecordCount.high >>> 0).toNumber(); + if (object.invalidRecordCount != null) + if ($util.Long) + (message.invalidRecordCount = $util.Long.fromValue(object.invalidRecordCount)).unsigned = false; + else if (typeof object.invalidRecordCount === "string") + message.invalidRecordCount = parseInt(object.invalidRecordCount, 10); + else if (typeof object.invalidRecordCount === "number") + message.invalidRecordCount = object.invalidRecordCount; + else if (typeof object.invalidRecordCount === "object") + message.invalidRecordCount = new $util.LongBits(object.invalidRecordCount.low >>> 0, object.invalidRecordCount.high >>> 0).toNumber(); + if (object.partialErrors) { + if (!Array.isArray(object.partialErrors)) + throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: array expected"); + message.partialErrors = []; + for (var i = 0; i < object.partialErrors.length; ++i) { + if (typeof object.partialErrors[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: object expected"); + message.partialErrors[i] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.fromObject(object.partialErrors[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} message ContentValidationStats + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ContentValidationStats.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.partialErrors = []; + if (options.defaults) { + object.sourceGcsUri = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.validRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.validRecordCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.invalidRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.invalidRecordCount = options.longs === String ? "0" : 0; + } + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + object.sourceGcsUri = message.sourceGcsUri; + if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) + if (typeof message.validRecordCount === "number") + object.validRecordCount = options.longs === String ? String(message.validRecordCount) : message.validRecordCount; + else + object.validRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.validRecordCount) : options.longs === Number ? new $util.LongBits(message.validRecordCount.low >>> 0, message.validRecordCount.high >>> 0).toNumber() : message.validRecordCount; + if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) + if (typeof message.invalidRecordCount === "number") + object.invalidRecordCount = options.longs === String ? String(message.invalidRecordCount) : message.invalidRecordCount; + else + object.invalidRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRecordCount) : options.longs === Number ? new $util.LongBits(message.invalidRecordCount.low >>> 0, message.invalidRecordCount.high >>> 0).toNumber() : message.invalidRecordCount; + if (message.partialErrors && message.partialErrors.length) { + object.partialErrors = []; + for (var j = 0; j < message.partialErrors.length; ++j) + object.partialErrors[j] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.toObject(message.partialErrors[j], options); + } return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - return message; - }; + }; - /** - * Creates a plain object from an UndeployIndexOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} message UndeployIndexOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UndeployIndexOperationMetadata.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.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - return object; - }; + /** + * Converts this ContentValidationStats to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + * @returns {Object.} JSON object + */ + ContentValidationStats.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this UndeployIndexOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @instance - * @returns {Object.} JSON object - */ - UndeployIndexOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for ContentValidationStats + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ContentValidationStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats"; + }; - /** - * Gets the default type url for UndeployIndexOperationMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UndeployIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata"; - }; + return ContentValidationStats; + })(); - return UndeployIndexOperationMetadata; + return NearestNeighborSearchOperationMetadata; })(); - v1beta1.MutateDeployedIndexRequest = (function() { - - /** - * Properties of a MutateDeployedIndexRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMutateDeployedIndexRequest - * @property {string|null} [indexEndpoint] MutateDeployedIndexRequest indexEndpoint - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexRequest deployedIndex - */ + v1beta1.JobService = (function() { /** - * Constructs a new MutateDeployedIndexRequest. + * Constructs a new JobService service. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MutateDeployedIndexRequest. - * @implements IMutateDeployedIndexRequest + * @classdesc Represents a JobService + * @extends $protobuf.rpc.Service * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest=} [properties] Properties to set + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function MutateDeployedIndexRequest(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]]; + function JobService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - /** - * MutateDeployedIndexRequest indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @instance - */ - MutateDeployedIndexRequest.prototype.indexEndpoint = ""; - - /** - * MutateDeployedIndexRequest deployedIndex. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @instance - */ - MutateDeployedIndexRequest.prototype.deployedIndex = null; + (JobService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = JobService; /** - * Creates a new MutateDeployedIndexRequest instance using the specified properties. + * Creates new JobService service using the specified rpc implementation. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.JobService * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest instance + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {JobService} RPC service. Useful where requests and/or responses are streamed. */ - MutateDeployedIndexRequest.create = function create(properties) { - return new MutateDeployedIndexRequest(properties); + JobService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Encodes the specified MutateDeployedIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createCustomJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateCustomJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.CustomJob} [response] CustomJob */ - MutateDeployedIndexRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); - if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; /** - * Encodes the specified MutateDeployedIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateCustomJob. + * @function createCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(JobService.prototype.createCustomJob = function createCustomJob(request, callback) { + return this.rpcCall(createCustomJob, $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, $root.google.cloud.aiplatform.v1beta1.CustomJob, request, callback); + }, "name", { value: "CreateCustomJob" }); /** - * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @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.MutateDeployedIndexRequest} MutateDeployedIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateCustomJob. + * @function createCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexRequest.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.MutateDeployedIndexRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.indexEndpoint = reader.string(); - break; - } - case 2: { - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getCustomJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetCustomJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.CustomJob} [response] CustomJob */ - MutateDeployedIndexRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a MutateDeployedIndexRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetCustomJob. + * @function getCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - if (!$util.isString(message.indexEndpoint)) - return "indexEndpoint: string expected"; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); - if (error) - return "deployedIndex." + error; - } - return null; - }; + Object.defineProperty(JobService.prototype.getCustomJob = function getCustomJob(request, callback) { + return this.rpcCall(getCustomJob, $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest, $root.google.cloud.aiplatform.v1beta1.CustomJob, request, callback); + }, "name", { value: "GetCustomJob" }); /** - * Creates a MutateDeployedIndexRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest + * Calls GetCustomJob. + * @function getCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest(); - if (object.indexEndpoint != null) - message.indexEndpoint = String(object.indexEndpoint); - if (object.deployedIndex != null) { - if (typeof object.deployedIndex !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.deployedIndex: object expected"); - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); - } - return message; - }; /** - * Creates a plain object from a MutateDeployedIndexRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} message MutateDeployedIndexRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listCustomJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListCustomJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} [response] ListCustomJobsResponse */ - MutateDeployedIndexRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndex = null; - } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = message.indexEndpoint; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) - object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); - return object; - }; /** - * Converts this MutateDeployedIndexRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * Calls ListCustomJobs. + * @function listCustomJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback} callback Node-style callback called with the error, if any, and ListCustomJobsResponse + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(JobService.prototype.listCustomJobs = function listCustomJobs(request, callback) { + return this.rpcCall(listCustomJobs, $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse, request, callback); + }, "name", { value: "ListCustomJobs" }); /** - * Gets the default type url for MutateDeployedIndexRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls ListCustomJobs. + * @function listCustomJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest"; - }; - - return MutateDeployedIndexRequest; - })(); - - v1beta1.MutateDeployedIndexResponse = (function() { /** - * Properties of a MutateDeployedIndexResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMutateDeployedIndexResponse - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexResponse deployedIndex + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteCustomJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteCustomJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ /** - * Constructs a new MutateDeployedIndexResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MutateDeployedIndexResponse. - * @implements IMutateDeployedIndexResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse=} [properties] Properties to set + * Calls DeleteCustomJob. + * @function deleteCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - function MutateDeployedIndexResponse(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]]; - } + Object.defineProperty(JobService.prototype.deleteCustomJob = function deleteCustomJob(request, callback) { + return this.rpcCall(deleteCustomJob, $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteCustomJob" }); /** - * MutateDeployedIndexResponse deployedIndex. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * Calls DeleteCustomJob. + * @function deleteCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexResponse.prototype.deployedIndex = null; /** - * Creates a new MutateDeployedIndexResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelCustomJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CancelCustomJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - MutateDeployedIndexResponse.create = function create(properties) { - return new MutateDeployedIndexResponse(properties); - }; /** - * Encodes the specified MutateDeployedIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CancelCustomJob. + * @function cancelCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + Object.defineProperty(JobService.prototype.cancelCustomJob = function cancelCustomJob(request, callback) { + return this.rpcCall(cancelCustomJob, $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelCustomJob" }); /** - * Encodes the specified MutateDeployedIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CancelCustomJob. + * @function cancelCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @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.MutateDeployedIndexResponse} MutateDeployedIndexResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MutateDeployedIndexResponse.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.MutateDeployedIndexResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} [response] DataLabelingJob + */ /** - * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateDataLabelingJob. + * @function createDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.createDataLabelingJob = function createDataLabelingJob(request, callback) { + return this.rpcCall(createDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, $root.google.cloud.aiplatform.v1beta1.DataLabelingJob, request, callback); + }, "name", { value: "CreateDataLabelingJob" }); /** - * Verifies a MutateDeployedIndexResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateDataLabelingJob. + * @function createDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); - if (error) - return "deployedIndex." + error; - } - return null; - }; /** - * Creates a MutateDeployedIndexResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} [response] DataLabelingJob */ - MutateDeployedIndexResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse(); - if (object.deployedIndex != null) { - if (typeof object.deployedIndex !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.deployedIndex: object expected"); - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); - } - return message; - }; /** - * Creates a plain object from a MutateDeployedIndexResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} message MutateDeployedIndexResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetDataLabelingJob. + * @function getDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.deployedIndex = null; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) - object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); - return object; - }; + Object.defineProperty(JobService.prototype.getDataLabelingJob = function getDataLabelingJob(request, callback) { + return this.rpcCall(getDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, $root.google.cloud.aiplatform.v1beta1.DataLabelingJob, request, callback); + }, "name", { value: "GetDataLabelingJob" }); /** - * Converts this MutateDeployedIndexResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * Calls GetDataLabelingJob. + * @function getDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for MutateDeployedIndexResponse - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listDataLabelingJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListDataLabelingJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} [response] ListDataLabelingJobsResponse */ - MutateDeployedIndexResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse"; - }; - - return MutateDeployedIndexResponse; - })(); - v1beta1.MutateDeployedIndexOperationMetadata = (function() { + /** + * Calls ListDataLabelingJobs. + * @function listDataLabelingJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback} callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.listDataLabelingJobs = function listDataLabelingJobs(request, callback) { + return this.rpcCall(listDataLabelingJobs, $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse, request, callback); + }, "name", { value: "ListDataLabelingJobs" }); /** - * Properties of a MutateDeployedIndexOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMutateDeployedIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] MutateDeployedIndexOperationMetadata genericMetadata - * @property {string|null} [deployedIndexId] MutateDeployedIndexOperationMetadata deployedIndexId + * Calls ListDataLabelingJobs. + * @function listDataLabelingJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new MutateDeployedIndexOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MutateDeployedIndexOperationMetadata. - * @implements IMutateDeployedIndexOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - function MutateDeployedIndexOperationMetadata(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]]; - } /** - * MutateDeployedIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * Calls DeleteDataLabelingJob. + * @function deleteDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexOperationMetadata.prototype.genericMetadata = null; + Object.defineProperty(JobService.prototype.deleteDataLabelingJob = function deleteDataLabelingJob(request, callback) { + return this.rpcCall(deleteDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteDataLabelingJob" }); /** - * MutateDeployedIndexOperationMetadata deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * Calls DeleteDataLabelingJob. + * @function deleteDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexOperationMetadata.prototype.deployedIndexId = ""; /** - * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CancelDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - MutateDeployedIndexOperationMetadata.create = function create(properties) { - return new MutateDeployedIndexOperationMetadata(properties); - }; /** - * Encodes the specified MutateDeployedIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CancelDataLabelingJob. + * @function cancelDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexOperationMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); - return writer; - }; + Object.defineProperty(JobService.prototype.cancelDataLabelingJob = function cancelDataLabelingJob(request, callback) { + return this.rpcCall(cancelDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelDataLabelingJob" }); /** - * Encodes the specified MutateDeployedIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CancelDataLabelingJob. + * @function cancelDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @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.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateHyperparameterTuningJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} [response] HyperparameterTuningJob */ - MutateDeployedIndexOperationMetadata.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.MutateDeployedIndexOperationMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); - break; - } - case 2: { - message.deployedIndexId = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateHyperparameterTuningJob. + * @function createHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.createHyperparameterTuningJob = function createHyperparameterTuningJob(request, callback) { + return this.rpcCall(createHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, request, callback); + }, "name", { value: "CreateHyperparameterTuningJob" }); /** - * Verifies a MutateDeployedIndexOperationMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateHyperparameterTuningJob. + * @function createHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexOperationMetadata.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.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - if (!$util.isString(message.deployedIndexId)) - return "deployedIndexId: string expected"; - return null; - }; /** - * Creates a MutateDeployedIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetHyperparameterTuningJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} [response] HyperparameterTuningJob */ - MutateDeployedIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.deployedIndexId != null) - message.deployedIndexId = String(object.deployedIndexId); - return message; - }; /** - * Creates a plain object from a MutateDeployedIndexOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetHyperparameterTuningJob. + * @function getHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * @returns {undefined} + * @variation 1 */ - MutateDeployedIndexOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.deployedIndexId = ""; - } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - object.deployedIndexId = message.deployedIndexId; - return object; - }; + Object.defineProperty(JobService.prototype.getHyperparameterTuningJob = function getHyperparameterTuningJob(request, callback) { + return this.rpcCall(getHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, request, callback); + }, "name", { value: "GetHyperparameterTuningJob" }); /** - * Converts this MutateDeployedIndexOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * Calls GetHyperparameterTuningJob. + * @function getHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - MutateDeployedIndexOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for MutateDeployedIndexOperationMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listHyperparameterTuningJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListHyperparameterTuningJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} [response] ListHyperparameterTuningJobsResponse */ - MutateDeployedIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata"; - }; - - return MutateDeployedIndexOperationMetadata; - })(); - - v1beta1.IndexService = (function() { /** - * Constructs a new IndexService service. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IndexService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * Calls ListHyperparameterTuningJobs. + * @function listHyperparameterTuningJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback} callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse + * @returns {undefined} + * @variation 1 */ - function IndexService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (IndexService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexService; + Object.defineProperty(JobService.prototype.listHyperparameterTuningJobs = function listHyperparameterTuningJobs(request, callback) { + return this.rpcCall(listHyperparameterTuningJobs, $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse, request, callback); + }, "name", { value: "ListHyperparameterTuningJobs" }); /** - * Creates new IndexService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {IndexService} RPC service. Useful where requests and/or responses are streamed. + * Calls ListHyperparameterTuningJobs. + * @function listHyperparameterTuningJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - IndexService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|createIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef CreateIndexCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteHyperparameterTuningJobCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls CreateIndex. - * @function createIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls DeleteHyperparameterTuningJob. + * @function deleteHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} request CreateIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.CreateIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.createIndex = function createIndex(request, callback) { - return this.rpcCall(createIndex, $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateIndex" }); + Object.defineProperty(JobService.prototype.deleteHyperparameterTuningJob = function deleteHyperparameterTuningJob(request, callback) { + return this.rpcCall(deleteHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteHyperparameterTuningJob" }); /** - * Calls CreateIndex. - * @function createIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls DeleteHyperparameterTuningJob. + * @function deleteHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} request CreateIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|getIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef GetIndexCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CancelHyperparameterTuningJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Index} [response] Index + * @param {google.protobuf.Empty} [response] Empty */ /** - * Calls GetIndex. - * @function getIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls CancelHyperparameterTuningJob. + * @function cancelHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} request GetIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.GetIndexCallback} callback Node-style callback called with the error, if any, and Index + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.getIndex = function getIndex(request, callback) { - return this.rpcCall(getIndex, $root.google.cloud.aiplatform.v1beta1.GetIndexRequest, $root.google.cloud.aiplatform.v1beta1.Index, request, callback); - }, "name", { value: "GetIndex" }); + Object.defineProperty(JobService.prototype.cancelHyperparameterTuningJob = function cancelHyperparameterTuningJob(request, callback) { + return this.rpcCall(cancelHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelHyperparameterTuningJob" }); /** - * Calls GetIndex. - * @function getIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls CancelHyperparameterTuningJob. + * @function cancelHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} request GetIndexRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|listIndexes}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef ListIndexesCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createNasJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateNasJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListIndexesResponse} [response] ListIndexesResponse + * @param {google.cloud.aiplatform.v1beta1.NasJob} [response] NasJob */ /** - * Calls ListIndexes. - * @function listIndexes - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls CreateNasJob. + * @function createNasJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} request ListIndexesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.ListIndexesCallback} callback Node-style callback called with the error, if any, and ListIndexesResponse + * @param {google.cloud.aiplatform.v1beta1.ICreateNasJobRequest} request CreateNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateNasJobCallback} callback Node-style callback called with the error, if any, and NasJob * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.listIndexes = function listIndexes(request, callback) { - return this.rpcCall(listIndexes, $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest, $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse, request, callback); - }, "name", { value: "ListIndexes" }); + Object.defineProperty(JobService.prototype.createNasJob = function createNasJob(request, callback) { + return this.rpcCall(createNasJob, $root.google.cloud.aiplatform.v1beta1.CreateNasJobRequest, $root.google.cloud.aiplatform.v1beta1.NasJob, request, callback); + }, "name", { value: "CreateNasJob" }); /** - * Calls ListIndexes. - * @function listIndexes - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls CreateNasJob. + * @function createNasJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} request ListIndexesRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.ICreateNasJobRequest} request CreateNasJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|updateIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef UpdateIndexCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getNasJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetNasJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.aiplatform.v1beta1.NasJob} [response] NasJob */ /** - * Calls UpdateIndex. - * @function updateIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls GetNasJob. + * @function getNasJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} request UpdateIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.UpdateIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1beta1.IGetNasJobRequest} request GetNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetNasJobCallback} callback Node-style callback called with the error, if any, and NasJob * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.updateIndex = function updateIndex(request, callback) { - return this.rpcCall(updateIndex, $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateIndex" }); + Object.defineProperty(JobService.prototype.getNasJob = function getNasJob(request, callback) { + return this.rpcCall(getNasJob, $root.google.cloud.aiplatform.v1beta1.GetNasJobRequest, $root.google.cloud.aiplatform.v1beta1.NasJob, request, callback); + }, "name", { value: "GetNasJob" }); /** - * Calls UpdateIndex. - * @function updateIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls GetNasJob. + * @function getNasJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} request UpdateIndexRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IGetNasJobRequest} request GetNasJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|deleteIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef DeleteIndexCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listNasJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListNasJobsCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @param {google.cloud.aiplatform.v1beta1.ListNasJobsResponse} [response] ListNasJobsResponse */ /** - * Calls DeleteIndex. - * @function deleteIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls ListNasJobs. + * @function listNasJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.DeleteIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsRequest} request ListNasJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListNasJobsCallback} callback Node-style callback called with the error, if any, and ListNasJobsResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.deleteIndex = function deleteIndex(request, callback) { - return this.rpcCall(deleteIndex, $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteIndex" }); + Object.defineProperty(JobService.prototype.listNasJobs = function listNasJobs(request, callback) { + return this.rpcCall(listNasJobs, $root.google.cloud.aiplatform.v1beta1.ListNasJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListNasJobsResponse, request, callback); + }, "name", { value: "ListNasJobs" }); /** - * Calls DeleteIndex. - * @function deleteIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls ListNasJobs. + * @function listNasJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsRequest} request ListNasJobsRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|upsertDatapoints}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef UpsertDatapointsCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteNasJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteNasJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} [response] UpsertDatapointsResponse + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls UpsertDatapoints. - * @function upsertDatapoints - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls DeleteNasJob. + * @function deleteNasJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} request UpsertDatapointsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.UpsertDatapointsCallback} callback Node-style callback called with the error, if any, and UpsertDatapointsResponse + * @param {google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest} request DeleteNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteNasJobCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.upsertDatapoints = function upsertDatapoints(request, callback) { - return this.rpcCall(upsertDatapoints, $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest, $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse, request, callback); - }, "name", { value: "UpsertDatapoints" }); + Object.defineProperty(JobService.prototype.deleteNasJob = function deleteNasJob(request, callback) { + return this.rpcCall(deleteNasJob, $root.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteNasJob" }); /** - * Calls UpsertDatapoints. - * @function upsertDatapoints - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls DeleteNasJob. + * @function deleteNasJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} request UpsertDatapointsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest} request DeleteNasJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService|removeDatapoints}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef RemoveDatapointsCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelNasJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CancelNasJobCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} [response] RemoveDatapointsResponse + * @param {google.protobuf.Empty} [response] Empty */ /** - * Calls RemoveDatapoints. - * @function removeDatapoints - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls CancelNasJob. + * @function cancelNasJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} request RemoveDatapointsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.RemoveDatapointsCallback} callback Node-style callback called with the error, if any, and RemoveDatapointsResponse + * @param {google.cloud.aiplatform.v1beta1.ICancelNasJobRequest} request CancelNasJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelNasJobCallback} callback Node-style callback called with the error, if any, and Empty * @returns {undefined} * @variation 1 */ - Object.defineProperty(IndexService.prototype.removeDatapoints = function removeDatapoints(request, callback) { - return this.rpcCall(removeDatapoints, $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest, $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse, request, callback); - }, "name", { value: "RemoveDatapoints" }); + Object.defineProperty(JobService.prototype.cancelNasJob = function cancelNasJob(request, callback) { + return this.rpcCall(cancelNasJob, $root.google.cloud.aiplatform.v1beta1.CancelNasJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelNasJob" }); /** - * Calls RemoveDatapoints. - * @function removeDatapoints - * @memberof google.cloud.aiplatform.v1beta1.IndexService + * Calls CancelNasJob. + * @function cancelNasJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} request RemoveDatapointsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.ICancelNasJobRequest} request CancelNasJobRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - return IndexService; - })(); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getNasTrialDetail}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetNasTrialDetailCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.NasTrialDetail} [response] NasTrialDetail + */ - v1beta1.CreateIndexRequest = (function() { + /** + * Calls GetNasTrialDetail. + * @function getNasTrialDetail + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest} request GetNasTrialDetailRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetNasTrialDetailCallback} callback Node-style callback called with the error, if any, and NasTrialDetail + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.getNasTrialDetail = function getNasTrialDetail(request, callback) { + return this.rpcCall(getNasTrialDetail, $root.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest, $root.google.cloud.aiplatform.v1beta1.NasTrialDetail, request, callback); + }, "name", { value: "GetNasTrialDetail" }); /** - * Properties of a CreateIndexRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateIndexRequest - * @property {string|null} [parent] CreateIndexRequest parent - * @property {google.cloud.aiplatform.v1beta1.IIndex|null} [index] CreateIndexRequest index + * Calls GetNasTrialDetail. + * @function getNasTrialDetail + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest} request GetNasTrialDetailRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new CreateIndexRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateIndexRequest. - * @implements ICreateIndexRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listNasTrialDetails}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListNasTrialDetailsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse} [response] ListNasTrialDetailsResponse */ - function CreateIndexRequest(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]]; - } /** - * CreateIndexRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * Calls ListNasTrialDetails. + * @function listNasTrialDetails + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest} request ListNasTrialDetailsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetailsCallback} callback Node-style callback called with the error, if any, and ListNasTrialDetailsResponse + * @returns {undefined} + * @variation 1 */ - CreateIndexRequest.prototype.parent = ""; + Object.defineProperty(JobService.prototype.listNasTrialDetails = function listNasTrialDetails(request, callback) { + return this.rpcCall(listNasTrialDetails, $root.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest, $root.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse, request, callback); + }, "name", { value: "ListNasTrialDetails" }); /** - * CreateIndexRequest index. - * @member {google.cloud.aiplatform.v1beta1.IIndex|null|undefined} index - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * Calls ListNasTrialDetails. + * @function listNasTrialDetails + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest} request ListNasTrialDetailsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexRequest.prototype.index = null; /** - * Creates a new CreateIndexRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob */ - CreateIndexRequest.create = function create(properties) { - return new CreateIndexRequest(properties); - }; /** - * Encodes the specified CreateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} message CreateIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateBatchPredictionJob. + * @function createBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob + * @returns {undefined} + * @variation 1 */ - CreateIndexRequest.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.index != null && Object.hasOwnProperty.call(message, "index")) - $root.google.cloud.aiplatform.v1beta1.Index.encode(message.index, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + Object.defineProperty(JobService.prototype.createBatchPredictionJob = function createBatchPredictionJob(request, callback) { + return this.rpcCall(createBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob, request, callback); + }, "name", { value: "CreateBatchPredictionJob" }); /** - * Encodes the specified CreateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} message CreateIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateBatchPredictionJob. + * @function createBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a CreateIndexRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @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.CreateIndexRequest} CreateIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob */ - CreateIndexRequest.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.CreateIndexRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.index = $root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a CreateIndexRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetBatchPredictionJob. + * @function getBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob + * @returns {undefined} + * @variation 1 */ - CreateIndexRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.getBatchPredictionJob = function getBatchPredictionJob(request, callback) { + return this.rpcCall(getBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob, request, callback); + }, "name", { value: "GetBatchPredictionJob" }); /** - * Verifies a CreateIndexRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetBatchPredictionJob. + * @function getBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexRequest.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.index != null && message.hasOwnProperty("index")) { - var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.index); - if (error) - return "index." + error; - } - return null; - }; /** - * Creates a CreateIndexRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listBatchPredictionJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListBatchPredictionJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} [response] ListBatchPredictionJobsResponse */ - CreateIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.index != null) { - if (typeof object.index !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexRequest.index: object expected"); - message.index = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.index); - } - return message; - }; /** - * Creates a plain object from a CreateIndexRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateIndexRequest} message CreateIndexRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ListBatchPredictionJobs. + * @function listBatchPredictionJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback} callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse + * @returns {undefined} + * @variation 1 */ - CreateIndexRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.index = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.index != null && message.hasOwnProperty("index")) - object.index = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.index, options); - return object; - }; + Object.defineProperty(JobService.prototype.listBatchPredictionJobs = function listBatchPredictionJobs(request, callback) { + return this.rpcCall(listBatchPredictionJobs, $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse, request, callback); + }, "name", { value: "ListBatchPredictionJobs" }); /** - * Converts this CreateIndexRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * Calls ListBatchPredictionJobs. + * @function listBatchPredictionJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; /** - * Gets the default type url for CreateIndexRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - CreateIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateIndexRequest"; - }; - - return CreateIndexRequest; - })(); - - v1beta1.CreateIndexOperationMetadata = (function() { /** - * Properties of a CreateIndexOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexOperationMetadata genericMetadata - * @property {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null} [nearestNeighborSearchOperationMetadata] CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata + * Calls DeleteBatchPredictionJob. + * @function deleteBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ + Object.defineProperty(JobService.prototype.deleteBatchPredictionJob = function deleteBatchPredictionJob(request, callback) { + return this.rpcCall(deleteBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteBatchPredictionJob" }); /** - * Constructs a new CreateIndexOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateIndexOperationMetadata. - * @implements ICreateIndexOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata=} [properties] Properties to set + * Calls DeleteBatchPredictionJob. + * @function deleteBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - function CreateIndexOperationMetadata(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]]; - } /** - * CreateIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CancelBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - CreateIndexOperationMetadata.prototype.genericMetadata = null; /** - * CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. - * @member {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * Calls CancelBatchPredictionJob. + * @function cancelBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - CreateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; + Object.defineProperty(JobService.prototype.cancelBatchPredictionJob = function cancelBatchPredictionJob(request, callback) { + return this.rpcCall(cancelBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelBatchPredictionJob" }); /** - * Creates a new CreateIndexOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata instance + * Calls CancelBatchPredictionJob. + * @function cancelBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexOperationMetadata.create = function create(properties) { - return new CreateIndexOperationMetadata(properties); - }; /** - * Encodes the specified CreateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob */ - CreateIndexOperationMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nearestNeighborSearchOperationMetadata != null && Object.hasOwnProperty.call(message, "nearestNeighborSearchOperationMetadata")) - $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.encode(message.nearestNeighborSearchOperationMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; /** - * Encodes the specified CreateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateModelDeploymentMonitoringJob. + * @function createModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * @returns {undefined} + * @variation 1 */ - CreateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(JobService.prototype.createModelDeploymentMonitoringJob = function createModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(createModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, request, callback); + }, "name", { value: "CreateModelDeploymentMonitoringJob" }); /** - * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @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.CreateIndexOperationMetadata} CreateIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateModelDeploymentMonitoringJob. + * @function createModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexOperationMetadata.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.CreateIndexOperationMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); - break; - } - case 2: { - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|searchModelDeploymentMonitoringStatsAnomalies}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef SearchModelDeploymentMonitoringStatsAnomaliesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - CreateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a CreateIndexOperationMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @function searchModelDeploymentMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback} callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {undefined} + * @variation 1 */ - CreateIndexOperationMetadata.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.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); - if (error) - return "nearestNeighborSearchOperationMetadata." + error; - } - return null; - }; + Object.defineProperty(JobService.prototype.searchModelDeploymentMonitoringStatsAnomalies = function searchModelDeploymentMonitoringStatsAnomalies(request, callback) { + return this.rpcCall(searchModelDeploymentMonitoringStatsAnomalies, $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, request, callback); + }, "name", { value: "SearchModelDeploymentMonitoringStatsAnomalies" }); /** - * Creates a CreateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @function searchModelDeploymentMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.nearestNeighborSearchOperationMetadata != null) { - if (typeof object.nearestNeighborSearchOperationMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); - } - return message; - }; /** - * Creates a plain object from a CreateIndexOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} message CreateIndexOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob */ - CreateIndexOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.nearestNeighborSearchOperationMetadata = null; - } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) - object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); - return object; - }; /** - * Converts this CreateIndexOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * Calls GetModelDeploymentMonitoringJob. + * @function getModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * @returns {undefined} + * @variation 1 */ - CreateIndexOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(JobService.prototype.getModelDeploymentMonitoringJob = function getModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(getModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, request, callback); + }, "name", { value: "GetModelDeploymentMonitoringJob" }); /** - * Gets the default type url for CreateIndexOperationMetadata - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls GetModelDeploymentMonitoringJob. + * @function getModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata"; - }; - return CreateIndexOperationMetadata; - })(); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listModelDeploymentMonitoringJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListModelDeploymentMonitoringJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} [response] ListModelDeploymentMonitoringJobsResponse + */ - v1beta1.GetIndexRequest = (function() { + /** + * Calls ListModelDeploymentMonitoringJobs. + * @function listModelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback} callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.listModelDeploymentMonitoringJobs = function listModelDeploymentMonitoringJobs(request, callback) { + return this.rpcCall(listModelDeploymentMonitoringJobs, $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse, request, callback); + }, "name", { value: "ListModelDeploymentMonitoringJobs" }); /** - * Properties of a GetIndexRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetIndexRequest - * @property {string|null} [name] GetIndexRequest name + * Calls ListModelDeploymentMonitoringJobs. + * @function listModelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new GetIndexRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetIndexRequest. - * @implements IGetIndexRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|updateModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef UpdateModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - function GetIndexRequest(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]]; - } /** - * GetIndexRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * Calls UpdateModelDeploymentMonitoringJob. + * @function updateModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - GetIndexRequest.prototype.name = ""; + Object.defineProperty(JobService.prototype.updateModelDeploymentMonitoringJob = function updateModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(updateModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateModelDeploymentMonitoringJob" }); /** - * Creates a new GetIndexRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest instance + * Calls UpdateModelDeploymentMonitoringJob. + * @function updateModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetIndexRequest.create = function create(properties) { - return new GetIndexRequest(properties); - }; /** - * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} message GetIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - GetIndexRequest.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 GetIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} message GetIndexRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteModelDeploymentMonitoringJob. + * @function deleteModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - GetIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(JobService.prototype.deleteModelDeploymentMonitoringJob = function deleteModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(deleteModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteModelDeploymentMonitoringJob" }); /** - * Decodes a GetIndexRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @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.GetIndexRequest} GetIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteModelDeploymentMonitoringJob. + * @function deleteModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetIndexRequest.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.GetIndexRequest(); - 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 GetIndexRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|pauseModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef PauseModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - GetIndexRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a GetIndexRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls PauseModelDeploymentMonitoringJob. + * @function pauseModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - GetIndexRequest.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; - }; + Object.defineProperty(JobService.prototype.pauseModelDeploymentMonitoringJob = function pauseModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(pauseModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "PauseModelDeploymentMonitoringJob" }); /** - * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest + * Calls PauseModelDeploymentMonitoringJob. + * @function pauseModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetIndexRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetIndexRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.GetIndexRequest} message GetIndexRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|resumeModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ResumeModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - GetIndexRequest.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 GetIndexRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * Calls ResumeModelDeploymentMonitoringJob. + * @function resumeModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - GetIndexRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(JobService.prototype.resumeModelDeploymentMonitoringJob = function resumeModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(resumeModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "ResumeModelDeploymentMonitoringJob" }); /** - * Gets the default type url for GetIndexRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url + * Calls ResumeModelDeploymentMonitoringJob. + * @function resumeModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetIndexRequest"; - }; - return GetIndexRequest; + return JobService; })(); - v1beta1.ListIndexesRequest = (function() { + v1beta1.CreateCustomJobRequest = (function() { /** - * Properties of a ListIndexesRequest. + * Properties of a CreateCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListIndexesRequest - * @property {string|null} [parent] ListIndexesRequest parent - * @property {string|null} [filter] ListIndexesRequest filter - * @property {number|null} [pageSize] ListIndexesRequest pageSize - * @property {string|null} [pageToken] ListIndexesRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListIndexesRequest readMask + * @interface ICreateCustomJobRequest + * @property {string|null} [parent] CreateCustomJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.ICustomJob|null} [customJob] CreateCustomJobRequest customJob */ /** - * Constructs a new ListIndexesRequest. + * Constructs a new CreateCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListIndexesRequest. - * @implements IListIndexesRequest + * @classdesc Represents a CreateCustomJobRequest. + * @implements ICreateCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set */ - function ListIndexesRequest(properties) { + function CreateCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -253625,110 +265778,80 @@ } /** - * ListIndexesRequest parent. + * CreateCustomJobRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest - * @instance - */ - ListIndexesRequest.prototype.parent = ""; - - /** - * ListIndexesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest - * @instance - */ - ListIndexesRequest.prototype.filter = ""; - - /** - * ListIndexesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest - * @instance - */ - ListIndexesRequest.prototype.pageSize = 0; - - /** - * ListIndexesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @instance */ - ListIndexesRequest.prototype.pageToken = ""; + CreateCustomJobRequest.prototype.parent = ""; /** - * ListIndexesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * CreateCustomJobRequest customJob. + * @member {google.cloud.aiplatform.v1beta1.ICustomJob|null|undefined} customJob + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @instance */ - ListIndexesRequest.prototype.readMask = null; + CreateCustomJobRequest.prototype.customJob = null; /** - * Creates a new ListIndexesRequest instance using the specified properties. + * Creates a new CreateCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest instance */ - ListIndexesRequest.create = function create(properties) { - return new ListIndexesRequest(properties); + CreateCustomJobRequest.create = function create(properties) { + return new CreateCustomJobRequest(properties); }; /** - * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. + * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} message ListIndexesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexesRequest.encode = function encode(message, writer) { + CreateCustomJobRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.customJob != null && Object.hasOwnProperty.call(message, "customJob")) + $root.google.cloud.aiplatform.v1beta1.CustomJob.encode(message.customJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListIndexesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. + * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} message ListIndexesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexesRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIndexesRequest message from the specified reader or buffer. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @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.ListIndexesRequest} ListIndexesRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexesRequest.decode = function decode(reader, length) { + CreateCustomJobRequest.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.ListIndexesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -253737,19 +265860,7 @@ break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.decode(reader, reader.uint32()); break; } default: @@ -253761,162 +265872,136 @@ }; /** - * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexesRequest.decodeDelimited = function decodeDelimited(reader) { + CreateCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIndexesRequest message. + * Verifies a CreateCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIndexesRequest.verify = function verify(message) { + CreateCustomJobRequest.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.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.customJob != null && message.hasOwnProperty("customJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJob); if (error) - return "readMask." + error; + return "customJob." + error; } return null; }; /** - * Creates a ListIndexesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest */ - ListIndexesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest) + CreateCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + if (object.customJob != null) { + if (typeof object.customJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.customJob: object expected"); + message.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.fromObject(object.customJob); } return message; }; /** - * Creates a plain object from a ListIndexesRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListIndexesRequest} message ListIndexesRequest + * @param {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} message CreateCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIndexesRequest.toObject = function toObject(message, options) { + CreateCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + object.customJob = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.customJob != null && message.hasOwnProperty("customJob")) + object.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.toObject(message.customJob, options); return object; }; /** - * Converts this ListIndexesRequest to JSON. + * Converts this CreateCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @instance * @returns {Object.} JSON object */ - ListIndexesRequest.prototype.toJSON = function toJSON() { + CreateCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListIndexesRequest + * Gets the default type url for CreateCustomJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListIndexesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListIndexesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateCustomJobRequest"; }; - return ListIndexesRequest; + return CreateCustomJobRequest; })(); - v1beta1.ListIndexesResponse = (function() { + v1beta1.GetCustomJobRequest = (function() { /** - * Properties of a ListIndexesResponse. + * Properties of a GetCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListIndexesResponse - * @property {Array.|null} [indexes] ListIndexesResponse indexes - * @property {string|null} [nextPageToken] ListIndexesResponse nextPageToken + * @interface IGetCustomJobRequest + * @property {string|null} [name] GetCustomJobRequest name */ /** - * Constructs a new ListIndexesResponse. + * Constructs a new GetCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListIndexesResponse. - * @implements IListIndexesResponse + * @classdesc Represents a GetCustomJobRequest. + * @implements IGetCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set */ - function ListIndexesResponse(properties) { - this.indexes = []; + function GetCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -253924,92 +266009,75 @@ } /** - * ListIndexesResponse indexes. - * @member {Array.} indexes - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse - * @instance - */ - ListIndexesResponse.prototype.indexes = $util.emptyArray; - - /** - * ListIndexesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * GetCustomJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @instance */ - ListIndexesResponse.prototype.nextPageToken = ""; + GetCustomJobRequest.prototype.name = ""; /** - * Creates a new ListIndexesResponse instance using the specified properties. + * Creates a new GetCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest instance */ - ListIndexesResponse.create = function create(properties) { - return new ListIndexesResponse(properties); + GetCustomJobRequest.create = function create(properties) { + return new GetCustomJobRequest(properties); }; /** - * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. + * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse} message ListIndexesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexesResponse.encode = function encode(message, writer) { + GetCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexes != null && message.indexes.length) - for (var i = 0; i < message.indexes.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Index.encode(message.indexes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListIndexesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. + * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse} message ListIndexesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexesResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIndexesResponse message from the specified reader or buffer. + * Decodes a GetCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @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.ListIndexesResponse} ListIndexesResponse + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexesResponse.decode = function decode(reader, length) { + GetCustomJobRequest.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.ListIndexesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.indexes && message.indexes.length)) - message.indexes = []; - message.indexes.push($root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -254021,149 +266089,126 @@ }; /** - * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited. + * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexesResponse.decodeDelimited = function decodeDelimited(reader) { + GetCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIndexesResponse message. + * Verifies a GetCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIndexesResponse.verify = function verify(message) { + GetCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexes != null && message.hasOwnProperty("indexes")) { - if (!Array.isArray(message.indexes)) - return "indexes: array expected"; - for (var i = 0; i < message.indexes.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.indexes[i]); - if (error) - return "indexes." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListIndexesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest */ - ListIndexesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse) + GetCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse(); - if (object.indexes) { - if (!Array.isArray(object.indexes)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesResponse.indexes: array expected"); - message.indexes = []; - for (var i = 0; i < object.indexes.length; ++i) { - if (typeof object.indexes[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesResponse.indexes: object expected"); - message.indexes[i] = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.indexes[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListIndexesResponse} message ListIndexesResponse + * @param {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} message GetCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIndexesResponse.toObject = function toObject(message, options) { + GetCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.indexes = []; if (options.defaults) - object.nextPageToken = ""; - if (message.indexes && message.indexes.length) { - object.indexes = []; - for (var j = 0; j < message.indexes.length; ++j) - object.indexes[j] = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.indexes[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListIndexesResponse to JSON. + * Converts this GetCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @instance * @returns {Object.} JSON object */ - ListIndexesResponse.prototype.toJSON = function toJSON() { + GetCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListIndexesResponse + * Gets the default type url for GetCustomJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListIndexesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListIndexesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetCustomJobRequest"; }; - return ListIndexesResponse; + return GetCustomJobRequest; })(); - v1beta1.UpdateIndexRequest = (function() { + v1beta1.ListCustomJobsRequest = (function() { /** - * Properties of an UpdateIndexRequest. + * Properties of a ListCustomJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateIndexRequest - * @property {google.cloud.aiplatform.v1beta1.IIndex|null} [index] UpdateIndexRequest index - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIndexRequest updateMask + * @interface IListCustomJobsRequest + * @property {string|null} [parent] ListCustomJobsRequest parent + * @property {string|null} [filter] ListCustomJobsRequest filter + * @property {number|null} [pageSize] ListCustomJobsRequest pageSize + * @property {string|null} [pageToken] ListCustomJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListCustomJobsRequest readMask */ /** - * Constructs a new UpdateIndexRequest. + * Constructs a new ListCustomJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateIndexRequest. - * @implements IUpdateIndexRequest + * @classdesc Represents a ListCustomJobsRequest. + * @implements IListCustomJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set */ - function UpdateIndexRequest(properties) { + function ListCustomJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -254171,89 +266216,131 @@ } /** - * UpdateIndexRequest index. - * @member {google.cloud.aiplatform.v1beta1.IIndex|null|undefined} index - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * ListCustomJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance */ - UpdateIndexRequest.prototype.index = null; + ListCustomJobsRequest.prototype.parent = ""; /** - * UpdateIndexRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * ListCustomJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance */ - UpdateIndexRequest.prototype.updateMask = null; + ListCustomJobsRequest.prototype.filter = ""; /** - * Creates a new UpdateIndexRequest instance using the specified properties. + * ListCustomJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @instance + */ + ListCustomJobsRequest.prototype.pageSize = 0; + + /** + * ListCustomJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @instance + */ + ListCustomJobsRequest.prototype.pageToken = ""; + + /** + * ListCustomJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @instance + */ + ListCustomJobsRequest.prototype.readMask = null; + + /** + * Creates a new ListCustomJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest instance */ - UpdateIndexRequest.create = function create(properties) { - return new UpdateIndexRequest(properties); + ListCustomJobsRequest.create = function create(properties) { + return new ListCustomJobsRequest(properties); }; /** - * Encodes the specified UpdateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. + * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} message UpdateIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexRequest.encode = function encode(message, writer) { + ListCustomJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - $root.google.cloud.aiplatform.v1beta1.Index.encode(message.index, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. + * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} message UpdateIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIndexRequest message from the specified reader or buffer. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @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.UpdateIndexRequest} UpdateIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexRequest.decode = function decode(reader, length) { + ListCustomJobsRequest.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.UpdateIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.index = $root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32()); + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); break; } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -254265,142 +266352,162 @@ }; /** - * Decodes an UpdateIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexRequest.decodeDelimited = function decodeDelimited(reader) { + ListCustomJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIndexRequest message. + * Verifies a ListCustomJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIndexRequest.verify = function verify(message) { + ListCustomJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) { - var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.index); - if (error) - return "index." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "updateMask." + error; + return "readMask." + error; } return null; }; /** - * Creates an UpdateIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest */ - UpdateIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest) + ListCustomJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest(); - if (object.index != null) { - if (typeof object.index !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexRequest.index: object expected"); - message.index = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.index); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from an UpdateIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} message UpdateIndexRequest + * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} message ListCustomJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIndexRequest.toObject = function toObject(message, options) { + ListCustomJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.index = null; - object.updateMask = null; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; } - if (message.index != null && message.hasOwnProperty("index")) - object.index = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.index, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this UpdateIndexRequest to JSON. + * Converts this ListCustomJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance * @returns {Object.} JSON object */ - UpdateIndexRequest.prototype.toJSON = function toJSON() { + ListCustomJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateIndexRequest + * Gets the default type url for ListCustomJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListCustomJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateIndexRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListCustomJobsRequest"; }; - return UpdateIndexRequest; + return ListCustomJobsRequest; })(); - v1beta1.UpdateIndexOperationMetadata = (function() { + v1beta1.ListCustomJobsResponse = (function() { /** - * Properties of an UpdateIndexOperationMetadata. + * Properties of a ListCustomJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateIndexOperationMetadata genericMetadata - * @property {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null} [nearestNeighborSearchOperationMetadata] UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata + * @interface IListCustomJobsResponse + * @property {Array.|null} [customJobs] ListCustomJobsResponse customJobs + * @property {string|null} [nextPageToken] ListCustomJobsResponse nextPageToken */ /** - * Constructs a new UpdateIndexOperationMetadata. + * Constructs a new ListCustomJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateIndexOperationMetadata. - * @implements IUpdateIndexOperationMetadata + * @classdesc Represents a ListCustomJobsResponse. + * @implements IListCustomJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set */ - function UpdateIndexOperationMetadata(properties) { + function ListCustomJobsResponse(properties) { + this.customJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -254408,89 +266515,92 @@ } /** - * UpdateIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * ListCustomJobsResponse customJobs. + * @member {Array.} customJobs + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @instance */ - UpdateIndexOperationMetadata.prototype.genericMetadata = null; + ListCustomJobsResponse.prototype.customJobs = $util.emptyArray; /** - * UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. - * @member {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * ListCustomJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @instance */ - UpdateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; + ListCustomJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new UpdateIndexOperationMetadata instance using the specified properties. + * Creates a new ListCustomJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse instance */ - UpdateIndexOperationMetadata.create = function create(properties) { - return new UpdateIndexOperationMetadata(properties); + ListCustomJobsResponse.create = function create(properties) { + return new ListCustomJobsResponse(properties); }; /** - * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. + * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexOperationMetadata.encode = function encode(message, writer) { + ListCustomJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nearestNeighborSearchOperationMetadata != null && Object.hasOwnProperty.call(message, "nearestNeighborSearchOperationMetadata")) - $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.encode(message.nearestNeighborSearchOperationMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.customJobs != null && message.customJobs.length) + for (var i = 0; i < message.customJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.CustomJob.encode(message.customJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. + * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @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.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexOperationMetadata.decode = function decode(reader, length) { + ListCustomJobsResponse.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.UpdateIndexOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + if (!(message.customJobs && message.customJobs.length)) + message.customJobs = []; + message.customJobs.push($root.google.cloud.aiplatform.v1beta1.CustomJob.decode(reader, reader.uint32())); break; } case 2: { - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -254502,141 +266612,148 @@ }; /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListCustomJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIndexOperationMetadata message. + * Verifies a ListCustomJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIndexOperationMetadata.verify = function verify(message) { + ListCustomJobsResponse.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.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); - if (error) - return "nearestNeighborSearchOperationMetadata." + error; + if (message.customJobs != null && message.hasOwnProperty("customJobs")) { + if (!Array.isArray(message.customJobs)) + return "customJobs: array expected"; + for (var i = 0; i < message.customJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJobs[i]); + if (error) + return "customJobs." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse */ - UpdateIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata) + ListCustomJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.nearestNeighborSearchOperationMetadata != null) { - if (typeof object.nearestNeighborSearchOperationMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse(); + if (object.customJobs) { + if (!Array.isArray(object.customJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.customJobs: array expected"); + message.customJobs = []; + for (var i = 0; i < object.customJobs.length; ++i) { + if (typeof object.customJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.customJobs: object expected"); + message.customJobs[i] = $root.google.cloud.aiplatform.v1beta1.CustomJob.fromObject(object.customJobs[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} message UpdateIndexOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} message ListCustomJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIndexOperationMetadata.toObject = function toObject(message, options) { + ListCustomJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.nearestNeighborSearchOperationMetadata = null; + if (options.arrays || options.defaults) + object.customJobs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.customJobs && message.customJobs.length) { + object.customJobs = []; + for (var j = 0; j < message.customJobs.length; ++j) + object.customJobs[j] = $root.google.cloud.aiplatform.v1beta1.CustomJob.toObject(message.customJobs[j], options); } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) - object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this UpdateIndexOperationMetadata to JSON. + * Converts this ListCustomJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @instance * @returns {Object.} JSON object */ - UpdateIndexOperationMetadata.prototype.toJSON = function toJSON() { + ListCustomJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateIndexOperationMetadata + * Gets the default type url for ListCustomJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateIndexOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListCustomJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListCustomJobsResponse"; }; - return UpdateIndexOperationMetadata; + return ListCustomJobsResponse; })(); - v1beta1.DeleteIndexRequest = (function() { + v1beta1.DeleteCustomJobRequest = (function() { /** - * Properties of a DeleteIndexRequest. + * Properties of a DeleteCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteIndexRequest - * @property {string|null} [name] DeleteIndexRequest name + * @interface IDeleteCustomJobRequest + * @property {string|null} [name] DeleteCustomJobRequest name */ /** - * Constructs a new DeleteIndexRequest. + * Constructs a new DeleteCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteIndexRequest. - * @implements IDeleteIndexRequest + * @classdesc Represents a DeleteCustomJobRequest. + * @implements IDeleteCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set */ - function DeleteIndexRequest(properties) { + function DeleteCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -254644,35 +266761,35 @@ } /** - * DeleteIndexRequest name. + * DeleteCustomJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @instance */ - DeleteIndexRequest.prototype.name = ""; + DeleteCustomJobRequest.prototype.name = ""; /** - * Creates a new DeleteIndexRequest instance using the specified properties. + * Creates a new DeleteCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest instance */ - DeleteIndexRequest.create = function create(properties) { - return new DeleteIndexRequest(properties); + DeleteCustomJobRequest.create = function create(properties) { + return new DeleteCustomJobRequest(properties); }; /** - * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIndexRequest.encode = function encode(message, writer) { + DeleteCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -254681,33 +266798,33 @@ }; /** - * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @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.DeleteIndexRequest} DeleteIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexRequest.decode = function decode(reader, length) { + DeleteCustomJobRequest.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.DeleteIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -254724,30 +266841,30 @@ }; /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteIndexRequest message. + * Verifies a DeleteCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteIndexRequest.verify = function verify(message) { + DeleteCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -254757,32 +266874,32 @@ }; /** - * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest */ - DeleteIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest) + DeleteCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} message DeleteIndexRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} message DeleteCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteIndexRequest.toObject = function toObject(message, options) { + DeleteCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -254794,54 +266911,52 @@ }; /** - * Converts this DeleteIndexRequest to JSON. + * Converts this DeleteCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @instance * @returns {Object.} JSON object */ - DeleteIndexRequest.prototype.toJSON = function toJSON() { + DeleteCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteIndexRequest + * Gets the default type url for DeleteCustomJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteIndexRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteIndexRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest"; }; - return DeleteIndexRequest; + return DeleteCustomJobRequest; })(); - v1beta1.UpsertDatapointsRequest = (function() { + v1beta1.CancelCustomJobRequest = (function() { /** - * Properties of an UpsertDatapointsRequest. + * Properties of a CancelCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpsertDatapointsRequest - * @property {string|null} [index] UpsertDatapointsRequest index - * @property {Array.|null} [datapoints] UpsertDatapointsRequest datapoints + * @interface ICancelCustomJobRequest + * @property {string|null} [name] CancelCustomJobRequest name */ /** - * Constructs a new UpsertDatapointsRequest. + * Constructs a new CancelCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpsertDatapointsRequest. - * @implements IUpsertDatapointsRequest + * @classdesc Represents a CancelCustomJobRequest. + * @implements ICancelCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set */ - function UpsertDatapointsRequest(properties) { - this.datapoints = []; + function CancelCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -254849,92 +266964,75 @@ } /** - * UpsertDatapointsRequest index. - * @member {string} index - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest - * @instance - */ - UpsertDatapointsRequest.prototype.index = ""; - - /** - * UpsertDatapointsRequest datapoints. - * @member {Array.} datapoints - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * CancelCustomJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @instance */ - UpsertDatapointsRequest.prototype.datapoints = $util.emptyArray; + CancelCustomJobRequest.prototype.name = ""; /** - * Creates a new UpsertDatapointsRequest instance using the specified properties. + * Creates a new CancelCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest instance */ - UpsertDatapointsRequest.create = function create(properties) { - return new UpsertDatapointsRequest(properties); + CancelCustomJobRequest.create = function create(properties) { + return new CancelCustomJobRequest(properties); }; /** - * Encodes the specified UpsertDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. + * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} message UpsertDatapointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsertDatapointsRequest.encode = function encode(message, writer) { + CancelCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.index); - if (message.datapoints != null && message.datapoints.length) - for (var i = 0; i < message.datapoints.length; ++i) - $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.encode(message.datapoints[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpsertDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.verify|verify} messages. + * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsRequest} message UpsertDatapointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsertDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpsertDatapointsRequest message from the specified reader or buffer. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @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.UpsertDatapointsRequest} UpsertDatapointsRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpsertDatapointsRequest.decode = function decode(reader, length) { + CancelCustomJobRequest.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.UpsertDatapointsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.index = reader.string(); - break; - } - case 2: { - if (!(message.datapoints && message.datapoints.length)) - message.datapoints = []; - message.datapoints.push($root.google.cloud.aiplatform.v1beta1.IndexDatapoint.decode(reader, reader.uint32())); + message.name = reader.string(); break; } default: @@ -254946,147 +267044,123 @@ }; /** - * Decodes an UpsertDatapointsRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpsertDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { + CancelCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpsertDatapointsRequest message. + * Verifies a CancelCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpsertDatapointsRequest.verify = function verify(message) { + CancelCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isString(message.index)) - return "index: string expected"; - if (message.datapoints != null && message.hasOwnProperty("datapoints")) { - if (!Array.isArray(message.datapoints)) - return "datapoints: array expected"; - for (var i = 0; i < message.datapoints.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.verify(message.datapoints[i]); - if (error) - return "datapoints." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpsertDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} UpsertDatapointsRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest */ - UpsertDatapointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest) + CancelCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest(); - if (object.index != null) - message.index = String(object.index); - if (object.datapoints) { - if (!Array.isArray(object.datapoints)) - throw TypeError(".google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.datapoints: array expected"); - message.datapoints = []; - for (var i = 0; i < object.datapoints.length; ++i) { - if (typeof object.datapoints[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest.datapoints: object expected"); - message.datapoints[i] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.fromObject(object.datapoints[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpsertDatapointsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest} message UpsertDatapointsRequest + * @param {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} message CancelCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpsertDatapointsRequest.toObject = function toObject(message, options) { + CancelCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.datapoints = []; if (options.defaults) - object.index = ""; - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.datapoints && message.datapoints.length) { - object.datapoints = []; - for (var j = 0; j < message.datapoints.length; ++j) - object.datapoints[j] = $root.google.cloud.aiplatform.v1beta1.IndexDatapoint.toObject(message.datapoints[j], options); - } + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpsertDatapointsRequest to JSON. + * Converts this CancelCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @instance * @returns {Object.} JSON object */ - UpsertDatapointsRequest.prototype.toJSON = function toJSON() { + CancelCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpsertDatapointsRequest + * Gets the default type url for CancelCustomJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpsertDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpsertDatapointsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelCustomJobRequest"; }; - return UpsertDatapointsRequest; + return CancelCustomJobRequest; })(); - v1beta1.UpsertDatapointsResponse = (function() { + v1beta1.CreateDataLabelingJobRequest = (function() { /** - * Properties of an UpsertDatapointsResponse. + * Properties of a CreateDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpsertDatapointsResponse + * @interface ICreateDataLabelingJobRequest + * @property {string|null} [parent] CreateDataLabelingJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null} [dataLabelingJob] CreateDataLabelingJobRequest dataLabelingJob */ /** - * Constructs a new UpsertDatapointsResponse. + * Constructs a new CreateDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpsertDatapointsResponse. - * @implements IUpsertDatapointsResponse + * @classdesc Represents a CreateDataLabelingJobRequest. + * @implements ICreateDataLabelingJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set */ - function UpsertDatapointsResponse(properties) { + function CreateDataLabelingJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -255094,63 +267168,91 @@ } /** - * Creates a new UpsertDatapointsResponse instance using the specified properties. + * CreateDataLabelingJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @instance + */ + CreateDataLabelingJobRequest.prototype.parent = ""; + + /** + * CreateDataLabelingJobRequest dataLabelingJob. + * @member {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null|undefined} dataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @instance + */ + CreateDataLabelingJobRequest.prototype.dataLabelingJob = null; + + /** + * Creates a new CreateDataLabelingJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest instance */ - UpsertDatapointsResponse.create = function create(properties) { - return new UpsertDatapointsResponse(properties); + CreateDataLabelingJobRequest.create = function create(properties) { + return new CreateDataLabelingJobRequest(properties); }; /** - * Encodes the specified UpsertDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. + * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse} message UpsertDatapointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsertDatapointsResponse.encode = function encode(message, writer) { + CreateDataLabelingJobRequest.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.dataLabelingJob != null && Object.hasOwnProperty.call(message, "dataLabelingJob")) + $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.encode(message.dataLabelingJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpsertDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse.verify|verify} messages. + * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpsertDatapointsResponse} message UpsertDatapointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpsertDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpsertDatapointsResponse message from the specified reader or buffer. + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @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.UpsertDatapointsResponse} UpsertDatapointsResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpsertDatapointsResponse.decode = function decode(reader, length) { + CreateDataLabelingJobRequest.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.UpsertDatapointsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -255160,111 +267262,136 @@ }; /** - * Decodes an UpsertDatapointsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpsertDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { + CreateDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpsertDatapointsResponse message. + * Verifies a CreateDataLabelingJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpsertDatapointsResponse.verify = function verify(message) { + CreateDataLabelingJobRequest.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.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.verify(message.dataLabelingJob); + if (error) + return "dataLabelingJob." + error; + } return null; }; /** - * Creates an UpsertDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} UpsertDatapointsResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest */ - UpsertDatapointsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse) + CreateDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest) return object; - return new $root.google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.dataLabelingJob != null) { + if (typeof object.dataLabelingJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.dataLabelingJob: object expected"); + message.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.fromObject(object.dataLabelingJob); + } + return message; }; /** - * Creates a plain object from an UpsertDatapointsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse} message UpsertDatapointsResponse + * @param {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} message CreateDataLabelingJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpsertDatapointsResponse.toObject = function toObject() { - return {}; + CreateDataLabelingJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.dataLabelingJob = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) + object.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.toObject(message.dataLabelingJob, options); + return object; }; /** - * Converts this UpsertDatapointsResponse to JSON. + * Converts this CreateDataLabelingJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @instance * @returns {Object.} JSON object */ - UpsertDatapointsResponse.prototype.toJSON = function toJSON() { + CreateDataLabelingJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpsertDatapointsResponse + * Gets the default type url for CreateDataLabelingJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpsertDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpsertDatapointsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest"; }; - return UpsertDatapointsResponse; + return CreateDataLabelingJobRequest; })(); - v1beta1.RemoveDatapointsRequest = (function() { + v1beta1.GetDataLabelingJobRequest = (function() { /** - * Properties of a RemoveDatapointsRequest. + * Properties of a GetDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IRemoveDatapointsRequest - * @property {string|null} [index] RemoveDatapointsRequest index - * @property {Array.|null} [datapointIds] RemoveDatapointsRequest datapointIds + * @interface IGetDataLabelingJobRequest + * @property {string|null} [name] GetDataLabelingJobRequest name */ /** - * Constructs a new RemoveDatapointsRequest. + * Constructs a new GetDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a RemoveDatapointsRequest. - * @implements IRemoveDatapointsRequest + * @classdesc Represents a GetDataLabelingJobRequest. + * @implements IGetDataLabelingJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set */ - function RemoveDatapointsRequest(properties) { - this.datapointIds = []; + function GetDataLabelingJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -255272,92 +267399,75 @@ } /** - * RemoveDatapointsRequest index. - * @member {string} index - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest - * @instance - */ - RemoveDatapointsRequest.prototype.index = ""; - - /** - * RemoveDatapointsRequest datapointIds. - * @member {Array.} datapointIds - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * GetDataLabelingJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @instance */ - RemoveDatapointsRequest.prototype.datapointIds = $util.emptyArray; + GetDataLabelingJobRequest.prototype.name = ""; /** - * Creates a new RemoveDatapointsRequest instance using the specified properties. + * Creates a new GetDataLabelingJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest instance */ - RemoveDatapointsRequest.create = function create(properties) { - return new RemoveDatapointsRequest(properties); + GetDataLabelingJobRequest.create = function create(properties) { + return new GetDataLabelingJobRequest(properties); }; /** - * Encodes the specified RemoveDatapointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. + * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} message RemoveDatapointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveDatapointsRequest.encode = function encode(message, writer) { + GetDataLabelingJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.index); - if (message.datapointIds != null && message.datapointIds.length) - for (var i = 0; i < message.datapointIds.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.datapointIds[i]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified RemoveDatapointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.verify|verify} messages. + * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsRequest} message RemoveDatapointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveDatapointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveDatapointsRequest message from the specified reader or buffer. + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @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.RemoveDatapointsRequest} RemoveDatapointsRequest + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveDatapointsRequest.decode = function decode(reader, length) { + GetDataLabelingJobRequest.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.RemoveDatapointsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.index = reader.string(); - break; - } - case 2: { - if (!(message.datapointIds && message.datapointIds.length)) - message.datapointIds = []; - message.datapointIds.push(reader.string()); + message.name = reader.string(); break; } default: @@ -255369,142 +267479,127 @@ }; /** - * Decodes a RemoveDatapointsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveDatapointsRequest.decodeDelimited = function decodeDelimited(reader) { + GetDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveDatapointsRequest message. + * Verifies a GetDataLabelingJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveDatapointsRequest.verify = function verify(message) { + GetDataLabelingJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isString(message.index)) - return "index: string expected"; - if (message.datapointIds != null && message.hasOwnProperty("datapointIds")) { - if (!Array.isArray(message.datapointIds)) - return "datapointIds: array expected"; - for (var i = 0; i < message.datapointIds.length; ++i) - if (!$util.isString(message.datapointIds[i])) - return "datapointIds: string[] expected"; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a RemoveDatapointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} RemoveDatapointsRequest + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest */ - RemoveDatapointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest) + GetDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest(); - if (object.index != null) - message.index = String(object.index); - if (object.datapointIds) { - if (!Array.isArray(object.datapointIds)) - throw TypeError(".google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest.datapointIds: array expected"); - message.datapointIds = []; - for (var i = 0; i < object.datapointIds.length; ++i) - message.datapointIds[i] = String(object.datapointIds[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a RemoveDatapointsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest} message RemoveDatapointsRequest + * @param {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} message GetDataLabelingJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveDatapointsRequest.toObject = function toObject(message, options) { + GetDataLabelingJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.datapointIds = []; if (options.defaults) - object.index = ""; - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.datapointIds && message.datapointIds.length) { - object.datapointIds = []; - for (var j = 0; j < message.datapointIds.length; ++j) - object.datapointIds[j] = message.datapointIds[j]; - } + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this RemoveDatapointsRequest to JSON. + * Converts this GetDataLabelingJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @instance * @returns {Object.} JSON object */ - RemoveDatapointsRequest.prototype.toJSON = function toJSON() { + GetDataLabelingJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveDatapointsRequest + * Gets the default type url for GetDataLabelingJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveDatapointsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RemoveDatapointsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest"; }; - return RemoveDatapointsRequest; + return GetDataLabelingJobRequest; })(); - v1beta1.RemoveDatapointsResponse = (function() { + v1beta1.ListDataLabelingJobsRequest = (function() { /** - * Properties of a RemoveDatapointsResponse. + * Properties of a ListDataLabelingJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IRemoveDatapointsResponse + * @interface IListDataLabelingJobsRequest + * @property {string|null} [parent] ListDataLabelingJobsRequest parent + * @property {string|null} [filter] ListDataLabelingJobsRequest filter + * @property {number|null} [pageSize] ListDataLabelingJobsRequest pageSize + * @property {string|null} [pageToken] ListDataLabelingJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListDataLabelingJobsRequest readMask + * @property {string|null} [orderBy] ListDataLabelingJobsRequest orderBy */ /** - * Constructs a new RemoveDatapointsResponse. + * Constructs a new ListDataLabelingJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a RemoveDatapointsResponse. - * @implements IRemoveDatapointsResponse + * @classdesc Represents a ListDataLabelingJobsRequest. + * @implements IListDataLabelingJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set */ - function RemoveDatapointsResponse(properties) { + function ListDataLabelingJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -255512,63 +267607,147 @@ } /** - * Creates a new RemoveDatapointsResponse instance using the specified properties. + * ListDataLabelingJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @instance + */ + ListDataLabelingJobsRequest.prototype.parent = ""; + + /** + * ListDataLabelingJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @instance + */ + ListDataLabelingJobsRequest.prototype.filter = ""; + + /** + * ListDataLabelingJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @instance + */ + ListDataLabelingJobsRequest.prototype.pageSize = 0; + + /** + * ListDataLabelingJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @instance + */ + ListDataLabelingJobsRequest.prototype.pageToken = ""; + + /** + * ListDataLabelingJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @instance + */ + ListDataLabelingJobsRequest.prototype.readMask = null; + + /** + * ListDataLabelingJobsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @instance + */ + ListDataLabelingJobsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListDataLabelingJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest instance */ - RemoveDatapointsResponse.create = function create(properties) { - return new RemoveDatapointsResponse(properties); + ListDataLabelingJobsRequest.create = function create(properties) { + return new ListDataLabelingJobsRequest(properties); }; /** - * Encodes the specified RemoveDatapointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. + * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse} message RemoveDatapointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveDatapointsResponse.encode = function encode(message, writer) { + ListDataLabelingJobsRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); return writer; }; /** - * Encodes the specified RemoveDatapointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse.verify|verify} messages. + * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IRemoveDatapointsResponse} message RemoveDatapointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RemoveDatapointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListDataLabelingJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RemoveDatapointsResponse message from the specified reader or buffer. + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @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.RemoveDatapointsResponse} RemoveDatapointsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveDatapointsResponse.decode = function decode(reader, length) { + ListDataLabelingJobsRequest.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.RemoveDatapointsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + case 6: { + message.orderBy = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -255578,111 +267757,170 @@ }; /** - * Decodes a RemoveDatapointsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RemoveDatapointsResponse.decodeDelimited = function decodeDelimited(reader) { + ListDataLabelingJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RemoveDatapointsResponse message. + * Verifies a ListDataLabelingJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RemoveDatapointsResponse.verify = function verify(message) { + ListDataLabelingJobsRequest.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.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a RemoveDatapointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} RemoveDatapointsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest */ - RemoveDatapointsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse) + ListDataLabelingJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest) return object; - return new $root.google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + return message; }; /** - * Creates a plain object from a RemoveDatapointsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse} message RemoveDatapointsResponse + * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} message ListDataLabelingJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RemoveDatapointsResponse.toObject = function toObject() { - return {}; + ListDataLabelingJobsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; }; /** - * Converts this RemoveDatapointsResponse to JSON. + * Converts this ListDataLabelingJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @instance * @returns {Object.} JSON object */ - RemoveDatapointsResponse.prototype.toJSON = function toJSON() { + ListDataLabelingJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for RemoveDatapointsResponse + * Gets the default type url for ListDataLabelingJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - RemoveDatapointsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListDataLabelingJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.RemoveDatapointsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest"; }; - return RemoveDatapointsResponse; + return ListDataLabelingJobsRequest; })(); - v1beta1.NearestNeighborSearchOperationMetadata = (function() { + v1beta1.ListDataLabelingJobsResponse = (function() { /** - * Properties of a NearestNeighborSearchOperationMetadata. + * Properties of a ListDataLabelingJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface INearestNeighborSearchOperationMetadata - * @property {Array.|null} [contentValidationStats] NearestNeighborSearchOperationMetadata contentValidationStats - * @property {number|Long|null} [dataBytesCount] NearestNeighborSearchOperationMetadata dataBytesCount + * @interface IListDataLabelingJobsResponse + * @property {Array.|null} [dataLabelingJobs] ListDataLabelingJobsResponse dataLabelingJobs + * @property {string|null} [nextPageToken] ListDataLabelingJobsResponse nextPageToken */ /** - * Constructs a new NearestNeighborSearchOperationMetadata. + * Constructs a new ListDataLabelingJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a NearestNeighborSearchOperationMetadata. - * @implements INearestNeighborSearchOperationMetadata + * @classdesc Represents a ListDataLabelingJobsResponse. + * @implements IListDataLabelingJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set */ - function NearestNeighborSearchOperationMetadata(properties) { - this.contentValidationStats = []; + function ListDataLabelingJobsResponse(properties) { + this.dataLabelingJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -255690,92 +267928,92 @@ } /** - * NearestNeighborSearchOperationMetadata contentValidationStats. - * @member {Array.} contentValidationStats - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * ListDataLabelingJobsResponse dataLabelingJobs. + * @member {Array.} dataLabelingJobs + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @instance */ - NearestNeighborSearchOperationMetadata.prototype.contentValidationStats = $util.emptyArray; + ListDataLabelingJobsResponse.prototype.dataLabelingJobs = $util.emptyArray; /** - * NearestNeighborSearchOperationMetadata dataBytesCount. - * @member {number|Long} dataBytesCount - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * ListDataLabelingJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @instance */ - NearestNeighborSearchOperationMetadata.prototype.dataBytesCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ListDataLabelingJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. + * Creates a new ListDataLabelingJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse instance */ - NearestNeighborSearchOperationMetadata.create = function create(properties) { - return new NearestNeighborSearchOperationMetadata(properties); + ListDataLabelingJobsResponse.create = function create(properties) { + return new ListDataLabelingJobsResponse(properties); }; /** - * Encodes the specified NearestNeighborSearchOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. + * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NearestNeighborSearchOperationMetadata.encode = function encode(message, writer) { + ListDataLabelingJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.contentValidationStats != null && message.contentValidationStats.length) - for (var i = 0; i < message.contentValidationStats.length; ++i) - $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.encode(message.contentValidationStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.dataBytesCount != null && Object.hasOwnProperty.call(message, "dataBytesCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.dataBytesCount); + if (message.dataLabelingJobs != null && message.dataLabelingJobs.length) + for (var i = 0; i < message.dataLabelingJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.encode(message.dataLabelingJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified NearestNeighborSearchOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. + * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NearestNeighborSearchOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListDataLabelingJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @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.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NearestNeighborSearchOperationMetadata.decode = function decode(reader, length) { + ListDataLabelingJobsResponse.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.NearestNeighborSearchOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.contentValidationStats && message.contentValidationStats.length)) - message.contentValidationStats = []; - message.contentValidationStats.push($root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.decode(reader, reader.uint32())); + if (!(message.dataLabelingJobs && message.dataLabelingJobs.length)) + message.dataLabelingJobs = []; + message.dataLabelingJobs.push($root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32())); break; } case 2: { - message.dataBytesCount = reader.int64(); + message.nextPageToken = reader.string(); break; } default: @@ -255787,1816 +268025,1945 @@ }; /** - * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NearestNeighborSearchOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListDataLabelingJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NearestNeighborSearchOperationMetadata message. + * Verifies a ListDataLabelingJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NearestNeighborSearchOperationMetadata.verify = function verify(message) { + ListDataLabelingJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.contentValidationStats != null && message.hasOwnProperty("contentValidationStats")) { - if (!Array.isArray(message.contentValidationStats)) - return "contentValidationStats: array expected"; - for (var i = 0; i < message.contentValidationStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify(message.contentValidationStats[i]); + if (message.dataLabelingJobs != null && message.hasOwnProperty("dataLabelingJobs")) { + if (!Array.isArray(message.dataLabelingJobs)) + return "dataLabelingJobs: array expected"; + for (var i = 0; i < message.dataLabelingJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.verify(message.dataLabelingJobs[i]); if (error) - return "contentValidationStats." + error; + return "dataLabelingJobs." + error; } } - if (message.dataBytesCount != null && message.hasOwnProperty("dataBytesCount")) - if (!$util.isInteger(message.dataBytesCount) && !(message.dataBytesCount && $util.isInteger(message.dataBytesCount.low) && $util.isInteger(message.dataBytesCount.high))) - return "dataBytesCount: integer|Long expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a NearestNeighborSearchOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse */ - NearestNeighborSearchOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata) + ListDataLabelingJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata(); - if (object.contentValidationStats) { - if (!Array.isArray(object.contentValidationStats)) - throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.contentValidationStats: array expected"); - message.contentValidationStats = []; - for (var i = 0; i < object.contentValidationStats.length; ++i) { - if (typeof object.contentValidationStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.contentValidationStats: object expected"); - message.contentValidationStats[i] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.fromObject(object.contentValidationStats[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse(); + if (object.dataLabelingJobs) { + if (!Array.isArray(object.dataLabelingJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.dataLabelingJobs: array expected"); + message.dataLabelingJobs = []; + for (var i = 0; i < object.dataLabelingJobs.length; ++i) { + if (typeof object.dataLabelingJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.dataLabelingJobs: object expected"); + message.dataLabelingJobs[i] = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.fromObject(object.dataLabelingJobs[i]); } } - if (object.dataBytesCount != null) - if ($util.Long) - (message.dataBytesCount = $util.Long.fromValue(object.dataBytesCount)).unsigned = false; - else if (typeof object.dataBytesCount === "string") - message.dataBytesCount = parseInt(object.dataBytesCount, 10); - else if (typeof object.dataBytesCount === "number") - message.dataBytesCount = object.dataBytesCount; - else if (typeof object.dataBytesCount === "object") - message.dataBytesCount = new $util.LongBits(object.dataBytesCount.low >>> 0, object.dataBytesCount.high >>> 0).toNumber(); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a NearestNeighborSearchOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} message ListDataLabelingJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NearestNeighborSearchOperationMetadata.toObject = function toObject(message, options) { + ListDataLabelingJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.contentValidationStats = []; + object.dataLabelingJobs = []; if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.dataBytesCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.dataBytesCount = options.longs === String ? "0" : 0; - if (message.contentValidationStats && message.contentValidationStats.length) { - object.contentValidationStats = []; - for (var j = 0; j < message.contentValidationStats.length; ++j) - object.contentValidationStats[j] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.toObject(message.contentValidationStats[j], options); + object.nextPageToken = ""; + if (message.dataLabelingJobs && message.dataLabelingJobs.length) { + object.dataLabelingJobs = []; + for (var j = 0; j < message.dataLabelingJobs.length; ++j) + object.dataLabelingJobs[j] = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.toObject(message.dataLabelingJobs[j], options); } - if (message.dataBytesCount != null && message.hasOwnProperty("dataBytesCount")) - if (typeof message.dataBytesCount === "number") - object.dataBytesCount = options.longs === String ? String(message.dataBytesCount) : message.dataBytesCount; - else - object.dataBytesCount = options.longs === String ? $util.Long.prototype.toString.call(message.dataBytesCount) : options.longs === Number ? new $util.LongBits(message.dataBytesCount.low >>> 0, message.dataBytesCount.high >>> 0).toNumber() : message.dataBytesCount; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this NearestNeighborSearchOperationMetadata to JSON. + * Converts this ListDataLabelingJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @instance * @returns {Object.} JSON object */ - NearestNeighborSearchOperationMetadata.prototype.toJSON = function toJSON() { + ListDataLabelingJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for NearestNeighborSearchOperationMetadata + * Gets the default type url for ListDataLabelingJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - NearestNeighborSearchOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListDataLabelingJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse"; }; - NearestNeighborSearchOperationMetadata.RecordError = (function() { - - /** - * Properties of a RecordError. - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata - * @interface IRecordError - * @property {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|null} [errorType] RecordError errorType - * @property {string|null} [errorMessage] RecordError errorMessage - * @property {string|null} [sourceGcsUri] RecordError sourceGcsUri - * @property {string|null} [embeddingId] RecordError embeddingId - * @property {string|null} [rawRecord] RecordError rawRecord - */ - - /** - * Constructs a new RecordError. - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata - * @classdesc Represents a RecordError. - * @implements IRecordError - * @constructor - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set - */ - function RecordError(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]]; - } - - /** - * RecordError errorType. - * @member {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType} errorType - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.errorType = 0; - - /** - * RecordError errorMessage. - * @member {string} errorMessage - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.errorMessage = ""; - - /** - * RecordError sourceGcsUri. - * @member {string} sourceGcsUri - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.sourceGcsUri = ""; - - /** - * RecordError embeddingId. - * @member {string} embeddingId - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.embeddingId = ""; - - /** - * RecordError rawRecord. - * @member {string} rawRecord - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.rawRecord = ""; - - /** - * Creates a new RecordError instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError instance - */ - RecordError.create = function create(properties) { - return new RecordError(properties); - }; - - /** - * Encodes the specified RecordError message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError} message RecordError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordError.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.errorType != null && Object.hasOwnProperty.call(message, "errorType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.errorType); - if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorMessage); - if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceGcsUri); - if (message.embeddingId != null && Object.hasOwnProperty.call(message, "embeddingId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.embeddingId); - if (message.rawRecord != null && Object.hasOwnProperty.call(message, "rawRecord")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.rawRecord); - return writer; - }; - - /** - * Encodes the specified RecordError message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError} message RecordError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordError.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RecordError message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @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.NearestNeighborSearchOperationMetadata.RecordError} RecordError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordError.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.NearestNeighborSearchOperationMetadata.RecordError(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.errorType = reader.int32(); - break; - } - case 2: { - message.errorMessage = reader.string(); - break; - } - case 3: { - message.sourceGcsUri = reader.string(); - break; - } - case 4: { - message.embeddingId = reader.string(); - break; - } - case 5: { - message.rawRecord = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RecordError message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordError.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordError message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RecordError.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.errorType != null && message.hasOwnProperty("errorType")) - switch (message.errorType) { - default: - return "errorType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - if (!$util.isString(message.sourceGcsUri)) - return "sourceGcsUri: string expected"; - if (message.embeddingId != null && message.hasOwnProperty("embeddingId")) - if (!$util.isString(message.embeddingId)) - return "embeddingId: string expected"; - if (message.rawRecord != null && message.hasOwnProperty("rawRecord")) - if (!$util.isString(message.rawRecord)) - return "rawRecord: string expected"; - return null; - }; - - /** - * Creates a RecordError message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError - */ - RecordError.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError(); - switch (object.errorType) { - default: - if (typeof object.errorType === "number") { - message.errorType = object.errorType; - break; - } - break; - case "ERROR_TYPE_UNSPECIFIED": - case 0: - message.errorType = 0; - break; - case "EMPTY_LINE": - case 1: - message.errorType = 1; - break; - case "INVALID_JSON_SYNTAX": - case 2: - message.errorType = 2; - break; - case "INVALID_CSV_SYNTAX": - case 3: - message.errorType = 3; - break; - case "INVALID_AVRO_SYNTAX": - case 4: - message.errorType = 4; - break; - case "INVALID_EMBEDDING_ID": - case 5: - message.errorType = 5; - break; - case "EMBEDDING_SIZE_MISMATCH": - case 6: - message.errorType = 6; - break; - case "NAMESPACE_MISSING": - case 7: - message.errorType = 7; - break; - } - if (object.errorMessage != null) - message.errorMessage = String(object.errorMessage); - if (object.sourceGcsUri != null) - message.sourceGcsUri = String(object.sourceGcsUri); - if (object.embeddingId != null) - message.embeddingId = String(object.embeddingId); - if (object.rawRecord != null) - message.rawRecord = String(object.rawRecord); - return message; - }; - - /** - * Creates a plain object from a RecordError message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} message RecordError - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RecordError.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.errorType = options.enums === String ? "ERROR_TYPE_UNSPECIFIED" : 0; - object.errorMessage = ""; - object.sourceGcsUri = ""; - object.embeddingId = ""; - object.rawRecord = ""; - } - if (message.errorType != null && message.hasOwnProperty("errorType")) - object.errorType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType[message.errorType] === undefined ? message.errorType : $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType[message.errorType] : message.errorType; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - object.errorMessage = message.errorMessage; - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - object.sourceGcsUri = message.sourceGcsUri; - if (message.embeddingId != null && message.hasOwnProperty("embeddingId")) - object.embeddingId = message.embeddingId; - if (message.rawRecord != null && message.hasOwnProperty("rawRecord")) - object.rawRecord = message.rawRecord; - return object; - }; - - /** - * Converts this RecordError to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - * @returns {Object.} JSON object - */ - RecordError.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for RecordError - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - RecordError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError"; - }; - - /** - * RecordErrorType enum. - * @name google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType - * @enum {number} - * @property {number} ERROR_TYPE_UNSPECIFIED=0 ERROR_TYPE_UNSPECIFIED value - * @property {number} EMPTY_LINE=1 EMPTY_LINE value - * @property {number} INVALID_JSON_SYNTAX=2 INVALID_JSON_SYNTAX value - * @property {number} INVALID_CSV_SYNTAX=3 INVALID_CSV_SYNTAX value - * @property {number} INVALID_AVRO_SYNTAX=4 INVALID_AVRO_SYNTAX value - * @property {number} INVALID_EMBEDDING_ID=5 INVALID_EMBEDDING_ID value - * @property {number} EMBEDDING_SIZE_MISMATCH=6 EMBEDDING_SIZE_MISMATCH value - * @property {number} NAMESPACE_MISSING=7 NAMESPACE_MISSING value - */ - RecordError.RecordErrorType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ERROR_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "EMPTY_LINE"] = 1; - values[valuesById[2] = "INVALID_JSON_SYNTAX"] = 2; - values[valuesById[3] = "INVALID_CSV_SYNTAX"] = 3; - values[valuesById[4] = "INVALID_AVRO_SYNTAX"] = 4; - values[valuesById[5] = "INVALID_EMBEDDING_ID"] = 5; - values[valuesById[6] = "EMBEDDING_SIZE_MISMATCH"] = 6; - values[valuesById[7] = "NAMESPACE_MISSING"] = 7; - return values; - })(); - - return RecordError; - })(); - - NearestNeighborSearchOperationMetadata.ContentValidationStats = (function() { - - /** - * Properties of a ContentValidationStats. - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata - * @interface IContentValidationStats - * @property {string|null} [sourceGcsUri] ContentValidationStats sourceGcsUri - * @property {number|Long|null} [validRecordCount] ContentValidationStats validRecordCount - * @property {number|Long|null} [invalidRecordCount] ContentValidationStats invalidRecordCount - * @property {Array.|null} [partialErrors] ContentValidationStats partialErrors - */ - - /** - * Constructs a new ContentValidationStats. - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata - * @classdesc Represents a ContentValidationStats. - * @implements IContentValidationStats - * @constructor - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set - */ - function ContentValidationStats(properties) { - this.partialErrors = []; - 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]]; - } - - /** - * ContentValidationStats sourceGcsUri. - * @member {string} sourceGcsUri - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.sourceGcsUri = ""; - - /** - * ContentValidationStats validRecordCount. - * @member {number|Long} validRecordCount - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.validRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ContentValidationStats invalidRecordCount. - * @member {number|Long} invalidRecordCount - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.invalidRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + return ListDataLabelingJobsResponse; + })(); - /** - * ContentValidationStats partialErrors. - * @member {Array.} partialErrors - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.partialErrors = $util.emptyArray; + v1beta1.DeleteDataLabelingJobRequest = (function() { - /** - * Creates a new ContentValidationStats instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats instance - */ - ContentValidationStats.create = function create(properties) { - return new ContentValidationStats(properties); - }; + /** + * Properties of a DeleteDataLabelingJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeleteDataLabelingJobRequest + * @property {string|null} [name] DeleteDataLabelingJobRequest name + */ - /** - * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContentValidationStats.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceGcsUri); - if (message.validRecordCount != null && Object.hasOwnProperty.call(message, "validRecordCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.validRecordCount); - if (message.invalidRecordCount != null && Object.hasOwnProperty.call(message, "invalidRecordCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.invalidRecordCount); - if (message.partialErrors != null && message.partialErrors.length) - for (var i = 0; i < message.partialErrors.length; ++i) - $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.encode(message.partialErrors[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; + /** + * Constructs a new DeleteDataLabelingJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteDataLabelingJobRequest. + * @implements IDeleteDataLabelingJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set + */ + function DeleteDataLabelingJobRequest(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]]; + } - /** - * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContentValidationStats.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * DeleteDataLabelingJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @instance + */ + DeleteDataLabelingJobRequest.prototype.name = ""; - /** - * Decodes a ContentValidationStats message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @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.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContentValidationStats.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.NearestNeighborSearchOperationMetadata.ContentValidationStats(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.sourceGcsUri = reader.string(); - break; - } - case 2: { - message.validRecordCount = reader.int64(); - break; - } - case 3: { - message.invalidRecordCount = reader.int64(); - break; - } - case 4: { - if (!(message.partialErrors && message.partialErrors.length)) - message.partialErrors = []; - message.partialErrors.push($root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest instance + */ + DeleteDataLabelingJobRequest.create = function create(properties) { + return new DeleteDataLabelingJobRequest(properties); + }; - /** - * Decodes a ContentValidationStats message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContentValidationStats.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDataLabelingJobRequest.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; + }; - /** - * Verifies a ContentValidationStats message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ContentValidationStats.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - if (!$util.isString(message.sourceGcsUri)) - return "sourceGcsUri: string expected"; - if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) - if (!$util.isInteger(message.validRecordCount) && !(message.validRecordCount && $util.isInteger(message.validRecordCount.low) && $util.isInteger(message.validRecordCount.high))) - return "validRecordCount: integer|Long expected"; - if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) - if (!$util.isInteger(message.invalidRecordCount) && !(message.invalidRecordCount && $util.isInteger(message.invalidRecordCount.low) && $util.isInteger(message.invalidRecordCount.high))) - return "invalidRecordCount: integer|Long expected"; - if (message.partialErrors != null && message.hasOwnProperty("partialErrors")) { - if (!Array.isArray(message.partialErrors)) - return "partialErrors: array expected"; - for (var i = 0; i < message.partialErrors.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify(message.partialErrors[i]); - if (error) - return "partialErrors." + error; - } - } - return null; - }; + /** + * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a ContentValidationStats message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats - */ - ContentValidationStats.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); - if (object.sourceGcsUri != null) - message.sourceGcsUri = String(object.sourceGcsUri); - if (object.validRecordCount != null) - if ($util.Long) - (message.validRecordCount = $util.Long.fromValue(object.validRecordCount)).unsigned = false; - else if (typeof object.validRecordCount === "string") - message.validRecordCount = parseInt(object.validRecordCount, 10); - else if (typeof object.validRecordCount === "number") - message.validRecordCount = object.validRecordCount; - else if (typeof object.validRecordCount === "object") - message.validRecordCount = new $util.LongBits(object.validRecordCount.low >>> 0, object.validRecordCount.high >>> 0).toNumber(); - if (object.invalidRecordCount != null) - if ($util.Long) - (message.invalidRecordCount = $util.Long.fromValue(object.invalidRecordCount)).unsigned = false; - else if (typeof object.invalidRecordCount === "string") - message.invalidRecordCount = parseInt(object.invalidRecordCount, 10); - else if (typeof object.invalidRecordCount === "number") - message.invalidRecordCount = object.invalidRecordCount; - else if (typeof object.invalidRecordCount === "object") - message.invalidRecordCount = new $util.LongBits(object.invalidRecordCount.low >>> 0, object.invalidRecordCount.high >>> 0).toNumber(); - if (object.partialErrors) { - if (!Array.isArray(object.partialErrors)) - throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: array expected"); - message.partialErrors = []; - for (var i = 0; i < object.partialErrors.length; ++i) { - if (typeof object.partialErrors[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: object expected"); - message.partialErrors[i] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.fromObject(object.partialErrors[i]); + /** + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @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.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDataLabelingJobRequest.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.DeleteDataLabelingJobRequest(); + 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; - }; + } + return message; + }; - /** - * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} message ContentValidationStats - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ContentValidationStats.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.partialErrors = []; - if (options.defaults) { - object.sourceGcsUri = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.validRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.validRecordCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.invalidRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.invalidRecordCount = options.longs === String ? "0" : 0; - } - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - object.sourceGcsUri = message.sourceGcsUri; - if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) - if (typeof message.validRecordCount === "number") - object.validRecordCount = options.longs === String ? String(message.validRecordCount) : message.validRecordCount; - else - object.validRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.validRecordCount) : options.longs === Number ? new $util.LongBits(message.validRecordCount.low >>> 0, message.validRecordCount.high >>> 0).toNumber() : message.validRecordCount; - if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) - if (typeof message.invalidRecordCount === "number") - object.invalidRecordCount = options.longs === String ? String(message.invalidRecordCount) : message.invalidRecordCount; - else - object.invalidRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRecordCount) : options.longs === Number ? new $util.LongBits(message.invalidRecordCount.low >>> 0, message.invalidRecordCount.high >>> 0).toNumber() : message.invalidRecordCount; - if (message.partialErrors && message.partialErrors.length) { - object.partialErrors = []; - for (var j = 0; j < message.partialErrors.length; ++j) - object.partialErrors[j] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.toObject(message.partialErrors[j], options); - } + /** + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteDataLabelingJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteDataLabelingJobRequest.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 DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + */ + DeleteDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this ContentValidationStats to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - * @returns {Object.} JSON object - */ - ContentValidationStats.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteDataLabelingJobRequest.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; + }; - /** - * Gets the default type url for ContentValidationStats - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - ContentValidationStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats"; - }; + /** + * Converts this DeleteDataLabelingJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteDataLabelingJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ContentValidationStats; - })(); + /** + * Gets the default type url for DeleteDataLabelingJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest"; + }; - return NearestNeighborSearchOperationMetadata; + return DeleteDataLabelingJobRequest; })(); - v1beta1.JobService = (function() { + v1beta1.CancelDataLabelingJobRequest = (function() { /** - * Constructs a new JobService service. + * Properties of a CancelDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a JobService - * @extends $protobuf.rpc.Service + * @interface ICancelDataLabelingJobRequest + * @property {string|null} [name] CancelDataLabelingJobRequest name + */ + + /** + * Constructs a new CancelDataLabelingJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CancelDataLabelingJobRequest. + * @implements ICancelDataLabelingJobRequest * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set */ - function JobService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + function CancelDataLabelingJobRequest(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]]; } - (JobService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = JobService; + /** + * CancelDataLabelingJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @instance + */ + CancelDataLabelingJobRequest.prototype.name = ""; /** - * Creates new JobService service using the specified rpc implementation. + * Creates a new CancelDataLabelingJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.JobService + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {JobService} RPC service. Useful where requests and/or responses are streamed. + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest instance */ - JobService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); + CancelDataLabelingJobRequest.create = function create(properties) { + return new CancelDataLabelingJobRequest(properties); }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createCustomJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.CustomJob} [response] CustomJob + * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CancelDataLabelingJobRequest.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; + }; /** - * Calls CreateCustomJob. - * @function createCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob - * @returns {undefined} - * @variation 1 + * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.createCustomJob = function createCustomJob(request, callback) { - return this.rpcCall(createCustomJob, $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, $root.google.cloud.aiplatform.v1beta1.CustomJob, request, callback); - }, "name", { value: "CreateCustomJob" }); + CancelDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls CreateCustomJob. - * @function createCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @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.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CancelDataLabelingJobRequest.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.CancelDataLabelingJobRequest(); + 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; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getCustomJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.CustomJob} [response] CustomJob + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CancelDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetCustomJob. - * @function getCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob - * @returns {undefined} - * @variation 1 + * Verifies a CancelDataLabelingJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(JobService.prototype.getCustomJob = function getCustomJob(request, callback) { - return this.rpcCall(getCustomJob, $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest, $root.google.cloud.aiplatform.v1beta1.CustomJob, request, callback); - }, "name", { value: "GetCustomJob" }); + CancelDataLabelingJobRequest.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; + }; /** - * Calls GetCustomJob. - * @function getCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest */ + CancelDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listCustomJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListCustomJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} [response] ListCustomJobsResponse + * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} message CancelDataLabelingJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + CancelDataLabelingJobRequest.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; + }; /** - * Calls ListCustomJobs. - * @function listCustomJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this CancelDataLabelingJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback} callback Node-style callback called with the error, if any, and ListCustomJobsResponse - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(JobService.prototype.listCustomJobs = function listCustomJobs(request, callback) { - return this.rpcCall(listCustomJobs, $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse, request, callback); - }, "name", { value: "ListCustomJobs" }); + CancelDataLabelingJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls ListCustomJobs. - * @function listCustomJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for CancelDataLabelingJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + CancelDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest"; + }; + + return CancelDataLabelingJobRequest; + })(); + + v1beta1.CreateHyperparameterTuningJobRequest = (function() { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteCustomJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Properties of a CreateHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateHyperparameterTuningJobRequest + * @property {string|null} [parent] CreateHyperparameterTuningJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null} [hyperparameterTuningJob] CreateHyperparameterTuningJobRequest hyperparameterTuningJob */ /** - * Calls DeleteCustomJob. - * @function deleteCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Constructs a new CreateHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateHyperparameterTuningJobRequest. + * @implements ICreateHyperparameterTuningJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set + */ + function CreateHyperparameterTuningJobRequest(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]]; + } + + /** + * CreateHyperparameterTuningJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.deleteCustomJob = function deleteCustomJob(request, callback) { - return this.rpcCall(deleteCustomJob, $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteCustomJob" }); + CreateHyperparameterTuningJobRequest.prototype.parent = ""; /** - * Calls DeleteCustomJob. - * @function deleteCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * CreateHyperparameterTuningJobRequest hyperparameterTuningJob. + * @member {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null|undefined} hyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + CreateHyperparameterTuningJobRequest.prototype.hyperparameterTuningJob = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelCustomJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CancelCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest instance */ + CreateHyperparameterTuningJobRequest.create = function create(properties) { + return new CreateHyperparameterTuningJobRequest(properties); + }; /** - * Calls CancelCustomJob. - * @function cancelCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.cancelCustomJob = function cancelCustomJob(request, callback) { - return this.rpcCall(cancelCustomJob, $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelCustomJob" }); + CreateHyperparameterTuningJobRequest.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.hyperparameterTuningJob != null && Object.hasOwnProperty.call(message, "hyperparameterTuningJob")) + $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encode(message.hyperparameterTuningJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls CancelCustomJob. - * @function cancelCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CreateHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} [response] DataLabelingJob + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @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.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CreateHyperparameterTuningJobRequest.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.CreateHyperparameterTuningJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls CreateDataLabelingJob. - * @function createDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob - * @returns {undefined} - * @variation 1 + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(JobService.prototype.createDataLabelingJob = function createDataLabelingJob(request, callback) { - return this.rpcCall(createDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, $root.google.cloud.aiplatform.v1beta1.DataLabelingJob, request, callback); - }, "name", { value: "CreateDataLabelingJob" }); + CreateHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls CreateDataLabelingJob. - * @function createDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a CreateHyperparameterTuningJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + CreateHyperparameterTuningJobRequest.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.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify(message.hyperparameterTuningJob); + if (error) + return "hyperparameterTuningJob." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} [response] DataLabelingJob + * Creates a CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest */ + CreateHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.hyperparameterTuningJob != null) { + if (typeof object.hyperparameterTuningJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.hyperparameterTuningJob: object expected"); + message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJob); + } + return message; + }; /** - * Calls GetDataLabelingJob. - * @function getDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob - * @returns {undefined} - * @variation 1 + * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(JobService.prototype.getDataLabelingJob = function getDataLabelingJob(request, callback) { - return this.rpcCall(getDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, $root.google.cloud.aiplatform.v1beta1.DataLabelingJob, request, callback); - }, "name", { value: "GetDataLabelingJob" }); + CreateHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.hyperparameterTuningJob = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) + object.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJob, options); + return object; + }; /** - * Calls GetDataLabelingJob. - * @function getDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this CreateHyperparameterTuningJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + CreateHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listDataLabelingJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListDataLabelingJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} [response] ListDataLabelingJobsResponse + * Gets the default type url for CreateHyperparameterTuningJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest"; + }; + + return CreateHyperparameterTuningJobRequest; + })(); + + v1beta1.GetHyperparameterTuningJobRequest = (function() { + + /** + * Properties of a GetHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGetHyperparameterTuningJobRequest + * @property {string|null} [name] GetHyperparameterTuningJobRequest name */ /** - * Calls ListDataLabelingJobs. - * @function listDataLabelingJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback} callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse - * @returns {undefined} - * @variation 1 + * Constructs a new GetHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GetHyperparameterTuningJobRequest. + * @implements IGetHyperparameterTuningJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set */ - Object.defineProperty(JobService.prototype.listDataLabelingJobs = function listDataLabelingJobs(request, callback) { - return this.rpcCall(listDataLabelingJobs, $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse, request, callback); - }, "name", { value: "ListDataLabelingJobs" }); + function GetHyperparameterTuningJobRequest(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]]; + } /** - * Calls ListDataLabelingJobs. - * @function listDataLabelingJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService + * GetHyperparameterTuningJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + GetHyperparameterTuningJobRequest.prototype.name = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest instance */ + GetHyperparameterTuningJobRequest.create = function create(properties) { + return new GetHyperparameterTuningJobRequest(properties); + }; /** - * Calls DeleteDataLabelingJob. - * @function deleteDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.deleteDataLabelingJob = function deleteDataLabelingJob(request, callback) { - return this.rpcCall(deleteDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteDataLabelingJob" }); + GetHyperparameterTuningJobRequest.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; + }; /** - * Calls DeleteDataLabelingJob. - * @function deleteDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @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.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetHyperparameterTuningJobRequest.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.GetHyperparameterTuningJobRequest(); + 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 GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetHyperparameterTuningJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetHyperparameterTuningJobRequest.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 GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + */ + GetHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetHyperparameterTuningJobRequest.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 GetHyperparameterTuningJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + GetHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CancelDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Gets the default type url for GetHyperparameterTuningJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest"; + }; + + return GetHyperparameterTuningJobRequest; + })(); + + v1beta1.ListHyperparameterTuningJobsRequest = (function() { + + /** + * Properties of a ListHyperparameterTuningJobsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListHyperparameterTuningJobsRequest + * @property {string|null} [parent] ListHyperparameterTuningJobsRequest parent + * @property {string|null} [filter] ListHyperparameterTuningJobsRequest filter + * @property {number|null} [pageSize] ListHyperparameterTuningJobsRequest pageSize + * @property {string|null} [pageToken] ListHyperparameterTuningJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListHyperparameterTuningJobsRequest readMask + */ + + /** + * Constructs a new ListHyperparameterTuningJobsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListHyperparameterTuningJobsRequest. + * @implements IListHyperparameterTuningJobsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set */ + function ListHyperparameterTuningJobsRequest(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]]; + } /** - * Calls CancelDataLabelingJob. - * @function cancelDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * ListHyperparameterTuningJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.cancelDataLabelingJob = function cancelDataLabelingJob(request, callback) { - return this.rpcCall(cancelDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelDataLabelingJob" }); + ListHyperparameterTuningJobsRequest.prototype.parent = ""; /** - * Calls CancelDataLabelingJob. - * @function cancelDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * ListHyperparameterTuningJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListHyperparameterTuningJobsRequest.prototype.filter = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} [response] HyperparameterTuningJob + * ListHyperparameterTuningJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @instance */ + ListHyperparameterTuningJobsRequest.prototype.pageSize = 0; /** - * Calls CreateHyperparameterTuningJob. - * @function createHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * ListHyperparameterTuningJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.createHyperparameterTuningJob = function createHyperparameterTuningJob(request, callback) { - return this.rpcCall(createHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, request, callback); - }, "name", { value: "CreateHyperparameterTuningJob" }); + ListHyperparameterTuningJobsRequest.prototype.pageToken = ""; /** - * Calls CreateHyperparameterTuningJob. - * @function createHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * ListHyperparameterTuningJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListHyperparameterTuningJobsRequest.prototype.readMask = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} [response] HyperparameterTuningJob + * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest instance */ + ListHyperparameterTuningJobsRequest.create = function create(properties) { + return new ListHyperparameterTuningJobsRequest(properties); + }; /** - * Calls GetHyperparameterTuningJob. - * @function getHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob - * @returns {undefined} - * @variation 1 + * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.getHyperparameterTuningJob = function getHyperparameterTuningJob(request, callback) { - return this.rpcCall(getHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, request, callback); - }, "name", { value: "GetHyperparameterTuningJob" }); + ListHyperparameterTuningJobsRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; /** - * Calls GetHyperparameterTuningJob. - * @function getHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ListHyperparameterTuningJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listHyperparameterTuningJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListHyperparameterTuningJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} [response] ListHyperparameterTuningJobsResponse + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @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.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListHyperparameterTuningJobsRequest.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.ListHyperparameterTuningJobsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls ListHyperparameterTuningJobs. - * @function listHyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback} callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse - * @returns {undefined} - * @variation 1 + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(JobService.prototype.listHyperparameterTuningJobs = function listHyperparameterTuningJobs(request, callback) { - return this.rpcCall(listHyperparameterTuningJobs, $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse, request, callback); - }, "name", { value: "ListHyperparameterTuningJobs" }); + ListHyperparameterTuningJobsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListHyperparameterTuningJobs. - * @function listHyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a ListHyperparameterTuningJobsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + ListHyperparameterTuningJobsRequest.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.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest */ + ListHyperparameterTuningJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; /** - * Calls DeleteHyperparameterTuningJob. - * @function deleteHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(JobService.prototype.deleteHyperparameterTuningJob = function deleteHyperparameterTuningJob(request, callback) { - return this.rpcCall(deleteHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteHyperparameterTuningJob" }); + ListHyperparameterTuningJobsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + return object; + }; /** - * Calls DeleteHyperparameterTuningJob. - * @function deleteHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this ListHyperparameterTuningJobsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + ListHyperparameterTuningJobsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CancelHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Gets the default type url for ListHyperparameterTuningJobsRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + ListHyperparameterTuningJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest"; + }; + + return ListHyperparameterTuningJobsRequest; + })(); + + v1beta1.ListHyperparameterTuningJobsResponse = (function() { /** - * Calls CancelHyperparameterTuningJob. - * @function cancelHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Properties of a ListHyperparameterTuningJobsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListHyperparameterTuningJobsResponse + * @property {Array.|null} [hyperparameterTuningJobs] ListHyperparameterTuningJobsResponse hyperparameterTuningJobs + * @property {string|null} [nextPageToken] ListHyperparameterTuningJobsResponse nextPageToken */ - Object.defineProperty(JobService.prototype.cancelHyperparameterTuningJob = function cancelHyperparameterTuningJob(request, callback) { - return this.rpcCall(cancelHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelHyperparameterTuningJob" }); /** - * Calls CancelHyperparameterTuningJob. - * @function cancelHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Constructs a new ListHyperparameterTuningJobsResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListHyperparameterTuningJobsResponse. + * @implements IListHyperparameterTuningJobsResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set */ + function ListHyperparameterTuningJobsResponse(properties) { + this.hyperparameterTuningJobs = []; + 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]]; + } /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob + * ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. + * @member {Array.} hyperparameterTuningJobs + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @instance */ + ListHyperparameterTuningJobsResponse.prototype.hyperparameterTuningJobs = $util.emptyArray; /** - * Calls CreateBatchPredictionJob. - * @function createBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * ListHyperparameterTuningJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.createBatchPredictionJob = function createBatchPredictionJob(request, callback) { - return this.rpcCall(createBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob, request, callback); - }, "name", { value: "CreateBatchPredictionJob" }); + ListHyperparameterTuningJobsResponse.prototype.nextPageToken = ""; /** - * Calls CreateBatchPredictionJob. - * @function createBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse instance */ + ListHyperparameterTuningJobsResponse.create = function create(properties) { + return new ListHyperparameterTuningJobsResponse(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob + * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ListHyperparameterTuningJobsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.hyperparameterTuningJobs != null && message.hyperparameterTuningJobs.length) + for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encode(message.hyperparameterTuningJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; /** - * Calls GetBatchPredictionJob. - * @function getBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob - * @returns {undefined} - * @variation 1 + * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.getBatchPredictionJob = function getBatchPredictionJob(request, callback) { - return this.rpcCall(getBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob, request, callback); - }, "name", { value: "GetBatchPredictionJob" }); + ListHyperparameterTuningJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls GetBatchPredictionJob. - * @function getBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @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.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListHyperparameterTuningJobsResponse.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.ListHyperparameterTuningJobsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length)) + message.hyperparameterTuningJobs = []; + message.hyperparameterTuningJobs.push($root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listBatchPredictionJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListBatchPredictionJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} [response] ListBatchPredictionJobsResponse + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListHyperparameterTuningJobsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls ListBatchPredictionJobs. - * @function listBatchPredictionJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback} callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse - * @returns {undefined} - * @variation 1 + * Verifies a ListHyperparameterTuningJobsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(JobService.prototype.listBatchPredictionJobs = function listBatchPredictionJobs(request, callback) { - return this.rpcCall(listBatchPredictionJobs, $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse, request, callback); - }, "name", { value: "ListBatchPredictionJobs" }); + ListHyperparameterTuningJobsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.hyperparameterTuningJobs != null && message.hasOwnProperty("hyperparameterTuningJobs")) { + if (!Array.isArray(message.hyperparameterTuningJobs)) + return "hyperparameterTuningJobs: array expected"; + for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify(message.hyperparameterTuningJobs[i]); + if (error) + return "hyperparameterTuningJobs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; /** - * Calls ListBatchPredictionJobs. - * @function listBatchPredictionJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse */ + ListHyperparameterTuningJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse(); + if (object.hyperparameterTuningJobs) { + if (!Array.isArray(object.hyperparameterTuningJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: array expected"); + message.hyperparameterTuningJobs = []; + for (var i = 0; i < object.hyperparameterTuningJobs.length; ++i) { + if (typeof object.hyperparameterTuningJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: object expected"); + message.hyperparameterTuningJobs[i] = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJobs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + ListHyperparameterTuningJobsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.hyperparameterTuningJobs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length) { + object.hyperparameterTuningJobs = []; + for (var j = 0; j < message.hyperparameterTuningJobs.length; ++j) + object.hyperparameterTuningJobs[j] = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJobs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; /** - * Calls DeleteBatchPredictionJob. - * @function deleteBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this ListHyperparameterTuningJobsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(JobService.prototype.deleteBatchPredictionJob = function deleteBatchPredictionJob(request, callback) { - return this.rpcCall(deleteBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteBatchPredictionJob" }); + ListHyperparameterTuningJobsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls DeleteBatchPredictionJob. - * @function deleteBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for ListHyperparameterTuningJobsResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + ListHyperparameterTuningJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse"; + }; + + return ListHyperparameterTuningJobsResponse; + })(); + + v1beta1.DeleteHyperparameterTuningJobRequest = (function() { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|cancelBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CancelBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Properties of a DeleteHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeleteHyperparameterTuningJobRequest + * @property {string|null} [name] DeleteHyperparameterTuningJobRequest name */ /** - * Calls CancelBatchPredictionJob. - * @function cancelBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Constructs a new DeleteHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteHyperparameterTuningJobRequest. + * @implements IDeleteHyperparameterTuningJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set */ - Object.defineProperty(JobService.prototype.cancelBatchPredictionJob = function cancelBatchPredictionJob(request, callback) { - return this.rpcCall(cancelBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelBatchPredictionJob" }); + function DeleteHyperparameterTuningJobRequest(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]]; + } /** - * Calls CancelBatchPredictionJob. - * @function cancelBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * DeleteHyperparameterTuningJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + DeleteHyperparameterTuningJobRequest.prototype.name = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|createModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob + * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest instance */ + DeleteHyperparameterTuningJobRequest.create = function create(properties) { + return new DeleteHyperparameterTuningJobRequest(properties); + }; /** - * Calls CreateModelDeploymentMonitoringJob. - * @function createModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob - * @returns {undefined} - * @variation 1 + * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.createModelDeploymentMonitoringJob = function createModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(createModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, request, callback); - }, "name", { value: "CreateModelDeploymentMonitoringJob" }); + DeleteHyperparameterTuningJobRequest.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; + }; /** - * Calls CreateModelDeploymentMonitoringJob. - * @function createModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + DeleteHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|searchModelDeploymentMonitoringStatsAnomalies}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef SearchModelDeploymentMonitoringStatsAnomaliesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @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.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + DeleteHyperparameterTuningJobRequest.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.DeleteHyperparameterTuningJobRequest(); + 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; + }; /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @function searchModelDeploymentMonitoringStatsAnomalies - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback} callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse - * @returns {undefined} - * @variation 1 + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(JobService.prototype.searchModelDeploymentMonitoringStatsAnomalies = function searchModelDeploymentMonitoringStatsAnomalies(request, callback) { - return this.rpcCall(searchModelDeploymentMonitoringStatsAnomalies, $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, request, callback); - }, "name", { value: "SearchModelDeploymentMonitoringStatsAnomalies" }); + DeleteHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @function searchModelDeploymentMonitoringStatsAnomalies - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a DeleteHyperparameterTuningJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + DeleteHyperparameterTuningJobRequest.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; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|getModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob + * Creates a DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest */ + DeleteHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Calls GetModelDeploymentMonitoringJob. - * @function getModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob - * @returns {undefined} - * @variation 1 + * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(JobService.prototype.getModelDeploymentMonitoringJob = function getModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(getModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, request, callback); - }, "name", { value: "GetModelDeploymentMonitoringJob" }); + DeleteHyperparameterTuningJobRequest.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; + }; /** - * Calls GetModelDeploymentMonitoringJob. - * @function getModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this DeleteHyperparameterTuningJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + DeleteHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|listModelDeploymentMonitoringJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListModelDeploymentMonitoringJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} [response] ListModelDeploymentMonitoringJobsResponse + * Gets the default type url for DeleteHyperparameterTuningJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + DeleteHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest"; + }; - /** - * Calls ListModelDeploymentMonitoringJobs. - * @function listModelDeploymentMonitoringJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback} callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.listModelDeploymentMonitoringJobs = function listModelDeploymentMonitoringJobs(request, callback) { - return this.rpcCall(listModelDeploymentMonitoringJobs, $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse, request, callback); - }, "name", { value: "ListModelDeploymentMonitoringJobs" }); + return DeleteHyperparameterTuningJobRequest; + })(); + + v1beta1.CancelHyperparameterTuningJobRequest = (function() { /** - * Calls ListModelDeploymentMonitoringJobs. - * @function listModelDeploymentMonitoringJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a CancelHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICancelHyperparameterTuningJobRequest + * @property {string|null} [name] CancelHyperparameterTuningJobRequest name */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|updateModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef UpdateModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Constructs a new CancelHyperparameterTuningJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CancelHyperparameterTuningJobRequest. + * @implements ICancelHyperparameterTuningJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set */ + function CancelHyperparameterTuningJobRequest(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]]; + } /** - * Calls UpdateModelDeploymentMonitoringJob. - * @function updateModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * CancelHyperparameterTuningJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.updateModelDeploymentMonitoringJob = function updateModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(updateModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateModelDeploymentMonitoringJob" }); + CancelHyperparameterTuningJobRequest.prototype.name = ""; /** - * Calls UpdateModelDeploymentMonitoringJob. - * @function updateModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest instance */ + CancelHyperparameterTuningJobRequest.create = function create(properties) { + return new CancelHyperparameterTuningJobRequest(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|deleteModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CancelHyperparameterTuningJobRequest.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; + }; /** - * Calls DeleteModelDeploymentMonitoringJob. - * @function deleteModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.deleteModelDeploymentMonitoringJob = function deleteModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(deleteModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteModelDeploymentMonitoringJob" }); + CancelHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls DeleteModelDeploymentMonitoringJob. - * @function deleteModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @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.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CancelHyperparameterTuningJobRequest.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.CancelHyperparameterTuningJobRequest(); + 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; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|pauseModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef PauseModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CancelHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls PauseModelDeploymentMonitoringJob. - * @function pauseModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Verifies a CancelHyperparameterTuningJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(JobService.prototype.pauseModelDeploymentMonitoringJob = function pauseModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(pauseModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "PauseModelDeploymentMonitoringJob" }); + CancelHyperparameterTuningJobRequest.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; + }; /** - * Calls PauseModelDeploymentMonitoringJob. - * @function pauseModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest */ + CancelHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService|resumeModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ResumeModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + CancelHyperparameterTuningJobRequest.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; + }; /** - * Calls ResumeModelDeploymentMonitoringJob. - * @function resumeModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this CancelHyperparameterTuningJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(JobService.prototype.resumeModelDeploymentMonitoringJob = function resumeModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(resumeModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "ResumeModelDeploymentMonitoringJob" }); + CancelHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * Calls ResumeModelDeploymentMonitoringJob. - * @function resumeModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Gets the default type url for CancelHyperparameterTuningJobRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url */ + CancelHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest"; + }; - return JobService; + return CancelHyperparameterTuningJobRequest; })(); - v1beta1.CreateCustomJobRequest = (function() { + v1beta1.CreateNasJobRequest = (function() { /** - * Properties of a CreateCustomJobRequest. + * Properties of a CreateNasJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateCustomJobRequest - * @property {string|null} [parent] CreateCustomJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.ICustomJob|null} [customJob] CreateCustomJobRequest customJob + * @interface ICreateNasJobRequest + * @property {string|null} [parent] CreateNasJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.INasJob|null} [nasJob] CreateNasJobRequest nasJob */ /** - * Constructs a new CreateCustomJobRequest. + * Constructs a new CreateNasJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateCustomJobRequest. - * @implements ICreateCustomJobRequest + * @classdesc Represents a CreateNasJobRequest. + * @implements ICreateNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateNasJobRequest=} [properties] Properties to set */ - function CreateCustomJobRequest(properties) { + function CreateNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -257604,80 +269971,80 @@ } /** - * CreateCustomJobRequest parent. + * CreateNasJobRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @instance */ - CreateCustomJobRequest.prototype.parent = ""; + CreateNasJobRequest.prototype.parent = ""; /** - * CreateCustomJobRequest customJob. - * @member {google.cloud.aiplatform.v1beta1.ICustomJob|null|undefined} customJob - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * CreateNasJobRequest nasJob. + * @member {google.cloud.aiplatform.v1beta1.INasJob|null|undefined} nasJob + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @instance */ - CreateCustomJobRequest.prototype.customJob = null; + CreateNasJobRequest.prototype.nasJob = null; /** - * Creates a new CreateCustomJobRequest instance using the specified properties. + * Creates a new CreateNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateNasJobRequest} CreateNasJobRequest instance */ - CreateCustomJobRequest.create = function create(properties) { - return new CreateCustomJobRequest(properties); + CreateNasJobRequest.create = function create(properties) { + return new CreateNasJobRequest(properties); }; /** - * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. + * Encodes the specified CreateNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateNasJobRequest} message CreateNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomJobRequest.encode = function encode(message, writer) { + CreateNasJobRequest.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.customJob != null && Object.hasOwnProperty.call(message, "customJob")) - $root.google.cloud.aiplatform.v1beta1.CustomJob.encode(message.customJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nasJob != null && Object.hasOwnProperty.call(message, "nasJob")) + $root.google.cloud.aiplatform.v1beta1.NasJob.encode(message.nasJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. + * Encodes the specified CreateNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateNasJobRequest} message CreateNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer. + * Decodes a CreateNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @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.CreateCustomJobRequest} CreateCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateNasJobRequest} CreateNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomJobRequest.decode = function decode(reader, length) { + CreateNasJobRequest.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.CreateCustomJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -257686,7 +270053,7 @@ break; } case 2: { - message.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.decode(reader, reader.uint32()); + message.nasJob = $root.google.cloud.aiplatform.v1beta1.NasJob.decode(reader, reader.uint32()); break; } default: @@ -257698,136 +270065,136 @@ }; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateNasJobRequest} CreateNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateCustomJobRequest message. + * Verifies a CreateNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateCustomJobRequest.verify = function verify(message) { + CreateNasJobRequest.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.customJob != null && message.hasOwnProperty("customJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJob); + if (message.nasJob != null && message.hasOwnProperty("nasJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.NasJob.verify(message.nasJob); if (error) - return "customJob." + error; + return "nasJob." + error; } return null; }; /** - * Creates a CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateNasJobRequest} CreateNasJobRequest */ - CreateCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest) + CreateNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateNasJobRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.customJob != null) { - if (typeof object.customJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.customJob: object expected"); - message.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.fromObject(object.customJob); + if (object.nasJob != null) { + if (typeof object.nasJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateNasJobRequest.nasJob: object expected"); + message.nasJob = $root.google.cloud.aiplatform.v1beta1.NasJob.fromObject(object.nasJob); } return message; }; /** - * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} message CreateCustomJobRequest + * @param {google.cloud.aiplatform.v1beta1.CreateNasJobRequest} message CreateNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateCustomJobRequest.toObject = function toObject(message, options) { + CreateNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.customJob = null; + object.nasJob = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.customJob != null && message.hasOwnProperty("customJob")) - object.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.toObject(message.customJob, options); + if (message.nasJob != null && message.hasOwnProperty("nasJob")) + object.nasJob = $root.google.cloud.aiplatform.v1beta1.NasJob.toObject(message.nasJob, options); return object; }; /** - * Converts this CreateCustomJobRequest to JSON. + * Converts this CreateNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @instance * @returns {Object.} JSON object */ - CreateCustomJobRequest.prototype.toJSON = function toJSON() { + CreateNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateCustomJobRequest + * Gets the default type url for CreateNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateCustomJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateNasJobRequest"; }; - return CreateCustomJobRequest; + return CreateNasJobRequest; })(); - v1beta1.GetCustomJobRequest = (function() { + v1beta1.GetNasJobRequest = (function() { /** - * Properties of a GetCustomJobRequest. + * Properties of a GetNasJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetCustomJobRequest - * @property {string|null} [name] GetCustomJobRequest name + * @interface IGetNasJobRequest + * @property {string|null} [name] GetNasJobRequest name */ /** - * Constructs a new GetCustomJobRequest. + * Constructs a new GetNasJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetCustomJobRequest. - * @implements IGetCustomJobRequest + * @classdesc Represents a GetNasJobRequest. + * @implements IGetNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetNasJobRequest=} [properties] Properties to set */ - function GetCustomJobRequest(properties) { + function GetNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -257835,35 +270202,35 @@ } /** - * GetCustomJobRequest name. + * GetNasJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @instance */ - GetCustomJobRequest.prototype.name = ""; + GetNasJobRequest.prototype.name = ""; /** - * Creates a new GetCustomJobRequest instance using the specified properties. + * Creates a new GetNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetNasJobRequest} GetNasJobRequest instance */ - GetCustomJobRequest.create = function create(properties) { - return new GetCustomJobRequest(properties); + GetNasJobRequest.create = function create(properties) { + return new GetNasJobRequest(properties); }; /** - * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. + * Encodes the specified GetNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetNasJobRequest} message GetNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomJobRequest.encode = function encode(message, writer) { + GetNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -257872,33 +270239,33 @@ }; /** - * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. + * Encodes the specified GetNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetNasJobRequest} message GetNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer. + * Decodes a GetNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @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.GetCustomJobRequest} GetCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetNasJobRequest} GetNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomJobRequest.decode = function decode(reader, length) { + GetNasJobRequest.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.GetCustomJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -257915,30 +270282,30 @@ }; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetNasJobRequest} GetNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCustomJobRequest message. + * Verifies a GetNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCustomJobRequest.verify = function verify(message) { + GetNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -257948,32 +270315,32 @@ }; /** - * Creates a GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetNasJobRequest} GetNasJobRequest */ - GetCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest) + GetNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetNasJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} message GetCustomJobRequest + * @param {google.cloud.aiplatform.v1beta1.GetNasJobRequest} message GetNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCustomJobRequest.toObject = function toObject(message, options) { + GetNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -257985,56 +270352,56 @@ }; /** - * Converts this GetCustomJobRequest to JSON. + * Converts this GetNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @instance * @returns {Object.} JSON object */ - GetCustomJobRequest.prototype.toJSON = function toJSON() { + GetNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetCustomJobRequest + * Gets the default type url for GetNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetCustomJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetNasJobRequest"; }; - return GetCustomJobRequest; + return GetNasJobRequest; })(); - v1beta1.ListCustomJobsRequest = (function() { + v1beta1.ListNasJobsRequest = (function() { /** - * Properties of a ListCustomJobsRequest. + * Properties of a ListNasJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListCustomJobsRequest - * @property {string|null} [parent] ListCustomJobsRequest parent - * @property {string|null} [filter] ListCustomJobsRequest filter - * @property {number|null} [pageSize] ListCustomJobsRequest pageSize - * @property {string|null} [pageToken] ListCustomJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListCustomJobsRequest readMask + * @interface IListNasJobsRequest + * @property {string|null} [parent] ListNasJobsRequest parent + * @property {string|null} [filter] ListNasJobsRequest filter + * @property {number|null} [pageSize] ListNasJobsRequest pageSize + * @property {string|null} [pageToken] ListNasJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListNasJobsRequest readMask */ /** - * Constructs a new ListCustomJobsRequest. + * Constructs a new ListNasJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListCustomJobsRequest. - * @implements IListCustomJobsRequest + * @classdesc Represents a ListNasJobsRequest. + * @implements IListNasJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsRequest=} [properties] Properties to set */ - function ListCustomJobsRequest(properties) { + function ListNasJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -258042,67 +270409,67 @@ } /** - * ListCustomJobsRequest parent. + * ListNasJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @instance */ - ListCustomJobsRequest.prototype.parent = ""; + ListNasJobsRequest.prototype.parent = ""; /** - * ListCustomJobsRequest filter. + * ListNasJobsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @instance */ - ListCustomJobsRequest.prototype.filter = ""; + ListNasJobsRequest.prototype.filter = ""; /** - * ListCustomJobsRequest pageSize. + * ListNasJobsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @instance */ - ListCustomJobsRequest.prototype.pageSize = 0; + ListNasJobsRequest.prototype.pageSize = 0; /** - * ListCustomJobsRequest pageToken. + * ListNasJobsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @instance */ - ListCustomJobsRequest.prototype.pageToken = ""; + ListNasJobsRequest.prototype.pageToken = ""; /** - * ListCustomJobsRequest readMask. + * ListNasJobsRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @instance */ - ListCustomJobsRequest.prototype.readMask = null; + ListNasJobsRequest.prototype.readMask = null; /** - * Creates a new ListCustomJobsRequest instance using the specified properties. + * Creates a new ListNasJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListNasJobsRequest} ListNasJobsRequest instance */ - ListCustomJobsRequest.create = function create(properties) { - return new ListCustomJobsRequest(properties); + ListNasJobsRequest.create = function create(properties) { + return new ListNasJobsRequest(properties); }; /** - * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. + * Encodes the specified ListNasJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsRequest} message ListNasJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomJobsRequest.encode = function encode(message, writer) { + ListNasJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -258119,33 +270486,33 @@ }; /** - * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. + * Encodes the specified ListNasJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsRequest} message ListNasJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNasJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer. + * Decodes a ListNasJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @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.ListCustomJobsRequest} ListCustomJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListNasJobsRequest} ListNasJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomJobsRequest.decode = function decode(reader, length) { + ListNasJobsRequest.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.ListCustomJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListNasJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -258178,30 +270545,30 @@ }; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListNasJobsRequest} ListNasJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ListNasJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomJobsRequest message. + * Verifies a ListNasJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomJobsRequest.verify = function verify(message) { + ListNasJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -258225,17 +270592,17 @@ }; /** - * Creates a ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListNasJobsRequest} ListNasJobsRequest */ - ListCustomJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest) + ListNasJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListNasJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListNasJobsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -258246,22 +270613,22 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.ListNasJobsRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNasJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} message ListCustomJobsRequest + * @param {google.cloud.aiplatform.v1beta1.ListNasJobsRequest} message ListNasJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomJobsRequest.toObject = function toObject(message, options) { + ListNasJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -258286,54 +270653,54 @@ }; /** - * Converts this ListCustomJobsRequest to JSON. + * Converts this ListNasJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @instance * @returns {Object.} JSON object */ - ListCustomJobsRequest.prototype.toJSON = function toJSON() { + ListNasJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListCustomJobsRequest + * Gets the default type url for ListNasJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListCustomJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListCustomJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListNasJobsRequest"; }; - return ListCustomJobsRequest; + return ListNasJobsRequest; })(); - v1beta1.ListCustomJobsResponse = (function() { + v1beta1.ListNasJobsResponse = (function() { /** - * Properties of a ListCustomJobsResponse. + * Properties of a ListNasJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListCustomJobsResponse - * @property {Array.|null} [customJobs] ListCustomJobsResponse customJobs - * @property {string|null} [nextPageToken] ListCustomJobsResponse nextPageToken + * @interface IListNasJobsResponse + * @property {Array.|null} [nasJobs] ListNasJobsResponse nasJobs + * @property {string|null} [nextPageToken] ListNasJobsResponse nextPageToken */ /** - * Constructs a new ListCustomJobsResponse. + * Constructs a new ListNasJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListCustomJobsResponse. - * @implements IListCustomJobsResponse + * @classdesc Represents a ListNasJobsResponse. + * @implements IListNasJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsResponse=} [properties] Properties to set */ - function ListCustomJobsResponse(properties) { - this.customJobs = []; + function ListNasJobsResponse(properties) { + this.nasJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -258341,88 +270708,88 @@ } /** - * ListCustomJobsResponse customJobs. - * @member {Array.} customJobs - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * ListNasJobsResponse nasJobs. + * @member {Array.} nasJobs + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @instance */ - ListCustomJobsResponse.prototype.customJobs = $util.emptyArray; + ListNasJobsResponse.prototype.nasJobs = $util.emptyArray; /** - * ListCustomJobsResponse nextPageToken. + * ListNasJobsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @instance */ - ListCustomJobsResponse.prototype.nextPageToken = ""; + ListNasJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListCustomJobsResponse instance using the specified properties. + * Creates a new ListNasJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListNasJobsResponse} ListNasJobsResponse instance */ - ListCustomJobsResponse.create = function create(properties) { - return new ListCustomJobsResponse(properties); + ListNasJobsResponse.create = function create(properties) { + return new ListNasJobsResponse(properties); }; /** - * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. + * Encodes the specified ListNasJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsResponse} message ListNasJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomJobsResponse.encode = function encode(message, writer) { + ListNasJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.customJobs != null && message.customJobs.length) - for (var i = 0; i < message.customJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.CustomJob.encode(message.customJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nasJobs != null && message.nasJobs.length) + for (var i = 0; i < message.nasJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.NasJob.encode(message.nasJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. + * Encodes the specified ListNasJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListNasJobsResponse} message ListNasJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListNasJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer. + * Decodes a ListNasJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @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.ListCustomJobsResponse} ListCustomJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListNasJobsResponse} ListNasJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomJobsResponse.decode = function decode(reader, length) { + ListNasJobsResponse.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.ListCustomJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListNasJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.customJobs && message.customJobs.length)) - message.customJobs = []; - message.customJobs.push($root.google.cloud.aiplatform.v1beta1.CustomJob.decode(reader, reader.uint32())); + if (!(message.nasJobs && message.nasJobs.length)) + message.nasJobs = []; + message.nasJobs.push($root.google.cloud.aiplatform.v1beta1.NasJob.decode(reader, reader.uint32())); break; } case 2: { @@ -258438,39 +270805,39 @@ }; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListNasJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListNasJobsResponse} ListNasJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomJobsResponse.decodeDelimited = function decodeDelimited(reader) { + ListNasJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomJobsResponse message. + * Verifies a ListNasJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomJobsResponse.verify = function verify(message) { + ListNasJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.customJobs != null && message.hasOwnProperty("customJobs")) { - if (!Array.isArray(message.customJobs)) - return "customJobs: array expected"; - for (var i = 0; i < message.customJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJobs[i]); + if (message.nasJobs != null && message.hasOwnProperty("nasJobs")) { + if (!Array.isArray(message.nasJobs)) + return "nasJobs: array expected"; + for (var i = 0; i < message.nasJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.NasJob.verify(message.nasJobs[i]); if (error) - return "customJobs." + error; + return "nasJobs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -258480,25 +270847,25 @@ }; /** - * Creates a ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListNasJobsResponse} ListNasJobsResponse */ - ListCustomJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) + ListNasJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListNasJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse(); - if (object.customJobs) { - if (!Array.isArray(object.customJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.customJobs: array expected"); - message.customJobs = []; - for (var i = 0; i < object.customJobs.length; ++i) { - if (typeof object.customJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.customJobs: object expected"); - message.customJobs[i] = $root.google.cloud.aiplatform.v1beta1.CustomJob.fromObject(object.customJobs[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListNasJobsResponse(); + if (object.nasJobs) { + if (!Array.isArray(object.nasJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListNasJobsResponse.nasJobs: array expected"); + message.nasJobs = []; + for (var i = 0; i < object.nasJobs.length; ++i) { + if (typeof object.nasJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListNasJobsResponse.nasJobs: object expected"); + message.nasJobs[i] = $root.google.cloud.aiplatform.v1beta1.NasJob.fromObject(object.nasJobs[i]); } } if (object.nextPageToken != null) @@ -258507,26 +270874,26 @@ }; /** - * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListNasJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} message ListCustomJobsResponse + * @param {google.cloud.aiplatform.v1beta1.ListNasJobsResponse} message ListNasJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomJobsResponse.toObject = function toObject(message, options) { + ListNasJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.customJobs = []; + object.nasJobs = []; if (options.defaults) object.nextPageToken = ""; - if (message.customJobs && message.customJobs.length) { - object.customJobs = []; - for (var j = 0; j < message.customJobs.length; ++j) - object.customJobs[j] = $root.google.cloud.aiplatform.v1beta1.CustomJob.toObject(message.customJobs[j], options); + if (message.nasJobs && message.nasJobs.length) { + object.nasJobs = []; + for (var j = 0; j < message.nasJobs.length; ++j) + object.nasJobs[j] = $root.google.cloud.aiplatform.v1beta1.NasJob.toObject(message.nasJobs[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -258534,52 +270901,52 @@ }; /** - * Converts this ListCustomJobsResponse to JSON. + * Converts this ListNasJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @instance * @returns {Object.} JSON object */ - ListCustomJobsResponse.prototype.toJSON = function toJSON() { + ListNasJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListCustomJobsResponse + * Gets the default type url for ListNasJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListCustomJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListCustomJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListNasJobsResponse"; }; - return ListCustomJobsResponse; + return ListNasJobsResponse; })(); - v1beta1.DeleteCustomJobRequest = (function() { + v1beta1.DeleteNasJobRequest = (function() { /** - * Properties of a DeleteCustomJobRequest. + * Properties of a DeleteNasJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteCustomJobRequest - * @property {string|null} [name] DeleteCustomJobRequest name + * @interface IDeleteNasJobRequest + * @property {string|null} [name] DeleteNasJobRequest name */ /** - * Constructs a new DeleteCustomJobRequest. + * Constructs a new DeleteNasJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteCustomJobRequest. - * @implements IDeleteCustomJobRequest + * @classdesc Represents a DeleteNasJobRequest. + * @implements IDeleteNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest=} [properties] Properties to set */ - function DeleteCustomJobRequest(properties) { + function DeleteNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -258587,35 +270954,35 @@ } /** - * DeleteCustomJobRequest name. + * DeleteNasJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @instance */ - DeleteCustomJobRequest.prototype.name = ""; + DeleteNasJobRequest.prototype.name = ""; /** - * Creates a new DeleteCustomJobRequest instance using the specified properties. + * Creates a new DeleteNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteNasJobRequest} DeleteNasJobRequest instance */ - DeleteCustomJobRequest.create = function create(properties) { - return new DeleteCustomJobRequest(properties); + DeleteNasJobRequest.create = function create(properties) { + return new DeleteNasJobRequest(properties); }; /** - * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. + * Encodes the specified DeleteNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest} message DeleteNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteCustomJobRequest.encode = function encode(message, writer) { + DeleteNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -258624,33 +270991,33 @@ }; /** - * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. + * Encodes the specified DeleteNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest} message DeleteNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @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.DeleteCustomJobRequest} DeleteCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteNasJobRequest} DeleteNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteCustomJobRequest.decode = function decode(reader, length) { + DeleteNasJobRequest.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.DeleteCustomJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -258667,30 +271034,30 @@ }; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteNasJobRequest} DeleteNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteCustomJobRequest message. + * Verifies a DeleteNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteCustomJobRequest.verify = function verify(message) { + DeleteNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -258700,32 +271067,32 @@ }; /** - * Creates a DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteNasJobRequest} DeleteNasJobRequest */ - DeleteCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest) + DeleteNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} message DeleteCustomJobRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteNasJobRequest} message DeleteNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteCustomJobRequest.toObject = function toObject(message, options) { + DeleteNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -258737,52 +271104,52 @@ }; /** - * Converts this DeleteCustomJobRequest to JSON. + * Converts this DeleteNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @instance * @returns {Object.} JSON object */ - DeleteCustomJobRequest.prototype.toJSON = function toJSON() { + DeleteNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteCustomJobRequest + * Gets the default type url for DeleteNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteNasJobRequest"; }; - return DeleteCustomJobRequest; + return DeleteNasJobRequest; })(); - v1beta1.CancelCustomJobRequest = (function() { + v1beta1.CancelNasJobRequest = (function() { /** - * Properties of a CancelCustomJobRequest. + * Properties of a CancelNasJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelCustomJobRequest - * @property {string|null} [name] CancelCustomJobRequest name + * @interface ICancelNasJobRequest + * @property {string|null} [name] CancelNasJobRequest name */ /** - * Constructs a new CancelCustomJobRequest. + * Constructs a new CancelNasJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelCustomJobRequest. - * @implements ICancelCustomJobRequest + * @classdesc Represents a CancelNasJobRequest. + * @implements ICancelNasJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelNasJobRequest=} [properties] Properties to set */ - function CancelCustomJobRequest(properties) { + function CancelNasJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -258790,35 +271157,35 @@ } /** - * CancelCustomJobRequest name. + * CancelNasJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @instance */ - CancelCustomJobRequest.prototype.name = ""; + CancelNasJobRequest.prototype.name = ""; /** - * Creates a new CancelCustomJobRequest instance using the specified properties. + * Creates a new CancelNasJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICancelNasJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelNasJobRequest} CancelNasJobRequest instance */ - CancelCustomJobRequest.create = function create(properties) { - return new CancelCustomJobRequest(properties); + CancelNasJobRequest.create = function create(properties) { + return new CancelNasJobRequest(properties); }; /** - * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. + * Encodes the specified CancelNasJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelNasJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelNasJobRequest} message CancelNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelCustomJobRequest.encode = function encode(message, writer) { + CancelNasJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -258827,33 +271194,33 @@ }; /** - * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. + * Encodes the specified CancelNasJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelNasJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelNasJobRequest} message CancelNasJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelNasJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer. + * Decodes a CancelNasJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @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.CancelCustomJobRequest} CancelCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelNasJobRequest} CancelNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelCustomJobRequest.decode = function decode(reader, length) { + CancelNasJobRequest.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.CancelCustomJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelNasJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -258870,30 +271237,30 @@ }; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelNasJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelNasJobRequest} CancelNasJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { + CancelNasJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelCustomJobRequest message. + * Verifies a CancelNasJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelCustomJobRequest.verify = function verify(message) { + CancelNasJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -258903,32 +271270,32 @@ }; /** - * Creates a CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelNasJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelNasJobRequest} CancelNasJobRequest */ - CancelCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest) + CancelNasJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelNasJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CancelNasJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelNasJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} message CancelCustomJobRequest + * @param {google.cloud.aiplatform.v1beta1.CancelNasJobRequest} message CancelNasJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelCustomJobRequest.toObject = function toObject(message, options) { + CancelNasJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -258940,284 +271307,52 @@ }; /** - * Converts this CancelCustomJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @instance - * @returns {Object.} JSON object - */ - CancelCustomJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for CancelCustomJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - CancelCustomJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelCustomJobRequest"; - }; - - return CancelCustomJobRequest; - })(); - - v1beta1.CreateDataLabelingJobRequest = (function() { - - /** - * Properties of a CreateDataLabelingJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateDataLabelingJobRequest - * @property {string|null} [parent] CreateDataLabelingJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null} [dataLabelingJob] CreateDataLabelingJobRequest dataLabelingJob - */ - - /** - * Constructs a new CreateDataLabelingJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateDataLabelingJobRequest. - * @implements ICreateDataLabelingJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set - */ - function CreateDataLabelingJobRequest(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]]; - } - - /** - * CreateDataLabelingJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @instance - */ - CreateDataLabelingJobRequest.prototype.parent = ""; - - /** - * CreateDataLabelingJobRequest dataLabelingJob. - * @member {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null|undefined} dataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @instance - */ - CreateDataLabelingJobRequest.prototype.dataLabelingJob = null; - - /** - * Creates a new CreateDataLabelingJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest instance - */ - CreateDataLabelingJobRequest.create = function create(properties) { - return new CreateDataLabelingJobRequest(properties); - }; - - /** - * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateDataLabelingJobRequest.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.dataLabelingJob != null && Object.hasOwnProperty.call(message, "dataLabelingJob")) - $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.encode(message.dataLabelingJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @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.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateDataLabelingJobRequest.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.CreateDataLabelingJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32()); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateDataLabelingJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateDataLabelingJobRequest.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.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.verify(message.dataLabelingJob); - if (error) - return "dataLabelingJob." + error; - } - return null; - }; - - /** - * Creates a CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest - */ - CreateDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.dataLabelingJob != null) { - if (typeof object.dataLabelingJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.dataLabelingJob: object expected"); - message.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.fromObject(object.dataLabelingJob); - } - return message; - }; - - /** - * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} message CreateDataLabelingJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateDataLabelingJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.dataLabelingJob = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) - object.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.toObject(message.dataLabelingJob, options); - return object; - }; - - /** - * Converts this CreateDataLabelingJobRequest to JSON. + * Converts this CancelNasJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @instance * @returns {Object.} JSON object */ - CreateDataLabelingJobRequest.prototype.toJSON = function toJSON() { + CancelNasJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateDataLabelingJobRequest + * Gets the default type url for CancelNasJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelNasJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelNasJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelNasJobRequest"; }; - return CreateDataLabelingJobRequest; + return CancelNasJobRequest; })(); - v1beta1.GetDataLabelingJobRequest = (function() { + v1beta1.GetNasTrialDetailRequest = (function() { /** - * Properties of a GetDataLabelingJobRequest. + * Properties of a GetNasTrialDetailRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetDataLabelingJobRequest - * @property {string|null} [name] GetDataLabelingJobRequest name + * @interface IGetNasTrialDetailRequest + * @property {string|null} [name] GetNasTrialDetailRequest name */ /** - * Constructs a new GetDataLabelingJobRequest. + * Constructs a new GetNasTrialDetailRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetDataLabelingJobRequest. - * @implements IGetDataLabelingJobRequest + * @classdesc Represents a GetNasTrialDetailRequest. + * @implements IGetNasTrialDetailRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest=} [properties] Properties to set */ - function GetDataLabelingJobRequest(properties) { + function GetNasTrialDetailRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -259225,35 +271360,35 @@ } /** - * GetDataLabelingJobRequest name. + * GetNasTrialDetailRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @instance */ - GetDataLabelingJobRequest.prototype.name = ""; + GetNasTrialDetailRequest.prototype.name = ""; /** - * Creates a new GetDataLabelingJobRequest instance using the specified properties. + * Creates a new GetNasTrialDetailRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest} GetNasTrialDetailRequest instance */ - GetDataLabelingJobRequest.create = function create(properties) { - return new GetDataLabelingJobRequest(properties); + GetNasTrialDetailRequest.create = function create(properties) { + return new GetNasTrialDetailRequest(properties); }; /** - * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified GetNasTrialDetailRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest} message GetNasTrialDetailRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataLabelingJobRequest.encode = function encode(message, writer) { + GetNasTrialDetailRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -259262,33 +271397,33 @@ }; /** - * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified GetNasTrialDetailRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest} message GetNasTrialDetailRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetNasTrialDetailRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @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.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest} GetNasTrialDetailRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataLabelingJobRequest.decode = function decode(reader, length) { + GetNasTrialDetailRequest.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.GetDataLabelingJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -259305,30 +271440,30 @@ }; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNasTrialDetailRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest} GetNasTrialDetailRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetNasTrialDetailRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDataLabelingJobRequest message. + * Verifies a GetNasTrialDetailRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDataLabelingJobRequest.verify = function verify(message) { + GetNasTrialDetailRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -259338,32 +271473,32 @@ }; /** - * Creates a GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNasTrialDetailRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest} GetNasTrialDetailRequest */ - GetDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest) + GetNasTrialDetailRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetNasTrialDetailRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} message GetDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest} message GetNasTrialDetailRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDataLabelingJobRequest.toObject = function toObject(message, options) { + GetNasTrialDetailRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -259375,57 +271510,54 @@ }; /** - * Converts this GetDataLabelingJobRequest to JSON. + * Converts this GetNasTrialDetailRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @instance * @returns {Object.} JSON object */ - GetDataLabelingJobRequest.prototype.toJSON = function toJSON() { + GetNasTrialDetailRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetDataLabelingJobRequest + * Gets the default type url for GetNasTrialDetailRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetNasTrialDetailRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest"; }; - return GetDataLabelingJobRequest; + return GetNasTrialDetailRequest; })(); - v1beta1.ListDataLabelingJobsRequest = (function() { + v1beta1.ListNasTrialDetailsRequest = (function() { /** - * Properties of a ListDataLabelingJobsRequest. + * Properties of a ListNasTrialDetailsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListDataLabelingJobsRequest - * @property {string|null} [parent] ListDataLabelingJobsRequest parent - * @property {string|null} [filter] ListDataLabelingJobsRequest filter - * @property {number|null} [pageSize] ListDataLabelingJobsRequest pageSize - * @property {string|null} [pageToken] ListDataLabelingJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListDataLabelingJobsRequest readMask - * @property {string|null} [orderBy] ListDataLabelingJobsRequest orderBy + * @interface IListNasTrialDetailsRequest + * @property {string|null} [parent] ListNasTrialDetailsRequest parent + * @property {number|null} [pageSize] ListNasTrialDetailsRequest pageSize + * @property {string|null} [pageToken] ListNasTrialDetailsRequest pageToken */ /** - * Constructs a new ListDataLabelingJobsRequest. + * Constructs a new ListNasTrialDetailsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDataLabelingJobsRequest. - * @implements IListDataLabelingJobsRequest + * @classdesc Represents a ListNasTrialDetailsRequest. + * @implements IListNasTrialDetailsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest=} [properties] Properties to set */ - function ListDataLabelingJobsRequest(properties) { + function ListNasTrialDetailsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -259433,120 +271565,90 @@ } /** - * ListDataLabelingJobsRequest parent. + * ListNasTrialDetailsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest - * @instance - */ - ListDataLabelingJobsRequest.prototype.parent = ""; - - /** - * ListDataLabelingJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @instance */ - ListDataLabelingJobsRequest.prototype.filter = ""; + ListNasTrialDetailsRequest.prototype.parent = ""; /** - * ListDataLabelingJobsRequest pageSize. + * ListNasTrialDetailsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @instance */ - ListDataLabelingJobsRequest.prototype.pageSize = 0; + ListNasTrialDetailsRequest.prototype.pageSize = 0; /** - * ListDataLabelingJobsRequest pageToken. + * ListNasTrialDetailsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest - * @instance - */ - ListDataLabelingJobsRequest.prototype.pageToken = ""; - - /** - * ListDataLabelingJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest - * @instance - */ - ListDataLabelingJobsRequest.prototype.readMask = null; - - /** - * ListDataLabelingJobsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @instance */ - ListDataLabelingJobsRequest.prototype.orderBy = ""; + ListNasTrialDetailsRequest.prototype.pageToken = ""; /** - * Creates a new ListDataLabelingJobsRequest instance using the specified properties. + * Creates a new ListNasTrialDetailsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest instance */ - ListDataLabelingJobsRequest.create = function create(properties) { - return new ListDataLabelingJobsRequest(properties); + ListNasTrialDetailsRequest.create = function create(properties) { + return new ListNasTrialDetailsRequest(properties); }; /** - * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. + * Encodes the specified ListNasTrialDetailsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest} message ListNasTrialDetailsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataLabelingJobsRequest.encode = function encode(message, writer) { + ListNasTrialDetailsRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); return writer; }; /** - * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. + * Encodes the specified ListNasTrialDetailsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest} message ListNasTrialDetailsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataLabelingJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNasTrialDetailsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @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.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataLabelingJobsRequest.decode = function decode(reader, length) { + ListNasTrialDetailsRequest.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.ListDataLabelingJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -259555,25 +271657,13 @@ break; } case 2: { - message.filter = reader.string(); - break; - } - case 3: { message.pageSize = reader.int32(); break; } - case 4: { + case 3: { message.pageToken = reader.string(); break; } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - } - case 6: { - message.orderBy = reader.string(); - break; - } default: reader.skipType(tag & 7); break; @@ -259583,170 +271673,141 @@ }; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNasTrialDetailsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataLabelingJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ListNasTrialDetailsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDataLabelingJobsRequest message. + * Verifies a ListNasTrialDetailsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDataLabelingJobsRequest.verify = function verify(message) { + ListNasTrialDetailsRequest.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.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; if (message.pageSize != null && message.hasOwnProperty("pageSize")) if (!$util.isInteger(message.pageSize)) return "pageSize: integer expected"; if (message.pageToken != null && message.hasOwnProperty("pageToken")) if (!$util.isString(message.pageToken)) return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; return null; }; /** - * Creates a ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasTrialDetailsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest} ListNasTrialDetailsRequest */ - ListDataLabelingJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest) + ListNasTrialDetailsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); if (object.pageSize != null) message.pageSize = object.pageSize | 0; if (object.pageToken != null) message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } - if (object.orderBy != null) - message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNasTrialDetailsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} message ListDataLabelingJobsRequest + * @param {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest} message ListNasTrialDetailsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataLabelingJobsRequest.toObject = function toObject(message, options) { + ListNasTrialDetailsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.filter = ""; object.pageSize = 0; object.pageToken = ""; - object.readMask = null; - object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; if (message.pageSize != null && message.hasOwnProperty("pageSize")) object.pageSize = message.pageSize; if (message.pageToken != null && message.hasOwnProperty("pageToken")) object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; return object; }; /** - * Converts this ListDataLabelingJobsRequest to JSON. + * Converts this ListNasTrialDetailsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @instance * @returns {Object.} JSON object */ - ListDataLabelingJobsRequest.prototype.toJSON = function toJSON() { + ListNasTrialDetailsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListDataLabelingJobsRequest + * Gets the default type url for ListNasTrialDetailsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListDataLabelingJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasTrialDetailsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest"; }; - return ListDataLabelingJobsRequest; + return ListNasTrialDetailsRequest; })(); - v1beta1.ListDataLabelingJobsResponse = (function() { + v1beta1.ListNasTrialDetailsResponse = (function() { /** - * Properties of a ListDataLabelingJobsResponse. + * Properties of a ListNasTrialDetailsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListDataLabelingJobsResponse - * @property {Array.|null} [dataLabelingJobs] ListDataLabelingJobsResponse dataLabelingJobs - * @property {string|null} [nextPageToken] ListDataLabelingJobsResponse nextPageToken + * @interface IListNasTrialDetailsResponse + * @property {Array.|null} [nasTrialDetails] ListNasTrialDetailsResponse nasTrialDetails + * @property {string|null} [nextPageToken] ListNasTrialDetailsResponse nextPageToken */ /** - * Constructs a new ListDataLabelingJobsResponse. + * Constructs a new ListNasTrialDetailsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDataLabelingJobsResponse. - * @implements IListDataLabelingJobsResponse + * @classdesc Represents a ListNasTrialDetailsResponse. + * @implements IListNasTrialDetailsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse=} [properties] Properties to set */ - function ListDataLabelingJobsResponse(properties) { - this.dataLabelingJobs = []; + function ListNasTrialDetailsResponse(properties) { + this.nasTrialDetails = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -259754,88 +271815,88 @@ } /** - * ListDataLabelingJobsResponse dataLabelingJobs. - * @member {Array.} dataLabelingJobs - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * ListNasTrialDetailsResponse nasTrialDetails. + * @member {Array.} nasTrialDetails + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @instance */ - ListDataLabelingJobsResponse.prototype.dataLabelingJobs = $util.emptyArray; + ListNasTrialDetailsResponse.prototype.nasTrialDetails = $util.emptyArray; /** - * ListDataLabelingJobsResponse nextPageToken. + * ListNasTrialDetailsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @instance */ - ListDataLabelingJobsResponse.prototype.nextPageToken = ""; + ListNasTrialDetailsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListDataLabelingJobsResponse instance using the specified properties. + * Creates a new ListNasTrialDetailsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse instance */ - ListDataLabelingJobsResponse.create = function create(properties) { - return new ListDataLabelingJobsResponse(properties); + ListNasTrialDetailsResponse.create = function create(properties) { + return new ListNasTrialDetailsResponse(properties); }; /** - * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. + * Encodes the specified ListNasTrialDetailsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse} message ListNasTrialDetailsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataLabelingJobsResponse.encode = function encode(message, writer) { + ListNasTrialDetailsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataLabelingJobs != null && message.dataLabelingJobs.length) - for (var i = 0; i < message.dataLabelingJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.encode(message.dataLabelingJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nasTrialDetails != null && message.nasTrialDetails.length) + for (var i = 0; i < message.nasTrialDetails.length; ++i) + $root.google.cloud.aiplatform.v1beta1.NasTrialDetail.encode(message.nasTrialDetails[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. + * Encodes the specified ListNasTrialDetailsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse} message ListNasTrialDetailsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataLabelingJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListNasTrialDetailsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @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.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataLabelingJobsResponse.decode = function decode(reader, length) { + ListNasTrialDetailsResponse.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.ListDataLabelingJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.dataLabelingJobs && message.dataLabelingJobs.length)) - message.dataLabelingJobs = []; - message.dataLabelingJobs.push($root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32())); + if (!(message.nasTrialDetails && message.nasTrialDetails.length)) + message.nasTrialDetails = []; + message.nasTrialDetails.push($root.google.cloud.aiplatform.v1beta1.NasTrialDetail.decode(reader, reader.uint32())); break; } case 2: { @@ -259851,39 +271912,39 @@ }; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListNasTrialDetailsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataLabelingJobsResponse.decodeDelimited = function decodeDelimited(reader) { + ListNasTrialDetailsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDataLabelingJobsResponse message. + * Verifies a ListNasTrialDetailsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDataLabelingJobsResponse.verify = function verify(message) { + ListNasTrialDetailsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dataLabelingJobs != null && message.hasOwnProperty("dataLabelingJobs")) { - if (!Array.isArray(message.dataLabelingJobs)) - return "dataLabelingJobs: array expected"; - for (var i = 0; i < message.dataLabelingJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.verify(message.dataLabelingJobs[i]); + if (message.nasTrialDetails != null && message.hasOwnProperty("nasTrialDetails")) { + if (!Array.isArray(message.nasTrialDetails)) + return "nasTrialDetails: array expected"; + for (var i = 0; i < message.nasTrialDetails.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.NasTrialDetail.verify(message.nasTrialDetails[i]); if (error) - return "dataLabelingJobs." + error; + return "nasTrialDetails." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -259893,25 +271954,25 @@ }; /** - * Creates a ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListNasTrialDetailsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse} ListNasTrialDetailsResponse */ - ListDataLabelingJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) + ListNasTrialDetailsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse(); - if (object.dataLabelingJobs) { - if (!Array.isArray(object.dataLabelingJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.dataLabelingJobs: array expected"); - message.dataLabelingJobs = []; - for (var i = 0; i < object.dataLabelingJobs.length; ++i) { - if (typeof object.dataLabelingJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.dataLabelingJobs: object expected"); - message.dataLabelingJobs[i] = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.fromObject(object.dataLabelingJobs[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse(); + if (object.nasTrialDetails) { + if (!Array.isArray(object.nasTrialDetails)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.nasTrialDetails: array expected"); + message.nasTrialDetails = []; + for (var i = 0; i < object.nasTrialDetails.length; ++i) { + if (typeof object.nasTrialDetails[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.nasTrialDetails: object expected"); + message.nasTrialDetails[i] = $root.google.cloud.aiplatform.v1beta1.NasTrialDetail.fromObject(object.nasTrialDetails[i]); } } if (object.nextPageToken != null) @@ -259920,26 +271981,26 @@ }; /** - * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListNasTrialDetailsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} message ListDataLabelingJobsResponse + * @param {google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse} message ListNasTrialDetailsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataLabelingJobsResponse.toObject = function toObject(message, options) { + ListNasTrialDetailsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.dataLabelingJobs = []; + object.nasTrialDetails = []; if (options.defaults) object.nextPageToken = ""; - if (message.dataLabelingJobs && message.dataLabelingJobs.length) { - object.dataLabelingJobs = []; - for (var j = 0; j < message.dataLabelingJobs.length; ++j) - object.dataLabelingJobs[j] = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.toObject(message.dataLabelingJobs[j], options); + if (message.nasTrialDetails && message.nasTrialDetails.length) { + object.nasTrialDetails = []; + for (var j = 0; j < message.nasTrialDetails.length; ++j) + object.nasTrialDetails[j] = $root.google.cloud.aiplatform.v1beta1.NasTrialDetail.toObject(message.nasTrialDetails[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -259947,52 +272008,53 @@ }; /** - * Converts this ListDataLabelingJobsResponse to JSON. + * Converts this ListNasTrialDetailsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @instance * @returns {Object.} JSON object */ - ListDataLabelingJobsResponse.prototype.toJSON = function toJSON() { + ListNasTrialDetailsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListDataLabelingJobsResponse + * Gets the default type url for ListNasTrialDetailsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListDataLabelingJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListNasTrialDetailsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse"; }; - return ListDataLabelingJobsResponse; + return ListNasTrialDetailsResponse; })(); - v1beta1.DeleteDataLabelingJobRequest = (function() { + v1beta1.CreateBatchPredictionJobRequest = (function() { /** - * Properties of a DeleteDataLabelingJobRequest. + * Properties of a CreateBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteDataLabelingJobRequest - * @property {string|null} [name] DeleteDataLabelingJobRequest name + * @interface ICreateBatchPredictionJobRequest + * @property {string|null} [parent] CreateBatchPredictionJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null} [batchPredictionJob] CreateBatchPredictionJobRequest batchPredictionJob */ /** - * Constructs a new DeleteDataLabelingJobRequest. + * Constructs a new CreateBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteDataLabelingJobRequest. - * @implements IDeleteDataLabelingJobRequest + * @classdesc Represents a CreateBatchPredictionJobRequest. + * @implements ICreateBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set */ - function DeleteDataLabelingJobRequest(properties) { + function CreateBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -260000,75 +272062,89 @@ } /** - * DeleteDataLabelingJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * CreateBatchPredictionJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @instance */ - DeleteDataLabelingJobRequest.prototype.name = ""; + CreateBatchPredictionJobRequest.prototype.parent = ""; /** - * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. + * CreateBatchPredictionJobRequest batchPredictionJob. + * @member {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null|undefined} batchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @instance + */ + CreateBatchPredictionJobRequest.prototype.batchPredictionJob = null; + + /** + * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest instance */ - DeleteDataLabelingJobRequest.create = function create(properties) { - return new DeleteDataLabelingJobRequest(properties); + CreateBatchPredictionJobRequest.create = function create(properties) { + return new CreateBatchPredictionJobRequest(properties); }; /** - * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDataLabelingJobRequest.encode = function encode(message, writer) { + CreateBatchPredictionJobRequest.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); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.batchPredictionJob != null && Object.hasOwnProperty.call(message, "batchPredictionJob")) + $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.encode(message.batchPredictionJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @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.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDataLabelingJobRequest.decode = function decode(reader, length) { + CreateBatchPredictionJobRequest.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.DeleteDataLabelingJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32()); break; } default: @@ -260080,122 +272156,136 @@ }; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteDataLabelingJobRequest message. + * Verifies a CreateBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteDataLabelingJobRequest.verify = function verify(message) { + CreateBatchPredictionJobRequest.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"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify(message.batchPredictionJob); + if (error) + return "batchPredictionJob." + error; + } return null; }; /** - * Creates a DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest */ - DeleteDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest) + CreateBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.batchPredictionJob != null) { + if (typeof object.batchPredictionJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.batchPredictionJob: object expected"); + message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.fromObject(object.batchPredictionJob); + } return message; }; /** - * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteDataLabelingJobRequest.toObject = function toObject(message, options) { + CreateBatchPredictionJobRequest.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; + if (options.defaults) { + object.parent = ""; + object.batchPredictionJob = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) + object.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.toObject(message.batchPredictionJob, options); return object; }; /** - * Converts this DeleteDataLabelingJobRequest to JSON. + * Converts this CreateBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - DeleteDataLabelingJobRequest.prototype.toJSON = function toJSON() { + CreateBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteDataLabelingJobRequest + * Gets the default type url for CreateBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest"; }; - return DeleteDataLabelingJobRequest; + return CreateBatchPredictionJobRequest; })(); - v1beta1.CancelDataLabelingJobRequest = (function() { + v1beta1.GetBatchPredictionJobRequest = (function() { /** - * Properties of a CancelDataLabelingJobRequest. + * Properties of a GetBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelDataLabelingJobRequest - * @property {string|null} [name] CancelDataLabelingJobRequest name + * @interface IGetBatchPredictionJobRequest + * @property {string|null} [name] GetBatchPredictionJobRequest name */ /** - * Constructs a new CancelDataLabelingJobRequest. + * Constructs a new GetBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelDataLabelingJobRequest. - * @implements ICancelDataLabelingJobRequest + * @classdesc Represents a GetBatchPredictionJobRequest. + * @implements IGetBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set */ - function CancelDataLabelingJobRequest(properties) { + function GetBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -260203,35 +272293,35 @@ } /** - * CancelDataLabelingJobRequest name. + * GetBatchPredictionJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @instance */ - CancelDataLabelingJobRequest.prototype.name = ""; + GetBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new CancelDataLabelingJobRequest instance using the specified properties. + * Creates a new GetBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest instance */ - CancelDataLabelingJobRequest.create = function create(properties) { - return new CancelDataLabelingJobRequest(properties); + GetBatchPredictionJobRequest.create = function create(properties) { + return new GetBatchPredictionJobRequest(properties); }; /** - * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelDataLabelingJobRequest.encode = function encode(message, writer) { + GetBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -260240,33 +272330,33 @@ }; /** - * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @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.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelDataLabelingJobRequest.decode = function decode(reader, length) { + GetBatchPredictionJobRequest.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.CancelDataLabelingJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -260283,30 +272373,30 @@ }; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelDataLabelingJobRequest message. + * Verifies a GetBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelDataLabelingJobRequest.verify = function verify(message) { + GetBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -260316,32 +272406,32 @@ }; /** - * Creates a CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest */ - CancelDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest) + GetBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} message CancelDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} message GetBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelDataLabelingJobRequest.toObject = function toObject(message, options) { + GetBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -260353,53 +272443,56 @@ }; /** - * Converts this CancelDataLabelingJobRequest to JSON. + * Converts this GetBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - CancelDataLabelingJobRequest.prototype.toJSON = function toJSON() { + GetBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelDataLabelingJobRequest + * Gets the default type url for GetBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelDataLabelingJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest"; }; - return CancelDataLabelingJobRequest; + return GetBatchPredictionJobRequest; })(); - v1beta1.CreateHyperparameterTuningJobRequest = (function() { + v1beta1.ListBatchPredictionJobsRequest = (function() { /** - * Properties of a CreateHyperparameterTuningJobRequest. + * Properties of a ListBatchPredictionJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateHyperparameterTuningJobRequest - * @property {string|null} [parent] CreateHyperparameterTuningJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null} [hyperparameterTuningJob] CreateHyperparameterTuningJobRequest hyperparameterTuningJob + * @interface IListBatchPredictionJobsRequest + * @property {string|null} [parent] ListBatchPredictionJobsRequest parent + * @property {string|null} [filter] ListBatchPredictionJobsRequest filter + * @property {number|null} [pageSize] ListBatchPredictionJobsRequest pageSize + * @property {string|null} [pageToken] ListBatchPredictionJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListBatchPredictionJobsRequest readMask */ /** - * Constructs a new CreateHyperparameterTuningJobRequest. + * Constructs a new ListBatchPredictionJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateHyperparameterTuningJobRequest. - * @implements ICreateHyperparameterTuningJobRequest + * @classdesc Represents a ListBatchPredictionJobsRequest. + * @implements IListBatchPredictionJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set */ - function CreateHyperparameterTuningJobRequest(properties) { + function ListBatchPredictionJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -260407,80 +272500,110 @@ } /** - * CreateHyperparameterTuningJobRequest parent. + * ListBatchPredictionJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance */ - CreateHyperparameterTuningJobRequest.prototype.parent = ""; + ListBatchPredictionJobsRequest.prototype.parent = ""; /** - * CreateHyperparameterTuningJobRequest hyperparameterTuningJob. - * @member {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null|undefined} hyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * ListBatchPredictionJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance */ - CreateHyperparameterTuningJobRequest.prototype.hyperparameterTuningJob = null; + ListBatchPredictionJobsRequest.prototype.filter = ""; /** - * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. + * ListBatchPredictionJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @instance + */ + ListBatchPredictionJobsRequest.prototype.pageSize = 0; + + /** + * ListBatchPredictionJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @instance + */ + ListBatchPredictionJobsRequest.prototype.pageToken = ""; + + /** + * ListBatchPredictionJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @instance + */ + ListBatchPredictionJobsRequest.prototype.readMask = null; + + /** + * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest instance */ - CreateHyperparameterTuningJobRequest.create = function create(properties) { - return new CreateHyperparameterTuningJobRequest(properties); + ListBatchPredictionJobsRequest.create = function create(properties) { + return new ListBatchPredictionJobsRequest(properties); }; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateHyperparameterTuningJobRequest.encode = function encode(message, writer) { + ListBatchPredictionJobsRequest.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.hyperparameterTuningJob != null && Object.hasOwnProperty.call(message, "hyperparameterTuningJob")) - $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encode(message.hyperparameterTuningJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListBatchPredictionJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @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.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateHyperparameterTuningJobRequest.decode = function decode(reader, length) { + ListBatchPredictionJobsRequest.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.CreateHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -260489,7 +272612,19 @@ break; } case 2: { - message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.decode(reader, reader.uint32()); + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } + case 5: { + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -260501,136 +272636,162 @@ }; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListBatchPredictionJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateHyperparameterTuningJobRequest message. + * Verifies a ListBatchPredictionJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateHyperparameterTuningJobRequest.verify = function verify(message) { + ListBatchPredictionJobsRequest.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.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify(message.hyperparameterTuningJob); + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "hyperparameterTuningJob." + error; + return "readMask." + error; } return null; }; /** - * Creates a CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest */ - CreateHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest) + ListBatchPredictionJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.hyperparameterTuningJob != null) { - if (typeof object.hyperparameterTuningJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.hyperparameterTuningJob: object expected"); - message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJob); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + ListBatchPredictionJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.hyperparameterTuningJob = null; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) - object.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJob, options); + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this CreateHyperparameterTuningJobRequest to JSON. + * Converts this ListBatchPredictionJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance * @returns {Object.} JSON object */ - CreateHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + ListBatchPredictionJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateHyperparameterTuningJobRequest + * Gets the default type url for ListBatchPredictionJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListBatchPredictionJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest"; }; - return CreateHyperparameterTuningJobRequest; + return ListBatchPredictionJobsRequest; })(); - v1beta1.GetHyperparameterTuningJobRequest = (function() { + v1beta1.ListBatchPredictionJobsResponse = (function() { /** - * Properties of a GetHyperparameterTuningJobRequest. + * Properties of a ListBatchPredictionJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetHyperparameterTuningJobRequest - * @property {string|null} [name] GetHyperparameterTuningJobRequest name + * @interface IListBatchPredictionJobsResponse + * @property {Array.|null} [batchPredictionJobs] ListBatchPredictionJobsResponse batchPredictionJobs + * @property {string|null} [nextPageToken] ListBatchPredictionJobsResponse nextPageToken */ /** - * Constructs a new GetHyperparameterTuningJobRequest. + * Constructs a new ListBatchPredictionJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetHyperparameterTuningJobRequest. - * @implements IGetHyperparameterTuningJobRequest + * @classdesc Represents a ListBatchPredictionJobsResponse. + * @implements IListBatchPredictionJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set */ - function GetHyperparameterTuningJobRequest(properties) { + function ListBatchPredictionJobsResponse(properties) { + this.batchPredictionJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -260638,75 +272799,92 @@ } /** - * GetHyperparameterTuningJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * ListBatchPredictionJobsResponse batchPredictionJobs. + * @member {Array.} batchPredictionJobs + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @instance */ - GetHyperparameterTuningJobRequest.prototype.name = ""; + ListBatchPredictionJobsResponse.prototype.batchPredictionJobs = $util.emptyArray; /** - * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. + * ListBatchPredictionJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @instance + */ + ListBatchPredictionJobsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse instance */ - GetHyperparameterTuningJobRequest.create = function create(properties) { - return new GetHyperparameterTuningJobRequest(properties); + ListBatchPredictionJobsResponse.create = function create(properties) { + return new ListBatchPredictionJobsResponse(properties); }; /** - * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetHyperparameterTuningJobRequest.encode = function encode(message, writer) { + ListBatchPredictionJobsResponse.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); + if (message.batchPredictionJobs != null && message.batchPredictionJobs.length) + for (var i = 0; i < message.batchPredictionJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.encode(message.batchPredictionJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListBatchPredictionJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @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.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetHyperparameterTuningJobRequest.decode = function decode(reader, length) { + ListBatchPredictionJobsResponse.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.GetHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + if (!(message.batchPredictionJobs && message.batchPredictionJobs.length)) + message.batchPredictionJobs = []; + message.batchPredictionJobs.push($root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); break; } default: @@ -260718,126 +272896,148 @@ }; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListBatchPredictionJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetHyperparameterTuningJobRequest message. + * Verifies a ListBatchPredictionJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetHyperparameterTuningJobRequest.verify = function verify(message) { + ListBatchPredictionJobsResponse.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"; + if (message.batchPredictionJobs != null && message.hasOwnProperty("batchPredictionJobs")) { + if (!Array.isArray(message.batchPredictionJobs)) + return "batchPredictionJobs: array expected"; + for (var i = 0; i < message.batchPredictionJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify(message.batchPredictionJobs[i]); + if (error) + return "batchPredictionJobs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse */ - GetHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest) + ListBatchPredictionJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse(); + if (object.batchPredictionJobs) { + if (!Array.isArray(object.batchPredictionJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.batchPredictionJobs: array expected"); + message.batchPredictionJobs = []; + for (var i = 0; i < object.batchPredictionJobs.length; ++i) { + if (typeof object.batchPredictionJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.batchPredictionJobs: object expected"); + message.batchPredictionJobs[i] = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.fromObject(object.batchPredictionJobs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + ListBatchPredictionJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.batchPredictionJobs = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.batchPredictionJobs && message.batchPredictionJobs.length) { + object.batchPredictionJobs = []; + for (var j = 0; j < message.batchPredictionJobs.length; ++j) + object.batchPredictionJobs[j] = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.toObject(message.batchPredictionJobs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GetHyperparameterTuningJobRequest to JSON. + * Converts this ListBatchPredictionJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @instance * @returns {Object.} JSON object */ - GetHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + ListBatchPredictionJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetHyperparameterTuningJobRequest + * Gets the default type url for ListBatchPredictionJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListBatchPredictionJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse"; }; - return GetHyperparameterTuningJobRequest; + return ListBatchPredictionJobsResponse; })(); - v1beta1.ListHyperparameterTuningJobsRequest = (function() { + v1beta1.DeleteBatchPredictionJobRequest = (function() { /** - * Properties of a ListHyperparameterTuningJobsRequest. + * Properties of a DeleteBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListHyperparameterTuningJobsRequest - * @property {string|null} [parent] ListHyperparameterTuningJobsRequest parent - * @property {string|null} [filter] ListHyperparameterTuningJobsRequest filter - * @property {number|null} [pageSize] ListHyperparameterTuningJobsRequest pageSize - * @property {string|null} [pageToken] ListHyperparameterTuningJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListHyperparameterTuningJobsRequest readMask + * @interface IDeleteBatchPredictionJobRequest + * @property {string|null} [name] DeleteBatchPredictionJobRequest name */ /** - * Constructs a new ListHyperparameterTuningJobsRequest. + * Constructs a new DeleteBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListHyperparameterTuningJobsRequest. - * @implements IListHyperparameterTuningJobsRequest + * @classdesc Represents a DeleteBatchPredictionJobRequest. + * @implements IDeleteBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set */ - function ListHyperparameterTuningJobsRequest(properties) { + function DeleteBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -260845,131 +273045,75 @@ } /** - * ListHyperparameterTuningJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - */ - ListHyperparameterTuningJobsRequest.prototype.parent = ""; - - /** - * ListHyperparameterTuningJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - */ - ListHyperparameterTuningJobsRequest.prototype.filter = ""; - - /** - * ListHyperparameterTuningJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - */ - ListHyperparameterTuningJobsRequest.prototype.pageSize = 0; - - /** - * ListHyperparameterTuningJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - */ - ListHyperparameterTuningJobsRequest.prototype.pageToken = ""; - - /** - * ListHyperparameterTuningJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * DeleteBatchPredictionJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @instance */ - ListHyperparameterTuningJobsRequest.prototype.readMask = null; + DeleteBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. + * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest instance */ - ListHyperparameterTuningJobsRequest.create = function create(properties) { - return new ListHyperparameterTuningJobsRequest(properties); + DeleteBatchPredictionJobRequest.create = function create(properties) { + return new DeleteBatchPredictionJobRequest(properties); }; /** - * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsRequest.encode = function encode(message, writer) { + DeleteBatchPredictionJobRequest.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.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @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.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsRequest.decode = function decode(reader, length) { + DeleteBatchPredictionJobRequest.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.ListHyperparameterTuningJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.filter = reader.string(); - break; - } - case 3: { - message.pageSize = reader.int32(); - break; - } - case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -260981,162 +273125,122 @@ }; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListHyperparameterTuningJobsRequest message. + * Verifies a DeleteBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListHyperparameterTuningJobsRequest.verify = function verify(message) { + DeleteBatchPredictionJobRequest.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.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest */ - ListHyperparameterTuningJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest) + DeleteBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListHyperparameterTuningJobsRequest.toObject = function toObject(message, options) { + DeleteBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListHyperparameterTuningJobsRequest to JSON. + * Converts this DeleteBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - ListHyperparameterTuningJobsRequest.prototype.toJSON = function toJSON() { + DeleteBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListHyperparameterTuningJobsRequest + * Gets the default type url for DeleteBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListHyperparameterTuningJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest"; }; - return ListHyperparameterTuningJobsRequest; + return DeleteBatchPredictionJobRequest; })(); - v1beta1.ListHyperparameterTuningJobsResponse = (function() { + v1beta1.CancelBatchPredictionJobRequest = (function() { /** - * Properties of a ListHyperparameterTuningJobsResponse. + * Properties of a CancelBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListHyperparameterTuningJobsResponse - * @property {Array.|null} [hyperparameterTuningJobs] ListHyperparameterTuningJobsResponse hyperparameterTuningJobs - * @property {string|null} [nextPageToken] ListHyperparameterTuningJobsResponse nextPageToken + * @interface ICancelBatchPredictionJobRequest + * @property {string|null} [name] CancelBatchPredictionJobRequest name */ /** - * Constructs a new ListHyperparameterTuningJobsResponse. + * Constructs a new CancelBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListHyperparameterTuningJobsResponse. - * @implements IListHyperparameterTuningJobsResponse + * @classdesc Represents a CancelBatchPredictionJobRequest. + * @implements ICancelBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set */ - function ListHyperparameterTuningJobsResponse(properties) { - this.hyperparameterTuningJobs = []; + function CancelBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -261144,92 +273248,75 @@ } /** - * ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. - * @member {Array.} hyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse - * @instance - */ - ListHyperparameterTuningJobsResponse.prototype.hyperparameterTuningJobs = $util.emptyArray; - - /** - * ListHyperparameterTuningJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * CancelBatchPredictionJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @instance */ - ListHyperparameterTuningJobsResponse.prototype.nextPageToken = ""; + CancelBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. + * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest instance */ - ListHyperparameterTuningJobsResponse.create = function create(properties) { - return new ListHyperparameterTuningJobsResponse(properties); + CancelBatchPredictionJobRequest.create = function create(properties) { + return new CancelBatchPredictionJobRequest(properties); }; /** - * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsResponse.encode = function encode(message, writer) { + CancelBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.hyperparameterTuningJobs != null && message.hyperparameterTuningJobs.length) - for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encode(message.hyperparameterTuningJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CancelBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @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.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsResponse.decode = function decode(reader, length) { + CancelBatchPredictionJobRequest.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.ListHyperparameterTuningJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length)) - message.hyperparameterTuningJobs = []; - message.hyperparameterTuningJobs.push($root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.name = reader.string(); break; } default: @@ -261241,148 +273328,123 @@ }; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsResponse.decodeDelimited = function decodeDelimited(reader) { + CancelBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListHyperparameterTuningJobsResponse message. + * Verifies a CancelBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListHyperparameterTuningJobsResponse.verify = function verify(message) { + CancelBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.hyperparameterTuningJobs != null && message.hasOwnProperty("hyperparameterTuningJobs")) { - if (!Array.isArray(message.hyperparameterTuningJobs)) - return "hyperparameterTuningJobs: array expected"; - for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify(message.hyperparameterTuningJobs[i]); - if (error) - return "hyperparameterTuningJobs." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest */ - ListHyperparameterTuningJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) + CancelBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse(); - if (object.hyperparameterTuningJobs) { - if (!Array.isArray(object.hyperparameterTuningJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: array expected"); - message.hyperparameterTuningJobs = []; - for (var i = 0; i < object.hyperparameterTuningJobs.length; ++i) { - if (typeof object.hyperparameterTuningJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: object expected"); - message.hyperparameterTuningJobs[i] = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJobs[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse + * @param {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListHyperparameterTuningJobsResponse.toObject = function toObject(message, options) { + CancelBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.hyperparameterTuningJobs = []; if (options.defaults) - object.nextPageToken = ""; - if (message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length) { - object.hyperparameterTuningJobs = []; - for (var j = 0; j < message.hyperparameterTuningJobs.length; ++j) - object.hyperparameterTuningJobs[j] = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJobs[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListHyperparameterTuningJobsResponse to JSON. + * Converts this CancelBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - ListHyperparameterTuningJobsResponse.prototype.toJSON = function toJSON() { + CancelBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListHyperparameterTuningJobsResponse + * Gets the default type url for CancelBatchPredictionJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListHyperparameterTuningJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CancelBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest"; }; - return ListHyperparameterTuningJobsResponse; + return CancelBatchPredictionJobRequest; })(); - v1beta1.DeleteHyperparameterTuningJobRequest = (function() { + v1beta1.CreateModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a DeleteHyperparameterTuningJobRequest. + * Properties of a CreateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteHyperparameterTuningJobRequest - * @property {string|null} [name] DeleteHyperparameterTuningJobRequest name + * @interface ICreateModelDeploymentMonitoringJobRequest + * @property {string|null} [parent] CreateModelDeploymentMonitoringJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ /** - * Constructs a new DeleteHyperparameterTuningJobRequest. + * Constructs a new CreateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteHyperparameterTuningJobRequest. - * @implements IDeleteHyperparameterTuningJobRequest + * @classdesc Represents a CreateModelDeploymentMonitoringJobRequest. + * @implements ICreateModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function DeleteHyperparameterTuningJobRequest(properties) { + function CreateModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -261390,75 +273452,89 @@ } /** - * DeleteHyperparameterTuningJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * CreateModelDeploymentMonitoringJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @instance */ - DeleteHyperparameterTuningJobRequest.prototype.name = ""; + CreateModelDeploymentMonitoringJobRequest.prototype.parent = ""; /** - * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. + * CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. + * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @instance + */ + CreateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; + + /** + * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest instance */ - DeleteHyperparameterTuningJobRequest.create = function create(properties) { - return new DeleteHyperparameterTuningJobRequest(properties); + CreateModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new CreateModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteHyperparameterTuningJobRequest.encode = function encode(message, writer) { + CreateModelDeploymentMonitoringJobRequest.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); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @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.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteHyperparameterTuningJobRequest.decode = function decode(reader, length) { + CreateModelDeploymentMonitoringJobRequest.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.DeleteHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.parent = reader.string(); + break; + } + case 2: { + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); break; } default: @@ -261470,122 +273546,144 @@ }; /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteHyperparameterTuningJobRequest message. + * Verifies a CreateModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteHyperparameterTuningJobRequest.verify = function verify(message) { + CreateModelDeploymentMonitoringJobRequest.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"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); + if (error) + return "modelDeploymentMonitoringJob." + error; + } return null; }; /** - * Creates a DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest */ - DeleteHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest) + CreateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.modelDeploymentMonitoringJob != null) { + if (typeof object.modelDeploymentMonitoringJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); + } return message; }; /** - * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + CreateModelDeploymentMonitoringJobRequest.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; + if (options.defaults) { + object.parent = ""; + object.modelDeploymentMonitoringJob = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); return object; }; /** - * Converts this DeleteHyperparameterTuningJobRequest to JSON. + * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - DeleteHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + CreateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteHyperparameterTuningJobRequest + * Gets the default type url for CreateModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + CreateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest"; }; - return DeleteHyperparameterTuningJobRequest; + return CreateModelDeploymentMonitoringJobRequest; })(); - v1beta1.CancelHyperparameterTuningJobRequest = (function() { + v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest = (function() { /** - * Properties of a CancelHyperparameterTuningJobRequest. + * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelHyperparameterTuningJobRequest - * @property {string|null} [name] CancelHyperparameterTuningJobRequest name + * @interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest + * @property {string|null} [modelDeploymentMonitoringJob] SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob + * @property {string|null} [deployedModelId] SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId + * @property {string|null} [featureDisplayName] SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName + * @property {Array.|null} [objectives] SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives + * @property {number|null} [pageSize] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize + * @property {string|null} [pageToken] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken + * @property {google.protobuf.ITimestamp|null} [startTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime + * @property {google.protobuf.ITimestamp|null} [endTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ /** - * Constructs a new CancelHyperparameterTuningJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelHyperparameterTuningJobRequest. - * @implements ICancelHyperparameterTuningJobRequest + * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * @implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set */ - function CancelHyperparameterTuningJobRequest(properties) { + function SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties) { + this.objectives = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -261593,75 +273691,176 @@ } /** - * CancelHyperparameterTuningJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. + * @member {string} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance */ - CancelHyperparameterTuningJobRequest.prototype.name = ""; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.modelDeploymentMonitoringJob = ""; /** - * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. + * SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.deployedModelId = ""; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. + * @member {string} featureDisplayName + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.featureDisplayName = ""; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. + * @member {Array.} objectives + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.objectives = $util.emptyArray; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageSize = 0; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageToken = ""; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.startTime = null; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.endTime = null; + + /** + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest instance */ - CancelHyperparameterTuningJobRequest.create = function create(properties) { - return new CancelHyperparameterTuningJobRequest(properties); + SearchModelDeploymentMonitoringStatsAnomaliesRequest.create = function create(properties) { + return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties); }; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelHyperparameterTuningJobRequest.encode = function encode(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.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); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelDeploymentMonitoringJob); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureDisplayName); + if (message.objectives != null && message.objectives.length) + for (var i = 0; i < message.objectives.length; ++i) + $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.encode(message.objectives[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.pageToken); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @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.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelHyperparameterTuningJobRequest.decode = function decode(reader, length) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.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.CancelHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.modelDeploymentMonitoringJob = reader.string(); + break; + } + case 2: { + message.deployedModelId = reader.string(); + break; + } + case 3: { + message.featureDisplayName = reader.string(); + break; + } + case 4: { + if (!(message.objectives && message.objectives.length)) + message.objectives = []; + message.objectives.push($root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.decode(reader, reader.uint32())); + break; + } + case 5: { + message.pageSize = reader.int32(); + break; + } + case 6: { + message.pageToken = reader.string(); + break; + } + case 7: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -261673,123 +273872,470 @@ }; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelHyperparameterTuningJobRequest message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelHyperparameterTuningJobRequest.verify = function verify(message) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.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"; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + if (!$util.isString(message.modelDeploymentMonitoringJob)) + return "modelDeploymentMonitoringJob: string expected"; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + if (!$util.isString(message.featureDisplayName)) + return "featureDisplayName: string expected"; + if (message.objectives != null && message.hasOwnProperty("objectives")) { + if (!Array.isArray(message.objectives)) + return "objectives: array expected"; + for (var i = 0; i < message.objectives.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify(message.objectives[i]); + if (error) + return "objectives." + error; + } + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } return null; }; /** - * Creates a CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest */ - CancelHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest) + SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + if (object.modelDeploymentMonitoringJob != null) + message.modelDeploymentMonitoringJob = String(object.modelDeploymentMonitoringJob); + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.featureDisplayName != null) + message.featureDisplayName = String(object.featureDisplayName); + if (object.objectives) { + if (!Array.isArray(object.objectives)) + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: array expected"); + message.objectives = []; + for (var i = 0; i < object.objectives.length; ++i) { + if (typeof object.objectives[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: object expected"); + message.objectives[i] = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.fromObject(object.objectives[i]); + } + } + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } return message; }; /** - * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.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; + if (options.arrays || options.defaults) + object.objectives = []; + if (options.defaults) { + object.modelDeploymentMonitoringJob = ""; + object.deployedModelId = ""; + object.featureDisplayName = ""; + object.pageSize = 0; + object.pageToken = ""; + object.startTime = null; + object.endTime = null; + } + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = message.modelDeploymentMonitoringJob; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + object.featureDisplayName = message.featureDisplayName; + if (message.objectives && message.objectives.length) { + object.objectives = []; + for (var j = 0; j < message.objectives.length; ++j) + object.objectives[j] = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.toObject(message.objectives[j], options); + } + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this CancelHyperparameterTuningJobRequest to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance * @returns {Object.} JSON object */ - CancelHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelHyperparameterTuningJobRequest + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelHyperparameterTuningJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest"; }; - return CancelHyperparameterTuningJobRequest; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective = (function() { + + /** + * Properties of a StatsAnomaliesObjective. + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @interface IStatsAnomaliesObjective + * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null} [type] StatsAnomaliesObjective type + * @property {number|null} [topFeatureCount] StatsAnomaliesObjective topFeatureCount + */ + + /** + * Constructs a new StatsAnomaliesObjective. + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @classdesc Represents a StatsAnomaliesObjective. + * @implements IStatsAnomaliesObjective + * @constructor + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set + */ + function StatsAnomaliesObjective(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]]; + } + + /** + * StatsAnomaliesObjective type. + * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType} type + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + */ + StatsAnomaliesObjective.prototype.type = 0; + + /** + * StatsAnomaliesObjective topFeatureCount. + * @member {number} topFeatureCount + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + */ + StatsAnomaliesObjective.prototype.topFeatureCount = 0; + + /** + * Creates a new StatsAnomaliesObjective instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective instance + */ + StatsAnomaliesObjective.create = function create(properties) { + return new StatsAnomaliesObjective(properties); + }; + + /** + * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StatsAnomaliesObjective.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.topFeatureCount != null && Object.hasOwnProperty.call(message, "topFeatureCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.topFeatureCount); + return writer; + }; + + /** + * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StatsAnomaliesObjective.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StatsAnomaliesObjective.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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.type = reader.int32(); + break; + } + case 4: { + message.topFeatureCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StatsAnomaliesObjective.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StatsAnomaliesObjective message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StatsAnomaliesObjective.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: + case 4: + break; + } + if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) + if (!$util.isInteger(message.topFeatureCount)) + return "topFeatureCount: integer expected"; + return null; + }; + + /** + * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective + */ + StatsAnomaliesObjective.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "RAW_FEATURE_SKEW": + case 1: + message.type = 1; + break; + case "RAW_FEATURE_DRIFT": + case 2: + message.type = 2; + break; + case "FEATURE_ATTRIBUTION_SKEW": + case 3: + message.type = 3; + break; + case "FEATURE_ATTRIBUTION_DRIFT": + case 4: + message.type = 4; + break; + } + if (object.topFeatureCount != null) + message.topFeatureCount = object.topFeatureCount | 0; + return message; + }; + + /** + * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} message StatsAnomaliesObjective + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StatsAnomaliesObjective.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; + object.topFeatureCount = 0; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType[message.type] === undefined ? message.type : $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType[message.type] : message.type; + if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) + object.topFeatureCount = message.topFeatureCount; + return object; + }; + + /** + * Converts this StatsAnomaliesObjective to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @instance + * @returns {Object.} JSON object + */ + StatsAnomaliesObjective.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for StatsAnomaliesObjective + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StatsAnomaliesObjective.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective"; + }; + + return StatsAnomaliesObjective; + })(); + + return SearchModelDeploymentMonitoringStatsAnomaliesRequest; })(); - v1beta1.CreateBatchPredictionJobRequest = (function() { + v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse = (function() { /** - * Properties of a CreateBatchPredictionJobRequest. + * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateBatchPredictionJobRequest - * @property {string|null} [parent] CreateBatchPredictionJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null} [batchPredictionJob] CreateBatchPredictionJobRequest batchPredictionJob + * @interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse + * @property {Array.|null} [monitoringStats] SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats + * @property {string|null} [nextPageToken] SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ /** - * Constructs a new CreateBatchPredictionJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateBatchPredictionJobRequest. - * @implements ICreateBatchPredictionJobRequest + * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * @implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set */ - function CreateBatchPredictionJobRequest(properties) { + function SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties) { + this.monitoringStats = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -261797,89 +274343,92 @@ } /** - * CreateBatchPredictionJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. + * @member {Array.} monitoringStats + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @instance */ - CreateBatchPredictionJobRequest.prototype.parent = ""; + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.monitoringStats = $util.emptyArray; /** - * CreateBatchPredictionJobRequest batchPredictionJob. - * @member {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null|undefined} batchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @instance */ - CreateBatchPredictionJobRequest.prototype.batchPredictionJob = null; + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse instance */ - CreateBatchPredictionJobRequest.create = function create(properties) { - return new CreateBatchPredictionJobRequest(properties); + SearchModelDeploymentMonitoringStatsAnomaliesResponse.create = function create(properties) { + return new SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties); }; /** - * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateBatchPredictionJobRequest.encode = function encode(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.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.batchPredictionJob != null && Object.hasOwnProperty.call(message, "batchPredictionJob")) - $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.encode(message.batchPredictionJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.monitoringStats != null && message.monitoringStats.length) + for (var i = 0; i < message.monitoringStats.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.encode(message.monitoringStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @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.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateBatchPredictionJobRequest.decode = function decode(reader, length) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.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.CreateBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + if (!(message.monitoringStats && message.monitoringStats.length)) + message.monitoringStats = []; + message.monitoringStats.push($root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.decode(reader, reader.uint32())); break; } case 2: { - message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; } default: @@ -261891,136 +274440,148 @@ }; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateBatchPredictionJobRequest message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateBatchPredictionJobRequest.verify = function verify(message) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.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.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify(message.batchPredictionJob); - if (error) - return "batchPredictionJob." + error; + if (message.monitoringStats != null && message.hasOwnProperty("monitoringStats")) { + if (!Array.isArray(message.monitoringStats)) + return "monitoringStats: array expected"; + for (var i = 0; i < message.monitoringStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify(message.monitoringStats[i]); + if (error) + return "monitoringStats." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - CreateBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest) + SearchModelDeploymentMonitoringStatsAnomaliesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.batchPredictionJob != null) { - if (typeof object.batchPredictionJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.batchPredictionJob: object expected"); - message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.fromObject(object.batchPredictionJob); + var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + if (object.monitoringStats) { + if (!Array.isArray(object.monitoringStats)) + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: array expected"); + message.monitoringStats = []; + for (var i = 0; i < object.monitoringStats.length; ++i) { + if (typeof object.monitoringStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: object expected"); + message.monitoringStats[i] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.fromObject(object.monitoringStats[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateBatchPredictionJobRequest.toObject = function toObject(message, options) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.batchPredictionJob = null; + if (options.arrays || options.defaults) + object.monitoringStats = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.monitoringStats && message.monitoringStats.length) { + object.monitoringStats = []; + for (var j = 0; j < message.monitoringStats.length; ++j) + object.monitoringStats[j] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.toObject(message.monitoringStats[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) - object.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.toObject(message.batchPredictionJob, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateBatchPredictionJobRequest to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @instance * @returns {Object.} JSON object */ - CreateBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateBatchPredictionJobRequest + * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + SearchModelDeploymentMonitoringStatsAnomaliesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse"; }; - return CreateBatchPredictionJobRequest; + return SearchModelDeploymentMonitoringStatsAnomaliesResponse; })(); - v1beta1.GetBatchPredictionJobRequest = (function() { + v1beta1.GetModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a GetBatchPredictionJobRequest. + * Properties of a GetModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetBatchPredictionJobRequest - * @property {string|null} [name] GetBatchPredictionJobRequest name + * @interface IGetModelDeploymentMonitoringJobRequest + * @property {string|null} [name] GetModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new GetBatchPredictionJobRequest. + * Constructs a new GetModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetBatchPredictionJobRequest. - * @implements IGetBatchPredictionJobRequest + * @classdesc Represents a GetModelDeploymentMonitoringJobRequest. + * @implements IGetModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function GetBatchPredictionJobRequest(properties) { + function GetModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -262028,35 +274589,35 @@ } /** - * GetBatchPredictionJobRequest name. + * GetModelDeploymentMonitoringJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @instance */ - GetBatchPredictionJobRequest.prototype.name = ""; + GetModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new GetBatchPredictionJobRequest instance using the specified properties. + * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest instance */ - GetBatchPredictionJobRequest.create = function create(properties) { - return new GetBatchPredictionJobRequest(properties); + GetModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new GetModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBatchPredictionJobRequest.encode = function encode(message, writer) { + GetModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -262065,33 +274626,33 @@ }; /** - * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @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.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBatchPredictionJobRequest.decode = function decode(reader, length) { + GetModelDeploymentMonitoringJobRequest.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.GetBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -262108,30 +274669,30 @@ }; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetBatchPredictionJobRequest message. + * Verifies a GetModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetBatchPredictionJobRequest.verify = function verify(message) { + GetModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -262141,32 +274702,32 @@ }; /** - * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest */ - GetBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest) + GetModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} message GetBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBatchPredictionJobRequest.toObject = function toObject(message, options) { + GetModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -262178,56 +274739,56 @@ }; /** - * Converts this GetBatchPredictionJobRequest to JSON. + * Converts this GetModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - GetBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + GetModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetBatchPredictionJobRequest + * Gets the default type url for GetModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + GetModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest"; }; - return GetBatchPredictionJobRequest; + return GetModelDeploymentMonitoringJobRequest; })(); - v1beta1.ListBatchPredictionJobsRequest = (function() { + v1beta1.ListModelDeploymentMonitoringJobsRequest = (function() { /** - * Properties of a ListBatchPredictionJobsRequest. + * Properties of a ListModelDeploymentMonitoringJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListBatchPredictionJobsRequest - * @property {string|null} [parent] ListBatchPredictionJobsRequest parent - * @property {string|null} [filter] ListBatchPredictionJobsRequest filter - * @property {number|null} [pageSize] ListBatchPredictionJobsRequest pageSize - * @property {string|null} [pageToken] ListBatchPredictionJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListBatchPredictionJobsRequest readMask + * @interface IListModelDeploymentMonitoringJobsRequest + * @property {string|null} [parent] ListModelDeploymentMonitoringJobsRequest parent + * @property {string|null} [filter] ListModelDeploymentMonitoringJobsRequest filter + * @property {number|null} [pageSize] ListModelDeploymentMonitoringJobsRequest pageSize + * @property {string|null} [pageToken] ListModelDeploymentMonitoringJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelDeploymentMonitoringJobsRequest readMask */ /** - * Constructs a new ListBatchPredictionJobsRequest. + * Constructs a new ListModelDeploymentMonitoringJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListBatchPredictionJobsRequest. - * @implements IListBatchPredictionJobsRequest + * @classdesc Represents a ListModelDeploymentMonitoringJobsRequest. + * @implements IListModelDeploymentMonitoringJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set */ - function ListBatchPredictionJobsRequest(properties) { + function ListModelDeploymentMonitoringJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -262235,67 +274796,67 @@ } /** - * ListBatchPredictionJobsRequest parent. + * ListModelDeploymentMonitoringJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.parent = ""; + ListModelDeploymentMonitoringJobsRequest.prototype.parent = ""; /** - * ListBatchPredictionJobsRequest filter. + * ListModelDeploymentMonitoringJobsRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.filter = ""; + ListModelDeploymentMonitoringJobsRequest.prototype.filter = ""; /** - * ListBatchPredictionJobsRequest pageSize. + * ListModelDeploymentMonitoringJobsRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.pageSize = 0; + ListModelDeploymentMonitoringJobsRequest.prototype.pageSize = 0; /** - * ListBatchPredictionJobsRequest pageToken. + * ListModelDeploymentMonitoringJobsRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.pageToken = ""; + ListModelDeploymentMonitoringJobsRequest.prototype.pageToken = ""; /** - * ListBatchPredictionJobsRequest readMask. + * ListModelDeploymentMonitoringJobsRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.readMask = null; + ListModelDeploymentMonitoringJobsRequest.prototype.readMask = null; /** - * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest instance */ - ListBatchPredictionJobsRequest.create = function create(properties) { - return new ListBatchPredictionJobsRequest(properties); + ListModelDeploymentMonitoringJobsRequest.create = function create(properties) { + return new ListModelDeploymentMonitoringJobsRequest(properties); }; /** - * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsRequest.encode = function encode(message, writer) { + ListModelDeploymentMonitoringJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -262312,33 +274873,33 @@ }; /** - * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListModelDeploymentMonitoringJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @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.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsRequest.decode = function decode(reader, length) { + ListModelDeploymentMonitoringJobsRequest.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.ListBatchPredictionJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -262371,30 +274932,30 @@ }; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsRequest.decodeDelimited = function decodeDelimited(reader) { + ListModelDeploymentMonitoringJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListBatchPredictionJobsRequest message. + * Verifies a ListModelDeploymentMonitoringJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListBatchPredictionJobsRequest.verify = function verify(message) { + ListModelDeploymentMonitoringJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -262418,17 +274979,17 @@ }; /** - * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest */ - ListBatchPredictionJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest) + ListModelDeploymentMonitoringJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -262439,22 +275000,22 @@ message.pageToken = String(object.pageToken); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest + * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListBatchPredictionJobsRequest.toObject = function toObject(message, options) { + ListModelDeploymentMonitoringJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -262479,54 +275040,54 @@ }; /** - * Converts this ListBatchPredictionJobsRequest to JSON. + * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @instance * @returns {Object.} JSON object */ - ListBatchPredictionJobsRequest.prototype.toJSON = function toJSON() { + ListModelDeploymentMonitoringJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListBatchPredictionJobsRequest + * Gets the default type url for ListModelDeploymentMonitoringJobsRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListBatchPredictionJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelDeploymentMonitoringJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest"; }; - return ListBatchPredictionJobsRequest; + return ListModelDeploymentMonitoringJobsRequest; })(); - v1beta1.ListBatchPredictionJobsResponse = (function() { + v1beta1.ListModelDeploymentMonitoringJobsResponse = (function() { /** - * Properties of a ListBatchPredictionJobsResponse. + * Properties of a ListModelDeploymentMonitoringJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListBatchPredictionJobsResponse - * @property {Array.|null} [batchPredictionJobs] ListBatchPredictionJobsResponse batchPredictionJobs - * @property {string|null} [nextPageToken] ListBatchPredictionJobsResponse nextPageToken + * @interface IListModelDeploymentMonitoringJobsResponse + * @property {Array.|null} [modelDeploymentMonitoringJobs] ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs + * @property {string|null} [nextPageToken] ListModelDeploymentMonitoringJobsResponse nextPageToken */ /** - * Constructs a new ListBatchPredictionJobsResponse. + * Constructs a new ListModelDeploymentMonitoringJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListBatchPredictionJobsResponse. - * @implements IListBatchPredictionJobsResponse + * @classdesc Represents a ListModelDeploymentMonitoringJobsResponse. + * @implements IListModelDeploymentMonitoringJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set */ - function ListBatchPredictionJobsResponse(properties) { - this.batchPredictionJobs = []; + function ListModelDeploymentMonitoringJobsResponse(properties) { + this.modelDeploymentMonitoringJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -262534,88 +275095,88 @@ } /** - * ListBatchPredictionJobsResponse batchPredictionJobs. - * @member {Array.} batchPredictionJobs - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. + * @member {Array.} modelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @instance */ - ListBatchPredictionJobsResponse.prototype.batchPredictionJobs = $util.emptyArray; + ListModelDeploymentMonitoringJobsResponse.prototype.modelDeploymentMonitoringJobs = $util.emptyArray; /** - * ListBatchPredictionJobsResponse nextPageToken. + * ListModelDeploymentMonitoringJobsResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @instance */ - ListBatchPredictionJobsResponse.prototype.nextPageToken = ""; + ListModelDeploymentMonitoringJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse instance */ - ListBatchPredictionJobsResponse.create = function create(properties) { - return new ListBatchPredictionJobsResponse(properties); + ListModelDeploymentMonitoringJobsResponse.create = function create(properties) { + return new ListModelDeploymentMonitoringJobsResponse(properties); }; /** - * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsResponse.encode = function encode(message, writer) { + ListModelDeploymentMonitoringJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.batchPredictionJobs != null && message.batchPredictionJobs.length) - for (var i = 0; i < message.batchPredictionJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.encode(message.batchPredictionJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.modelDeploymentMonitoringJobs != null && message.modelDeploymentMonitoringJobs.length) + for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListModelDeploymentMonitoringJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @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.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsResponse.decode = function decode(reader, length) { + ListModelDeploymentMonitoringJobsResponse.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.ListBatchPredictionJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.batchPredictionJobs && message.batchPredictionJobs.length)) - message.batchPredictionJobs = []; - message.batchPredictionJobs.push($root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32())); + if (!(message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length)) + message.modelDeploymentMonitoringJobs = []; + message.modelDeploymentMonitoringJobs.push($root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32())); break; } case 2: { @@ -262631,39 +275192,39 @@ }; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsResponse.decodeDelimited = function decodeDelimited(reader) { + ListModelDeploymentMonitoringJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListBatchPredictionJobsResponse message. + * Verifies a ListModelDeploymentMonitoringJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListBatchPredictionJobsResponse.verify = function verify(message) { + ListModelDeploymentMonitoringJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.batchPredictionJobs != null && message.hasOwnProperty("batchPredictionJobs")) { - if (!Array.isArray(message.batchPredictionJobs)) - return "batchPredictionJobs: array expected"; - for (var i = 0; i < message.batchPredictionJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify(message.batchPredictionJobs[i]); + if (message.modelDeploymentMonitoringJobs != null && message.hasOwnProperty("modelDeploymentMonitoringJobs")) { + if (!Array.isArray(message.modelDeploymentMonitoringJobs)) + return "modelDeploymentMonitoringJobs: array expected"; + for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJobs[i]); if (error) - return "batchPredictionJobs." + error; + return "modelDeploymentMonitoringJobs." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -262673,25 +275234,25 @@ }; /** - * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse */ - ListBatchPredictionJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) + ListModelDeploymentMonitoringJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse(); - if (object.batchPredictionJobs) { - if (!Array.isArray(object.batchPredictionJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.batchPredictionJobs: array expected"); - message.batchPredictionJobs = []; - for (var i = 0; i < object.batchPredictionJobs.length; ++i) { - if (typeof object.batchPredictionJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.batchPredictionJobs: object expected"); - message.batchPredictionJobs[i] = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.fromObject(object.batchPredictionJobs[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(); + if (object.modelDeploymentMonitoringJobs) { + if (!Array.isArray(object.modelDeploymentMonitoringJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: array expected"); + message.modelDeploymentMonitoringJobs = []; + for (var i = 0; i < object.modelDeploymentMonitoringJobs.length; ++i) { + if (typeof object.modelDeploymentMonitoringJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: object expected"); + message.modelDeploymentMonitoringJobs[i] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJobs[i]); } } if (object.nextPageToken != null) @@ -262700,26 +275261,26 @@ }; /** - * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse + * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListBatchPredictionJobsResponse.toObject = function toObject(message, options) { + ListModelDeploymentMonitoringJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.batchPredictionJobs = []; + object.modelDeploymentMonitoringJobs = []; if (options.defaults) object.nextPageToken = ""; - if (message.batchPredictionJobs && message.batchPredictionJobs.length) { - object.batchPredictionJobs = []; - for (var j = 0; j < message.batchPredictionJobs.length; ++j) - object.batchPredictionJobs[j] = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.toObject(message.batchPredictionJobs[j], options); + if (message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length) { + object.modelDeploymentMonitoringJobs = []; + for (var j = 0; j < message.modelDeploymentMonitoringJobs.length; ++j) + object.modelDeploymentMonitoringJobs[j] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJobs[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -262727,52 +275288,53 @@ }; /** - * Converts this ListBatchPredictionJobsResponse to JSON. + * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @instance * @returns {Object.} JSON object */ - ListBatchPredictionJobsResponse.prototype.toJSON = function toJSON() { + ListModelDeploymentMonitoringJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListBatchPredictionJobsResponse + * Gets the default type url for ListModelDeploymentMonitoringJobsResponse * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListBatchPredictionJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ListModelDeploymentMonitoringJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse"; }; - return ListBatchPredictionJobsResponse; + return ListModelDeploymentMonitoringJobsResponse; })(); - v1beta1.DeleteBatchPredictionJobRequest = (function() { + v1beta1.UpdateModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a DeleteBatchPredictionJobRequest. + * Properties of an UpdateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteBatchPredictionJobRequest - * @property {string|null} [name] DeleteBatchPredictionJobRequest name + * @interface IUpdateModelDeploymentMonitoringJobRequest + * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelDeploymentMonitoringJobRequest updateMask */ /** - * Constructs a new DeleteBatchPredictionJobRequest. + * Constructs a new UpdateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteBatchPredictionJobRequest. - * @implements IDeleteBatchPredictionJobRequest + * @classdesc Represents an UpdateModelDeploymentMonitoringJobRequest. + * @implements IUpdateModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function DeleteBatchPredictionJobRequest(properties) { + function UpdateModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -262780,75 +275342,89 @@ } /** - * DeleteBatchPredictionJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. + * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @instance */ - DeleteBatchPredictionJobRequest.prototype.name = ""; + UpdateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; /** - * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. + * UpdateModelDeploymentMonitoringJobRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @instance + */ + UpdateModelDeploymentMonitoringJobRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest instance */ - DeleteBatchPredictionJobRequest.create = function create(properties) { - return new DeleteBatchPredictionJobRequest(properties); + UpdateModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new UpdateModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteBatchPredictionJobRequest.encode = function encode(message, writer) { + UpdateModelDeploymentMonitoringJobRequest.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); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @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.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteBatchPredictionJobRequest.decode = function decode(reader, length) { + UpdateModelDeploymentMonitoringJobRequest.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.DeleteBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); + break; + } + case 2: { + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; } default: @@ -262860,122 +275436,141 @@ }; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteBatchPredictionJobRequest message. + * Verifies an UpdateModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteBatchPredictionJobRequest.verify = function verify(message) { + UpdateModelDeploymentMonitoringJobRequest.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"; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); + if (error) + return "modelDeploymentMonitoringJob." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; /** - * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest */ - DeleteBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest) + UpdateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(); + if (object.modelDeploymentMonitoringJob != null) { + if (typeof object.modelDeploymentMonitoringJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteBatchPredictionJobRequest.toObject = function toObject(message, options) { + UpdateModelDeploymentMonitoringJobRequest.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; + if (options.defaults) { + object.modelDeploymentMonitoringJob = null; + object.updateMask = null; + } + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this DeleteBatchPredictionJobRequest to JSON. + * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - DeleteBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + UpdateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteBatchPredictionJobRequest + * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest"; }; - return DeleteBatchPredictionJobRequest; + return UpdateModelDeploymentMonitoringJobRequest; })(); - v1beta1.CancelBatchPredictionJobRequest = (function() { + v1beta1.DeleteModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a CancelBatchPredictionJobRequest. + * Properties of a DeleteModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelBatchPredictionJobRequest - * @property {string|null} [name] CancelBatchPredictionJobRequest name + * @interface IDeleteModelDeploymentMonitoringJobRequest + * @property {string|null} [name] DeleteModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new CancelBatchPredictionJobRequest. + * Constructs a new DeleteModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelBatchPredictionJobRequest. - * @implements ICancelBatchPredictionJobRequest + * @classdesc Represents a DeleteModelDeploymentMonitoringJobRequest. + * @implements IDeleteModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function CancelBatchPredictionJobRequest(properties) { + function DeleteModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -262983,35 +275578,35 @@ } /** - * CancelBatchPredictionJobRequest name. + * DeleteModelDeploymentMonitoringJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @instance */ - CancelBatchPredictionJobRequest.prototype.name = ""; + DeleteModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. + * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest instance */ - CancelBatchPredictionJobRequest.create = function create(properties) { - return new CancelBatchPredictionJobRequest(properties); + DeleteModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new DeleteModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelBatchPredictionJobRequest.encode = function encode(message, writer) { + DeleteModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -263020,33 +275615,33 @@ }; /** - * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @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.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelBatchPredictionJobRequest.decode = function decode(reader, length) { + DeleteModelDeploymentMonitoringJobRequest.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.CancelBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -263063,30 +275658,30 @@ }; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelBatchPredictionJobRequest message. + * Verifies a DeleteModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelBatchPredictionJobRequest.verify = function verify(message) { + DeleteModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -263096,32 +275691,32 @@ }; /** - * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest */ - CancelBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest) + DeleteModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelBatchPredictionJobRequest.toObject = function toObject(message, options) { + DeleteModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -263133,53 +275728,52 @@ }; /** - * Converts this CancelBatchPredictionJobRequest to JSON. + * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - CancelBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + DeleteModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CancelBatchPredictionJobRequest + * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CancelBatchPredictionJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + DeleteModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest"; }; - return CancelBatchPredictionJobRequest; + return DeleteModelDeploymentMonitoringJobRequest; })(); - v1beta1.CreateModelDeploymentMonitoringJobRequest = (function() { + v1beta1.PauseModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a CreateModelDeploymentMonitoringJobRequest. + * Properties of a PauseModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateModelDeploymentMonitoringJobRequest - * @property {string|null} [parent] CreateModelDeploymentMonitoringJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + * @interface IPauseModelDeploymentMonitoringJobRequest + * @property {string|null} [name] PauseModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new CreateModelDeploymentMonitoringJobRequest. + * Constructs a new PauseModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateModelDeploymentMonitoringJobRequest. - * @implements ICreateModelDeploymentMonitoringJobRequest + * @classdesc Represents a PauseModelDeploymentMonitoringJobRequest. + * @implements IPauseModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function CreateModelDeploymentMonitoringJobRequest(properties) { + function PauseModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -263187,89 +275781,75 @@ } /** - * CreateModelDeploymentMonitoringJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest - * @instance - */ - CreateModelDeploymentMonitoringJobRequest.prototype.parent = ""; - - /** - * CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. - * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * PauseModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @instance */ - CreateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; + PauseModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest instance */ - CreateModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new CreateModelDeploymentMonitoringJobRequest(properties); + PauseModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new PauseModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + PauseModelDeploymentMonitoringJobRequest.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.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + PauseModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @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.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + PauseModelDeploymentMonitoringJobRequest.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.CreateModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); - break; - } - case 2: { - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -263281,321 +275861,198 @@ }; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + PauseModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateModelDeploymentMonitoringJobRequest message. + * Verifies a PauseModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateModelDeploymentMonitoringJobRequest.verify = function verify(message) { + PauseModelDeploymentMonitoringJobRequest.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.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); - if (error) - return "modelDeploymentMonitoringJob." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest */ - CreateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) + PauseModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.modelDeploymentMonitoringJob != null) { - if (typeof object.modelDeploymentMonitoringJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); - } + var message = new $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + PauseModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.modelDeploymentMonitoringJob = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. + * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - CreateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + PauseModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for CreateModelDeploymentMonitoringJobRequest + * Gets the default type url for PauseModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - CreateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest"; - }; - - return CreateModelDeploymentMonitoringJobRequest; - })(); - - v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest = (function() { - - /** - * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest - * @property {string|null} [modelDeploymentMonitoringJob] SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob - * @property {string|null} [deployedModelId] SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId - * @property {string|null} [featureDisplayName] SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName - * @property {Array.|null} [objectives] SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives - * @property {number|null} [pageSize] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize - * @property {string|null} [pageToken] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken - * @property {google.protobuf.ITimestamp|null} [startTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime - * @property {google.protobuf.ITimestamp|null} [endTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime - */ - - /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. - * @implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set - */ - function SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties) { - this.objectives = []; - 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]]; - } - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. - * @member {string} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.modelDeploymentMonitoringJob = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.deployedModelId = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. - * @member {string} featureDisplayName - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.featureDisplayName = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. - * @member {Array.} objectives - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.objectives = $util.emptyArray; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageSize = 0; + PauseModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest"; + }; + + return PauseModelDeploymentMonitoringJobRequest; + })(); + + v1beta1.ResumeModelDeploymentMonitoringJobRequest = (function() { /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance + * Properties of a ResumeModelDeploymentMonitoringJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IResumeModelDeploymentMonitoringJobRequest + * @property {string|null} [name] ResumeModelDeploymentMonitoringJobRequest name */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageToken = ""; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance + * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ResumeModelDeploymentMonitoringJobRequest. + * @implements IResumeModelDeploymentMonitoringJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.startTime = null; + function ResumeModelDeploymentMonitoringJobRequest(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]]; + } /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * ResumeModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.endTime = null; + ResumeModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. + * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.create = function create(properties) { - return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties); + ResumeModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new ResumeModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.encode = function encode(message, writer) { + ResumeModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelDeploymentMonitoringJob); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureDisplayName); - if (message.objectives != null && message.objectives.length) - for (var i = 0; i < message.objectives.length; ++i) - $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.encode(message.objectives[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.pageToken); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ResumeModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.decode = function decode(reader, length) { + ResumeModelDeploymentMonitoringJobRequest.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.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.modelDeploymentMonitoringJob = reader.string(); - break; - } - case 2: { - message.deployedModelId = reader.string(); - break; - } - case 3: { - message.featureDisplayName = reader.string(); - break; - } - case 4: { - if (!(message.objectives && message.objectives.length)) - message.objectives = []; - message.objectives.push($root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.decode(reader, reader.uint32())); - break; - } - case 5: { - message.pageSize = reader.int32(); - break; - } - case 6: { - message.pageToken = reader.string(); - break; - } - case 7: { - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - } - case 8: { - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.name = reader.string(); break; } default: @@ -263607,470 +276064,122 @@ }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.decodeDelimited = function decodeDelimited(reader) { + ResumeModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. + * Verifies a ResumeModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify = function verify(message) { + ResumeModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - if (!$util.isString(message.modelDeploymentMonitoringJob)) - return "modelDeploymentMonitoringJob: string expected"; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - if (!$util.isString(message.featureDisplayName)) - return "featureDisplayName: string expected"; - if (message.objectives != null && message.hasOwnProperty("objectives")) { - if (!Array.isArray(message.objectives)) - return "objectives: array expected"; - for (var i = 0; i < message.objectives.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify(message.objectives[i]); - if (error) - return "objectives." + error; - } - } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) + ResumeModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); - if (object.modelDeploymentMonitoringJob != null) - message.modelDeploymentMonitoringJob = String(object.modelDeploymentMonitoringJob); - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.featureDisplayName != null) - message.featureDisplayName = String(object.featureDisplayName); - if (object.objectives) { - if (!Array.isArray(object.objectives)) - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: array expected"); - message.objectives = []; - for (var i = 0; i < object.objectives.length; ++i) { - if (typeof object.objectives[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: object expected"); - message.objectives[i] = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.fromObject(object.objectives[i]); - } - } - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } + var message = new $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @param {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.toObject = function toObject(message, options) { + ResumeModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.objectives = []; - if (options.defaults) { - object.modelDeploymentMonitoringJob = ""; - object.deployedModelId = ""; - object.featureDisplayName = ""; - object.pageSize = 0; - object.pageToken = ""; - object.startTime = null; - object.endTime = null; - } - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = message.modelDeploymentMonitoringJob; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - object.featureDisplayName = message.featureDisplayName; - if (message.objectives && message.objectives.length) { - object.objectives = []; - for (var j = 0; j < message.objectives.length; ++j) - object.objectives[j] = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.toObject(message.objectives[j], options); - } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. + * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.toJSON = function toJSON() { + ResumeModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + ResumeModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest"; }; - SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective = (function() { - - /** - * Properties of a StatsAnomaliesObjective. - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @interface IStatsAnomaliesObjective - * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null} [type] StatsAnomaliesObjective type - * @property {number|null} [topFeatureCount] StatsAnomaliesObjective topFeatureCount - */ - - /** - * Constructs a new StatsAnomaliesObjective. - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @classdesc Represents a StatsAnomaliesObjective. - * @implements IStatsAnomaliesObjective - * @constructor - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set - */ - function StatsAnomaliesObjective(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]]; - } - - /** - * StatsAnomaliesObjective type. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType} type - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - */ - StatsAnomaliesObjective.prototype.type = 0; - - /** - * StatsAnomaliesObjective topFeatureCount. - * @member {number} topFeatureCount - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - */ - StatsAnomaliesObjective.prototype.topFeatureCount = 0; - - /** - * Creates a new StatsAnomaliesObjective instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective instance - */ - StatsAnomaliesObjective.create = function create(properties) { - return new StatsAnomaliesObjective(properties); - }; - - /** - * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StatsAnomaliesObjective.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.topFeatureCount != null && Object.hasOwnProperty.call(message, "topFeatureCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.topFeatureCount); - return writer; - }; - - /** - * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StatsAnomaliesObjective.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StatsAnomaliesObjective.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.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.type = reader.int32(); - break; - } - case 4: { - message.topFeatureCount = reader.int32(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StatsAnomaliesObjective.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StatsAnomaliesObjective message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StatsAnomaliesObjective.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: - case 4: - break; - } - if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) - if (!$util.isInteger(message.topFeatureCount)) - return "topFeatureCount: integer expected"; - return null; - }; - - /** - * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - */ - StatsAnomaliesObjective.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "RAW_FEATURE_SKEW": - case 1: - message.type = 1; - break; - case "RAW_FEATURE_DRIFT": - case 2: - message.type = 2; - break; - case "FEATURE_ATTRIBUTION_SKEW": - case 3: - message.type = 3; - break; - case "FEATURE_ATTRIBUTION_DRIFT": - case 4: - message.type = 4; - break; - } - if (object.topFeatureCount != null) - message.topFeatureCount = object.topFeatureCount | 0; - return message; - }; - - /** - * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} message StatsAnomaliesObjective - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StatsAnomaliesObjective.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; - object.topFeatureCount = 0; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType[message.type] === undefined ? message.type : $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType[message.type] : message.type; - if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) - object.topFeatureCount = message.topFeatureCount; - return object; - }; - - /** - * Converts this StatsAnomaliesObjective to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - * @returns {Object.} JSON object - */ - StatsAnomaliesObjective.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for StatsAnomaliesObjective - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - StatsAnomaliesObjective.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective"; - }; - - return StatsAnomaliesObjective; - })(); - - return SearchModelDeploymentMonitoringStatsAnomaliesRequest; + return ResumeModelDeploymentMonitoringJobRequest; })(); - v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse = (function() { + v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata = (function() { /** - * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse - * @property {Array.|null} [monitoringStats] SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats - * @property {string|null} [nextPageToken] SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken + * @interface IUpdateModelDeploymentMonitoringJobOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. - * @implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse + * @classdesc Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. + * @implements IUpdateModelDeploymentMonitoringJobOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set */ - function SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties) { - this.monitoringStats = []; + function UpdateModelDeploymentMonitoringJobOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -264078,92 +276187,75 @@ } /** - * SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. - * @member {Array.} monitoringStats - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.monitoringStats = $util.emptyArray; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.nextPageToken = ""; + UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.create = function create(properties) { - return new SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties); + UpdateModelDeploymentMonitoringJobOperationMetadata.create = function create(properties) { + return new UpdateModelDeploymentMonitoringJobOperationMetadata(properties); }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.encode = function encode(message, writer) { + UpdateModelDeploymentMonitoringJobOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.monitoringStats != null && message.monitoringStats.length) - for (var i = 0; i < message.monitoringStats.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.encode(message.monitoringStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelDeploymentMonitoringJobOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @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.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.decode = function decode(reader, length) { + UpdateModelDeploymentMonitoringJobOperationMetadata.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.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - if (!(message.monitoringStats && message.monitoringStats.length)) - message.monitoringStats = []; - message.monitoringStats.push($root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.decode(reader, reader.uint32())); - break; - } - case 2: { - message.nextPageToken = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; } default: @@ -264175,148 +276267,140 @@ }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateModelDeploymentMonitoringJobOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. + * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify = function verify(message) { + UpdateModelDeploymentMonitoringJobOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.monitoringStats != null && message.hasOwnProperty("monitoringStats")) { - if (!Array.isArray(message.monitoringStats)) - return "monitoringStats: array expected"; - for (var i = 0; i < message.monitoringStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify(message.monitoringStats[i]); - if (error) - return "monitoringStats." + error; - } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) + UpdateModelDeploymentMonitoringJobOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); - if (object.monitoringStats) { - if (!Array.isArray(object.monitoringStats)) - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: array expected"); - message.monitoringStats = []; - for (var i = 0; i < object.monitoringStats.length; ++i) { - if (typeof object.monitoringStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: object expected"); - message.monitoringStats[i] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.fromObject(object.monitoringStats[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.toObject = function toObject(message, options) { + UpdateModelDeploymentMonitoringJobOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.monitoringStats = []; if (options.defaults) - object.nextPageToken = ""; - if (message.monitoringStats && message.monitoringStats.length) { - object.monitoringStats = []; - for (var j = 0; j < message.monitoringStats.length; ++j) - object.monitoringStats[j] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.toObject(message.monitoringStats[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. + * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @instance * @returns {Object.} JSON object */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.toJSON = function toJSON() { + UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + UpdateModelDeploymentMonitoringJobOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata"; }; - return SearchModelDeploymentMonitoringStatsAnomaliesResponse; + return UpdateModelDeploymentMonitoringJobOperationMetadata; })(); - v1beta1.GetModelDeploymentMonitoringJobRequest = (function() { + v1beta1.NasJob = (function() { /** - * Properties of a GetModelDeploymentMonitoringJobRequest. + * Properties of a NasJob. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetModelDeploymentMonitoringJobRequest - * @property {string|null} [name] GetModelDeploymentMonitoringJobRequest name - */ - - /** - * Constructs a new GetModelDeploymentMonitoringJobRequest. + * @interface INasJob + * @property {string|null} [name] NasJob name + * @property {string|null} [displayName] NasJob displayName + * @property {google.cloud.aiplatform.v1beta1.INasJobSpec|null} [nasJobSpec] NasJob nasJobSpec + * @property {google.cloud.aiplatform.v1beta1.INasJobOutput|null} [nasJobOutput] NasJob nasJobOutput + * @property {google.cloud.aiplatform.v1beta1.JobState|null} [state] NasJob state + * @property {google.protobuf.ITimestamp|null} [createTime] NasJob createTime + * @property {google.protobuf.ITimestamp|null} [startTime] NasJob startTime + * @property {google.protobuf.ITimestamp|null} [endTime] NasJob endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] NasJob updateTime + * @property {google.rpc.IStatus|null} [error] NasJob error + * @property {Object.|null} [labels] NasJob labels + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] NasJob encryptionSpec + * @property {boolean|null} [enableRestrictedImageTraining] NasJob enableRestrictedImageTraining + */ + + /** + * Constructs a new NasJob. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetModelDeploymentMonitoringJobRequest. - * @implements IGetModelDeploymentMonitoringJobRequest + * @classdesc Represents a NasJob. + * @implements INasJob * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.INasJob=} [properties] Properties to set */ - function GetModelDeploymentMonitoringJobRequest(properties) { + function NasJob(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -264324,70 +276408,191 @@ } /** - * GetModelDeploymentMonitoringJobRequest name. + * NasJob name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @instance */ - GetModelDeploymentMonitoringJobRequest.prototype.name = ""; + NasJob.prototype.name = ""; /** - * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. + * NasJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.displayName = ""; + + /** + * NasJob nasJobSpec. + * @member {google.cloud.aiplatform.v1beta1.INasJobSpec|null|undefined} nasJobSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.nasJobSpec = null; + + /** + * NasJob nasJobOutput. + * @member {google.cloud.aiplatform.v1beta1.INasJobOutput|null|undefined} nasJobOutput + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.nasJobOutput = null; + + /** + * NasJob state. + * @member {google.cloud.aiplatform.v1beta1.JobState} state + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.state = 0; + + /** + * NasJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.createTime = null; + + /** + * NasJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.startTime = null; + + /** + * NasJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.endTime = null; + + /** + * NasJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.updateTime = null; + + /** + * NasJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.error = null; + + /** + * NasJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.labels = $util.emptyObject; + + /** + * NasJob encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.encryptionSpec = null; + + /** + * NasJob enableRestrictedImageTraining. + * @member {boolean} enableRestrictedImageTraining + * @memberof google.cloud.aiplatform.v1beta1.NasJob + * @instance + */ + NasJob.prototype.enableRestrictedImageTraining = false; + + /** + * Creates a new NasJob instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.INasJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasJob} NasJob instance */ - GetModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new GetModelDeploymentMonitoringJobRequest(properties); + NasJob.create = function create(properties) { + return new NasJob(properties); }; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified NasJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJob.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasJob} message NasJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + NasJob.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); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.nasJobSpec != null && Object.hasOwnProperty.call(message, "nasJobSpec")) + $root.google.cloud.aiplatform.v1beta1.NasJobSpec.encode(message.nasJobSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.nasJobOutput != null && Object.hasOwnProperty.call(message, "nasJobOutput")) + $root.google.cloud.aiplatform.v1beta1.NasJobOutput.encode(message.nasJobOutput, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.enableRestrictedImageTraining != null && Object.hasOwnProperty.call(message, "enableRestrictedImageTraining")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableRestrictedImageTraining); return writer; }; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified NasJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJob.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasJob} message NasJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + NasJob.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a NasJob message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @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.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.NasJob} NasJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + NasJob.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.GetModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NasJob(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -264395,6 +276600,73 @@ message.name = reader.string(); break; } + case 2: { + message.displayName = reader.string(); + break; + } + case 4: { + message.nasJobSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.decode(reader, reader.uint32()); + break; + } + case 5: { + message.nasJobOutput = $root.google.cloud.aiplatform.v1beta1.NasJobOutput.decode(reader, reader.uint32()); + break; + } + case 6: { + message.state = reader.int32(); + break; + } + case 7: { + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 8: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 9: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 10: { + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 11: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } + case 12: { + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + } + case 13: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + case 14: { + message.enableRestrictedImageTraining = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -264404,126 +276676,341 @@ }; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a NasJob message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.NasJob} NasJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + NasJob.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetModelDeploymentMonitoringJobRequest message. + * Verifies a NasJob message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetModelDeploymentMonitoringJobRequest.verify = function verify(message) { + NasJob.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"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.nasJobSpec != null && message.hasOwnProperty("nasJobSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.verify(message.nasJobSpec); + if (error) + return "nasJobSpec." + error; + } + if (message.nasJobOutput != null && message.hasOwnProperty("nasJobOutput")) { + var error = $root.google.cloud.aiplatform.v1beta1.NasJobOutput.verify(message.nasJobOutput); + if (error) + return "nasJobOutput." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.enableRestrictedImageTraining != null && message.hasOwnProperty("enableRestrictedImageTraining")) + if (typeof message.enableRestrictedImageTraining !== "boolean") + return "enableRestrictedImageTraining: boolean expected"; return null; }; /** - * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasJob message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.NasJob} NasJob */ - GetModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest) + NasJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasJob) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.NasJob(); if (object.name != null) message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.nasJobSpec != null) { + if (typeof object.nasJobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.nasJobSpec: object expected"); + message.nasJobSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.fromObject(object.nasJobSpec); + } + if (object.nasJobOutput != null) { + if (typeof object.nasJobOutput !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.nasJobOutput: object expected"); + message.nasJobOutput = $root.google.cloud.aiplatform.v1beta1.NasJobOutput.fromObject(object.nasJobOutput); + } + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "JOB_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "JOB_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "JOB_STATE_PENDING": + case 2: + message.state = 2; + break; + case "JOB_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "JOB_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "JOB_STATE_FAILED": + case 5: + message.state = 5; + break; + case "JOB_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "JOB_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "JOB_STATE_PAUSED": + case 8: + message.state = 8; + break; + case "JOB_STATE_EXPIRED": + case 9: + message.state = 9; + break; + case "JOB_STATE_UPDATING": + case 10: + message.state = 10; + break; + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.enableRestrictedImageTraining != null) + message.enableRestrictedImageTraining = Boolean(object.enableRestrictedImageTraining); return message; }; /** - * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a NasJob message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @static - * @param {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.NasJob} message NasJob * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + NasJob.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { object.name = ""; + object.displayName = ""; + object.nasJobSpec = null; + object.nasJobOutput = null; + object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.updateTime = null; + object.error = null; + object.encryptionSpec = null; + object.enableRestrictedImageTraining = false; + } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.nasJobSpec != null && message.hasOwnProperty("nasJobSpec")) + object.nasJobSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.toObject(message.nasJobSpec, options); + if (message.nasJobOutput != null && message.hasOwnProperty("nasJobOutput")) + object.nasJobOutput = $root.google.cloud.aiplatform.v1beta1.NasJobOutput.toObject(message.nasJobOutput, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.JobState[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1beta1.JobState[message.state] : message.state; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.enableRestrictedImageTraining != null && message.hasOwnProperty("enableRestrictedImageTraining")) + object.enableRestrictedImageTraining = message.enableRestrictedImageTraining; return object; }; /** - * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * Converts this NasJob to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @instance * @returns {Object.} JSON object */ - GetModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + NasJob.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for GetModelDeploymentMonitoringJobRequest + * Gets the default type url for NasJob * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJob * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - GetModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NasJob.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasJob"; }; - return GetModelDeploymentMonitoringJobRequest; + return NasJob; })(); - v1beta1.ListModelDeploymentMonitoringJobsRequest = (function() { + v1beta1.NasTrialDetail = (function() { /** - * Properties of a ListModelDeploymentMonitoringJobsRequest. + * Properties of a NasTrialDetail. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelDeploymentMonitoringJobsRequest - * @property {string|null} [parent] ListModelDeploymentMonitoringJobsRequest parent - * @property {string|null} [filter] ListModelDeploymentMonitoringJobsRequest filter - * @property {number|null} [pageSize] ListModelDeploymentMonitoringJobsRequest pageSize - * @property {string|null} [pageToken] ListModelDeploymentMonitoringJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelDeploymentMonitoringJobsRequest readMask + * @interface INasTrialDetail + * @property {string|null} [name] NasTrialDetail name + * @property {string|null} [parameters] NasTrialDetail parameters + * @property {google.cloud.aiplatform.v1beta1.INasTrial|null} [searchTrial] NasTrialDetail searchTrial + * @property {google.cloud.aiplatform.v1beta1.INasTrial|null} [trainTrial] NasTrialDetail trainTrial */ /** - * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * Constructs a new NasTrialDetail. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelDeploymentMonitoringJobsRequest. - * @implements IListModelDeploymentMonitoringJobsRequest + * @classdesc Represents a NasTrialDetail. + * @implements INasTrialDetail * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.INasTrialDetail=} [properties] Properties to set */ - function ListModelDeploymentMonitoringJobsRequest(properties) { + function NasTrialDetail(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -264531,131 +277018,117 @@ } /** - * ListModelDeploymentMonitoringJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest - * @instance - */ - ListModelDeploymentMonitoringJobsRequest.prototype.parent = ""; - - /** - * ListModelDeploymentMonitoringJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * NasTrialDetail name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.filter = ""; + NasTrialDetail.prototype.name = ""; /** - * ListModelDeploymentMonitoringJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * NasTrialDetail parameters. + * @member {string} parameters + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.pageSize = 0; + NasTrialDetail.prototype.parameters = ""; /** - * ListModelDeploymentMonitoringJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * NasTrialDetail searchTrial. + * @member {google.cloud.aiplatform.v1beta1.INasTrial|null|undefined} searchTrial + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.pageToken = ""; + NasTrialDetail.prototype.searchTrial = null; /** - * ListModelDeploymentMonitoringJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * NasTrialDetail trainTrial. + * @member {google.cloud.aiplatform.v1beta1.INasTrial|null|undefined} trainTrial + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.readMask = null; + NasTrialDetail.prototype.trainTrial = null; /** - * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. + * Creates a new NasTrialDetail instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.INasTrialDetail=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasTrialDetail} NasTrialDetail instance */ - ListModelDeploymentMonitoringJobsRequest.create = function create(properties) { - return new ListModelDeploymentMonitoringJobsRequest(properties); + NasTrialDetail.create = function create(properties) { + return new NasTrialDetail(properties); }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * Encodes the specified NasTrialDetail message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasTrialDetail.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasTrialDetail} message NasTrialDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsRequest.encode = function encode(message, writer) { + NasTrialDetail.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.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parameters); + if (message.searchTrial != null && Object.hasOwnProperty.call(message, "searchTrial")) + $root.google.cloud.aiplatform.v1beta1.NasTrial.encode(message.searchTrial, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainTrial != null && Object.hasOwnProperty.call(message, "trainTrial")) + $root.google.cloud.aiplatform.v1beta1.NasTrial.encode(message.trainTrial, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * Encodes the specified NasTrialDetail message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasTrialDetail.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasTrialDetail} message NasTrialDetail message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + NasTrialDetail.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. + * Decodes a NasTrialDetail message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @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.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.NasTrialDetail} NasTrialDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsRequest.decode = function decode(reader, length) { + NasTrialDetail.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.ListModelDeploymentMonitoringJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NasTrialDetail(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.parent = reader.string(); + message.name = reader.string(); break; } case 2: { - message.filter = reader.string(); + message.parameters = reader.string(); break; } case 3: { - message.pageSize = reader.int32(); + message.searchTrial = $root.google.cloud.aiplatform.v1beta1.NasTrial.decode(reader, reader.uint32()); break; } case 4: { - message.pageToken = reader.string(); - break; - } - case 5: { - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.trainTrial = $root.google.cloud.aiplatform.v1beta1.NasTrial.decode(reader, reader.uint32()); break; } default: @@ -264667,162 +277140,159 @@ }; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a NasTrialDetail message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.NasTrialDetail} NasTrialDetail * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsRequest.decodeDelimited = function decodeDelimited(reader) { + NasTrialDetail.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelDeploymentMonitoringJobsRequest message. + * Verifies a NasTrialDetail message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelDeploymentMonitoringJobsRequest.verify = function verify(message) { + NasTrialDetail.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.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.parameters != null && message.hasOwnProperty("parameters")) + if (!$util.isString(message.parameters)) + return "parameters: string expected"; + if (message.searchTrial != null && message.hasOwnProperty("searchTrial")) { + var error = $root.google.cloud.aiplatform.v1beta1.NasTrial.verify(message.searchTrial); if (error) - return "readMask." + error; + return "searchTrial." + error; + } + if (message.trainTrial != null && message.hasOwnProperty("trainTrial")) { + var error = $root.google.cloud.aiplatform.v1beta1.NasTrial.verify(message.trainTrial); + if (error) + return "trainTrial." + error; } return null; }; /** - * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasTrialDetail message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.NasTrialDetail} NasTrialDetail */ - ListModelDeploymentMonitoringJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) + NasTrialDetail.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasTrialDetail) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1beta1.NasTrialDetail(); + if (object.name != null) + message.name = String(object.name); + if (object.parameters != null) + message.parameters = String(object.parameters); + if (object.searchTrial != null) { + if (typeof object.searchTrial !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasTrialDetail.searchTrial: object expected"); + message.searchTrial = $root.google.cloud.aiplatform.v1beta1.NasTrial.fromObject(object.searchTrial); + } + if (object.trainTrial != null) { + if (typeof object.trainTrial !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasTrialDetail.trainTrial: object expected"); + message.trainTrial = $root.google.cloud.aiplatform.v1beta1.NasTrial.fromObject(object.trainTrial); } return message; }; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a NasTrialDetail message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest + * @param {google.cloud.aiplatform.v1beta1.NasTrialDetail} message NasTrialDetail * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelDeploymentMonitoringJobsRequest.toObject = function toObject(message, options) { + NasTrialDetail.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + object.name = ""; + object.parameters = ""; + object.searchTrial = null; + object.trainTrial = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.parameters != null && message.hasOwnProperty("parameters")) + object.parameters = message.parameters; + if (message.searchTrial != null && message.hasOwnProperty("searchTrial")) + object.searchTrial = $root.google.cloud.aiplatform.v1beta1.NasTrial.toObject(message.searchTrial, options); + if (message.trainTrial != null && message.hasOwnProperty("trainTrial")) + object.trainTrial = $root.google.cloud.aiplatform.v1beta1.NasTrial.toObject(message.trainTrial, options); return object; }; /** - * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. + * Converts this NasTrialDetail to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @instance * @returns {Object.} JSON object */ - ListModelDeploymentMonitoringJobsRequest.prototype.toJSON = function toJSON() { + NasTrialDetail.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsRequest + * Gets the default type url for NasTrialDetail * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.NasTrialDetail * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelDeploymentMonitoringJobsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NasTrialDetail.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasTrialDetail"; }; - return ListModelDeploymentMonitoringJobsRequest; + return NasTrialDetail; })(); - v1beta1.ListModelDeploymentMonitoringJobsResponse = (function() { + v1beta1.NasJobSpec = (function() { /** - * Properties of a ListModelDeploymentMonitoringJobsResponse. + * Properties of a NasJobSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelDeploymentMonitoringJobsResponse - * @property {Array.|null} [modelDeploymentMonitoringJobs] ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs - * @property {string|null} [nextPageToken] ListModelDeploymentMonitoringJobsResponse nextPageToken + * @interface INasJobSpec + * @property {google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec|null} [multiTrialAlgorithmSpec] NasJobSpec multiTrialAlgorithmSpec + * @property {string|null} [resumeNasJobId] NasJobSpec resumeNasJobId + * @property {string|null} [searchSpaceSpec] NasJobSpec searchSpaceSpec */ /** - * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * Constructs a new NasJobSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelDeploymentMonitoringJobsResponse. - * @implements IListModelDeploymentMonitoringJobsResponse + * @classdesc Represents a NasJobSpec. + * @implements INasJobSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.INasJobSpec=} [properties] Properties to set */ - function ListModelDeploymentMonitoringJobsResponse(properties) { - this.modelDeploymentMonitoringJobs = []; + function NasJobSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -264830,92 +277300,117 @@ } /** - * ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. - * @member {Array.} modelDeploymentMonitoringJobs - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * NasJobSpec multiTrialAlgorithmSpec. + * @member {google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec|null|undefined} multiTrialAlgorithmSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @instance */ - ListModelDeploymentMonitoringJobsResponse.prototype.modelDeploymentMonitoringJobs = $util.emptyArray; + NasJobSpec.prototype.multiTrialAlgorithmSpec = null; /** - * ListModelDeploymentMonitoringJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * NasJobSpec resumeNasJobId. + * @member {string} resumeNasJobId + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @instance */ - ListModelDeploymentMonitoringJobsResponse.prototype.nextPageToken = ""; + NasJobSpec.prototype.resumeNasJobId = ""; /** - * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * NasJobSpec searchSpaceSpec. + * @member {string} searchSpaceSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec + * @instance + */ + NasJobSpec.prototype.searchSpaceSpec = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NasJobSpec nasAlgorithmSpec. + * @member {"multiTrialAlgorithmSpec"|undefined} nasAlgorithmSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec + * @instance + */ + Object.defineProperty(NasJobSpec.prototype, "nasAlgorithmSpec", { + get: $util.oneOfGetter($oneOfFields = ["multiTrialAlgorithmSpec"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NasJobSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.INasJobSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec} NasJobSpec instance */ - ListModelDeploymentMonitoringJobsResponse.create = function create(properties) { - return new ListModelDeploymentMonitoringJobsResponse(properties); + NasJobSpec.create = function create(properties) { + return new NasJobSpec(properties); }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * Encodes the specified NasJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasJobSpec} message NasJobSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsResponse.encode = function encode(message, writer) { + NasJobSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJobs != null && message.modelDeploymentMonitoringJobs.length) - for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.searchSpaceSpec != null && Object.hasOwnProperty.call(message, "searchSpaceSpec")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.searchSpaceSpec); + if (message.multiTrialAlgorithmSpec != null && Object.hasOwnProperty.call(message, "multiTrialAlgorithmSpec")) + $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.encode(message.multiTrialAlgorithmSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.resumeNasJobId != null && Object.hasOwnProperty.call(message, "resumeNasJobId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resumeNasJobId); return writer; }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * Encodes the specified NasJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasJobSpec} message NasJobSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + NasJobSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. + * Decodes a NasJobSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @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.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec} NasJobSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsResponse.decode = function decode(reader, length) { + NasJobSpec.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.ListModelDeploymentMonitoringJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NasJobSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length)) - message.modelDeploymentMonitoringJobs = []; - message.modelDeploymentMonitoringJobs.push($root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32())); + case 2: { + message.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.decode(reader, reader.uint32()); break; } - case 2: { - message.nextPageToken = reader.string(); + case 3: { + message.resumeNasJobId = reader.string(); + break; + } + case 1: { + message.searchSpaceSpec = reader.string(); break; } default: @@ -264927,385 +277422,1278 @@ }; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a NasJobSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec} NasJobSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsResponse.decodeDelimited = function decodeDelimited(reader) { + NasJobSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelDeploymentMonitoringJobsResponse message. + * Verifies a NasJobSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelDeploymentMonitoringJobsResponse.verify = function verify(message) { + NasJobSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJobs != null && message.hasOwnProperty("modelDeploymentMonitoringJobs")) { - if (!Array.isArray(message.modelDeploymentMonitoringJobs)) - return "modelDeploymentMonitoringJobs: array expected"; - for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJobs[i]); + var properties = {}; + if (message.multiTrialAlgorithmSpec != null && message.hasOwnProperty("multiTrialAlgorithmSpec")) { + properties.nasAlgorithmSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.verify(message.multiTrialAlgorithmSpec); if (error) - return "modelDeploymentMonitoringJobs." + error; + return "multiTrialAlgorithmSpec." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.resumeNasJobId != null && message.hasOwnProperty("resumeNasJobId")) + if (!$util.isString(message.resumeNasJobId)) + return "resumeNasJobId: string expected"; + if (message.searchSpaceSpec != null && message.hasOwnProperty("searchSpaceSpec")) + if (!$util.isString(message.searchSpaceSpec)) + return "searchSpaceSpec: string expected"; return null; }; /** - * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NasJobSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec} NasJobSpec */ - ListModelDeploymentMonitoringJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) + NasJobSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasJobSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(); - if (object.modelDeploymentMonitoringJobs) { - if (!Array.isArray(object.modelDeploymentMonitoringJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: array expected"); - message.modelDeploymentMonitoringJobs = []; - for (var i = 0; i < object.modelDeploymentMonitoringJobs.length; ++i) { - if (typeof object.modelDeploymentMonitoringJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: object expected"); - message.modelDeploymentMonitoringJobs[i] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJobs[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.NasJobSpec(); + if (object.multiTrialAlgorithmSpec != null) { + if (typeof object.multiTrialAlgorithmSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobSpec.multiTrialAlgorithmSpec: object expected"); + message.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.fromObject(object.multiTrialAlgorithmSpec); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.resumeNasJobId != null) + message.resumeNasJobId = String(object.resumeNasJobId); + if (object.searchSpaceSpec != null) + message.searchSpaceSpec = String(object.searchSpaceSpec); return message; }; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a NasJobSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec} message NasJobSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelDeploymentMonitoringJobsResponse.toObject = function toObject(message, options) { + NasJobSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.modelDeploymentMonitoringJobs = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length) { - object.modelDeploymentMonitoringJobs = []; - for (var j = 0; j < message.modelDeploymentMonitoringJobs.length; ++j) - object.modelDeploymentMonitoringJobs[j] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJobs[j], options); + if (options.defaults) { + object.searchSpaceSpec = ""; + object.resumeNasJobId = ""; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.searchSpaceSpec != null && message.hasOwnProperty("searchSpaceSpec")) + object.searchSpaceSpec = message.searchSpaceSpec; + if (message.multiTrialAlgorithmSpec != null && message.hasOwnProperty("multiTrialAlgorithmSpec")) { + object.multiTrialAlgorithmSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.toObject(message.multiTrialAlgorithmSpec, options); + if (options.oneofs) + object.nasAlgorithmSpec = "multiTrialAlgorithmSpec"; + } + if (message.resumeNasJobId != null && message.hasOwnProperty("resumeNasJobId")) + object.resumeNasJobId = message.resumeNasJobId; return object; }; /** - * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. + * Converts this NasJobSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @instance * @returns {Object.} JSON object */ - ListModelDeploymentMonitoringJobsResponse.prototype.toJSON = function toJSON() { + NasJobSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for ListModelDeploymentMonitoringJobsResponse + * Gets the default type url for NasJobSpec * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - ListModelDeploymentMonitoringJobsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NasJobSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasJobSpec"; }; - return ListModelDeploymentMonitoringJobsResponse; - })(); + NasJobSpec.MultiTrialAlgorithmSpec = (function() { - v1beta1.UpdateModelDeploymentMonitoringJobRequest = (function() { + /** + * Properties of a MultiTrialAlgorithmSpec. + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec + * @interface IMultiTrialAlgorithmSpec + * @property {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm|null} [multiTrialAlgorithm] MultiTrialAlgorithmSpec multiTrialAlgorithm + * @property {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null} [metric] MultiTrialAlgorithmSpec metric + * @property {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null} [searchTrialSpec] MultiTrialAlgorithmSpec searchTrialSpec + * @property {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null} [trainTrialSpec] MultiTrialAlgorithmSpec trainTrialSpec + */ - /** - * Properties of an UpdateModelDeploymentMonitoringJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateModelDeploymentMonitoringJobRequest - * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelDeploymentMonitoringJobRequest updateMask - */ + /** + * Constructs a new MultiTrialAlgorithmSpec. + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec + * @classdesc Represents a MultiTrialAlgorithmSpec. + * @implements IMultiTrialAlgorithmSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec=} [properties] Properties to set + */ + function MultiTrialAlgorithmSpec(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]]; + } - /** - * Constructs a new UpdateModelDeploymentMonitoringJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateModelDeploymentMonitoringJobRequest. - * @implements IUpdateModelDeploymentMonitoringJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - */ - function UpdateModelDeploymentMonitoringJobRequest(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]]; - } + /** + * MultiTrialAlgorithmSpec multiTrialAlgorithm. + * @member {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm} multiTrialAlgorithm + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + */ + MultiTrialAlgorithmSpec.prototype.multiTrialAlgorithm = 0; - /** - * UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. - * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @instance - */ - UpdateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; + /** + * MultiTrialAlgorithmSpec metric. + * @member {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec|null|undefined} metric + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + */ + MultiTrialAlgorithmSpec.prototype.metric = null; - /** - * UpdateModelDeploymentMonitoringJobRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @instance - */ - UpdateModelDeploymentMonitoringJobRequest.prototype.updateMask = null; + /** + * MultiTrialAlgorithmSpec searchTrialSpec. + * @member {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec|null|undefined} searchTrialSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + */ + MultiTrialAlgorithmSpec.prototype.searchTrialSpec = null; - /** - * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest instance - */ - UpdateModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new UpdateModelDeploymentMonitoringJobRequest(properties); - }; + /** + * MultiTrialAlgorithmSpec trainTrialSpec. + * @member {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec|null|undefined} trainTrialSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + */ + MultiTrialAlgorithmSpec.prototype.trainTrialSpec = null; - /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Creates a new MultiTrialAlgorithmSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec instance + */ + MultiTrialAlgorithmSpec.create = function create(properties) { + return new MultiTrialAlgorithmSpec(properties); + }; - /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UpdateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MultiTrialAlgorithmSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiTrialAlgorithmSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.multiTrialAlgorithm != null && Object.hasOwnProperty.call(message, "multiTrialAlgorithm")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.multiTrialAlgorithm); + if (message.metric != null && Object.hasOwnProperty.call(message, "metric")) + $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.encode(message.metric, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.searchTrialSpec != null && Object.hasOwnProperty.call(message, "searchTrialSpec")) + $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.encode(message.searchTrialSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainTrialSpec != null && Object.hasOwnProperty.call(message, "trainTrialSpec")) + $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.encode(message.trainTrialSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; - /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @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.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateModelDeploymentMonitoringJobRequest.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.UpdateModelDeploymentMonitoringJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); + /** + * Encodes the specified MultiTrialAlgorithmSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.IMultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiTrialAlgorithmSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiTrialAlgorithmSpec.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.NasJobSpec.MultiTrialAlgorithmSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.multiTrialAlgorithm = reader.int32(); + break; + } + case 2: { + message.metric = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.decode(reader, reader.uint32()); + break; + } + case 3: { + message.searchTrialSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.decode(reader, reader.uint32()); + break; + } + case 4: { + message.trainTrialSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); break; } - case 2: { - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + } + return message; + }; + + /** + * Decodes a MultiTrialAlgorithmSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiTrialAlgorithmSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MultiTrialAlgorithmSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MultiTrialAlgorithmSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.multiTrialAlgorithm != null && message.hasOwnProperty("multiTrialAlgorithm")) + switch (message.multiTrialAlgorithm) { + default: + return "multiTrialAlgorithm: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.metric != null && message.hasOwnProperty("metric")) { + var error = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify(message.metric); + if (error) + return "metric." + error; + } + if (message.searchTrialSpec != null && message.hasOwnProperty("searchTrialSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify(message.searchTrialSpec); + if (error) + return "searchTrialSpec." + error; + } + if (message.trainTrialSpec != null && message.hasOwnProperty("trainTrialSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify(message.trainTrialSpec); + if (error) + return "trainTrialSpec." + error; + } + return null; + }; + + /** + * Creates a MultiTrialAlgorithmSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec} MultiTrialAlgorithmSpec + */ + MultiTrialAlgorithmSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec(); + switch (object.multiTrialAlgorithm) { + default: + if (typeof object.multiTrialAlgorithm === "number") { + message.multiTrialAlgorithm = object.multiTrialAlgorithm; + break; + } + break; + case "MULTI_TRIAL_ALGORITHM_UNSPECIFIED": + case 0: + message.multiTrialAlgorithm = 0; + break; + case "REINFORCEMENT_LEARNING": + case 1: + message.multiTrialAlgorithm = 1; + break; + case "GRID_SEARCH": + case 2: + message.multiTrialAlgorithm = 2; + break; + } + if (object.metric != null) { + if (typeof object.metric !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.metric: object expected"); + message.metric = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.fromObject(object.metric); + } + if (object.searchTrialSpec != null) { + if (typeof object.searchTrialSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.searchTrialSpec: object expected"); + message.searchTrialSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.fromObject(object.searchTrialSpec); + } + if (object.trainTrialSpec != null) { + if (typeof object.trainTrialSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.trainTrialSpec: object expected"); + message.trainTrialSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.fromObject(object.trainTrialSpec); + } + return message; + }; + + /** + * Creates a plain object from a MultiTrialAlgorithmSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec} message MultiTrialAlgorithmSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MultiTrialAlgorithmSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.multiTrialAlgorithm = options.enums === String ? "MULTI_TRIAL_ALGORITHM_UNSPECIFIED" : 0; + object.metric = null; + object.searchTrialSpec = null; + object.trainTrialSpec = null; + } + if (message.multiTrialAlgorithm != null && message.hasOwnProperty("multiTrialAlgorithm")) + object.multiTrialAlgorithm = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm[message.multiTrialAlgorithm] === undefined ? message.multiTrialAlgorithm : $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm[message.multiTrialAlgorithm] : message.multiTrialAlgorithm; + if (message.metric != null && message.hasOwnProperty("metric")) + object.metric = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.toObject(message.metric, options); + if (message.searchTrialSpec != null && message.hasOwnProperty("searchTrialSpec")) + object.searchTrialSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.toObject(message.searchTrialSpec, options); + if (message.trainTrialSpec != null && message.hasOwnProperty("trainTrialSpec")) + object.trainTrialSpec = $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.toObject(message.trainTrialSpec, options); + return object; + }; + + /** + * Converts this MultiTrialAlgorithmSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @instance + * @returns {Object.} JSON object + */ + MultiTrialAlgorithmSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MultiTrialAlgorithmSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MultiTrialAlgorithmSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec"; + }; + + MultiTrialAlgorithmSpec.MetricSpec = (function() { + + /** + * Properties of a MetricSpec. + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @interface IMetricSpec + * @property {string|null} [metricId] MetricSpec metricId + * @property {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType|null} [goal] MetricSpec goal + */ + + /** + * Constructs a new MetricSpec. + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @classdesc Represents a MetricSpec. + * @implements IMetricSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec=} [properties] Properties to set + */ + function MetricSpec(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]]; + } + + /** + * MetricSpec metricId. + * @member {string} metricId + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @instance + */ + MetricSpec.prototype.metricId = ""; + + /** + * MetricSpec goal. + * @member {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType} goal + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @instance + */ + MetricSpec.prototype.goal = 0; + + /** + * Creates a new MetricSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec instance + */ + MetricSpec.create = function create(properties) { + return new MetricSpec(properties); + }; + + /** + * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec} message MetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); + if (message.goal != null && Object.hasOwnProperty.call(message, "goal")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.goal); + return writer; + }; + + /** + * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.IMetricSpec} message MetricSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MetricSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MetricSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricSpec.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.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.metricId = reader.string(); + break; + } + case 2: { + message.goal = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MetricSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MetricSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MetricSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MetricSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricId != null && message.hasOwnProperty("metricId")) + if (!$util.isString(message.metricId)) + return "metricId: string expected"; + if (message.goal != null && message.hasOwnProperty("goal")) + switch (message.goal) { + default: + return "goal: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} MetricSpec + */ + MetricSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec(); + if (object.metricId != null) + message.metricId = String(object.metricId); + switch (object.goal) { + default: + if (typeof object.goal === "number") { + message.goal = object.goal; + break; + } break; + case "GOAL_TYPE_UNSPECIFIED": + case 0: + message.goal = 0; + break; + case "MAXIMIZE": + case 1: + message.goal = 1; + break; + case "MINIMIZE": + case 2: + message.goal = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec} message MetricSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MetricSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricId = ""; + object.goal = options.enums === String ? "GOAL_TYPE_UNSPECIFIED" : 0; + } + if (message.metricId != null && message.hasOwnProperty("metricId")) + object.metricId = message.metricId; + if (message.goal != null && message.hasOwnProperty("goal")) + object.goal = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType[message.goal] === undefined ? message.goal : $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType[message.goal] : message.goal; + return object; + }; + + /** + * Converts this MetricSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @instance + * @returns {Object.} JSON object + */ + MetricSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for MetricSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MetricSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec"; + }; + + /** + * GoalType enum. + * @name google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MetricSpec.GoalType + * @enum {number} + * @property {number} GOAL_TYPE_UNSPECIFIED=0 GOAL_TYPE_UNSPECIFIED value + * @property {number} MAXIMIZE=1 MAXIMIZE value + * @property {number} MINIMIZE=2 MINIMIZE value + */ + MetricSpec.GoalType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GOAL_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "MAXIMIZE"] = 1; + values[valuesById[2] = "MINIMIZE"] = 2; + return values; + })(); + + return MetricSpec; + })(); + + MultiTrialAlgorithmSpec.SearchTrialSpec = (function() { + + /** + * Properties of a SearchTrialSpec. + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @interface ISearchTrialSpec + * @property {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null} [searchTrialJobSpec] SearchTrialSpec searchTrialJobSpec + * @property {number|null} [maxTrialCount] SearchTrialSpec maxTrialCount + * @property {number|null} [maxParallelTrialCount] SearchTrialSpec maxParallelTrialCount + * @property {number|null} [maxFailedTrialCount] SearchTrialSpec maxFailedTrialCount + */ + + /** + * Constructs a new SearchTrialSpec. + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @classdesc Represents a SearchTrialSpec. + * @implements ISearchTrialSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec=} [properties] Properties to set + */ + function SearchTrialSpec(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]]; + } + + /** + * SearchTrialSpec searchTrialJobSpec. + * @member {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null|undefined} searchTrialJobSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.searchTrialJobSpec = null; + + /** + * SearchTrialSpec maxTrialCount. + * @member {number} maxTrialCount + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.maxTrialCount = 0; + + /** + * SearchTrialSpec maxParallelTrialCount. + * @member {number} maxParallelTrialCount + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.maxParallelTrialCount = 0; + + /** + * SearchTrialSpec maxFailedTrialCount. + * @member {number} maxFailedTrialCount + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + */ + SearchTrialSpec.prototype.maxFailedTrialCount = 0; + + /** + * Creates a new SearchTrialSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec instance + */ + SearchTrialSpec.create = function create(properties) { + return new SearchTrialSpec(properties); + }; + + /** + * Encodes the specified SearchTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec} message SearchTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchTrialSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.searchTrialJobSpec != null && Object.hasOwnProperty.call(message, "searchTrialJobSpec")) + $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.encode(message.searchTrialJobSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.maxTrialCount != null && Object.hasOwnProperty.call(message, "maxTrialCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxTrialCount); + if (message.maxParallelTrialCount != null && Object.hasOwnProperty.call(message, "maxParallelTrialCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxParallelTrialCount); + if (message.maxFailedTrialCount != null && Object.hasOwnProperty.call(message, "maxFailedTrialCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maxFailedTrialCount); + return writer; + }; + + /** + * Encodes the specified SearchTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ISearchTrialSpec} message SearchTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchTrialSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchTrialSpec.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.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.searchTrialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.maxTrialCount = reader.int32(); + break; + } + case 3: { + message.maxParallelTrialCount = reader.int32(); + break; + } + case 4: { + message.maxFailedTrialCount = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SearchTrialSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchTrialSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SearchTrialSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SearchTrialSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.searchTrialJobSpec != null && message.hasOwnProperty("searchTrialJobSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.verify(message.searchTrialJobSpec); + if (error) + return "searchTrialJobSpec." + error; + } + if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) + if (!$util.isInteger(message.maxTrialCount)) + return "maxTrialCount: integer expected"; + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + if (!$util.isInteger(message.maxParallelTrialCount)) + return "maxParallelTrialCount: integer expected"; + if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) + if (!$util.isInteger(message.maxFailedTrialCount)) + return "maxFailedTrialCount: integer expected"; + return null; + }; + + /** + * Creates a SearchTrialSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} SearchTrialSpec + */ + SearchTrialSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec(); + if (object.searchTrialJobSpec != null) { + if (typeof object.searchTrialJobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec.searchTrialJobSpec: object expected"); + message.searchTrialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.fromObject(object.searchTrialJobSpec); + } + if (object.maxTrialCount != null) + message.maxTrialCount = object.maxTrialCount | 0; + if (object.maxParallelTrialCount != null) + message.maxParallelTrialCount = object.maxParallelTrialCount | 0; + if (object.maxFailedTrialCount != null) + message.maxFailedTrialCount = object.maxFailedTrialCount | 0; + return message; + }; + + /** + * Creates a plain object from a SearchTrialSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec} message SearchTrialSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SearchTrialSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.searchTrialJobSpec = null; + object.maxTrialCount = 0; + object.maxParallelTrialCount = 0; + object.maxFailedTrialCount = 0; + } + if (message.searchTrialJobSpec != null && message.hasOwnProperty("searchTrialJobSpec")) + object.searchTrialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.toObject(message.searchTrialJobSpec, options); + if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) + object.maxTrialCount = message.maxTrialCount; + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + object.maxParallelTrialCount = message.maxParallelTrialCount; + if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) + object.maxFailedTrialCount = message.maxFailedTrialCount; + return object; + }; + + /** + * Converts this SearchTrialSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @instance + * @returns {Object.} JSON object + */ + SearchTrialSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for SearchTrialSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SearchTrialSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.SearchTrialSpec"; + }; + + return SearchTrialSpec; + })(); + + MultiTrialAlgorithmSpec.TrainTrialSpec = (function() { + + /** + * Properties of a TrainTrialSpec. + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @interface ITrainTrialSpec + * @property {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null} [trainTrialJobSpec] TrainTrialSpec trainTrialJobSpec + * @property {number|null} [maxParallelTrialCount] TrainTrialSpec maxParallelTrialCount + * @property {number|null} [frequency] TrainTrialSpec frequency + */ + + /** + * Constructs a new TrainTrialSpec. + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec + * @classdesc Represents a TrainTrialSpec. + * @implements ITrainTrialSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec=} [properties] Properties to set + */ + function TrainTrialSpec(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]]; + } + + /** + * TrainTrialSpec trainTrialJobSpec. + * @member {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null|undefined} trainTrialJobSpec + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + */ + TrainTrialSpec.prototype.trainTrialJobSpec = null; + + /** + * TrainTrialSpec maxParallelTrialCount. + * @member {number} maxParallelTrialCount + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + */ + TrainTrialSpec.prototype.maxParallelTrialCount = 0; + + /** + * TrainTrialSpec frequency. + * @member {number} frequency + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + */ + TrainTrialSpec.prototype.frequency = 0; + + /** + * Creates a new TrainTrialSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec instance + */ + TrainTrialSpec.create = function create(properties) { + return new TrainTrialSpec(properties); + }; + + /** + * Encodes the specified TrainTrialSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec} message TrainTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainTrialSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.trainTrialJobSpec != null && Object.hasOwnProperty.call(message, "trainTrialJobSpec")) + $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.encode(message.trainTrialJobSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.maxParallelTrialCount != null && Object.hasOwnProperty.call(message, "maxParallelTrialCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxParallelTrialCount); + if (message.frequency != null && Object.hasOwnProperty.call(message, "frequency")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.frequency); + return writer; + }; + + /** + * Encodes the specified TrainTrialSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.ITrainTrialSpec} message TrainTrialSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainTrialSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @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.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainTrialSpec.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.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.trainTrialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.decode(reader, reader.uint32()); + break; + } + case 2: { + message.maxParallelTrialCount = reader.int32(); + break; + } + case 3: { + message.frequency = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return message; + }; - /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UpdateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a TrainTrialSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainTrialSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an UpdateModelDeploymentMonitoringJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UpdateModelDeploymentMonitoringJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); - if (error) - return "modelDeploymentMonitoringJob." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } - return null; - }; + /** + * Verifies a TrainTrialSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrainTrialSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.trainTrialJobSpec != null && message.hasOwnProperty("trainTrialJobSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.verify(message.trainTrialJobSpec); + if (error) + return "trainTrialJobSpec." + error; + } + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + if (!$util.isInteger(message.maxParallelTrialCount)) + return "maxParallelTrialCount: integer expected"; + if (message.frequency != null && message.hasOwnProperty("frequency")) + if (!$util.isInteger(message.frequency)) + return "frequency: integer expected"; + return null; + }; - /** - * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest - */ - UpdateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(); - if (object.modelDeploymentMonitoringJob != null) { - if (typeof object.modelDeploymentMonitoringJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } - return message; - }; + /** + * Creates a TrainTrialSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} TrainTrialSpec + */ + TrainTrialSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec(); + if (object.trainTrialJobSpec != null) { + if (typeof object.trainTrialJobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec.trainTrialJobSpec: object expected"); + message.trainTrialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.fromObject(object.trainTrialJobSpec); + } + if (object.maxParallelTrialCount != null) + message.maxParallelTrialCount = object.maxParallelTrialCount | 0; + if (object.frequency != null) + message.frequency = object.frequency | 0; + return message; + }; - /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UpdateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.modelDeploymentMonitoringJob = null; - object.updateMask = null; - } - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); - return object; - }; + /** + * Creates a plain object from a TrainTrialSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec} message TrainTrialSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TrainTrialSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.trainTrialJobSpec = null; + object.maxParallelTrialCount = 0; + object.frequency = 0; + } + if (message.trainTrialJobSpec != null && message.hasOwnProperty("trainTrialJobSpec")) + object.trainTrialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.toObject(message.trainTrialJobSpec, options); + if (message.maxParallelTrialCount != null && message.hasOwnProperty("maxParallelTrialCount")) + object.maxParallelTrialCount = message.maxParallelTrialCount; + if (message.frequency != null && message.hasOwnProperty("frequency")) + object.frequency = message.frequency; + return object; + }; - /** - * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @instance - * @returns {Object.} JSON object - */ - UpdateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this TrainTrialSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @instance + * @returns {Object.} JSON object + */ + TrainTrialSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UpdateModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest"; - }; + /** + * Gets the default type url for TrainTrialSpec + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TrainTrialSpec.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.TrainTrialSpec"; + }; - return UpdateModelDeploymentMonitoringJobRequest; + return TrainTrialSpec; + })(); + + /** + * MultiTrialAlgorithm enum. + * @name google.cloud.aiplatform.v1beta1.NasJobSpec.MultiTrialAlgorithmSpec.MultiTrialAlgorithm + * @enum {number} + * @property {number} MULTI_TRIAL_ALGORITHM_UNSPECIFIED=0 MULTI_TRIAL_ALGORITHM_UNSPECIFIED value + * @property {number} REINFORCEMENT_LEARNING=1 REINFORCEMENT_LEARNING value + * @property {number} GRID_SEARCH=2 GRID_SEARCH value + */ + MultiTrialAlgorithmSpec.MultiTrialAlgorithm = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MULTI_TRIAL_ALGORITHM_UNSPECIFIED"] = 0; + values[valuesById[1] = "REINFORCEMENT_LEARNING"] = 1; + values[valuesById[2] = "GRID_SEARCH"] = 2; + return values; + })(); + + return MultiTrialAlgorithmSpec; + })(); + + return NasJobSpec; })(); - v1beta1.DeleteModelDeploymentMonitoringJobRequest = (function() { + v1beta1.NasJobOutput = (function() { /** - * Properties of a DeleteModelDeploymentMonitoringJobRequest. + * Properties of a NasJobOutput. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteModelDeploymentMonitoringJobRequest - * @property {string|null} [name] DeleteModelDeploymentMonitoringJobRequest name + * @interface INasJobOutput + * @property {google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput|null} [multiTrialJobOutput] NasJobOutput multiTrialJobOutput */ /** - * Constructs a new DeleteModelDeploymentMonitoringJobRequest. + * Constructs a new NasJobOutput. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteModelDeploymentMonitoringJobRequest. - * @implements IDeleteModelDeploymentMonitoringJobRequest + * @classdesc Represents a NasJobOutput. + * @implements INasJobOutput * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.INasJobOutput=} [properties] Properties to set */ - function DeleteModelDeploymentMonitoringJobRequest(properties) { + function NasJobOutput(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -265313,75 +278701,89 @@ } /** - * DeleteModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * NasJobOutput multiTrialJobOutput. + * @member {google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput|null|undefined} multiTrialJobOutput + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @instance */ - DeleteModelDeploymentMonitoringJobRequest.prototype.name = ""; + NasJobOutput.prototype.multiTrialJobOutput = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. + * NasJobOutput output. + * @member {"multiTrialJobOutput"|undefined} output + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput + * @instance + */ + Object.defineProperty(NasJobOutput.prototype, "output", { + get: $util.oneOfGetter($oneOfFields = ["multiTrialJobOutput"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NasJobOutput instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.INasJobOutput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasJobOutput} NasJobOutput instance */ - DeleteModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new DeleteModelDeploymentMonitoringJobRequest(properties); + NasJobOutput.create = function create(properties) { + return new NasJobOutput(properties); }; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified NasJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobOutput.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasJobOutput} message NasJobOutput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + NasJobOutput.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); + if (message.multiTrialJobOutput != null && Object.hasOwnProperty.call(message, "multiTrialJobOutput")) + $root.google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.encode(message.multiTrialJobOutput, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified NasJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobOutput.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasJobOutput} message NasJobOutput message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + NasJobOutput.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a NasJobOutput message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @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.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.NasJobOutput} NasJobOutput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + NasJobOutput.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.DeleteModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NasJobOutput(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.name = reader.string(); + message.multiTrialJobOutput = $root.google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.decode(reader, reader.uint32()); break; } default: @@ -265393,325 +278795,405 @@ }; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a NasJobOutput message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.NasJobOutput} NasJobOutput * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + NasJobOutput.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteModelDeploymentMonitoringJobRequest message. + * Verifies a NasJobOutput message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteModelDeploymentMonitoringJobRequest.verify = function verify(message) { + NasJobOutput.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"; + var properties = {}; + if (message.multiTrialJobOutput != null && message.hasOwnProperty("multiTrialJobOutput")) { + properties.output = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.verify(message.multiTrialJobOutput); + if (error) + return "multiTrialJobOutput." + error; + } + } return null; }; /** - * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NasJobOutput message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.NasJobOutput} NasJobOutput */ - DeleteModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) + NasJobOutput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasJobOutput) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.NasJobOutput(); + if (object.multiTrialJobOutput != null) { + if (typeof object.multiTrialJobOutput !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobOutput.multiTrialJobOutput: object expected"); + message.multiTrialJobOutput = $root.google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.fromObject(object.multiTrialJobOutput); + } return message; }; /** - * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a NasJobOutput message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.NasJobOutput} message NasJobOutput * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + NasJobOutput.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; + if (message.multiTrialJobOutput != null && message.hasOwnProperty("multiTrialJobOutput")) { + object.multiTrialJobOutput = $root.google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.toObject(message.multiTrialJobOutput, options); + if (options.oneofs) + object.output = "multiTrialJobOutput"; + } return object; }; /** - * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. + * Converts this NasJobOutput to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @instance * @returns {Object.} JSON object */ - DeleteModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + NasJobOutput.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for DeleteModelDeploymentMonitoringJobRequest + * Gets the default type url for NasJobOutput * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - DeleteModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NasJobOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasJobOutput"; }; - return DeleteModelDeploymentMonitoringJobRequest; - })(); + NasJobOutput.MultiTrialJobOutput = (function() { - v1beta1.PauseModelDeploymentMonitoringJobRequest = (function() { + /** + * Properties of a MultiTrialJobOutput. + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput + * @interface IMultiTrialJobOutput + * @property {Array.|null} [searchTrials] MultiTrialJobOutput searchTrials + * @property {Array.|null} [trainTrials] MultiTrialJobOutput trainTrials + */ - /** - * Properties of a PauseModelDeploymentMonitoringJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPauseModelDeploymentMonitoringJobRequest - * @property {string|null} [name] PauseModelDeploymentMonitoringJobRequest name - */ + /** + * Constructs a new MultiTrialJobOutput. + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput + * @classdesc Represents a MultiTrialJobOutput. + * @implements IMultiTrialJobOutput + * @constructor + * @param {google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput=} [properties] Properties to set + */ + function MultiTrialJobOutput(properties) { + this.searchTrials = []; + this.trainTrials = []; + 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]]; + } - /** - * Constructs a new PauseModelDeploymentMonitoringJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PauseModelDeploymentMonitoringJobRequest. - * @implements IPauseModelDeploymentMonitoringJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set - */ - function PauseModelDeploymentMonitoringJobRequest(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]]; - } + /** + * MultiTrialJobOutput searchTrials. + * @member {Array.} searchTrials + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @instance + */ + MultiTrialJobOutput.prototype.searchTrials = $util.emptyArray; - /** - * PauseModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @instance - */ - PauseModelDeploymentMonitoringJobRequest.prototype.name = ""; + /** + * MultiTrialJobOutput trainTrials. + * @member {Array.} trainTrials + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @instance + */ + MultiTrialJobOutput.prototype.trainTrials = $util.emptyArray; - /** - * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest instance - */ - PauseModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new PauseModelDeploymentMonitoringJobRequest(properties); - }; + /** + * Creates a new MultiTrialJobOutput instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput instance + */ + MultiTrialJobOutput.create = function create(properties) { + return new MultiTrialJobOutput(properties); + }; - /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PauseModelDeploymentMonitoringJobRequest.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 MultiTrialJobOutput message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput} message MultiTrialJobOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiTrialJobOutput.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.searchTrials != null && message.searchTrials.length) + for (var i = 0; i < message.searchTrials.length; ++i) + $root.google.cloud.aiplatform.v1beta1.NasTrial.encode(message.searchTrials[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.trainTrials != null && message.trainTrials.length) + for (var i = 0; i < message.trainTrials.length; ++i) + $root.google.cloud.aiplatform.v1beta1.NasTrial.encode(message.trainTrials[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PauseModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MultiTrialJobOutput message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobOutput.IMultiTrialJobOutput} message MultiTrialJobOutput message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MultiTrialJobOutput.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @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.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PauseModelDeploymentMonitoringJobRequest.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.PauseModelDeploymentMonitoringJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.name = reader.string(); + /** + * Decodes a MultiTrialJobOutput message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @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.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiTrialJobOutput.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.NasJobOutput.MultiTrialJobOutput(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.searchTrials && message.searchTrials.length)) + message.searchTrials = []; + message.searchTrials.push($root.google.cloud.aiplatform.v1beta1.NasTrial.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.trainTrials && message.trainTrials.length)) + message.trainTrials = []; + message.trainTrials.push($root.google.cloud.aiplatform.v1beta1.NasTrial.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); break; } - default: - reader.skipType(tag & 7); - break; } - } - return message; - }; + return message; + }; - /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PauseModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a MultiTrialJobOutput message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MultiTrialJobOutput.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a PauseModelDeploymentMonitoringJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PauseModelDeploymentMonitoringJobRequest.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; - }; + /** + * Verifies a MultiTrialJobOutput message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MultiTrialJobOutput.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.searchTrials != null && message.hasOwnProperty("searchTrials")) { + if (!Array.isArray(message.searchTrials)) + return "searchTrials: array expected"; + for (var i = 0; i < message.searchTrials.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.NasTrial.verify(message.searchTrials[i]); + if (error) + return "searchTrials." + error; + } + } + if (message.trainTrials != null && message.hasOwnProperty("trainTrials")) { + if (!Array.isArray(message.trainTrials)) + return "trainTrials: array expected"; + for (var i = 0; i < message.trainTrials.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.NasTrial.verify(message.trainTrials[i]); + if (error) + return "trainTrials." + error; + } + } + return null; + }; - /** - * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest - */ - PauseModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) + /** + * Creates a MultiTrialJobOutput message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput} MultiTrialJobOutput + */ + MultiTrialJobOutput.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput(); + if (object.searchTrials) { + if (!Array.isArray(object.searchTrials)) + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.searchTrials: array expected"); + message.searchTrials = []; + for (var i = 0; i < object.searchTrials.length; ++i) { + if (typeof object.searchTrials[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.searchTrials: object expected"); + message.searchTrials[i] = $root.google.cloud.aiplatform.v1beta1.NasTrial.fromObject(object.searchTrials[i]); + } + } + if (object.trainTrials) { + if (!Array.isArray(object.trainTrials)) + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.trainTrials: array expected"); + message.trainTrials = []; + for (var i = 0; i < object.trainTrials.length; ++i) { + if (typeof object.trainTrials[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput.trainTrials: object expected"); + message.trainTrials[i] = $root.google.cloud.aiplatform.v1beta1.NasTrial.fromObject(object.trainTrials[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a MultiTrialJobOutput message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput} message MultiTrialJobOutput + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MultiTrialJobOutput.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.searchTrials = []; + object.trainTrials = []; + } + if (message.searchTrials && message.searchTrials.length) { + object.searchTrials = []; + for (var j = 0; j < message.searchTrials.length; ++j) + object.searchTrials[j] = $root.google.cloud.aiplatform.v1beta1.NasTrial.toObject(message.searchTrials[j], options); + } + if (message.trainTrials && message.trainTrials.length) { + object.trainTrials = []; + for (var j = 0; j < message.trainTrials.length; ++j) + object.trainTrials[j] = $root.google.cloud.aiplatform.v1beta1.NasTrial.toObject(message.trainTrials[j], options); + } return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + }; - /** - * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PauseModelDeploymentMonitoringJobRequest.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 MultiTrialJobOutput to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @instance + * @returns {Object.} JSON object + */ + MultiTrialJobOutput.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @instance - * @returns {Object.} JSON object - */ - PauseModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Gets the default type url for MultiTrialJobOutput + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MultiTrialJobOutput.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasJobOutput.MultiTrialJobOutput"; + }; - /** - * Gets the default type url for PauseModelDeploymentMonitoringJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - PauseModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest"; - }; + return MultiTrialJobOutput; + })(); - return PauseModelDeploymentMonitoringJobRequest; + return NasJobOutput; })(); - v1beta1.ResumeModelDeploymentMonitoringJobRequest = (function() { + v1beta1.NasTrial = (function() { /** - * Properties of a ResumeModelDeploymentMonitoringJobRequest. + * Properties of a NasTrial. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IResumeModelDeploymentMonitoringJobRequest - * @property {string|null} [name] ResumeModelDeploymentMonitoringJobRequest name + * @interface INasTrial + * @property {string|null} [id] NasTrial id + * @property {google.cloud.aiplatform.v1beta1.NasTrial.State|null} [state] NasTrial state + * @property {google.cloud.aiplatform.v1beta1.IMeasurement|null} [finalMeasurement] NasTrial finalMeasurement + * @property {google.protobuf.ITimestamp|null} [startTime] NasTrial startTime + * @property {google.protobuf.ITimestamp|null} [endTime] NasTrial endTime */ /** - * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * Constructs a new NasTrial. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ResumeModelDeploymentMonitoringJobRequest. - * @implements IResumeModelDeploymentMonitoringJobRequest + * @classdesc Represents a NasTrial. + * @implements INasTrial * @constructor - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.INasTrial=} [properties] Properties to set */ - function ResumeModelDeploymentMonitoringJobRequest(properties) { + function NasTrial(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -265719,278 +279201,131 @@ } /** - * ResumeModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * NasTrial id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @instance */ - ResumeModelDeploymentMonitoringJobRequest.prototype.name = ""; - - /** - * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest instance - */ - ResumeModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new ResumeModelDeploymentMonitoringJobRequest(properties); - }; - - /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResumeModelDeploymentMonitoringJobRequest.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 ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResumeModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @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.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResumeModelDeploymentMonitoringJobRequest.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.ResumeModelDeploymentMonitoringJobRequest(); - 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 ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResumeModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ResumeModelDeploymentMonitoringJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResumeModelDeploymentMonitoringJobRequest.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 ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest - */ - ResumeModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; - - /** - * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ResumeModelDeploymentMonitoringJobRequest.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; - }; + NasTrial.prototype.id = ""; /** - * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * NasTrial state. + * @member {google.cloud.aiplatform.v1beta1.NasTrial.State} state + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @instance - * @returns {Object.} JSON object - */ - ResumeModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for ResumeModelDeploymentMonitoringJobRequest - * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url */ - ResumeModelDeploymentMonitoringJobRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest"; - }; - - return ResumeModelDeploymentMonitoringJobRequest; - })(); - - v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata = (function() { + NasTrial.prototype.state = 0; /** - * Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateModelDeploymentMonitoringJobOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata + * NasTrial finalMeasurement. + * @member {google.cloud.aiplatform.v1beta1.IMeasurement|null|undefined} finalMeasurement + * @memberof google.cloud.aiplatform.v1beta1.NasTrial + * @instance */ + NasTrial.prototype.finalMeasurement = null; /** - * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. - * @implements IUpdateModelDeploymentMonitoringJobOperationMetadata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set + * NasTrial startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.NasTrial + * @instance */ - function UpdateModelDeploymentMonitoringJobOperationMetadata(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]]; - } + NasTrial.prototype.startTime = null; /** - * UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * NasTrial endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @instance */ - UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.genericMetadata = null; + NasTrial.prototype.endTime = null; /** - * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. + * Creates a new NasTrial instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.INasTrial=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NasTrial} NasTrial instance */ - UpdateModelDeploymentMonitoringJobOperationMetadata.create = function create(properties) { - return new UpdateModelDeploymentMonitoringJobOperationMetadata(properties); + NasTrial.create = function create(properties) { + return new NasTrial(properties); }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * Encodes the specified NasTrial message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasTrial.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasTrial} message NasTrial message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobOperationMetadata.encode = function encode(message, writer) { + NasTrial.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); + if (message.finalMeasurement != null && Object.hasOwnProperty.call(message, "finalMeasurement")) + $root.google.cloud.aiplatform.v1beta1.Measurement.encode(message.finalMeasurement, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * Encodes the specified NasTrial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NasTrial.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INasTrial} message NasTrial message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + NasTrial.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. + * Decodes a NasTrial message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @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.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.NasTrial} NasTrial * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobOperationMetadata.decode = function decode(reader, length) { + NasTrial.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.UpdateModelDeploymentMonitoringJobOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NasTrial(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: { - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.id = reader.string(); + break; + } + case 2: { + message.state = reader.int32(); + break; + } + case 3: { + message.finalMeasurement = $root.google.cloud.aiplatform.v1beta1.Measurement.decode(reader, reader.uint32()); + break; + } + case 4: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 5: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; } default: @@ -266002,107 +279337,211 @@ }; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a NasTrial message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.NasTrial} NasTrial * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + NasTrial.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. + * Verifies a NasTrial message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateModelDeploymentMonitoringJobOperationMetadata.verify = function verify(message) { + NasTrial.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.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) { + var error = $root.google.cloud.aiplatform.v1beta1.Measurement.verify(message.finalMeasurement); if (error) - return "genericMetadata." + error; + return "finalMeasurement." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; } return null; }; /** - * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a NasTrial message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.NasTrial} NasTrial */ - UpdateModelDeploymentMonitoringJobOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata) + NasTrial.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NasTrial) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.NasTrial(); + if (object.id != null) + message.id = String(object.id); + switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "REQUESTED": + case 1: + message.state = 1; + break; + case "ACTIVE": + case 2: + message.state = 2; + break; + case "STOPPING": + case 3: + message.state = 3; + break; + case "SUCCEEDED": + case 4: + message.state = 4; + break; + case "INFEASIBLE": + case 5: + message.state = 5; + break; + } + if (object.finalMeasurement != null) { + if (typeof object.finalMeasurement !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasTrial.finalMeasurement: object expected"); + message.finalMeasurement = $root.google.cloud.aiplatform.v1beta1.Measurement.fromObject(object.finalMeasurement); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasTrial.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NasTrial.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } return message; }; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a NasTrial message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.NasTrial} message NasTrial * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateModelDeploymentMonitoringJobOperationMetadata.toObject = function toObject(message, options) { + NasTrial.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.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.id = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.finalMeasurement = null; + object.startTime = null; + object.endTime = null; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.NasTrial.State[message.state] === undefined ? message.state : $root.google.cloud.aiplatform.v1beta1.NasTrial.State[message.state] : message.state; + if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) + object.finalMeasurement = $root.google.cloud.aiplatform.v1beta1.Measurement.toObject(message.finalMeasurement, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. + * Converts this NasTrial to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @instance * @returns {Object.} JSON object */ - UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.toJSON = function toJSON() { + NasTrial.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; /** - * Gets the default type url for UpdateModelDeploymentMonitoringJobOperationMetadata + * Gets the default type url for NasTrial * @function getTypeUrl - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.NasTrial * @static * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns {string} The default type url */ - UpdateModelDeploymentMonitoringJobOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + NasTrial.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { typeUrlPrefix = "type.googleapis.com"; } - return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata"; + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.NasTrial"; }; - return UpdateModelDeploymentMonitoringJobOperationMetadata; + /** + * State enum. + * @name google.cloud.aiplatform.v1beta1.NasTrial.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} REQUESTED=1 REQUESTED value + * @property {number} ACTIVE=2 ACTIVE value + * @property {number} STOPPING=3 STOPPING value + * @property {number} SUCCEEDED=4 SUCCEEDED value + * @property {number} INFEASIBLE=5 INFEASIBLE value + */ + NasTrial.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "REQUESTED"] = 1; + values[valuesById[2] = "ACTIVE"] = 2; + values[valuesById[3] = "STOPPING"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + values[valuesById[5] = "INFEASIBLE"] = 5; + return values; + })(); + + return NasTrial; })(); v1beta1.LineageSubgraph = (function() { @@ -286622,6 +300061,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|copyModel}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef CopyModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CopyModel. + * @function copyModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest} request CopyModelRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.CopyModelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.copyModel = function copyModel(request, callback) { + return this.rpcCall(copyModel, $root.google.cloud.aiplatform.v1beta1.CopyModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CopyModel" }); + + /** + * Calls CopyModel. + * @function copyModel + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest} request CopyModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService|importModelEvaluation}. * @memberof google.cloud.aiplatform.v1beta1.ModelService @@ -291515,6 +304987,767 @@ return ExportModelResponse; })(); + v1beta1.CopyModelRequest = (function() { + + /** + * Properties of a CopyModelRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICopyModelRequest + * @property {string|null} [modelId] CopyModelRequest modelId + * @property {string|null} [parentModel] CopyModelRequest parentModel + * @property {string|null} [parent] CopyModelRequest parent + * @property {string|null} [sourceModel] CopyModelRequest sourceModel + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] CopyModelRequest encryptionSpec + */ + + /** + * Constructs a new CopyModelRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CopyModelRequest. + * @implements ICopyModelRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest=} [properties] Properties to set + */ + function CopyModelRequest(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]]; + } + + /** + * CopyModelRequest modelId. + * @member {string|null|undefined} modelId + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + CopyModelRequest.prototype.modelId = null; + + /** + * CopyModelRequest parentModel. + * @member {string|null|undefined} parentModel + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + CopyModelRequest.prototype.parentModel = null; + + /** + * CopyModelRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + CopyModelRequest.prototype.parent = ""; + + /** + * CopyModelRequest sourceModel. + * @member {string} sourceModel + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + CopyModelRequest.prototype.sourceModel = ""; + + /** + * CopyModelRequest encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + CopyModelRequest.prototype.encryptionSpec = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * CopyModelRequest destinationModel. + * @member {"modelId"|"parentModel"|undefined} destinationModel + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + */ + Object.defineProperty(CopyModelRequest.prototype, "destinationModel", { + get: $util.oneOfGetter($oneOfFields = ["modelId", "parentModel"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new CopyModelRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CopyModelRequest} CopyModelRequest instance + */ + CopyModelRequest.create = function create(properties) { + return new CopyModelRequest(properties); + }; + + /** + * Encodes the specified CopyModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest} message CopyModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelRequest.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.sourceModel != null && Object.hasOwnProperty.call(message, "sourceModel")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceModel); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.modelId); + if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.parentModel); + return writer; + }; + + /** + * Encodes the specified CopyModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelRequest} message CopyModelRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CopyModelRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @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.CopyModelRequest} CopyModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelRequest.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.CopyModelRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 4: { + message.modelId = reader.string(); + break; + } + case 5: { + message.parentModel = reader.string(); + break; + } + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.sourceModel = reader.string(); + break; + } + case 3: { + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CopyModelRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CopyModelRequest} CopyModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CopyModelRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CopyModelRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.modelId != null && message.hasOwnProperty("modelId")) { + properties.destinationModel = 1; + if (!$util.isString(message.modelId)) + return "modelId: string expected"; + } + if (message.parentModel != null && message.hasOwnProperty("parentModel")) { + if (properties.destinationModel === 1) + return "destinationModel: multiple values"; + properties.destinationModel = 1; + if (!$util.isString(message.parentModel)) + return "parentModel: string expected"; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.sourceModel != null && message.hasOwnProperty("sourceModel")) + if (!$util.isString(message.sourceModel)) + return "sourceModel: string expected"; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + return null; + }; + + /** + * Creates a CopyModelRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CopyModelRequest} CopyModelRequest + */ + CopyModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CopyModelRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CopyModelRequest(); + if (object.modelId != null) + message.modelId = String(object.modelId); + if (object.parentModel != null) + message.parentModel = String(object.parentModel); + if (object.parent != null) + message.parent = String(object.parent); + if (object.sourceModel != null) + message.sourceModel = String(object.sourceModel); + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CopyModelRequest.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } + return message; + }; + + /** + * Creates a plain object from a CopyModelRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CopyModelRequest} message CopyModelRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CopyModelRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.sourceModel = ""; + object.encryptionSpec = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.sourceModel != null && message.hasOwnProperty("sourceModel")) + object.sourceModel = message.sourceModel; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.modelId != null && message.hasOwnProperty("modelId")) { + object.modelId = message.modelId; + if (options.oneofs) + object.destinationModel = "modelId"; + } + if (message.parentModel != null && message.hasOwnProperty("parentModel")) { + object.parentModel = message.parentModel; + if (options.oneofs) + object.destinationModel = "parentModel"; + } + return object; + }; + + /** + * Converts this CopyModelRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @instance + * @returns {Object.} JSON object + */ + CopyModelRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CopyModelRequest + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CopyModelRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CopyModelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CopyModelRequest"; + }; + + return CopyModelRequest; + })(); + + v1beta1.CopyModelOperationMetadata = (function() { + + /** + * Properties of a CopyModelOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICopyModelOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CopyModelOperationMetadata genericMetadata + */ + + /** + * Constructs a new CopyModelOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CopyModelOperationMetadata. + * @implements ICopyModelOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata=} [properties] Properties to set + */ + function CopyModelOperationMetadata(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]]; + } + + /** + * CopyModelOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @instance + */ + CopyModelOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new CopyModelOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} CopyModelOperationMetadata instance + */ + CopyModelOperationMetadata.create = function create(properties) { + return new CopyModelOperationMetadata(properties); + }; + + /** + * Encodes the specified CopyModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata} message CopyModelOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CopyModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata} message CopyModelOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @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.CopyModelOperationMetadata} CopyModelOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelOperationMetadata.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.CopyModelOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CopyModelOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} CopyModelOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CopyModelOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CopyModelOperationMetadata.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.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; + + /** + * Creates a CopyModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} CopyModelOperationMetadata + */ + CopyModelOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; + + /** + * Creates a plain object from a CopyModelOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata} message CopyModelOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CopyModelOperationMetadata.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.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; + + /** + * Converts this CopyModelOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + CopyModelOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CopyModelOperationMetadata + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CopyModelOperationMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata"; + }; + + return CopyModelOperationMetadata; + })(); + + v1beta1.CopyModelResponse = (function() { + + /** + * Properties of a CopyModelResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICopyModelResponse + * @property {string|null} [model] CopyModelResponse model + * @property {string|null} [modelVersionId] CopyModelResponse modelVersionId + */ + + /** + * Constructs a new CopyModelResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CopyModelResponse. + * @implements ICopyModelResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICopyModelResponse=} [properties] Properties to set + */ + function CopyModelResponse(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]]; + } + + /** + * CopyModelResponse model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @instance + */ + CopyModelResponse.prototype.model = ""; + + /** + * CopyModelResponse modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @instance + */ + CopyModelResponse.prototype.modelVersionId = ""; + + /** + * Creates a new CopyModelResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CopyModelResponse} CopyModelResponse instance + */ + CopyModelResponse.create = function create(properties) { + return new CopyModelResponse(properties); + }; + + /** + * Encodes the specified CopyModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelResponse} message CopyModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersionId); + return writer; + }; + + /** + * Encodes the specified CopyModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CopyModelResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ICopyModelResponse} message CopyModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CopyModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CopyModelResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @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.CopyModelResponse} CopyModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelResponse.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.CopyModelResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.model = reader.string(); + break; + } + case 2: { + message.modelVersionId = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CopyModelResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CopyModelResponse} CopyModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CopyModelResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CopyModelResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CopyModelResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + if (!$util.isString(message.modelVersionId)) + return "modelVersionId: string expected"; + return null; + }; + + /** + * Creates a CopyModelResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CopyModelResponse} CopyModelResponse + */ + CopyModelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CopyModelResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CopyModelResponse(); + if (object.model != null) + message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); + return message; + }; + + /** + * Creates a plain object from a CopyModelResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.CopyModelResponse} message CopyModelResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CopyModelResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.model = ""; + object.modelVersionId = ""; + } + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; + return object; + }; + + /** + * Converts this CopyModelResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @instance + * @returns {Object.} JSON object + */ + CopyModelResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CopyModelResponse + * @function getTypeUrl + * @memberof google.cloud.aiplatform.v1beta1.CopyModelResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CopyModelResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.cloud.aiplatform.v1beta1.CopyModelResponse"; + }; + + return CopyModelResponse; + })(); + v1beta1.ImportModelEvaluationRequest = (function() { /** @@ -297448,6 +311681,7 @@ * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail * @interface ICustomJobDetail * @property {string|null} [job] CustomJobDetail job + * @property {Array.|null} [failedJobs] CustomJobDetail failedJobs */ /** @@ -297459,6 +311693,7 @@ * @param {google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.ICustomJobDetail=} [properties] Properties to set */ function CustomJobDetail(properties) { + this.failedJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -297473,6 +311708,14 @@ */ CustomJobDetail.prototype.job = ""; + /** + * CustomJobDetail failedJobs. + * @member {Array.} failedJobs + * @memberof google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail + * @instance + */ + CustomJobDetail.prototype.failedJobs = $util.emptyArray; + /** * Creates a new CustomJobDetail instance using the specified properties. * @function create @@ -297499,6 +311742,9 @@ writer = $Writer.create(); if (message.job != null && Object.hasOwnProperty.call(message, "job")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.job); + if (message.failedJobs != null && message.failedJobs.length) + for (var i = 0; i < message.failedJobs.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.failedJobs[i]); return writer; }; @@ -297537,6 +311783,12 @@ message.job = reader.string(); break; } + case 3: { + if (!(message.failedJobs && message.failedJobs.length)) + message.failedJobs = []; + message.failedJobs.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -297575,6 +311827,13 @@ if (message.job != null && message.hasOwnProperty("job")) if (!$util.isString(message.job)) return "job: string expected"; + if (message.failedJobs != null && message.hasOwnProperty("failedJobs")) { + if (!Array.isArray(message.failedJobs)) + return "failedJobs: array expected"; + for (var i = 0; i < message.failedJobs.length; ++i) + if (!$util.isString(message.failedJobs[i])) + return "failedJobs: string[] expected"; + } return null; }; @@ -297592,6 +311851,13 @@ var message = new $root.google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail(); if (object.job != null) message.job = String(object.job); + if (object.failedJobs) { + if (!Array.isArray(object.failedJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PipelineTaskExecutorDetail.CustomJobDetail.failedJobs: array expected"); + message.failedJobs = []; + for (var i = 0; i < object.failedJobs.length; ++i) + message.failedJobs[i] = String(object.failedJobs[i]); + } return message; }; @@ -297608,10 +311874,17 @@ if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.failedJobs = []; if (options.defaults) object.job = ""; if (message.job != null && message.hasOwnProperty("job")) object.job = message.job; + if (message.failedJobs && message.failedJobs.length) { + object.failedJobs = []; + for (var j = 0; j < message.failedJobs.length; ++j) + object.failedJobs[j] = message.failedJobs[j]; + } return object; }; diff --git a/packages/google-cloud-aiplatform/protos/protos.json b/packages/google-cloud-aiplatform/protos/protos.json index 3250254e6c8..8e726d9de51 100644 --- a/packages/google-cloud-aiplatform/protos/protos.json +++ b/packages/google-cloud-aiplatform/protos/protos.json @@ -1590,6 +1590,13 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "originalModelInfo": { + "type": "OriginalModelInfo", + "id": 34, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "metadataArtifact": { "type": "string", "id": 44, @@ -1627,6 +1634,18 @@ } } }, + "OriginalModelInfo": { + "fields": { + "model": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + } + } + }, "DeploymentResourcesType": { "values": { "DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED": 0, @@ -3415,6 +3434,7 @@ "type": "string", "id": 13, "options": { + "(google.api.field_behavior)": "OPTIONAL", "(google.api.resource_reference).type": "compute.googleapis.com/Network" } }, @@ -6486,6 +6506,13 @@ }, "nested": { "MetricSpec": { + "oneofs": { + "_safetyConfig": { + "oneof": [ + "safetyConfig" + ] + } + }, "fields": { "metricId": { "type": "string", @@ -6500,9 +6527,38 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "safetyConfig": { + "type": "SafetyMetricConfig", + "id": 3, + "options": { + "proto3_optional": true + } } }, "nested": { + "SafetyMetricConfig": { + "oneofs": { + "_desiredMinSafeTrialsFraction": { + "oneof": [ + "desiredMinSafeTrialsFraction" + ] + } + }, + "fields": { + "safetyThreshold": { + "type": "double", + "id": 1 + }, + "desiredMinSafeTrialsFraction": { + "type": "double", + "id": 2, + "options": { + "proto3_optional": true + } + } + } + }, "GoalType": { "values": { "GOAL_TYPE_UNSPECIFIED": 0, @@ -7117,6 +7173,13 @@ "deprecated": true, "(google.api.field_behavior)": "OPTIONAL" } + }, + "privateServiceConnectConfig": { + "type": "PrivateServiceConnectConfig", + "id": 12, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -7249,6 +7312,22 @@ } } }, + "PrivateServiceConnectConfig": { + "fields": { + "enablePrivateServiceConnect": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "projectAllowlist": { + "rule": "repeated", + "type": "string", + "id": 2 + } + } + }, "IndexEndpointService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", @@ -8079,7 +8158,7 @@ "JobService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only" }, "methods": { "CreateCustomJob": { @@ -8388,6 +8467,144 @@ } ] }, + "CreateNasJob": { + "requestType": "CreateNasJobRequest", + "responseType": "NasJob", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/nasJobs", + "(google.api.http).body": "nas_job", + "(google.api.method_signature)": "parent,nas_job" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*}/nasJobs", + "body": "nas_job" + } + }, + { + "(google.api.method_signature)": "parent,nas_job" + } + ] + }, + "GetNasJob": { + "requestType": "GetNasJobRequest", + "responseType": "NasJob", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/nasJobs/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/nasJobs/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListNasJobs": { + "requestType": "ListNasJobsRequest", + "responseType": "ListNasJobsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/nasJobs", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*}/nasJobs" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeleteNasJob": { + "requestType": "DeleteNasJobRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/nasJobs/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/nasJobs/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteOperationMetadata" + } + } + ] + }, + "CancelNasJob": { + "requestType": "CancelNasJobRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/nasJobs/*}:cancel", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/nasJobs/*}:cancel", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "GetNasTrialDetail": { + "requestType": "GetNasTrialDetailRequest", + "responseType": "NasTrialDetail", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/nasJobs/*/nasTrialDetails/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/nasJobs/*/nasTrialDetails/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListNasTrialDetails": { + "requestType": "ListNasTrialDetailsRequest", + "responseType": "ListNasTrialDetailsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/nasJobs/*}/nasTrialDetails", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/nasJobs/*}/nasTrialDetails" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, "CreateBatchPredictionJob": { "requestType": "CreateBatchPredictionJobRequest", "responseType": "BatchPredictionJob", @@ -8954,7 +9171,7 @@ } } }, - "CreateBatchPredictionJobRequest": { + "CreateNasJobRequest": { "fields": { "parent": { "type": "string", @@ -8964,8 +9181,8 @@ "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "batchPredictionJob": { - "type": "BatchPredictionJob", + "nasJob": { + "type": "NasJob", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -8973,19 +9190,19 @@ } } }, - "GetBatchPredictionJobRequest": { + "GetNasJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasJob" } } } }, - "ListBatchPredictionJobsRequest": { + "ListNasJobsRequest": { "fields": { "parent": { "type": "string", @@ -9013,11 +9230,11 @@ } } }, - "ListBatchPredictionJobsResponse": { + "ListNasJobsResponse": { "fields": { - "batchPredictionJobs": { + "nasJobs": { "rule": "repeated", - "type": "BatchPredictionJob", + "type": "NasJob", "id": 1 }, "nextPageToken": { @@ -9026,115 +9243,67 @@ } } }, - "DeleteBatchPredictionJobRequest": { + "DeleteNasJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasJob" } } } }, - "CancelBatchPredictionJobRequest": { + "CancelNasJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasJob" } } } }, - "CreateModelDeploymentMonitoringJobRequest": { + "GetNasTrialDetailRequest": { "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" - } - }, - "modelDeploymentMonitoringJob": { - "type": "ModelDeploymentMonitoringJob", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasTrialDetail" } } } }, - "SearchModelDeploymentMonitoringStatsAnomaliesRequest": { + "ListNasTrialDetailsRequest": { "fields": { - "modelDeploymentMonitoringJob": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" - } - }, - "deployedModelId": { - "type": "string", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } - }, - "featureDisplayName": { - "type": "string", - "id": 3 - }, - "objectives": { - "rule": "repeated", - "type": "StatsAnomaliesObjective", - "id": 4, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasJob" } }, "pageSize": { "type": "int32", - "id": 5 + "id": 2 }, "pageToken": { "type": "string", - "id": 6 - }, - "startTime": { - "type": "google.protobuf.Timestamp", - "id": 7 - }, - "endTime": { - "type": "google.protobuf.Timestamp", - "id": 8 - } - }, - "nested": { - "StatsAnomaliesObjective": { - "fields": { - "type": { - "type": "ModelDeploymentMonitoringObjectiveType", - "id": 1 - }, - "topFeatureCount": { - "type": "int32", - "id": 4 - } - } + "id": 3 } } }, - "SearchModelDeploymentMonitoringStatsAnomaliesResponse": { + "ListNasTrialDetailsResponse": { "fields": { - "monitoringStats": { + "nasTrialDetails": { "rule": "repeated", - "type": "ModelMonitoringStatsAnomalies", + "type": "NasTrialDetail", "id": 1 }, "nextPageToken": { @@ -9143,19 +9312,208 @@ } } }, - "GetModelDeploymentMonitoringJobRequest": { + "CreateBatchPredictionJobRequest": { "fields": { - "name": { + "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "batchPredictionJob": { + "type": "BatchPredictionJob", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" } } } }, - "ListModelDeploymentMonitoringJobsRequest": { + "GetBatchPredictionJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + } + } + } + }, + "ListBatchPredictionJobsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 5 + } + } + }, + "ListBatchPredictionJobsResponse": { + "fields": { + "batchPredictionJobs": { + "rule": "repeated", + "type": "BatchPredictionJob", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteBatchPredictionJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + } + } + } + }, + "CancelBatchPredictionJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + } + } + } + }, + "CreateModelDeploymentMonitoringJobRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "modelDeploymentMonitoringJob": { + "type": "ModelDeploymentMonitoringJob", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SearchModelDeploymentMonitoringStatsAnomaliesRequest": { + "fields": { + "modelDeploymentMonitoringJob": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + } + }, + "deployedModelId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "featureDisplayName": { + "type": "string", + "id": 3 + }, + "objectives": { + "rule": "repeated", + "type": "StatsAnomaliesObjective", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "pageSize": { + "type": "int32", + "id": 5 + }, + "pageToken": { + "type": "string", + "id": 6 + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 7 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 8 + } + }, + "nested": { + "StatsAnomaliesObjective": { + "fields": { + "type": { + "type": "ModelDeploymentMonitoringObjectiveType", + "id": 1 + }, + "topFeatureCount": { + "type": "int32", + "id": 4 + } + } + } + } + }, + "SearchModelDeploymentMonitoringStatsAnomaliesResponse": { + "fields": { + "monitoringStats": { + "rule": "repeated", + "type": "ModelMonitoringStatsAnomalies", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "GetModelDeploymentMonitoringJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + } + } + } + }, + "ListModelDeploymentMonitoringJobsRequest": { "fields": { "parent": { "type": "string", @@ -9746,29 +10104,10 @@ } } }, - "LineageSubgraph": { - "fields": { - "artifacts": { - "rule": "repeated", - "type": "Artifact", - "id": 1 - }, - "executions": { - "rule": "repeated", - "type": "Execution", - "id": 2 - }, - "events": { - "rule": "repeated", - "type": "Event", - "id": 3 - } - } - }, - "MetadataSchema": { + "NasJob": { "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/MetadataSchema", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}" + "(google.api.resource).type": "aiplatform.googleapis.com/NasJob", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/nasJobs/{nas_job}" }, "fields": { "name": { @@ -9778,49 +10117,418 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "schemaVersion": { + "displayName": { "type": "string", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, - "schema": { - "type": "string", - "id": 3, + "nasJobSpec": { + "type": "NasJobSpec", + "id": 4, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "schemaType": { - "type": "MetadataSchemaType", - "id": 4 + "nasJobOutput": { + "type": "NasJobOutput", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "state": { + "type": "JobState", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "createTime": { "type": "google.protobuf.Timestamp", - "id": 5, + "id": 7, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "description": { - "type": "string", - "id": 6 - } - }, - "nested": { - "MetadataSchemaType": { - "values": { - "METADATA_SCHEMA_TYPE_UNSPECIFIED": 0, - "ARTIFACT_TYPE": 1, - "EXECUTION_TYPE": 2, - "CONTEXT_TYPE": 3 + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "MetadataService": { - "options": { - "(google.api.default_host)": "aiplatform.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" - }, + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "error": { + "type": "google.rpc.Status", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 12 + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 13 + }, + "enableRestrictedImageTraining": { + "type": "bool", + "id": 14, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "NasTrialDetail": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/NasTrialDetail", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "parameters": { + "type": "string", + "id": 2 + }, + "searchTrial": { + "type": "NasTrial", + "id": 3 + }, + "trainTrial": { + "type": "NasTrial", + "id": 4 + } + } + }, + "NasJobSpec": { + "oneofs": { + "nasAlgorithmSpec": { + "oneof": [ + "multiTrialAlgorithmSpec" + ] + } + }, + "fields": { + "multiTrialAlgorithmSpec": { + "type": "MultiTrialAlgorithmSpec", + "id": 2 + }, + "resumeNasJobId": { + "type": "string", + "id": 3 + }, + "searchSpaceSpec": { + "type": "string", + "id": 1 + } + }, + "nested": { + "MultiTrialAlgorithmSpec": { + "fields": { + "multiTrialAlgorithm": { + "type": "MultiTrialAlgorithm", + "id": 1 + }, + "metric": { + "type": "MetricSpec", + "id": 2 + }, + "searchTrialSpec": { + "type": "SearchTrialSpec", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "trainTrialSpec": { + "type": "TrainTrialSpec", + "id": 4 + } + }, + "nested": { + "MetricSpec": { + "fields": { + "metricId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "goal": { + "type": "GoalType", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + }, + "nested": { + "GoalType": { + "values": { + "GOAL_TYPE_UNSPECIFIED": 0, + "MAXIMIZE": 1, + "MINIMIZE": 2 + } + } + } + }, + "SearchTrialSpec": { + "fields": { + "searchTrialJobSpec": { + "type": "CustomJobSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxTrialCount": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxParallelTrialCount": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxFailedTrialCount": { + "type": "int32", + "id": 4 + } + } + }, + "TrainTrialSpec": { + "fields": { + "trainTrialJobSpec": { + "type": "CustomJobSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxParallelTrialCount": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "frequency": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "MultiTrialAlgorithm": { + "values": { + "MULTI_TRIAL_ALGORITHM_UNSPECIFIED": 0, + "REINFORCEMENT_LEARNING": 1, + "GRID_SEARCH": 2 + } + } + } + } + } + }, + "NasJobOutput": { + "oneofs": { + "output": { + "oneof": [ + "multiTrialJobOutput" + ] + } + }, + "fields": { + "multiTrialJobOutput": { + "type": "MultiTrialJobOutput", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "MultiTrialJobOutput": { + "fields": { + "searchTrials": { + "rule": "repeated", + "type": "NasTrial", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "trainTrials": { + "rule": "repeated", + "type": "NasTrial", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + } + } + }, + "NasTrial": { + "fields": { + "id": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "state": { + "type": "State", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "finalMeasurement": { + "type": "Measurement", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "REQUESTED": 1, + "ACTIVE": 2, + "STOPPING": 3, + "SUCCEEDED": 4, + "INFEASIBLE": 5 + } + } + } + }, + "LineageSubgraph": { + "fields": { + "artifacts": { + "rule": "repeated", + "type": "Artifact", + "id": 1 + }, + "executions": { + "rule": "repeated", + "type": "Execution", + "id": 2 + }, + "events": { + "rule": "repeated", + "type": "Event", + "id": 3 + } + } + }, + "MetadataSchema": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/MetadataSchema", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/metadataStores/{metadata_store}/metadataSchemas/{metadata_schema}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "schemaVersion": { + "type": "string", + "id": 2 + }, + "schema": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "schemaType": { + "type": "MetadataSchemaType", + "id": 4 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "description": { + "type": "string", + "id": 6 + } + }, + "nested": { + "MetadataSchemaType": { + "values": { + "METADATA_SCHEMA_TYPE_UNSPECIFIED": 0, + "ARTIFACT_TYPE": 1, + "EXECUTION_TYPE": 2, + "CONTEXT_TYPE": 3 + } + } + } + }, + "MetadataService": { + "options": { + "(google.api.default_host)": "aiplatform.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, "methods": { "CreateMetadataStore": { "requestType": "CreateMetadataStoreRequest", @@ -12165,30 +12873,58 @@ } ] }, - "ExportModel": { - "requestType": "ExportModelRequest", + "ExportModel": { + "requestType": "ExportModelRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/models/*}:export", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name,output_config", + "(google.longrunning.operation_info).response_type": "ExportModelResponse", + "(google.longrunning.operation_info).metadata_type": "ExportModelOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/models/*}:export", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name,output_config" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "ExportModelResponse", + "metadata_type": "ExportModelOperationMetadata" + } + } + ] + }, + "CopyModel": { + "requestType": "CopyModelRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).post": "/v1/{name=projects/*/locations/*/models/*}:export", + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/models:copy", "(google.api.http).body": "*", - "(google.api.method_signature)": "name,output_config", - "(google.longrunning.operation_info).response_type": "ExportModelResponse", - "(google.longrunning.operation_info).metadata_type": "ExportModelOperationMetadata" + "(google.api.method_signature)": "parent,source_model", + "(google.longrunning.operation_info).response_type": "CopyModelResponse", + "(google.longrunning.operation_info).metadata_type": "CopyModelOperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1/{name=projects/*/locations/*/models/*}:export", + "post": "/v1/{parent=projects/*/locations/*}/models:copy", "body": "*" } }, { - "(google.api.method_signature)": "name,output_config" + "(google.api.method_signature)": "parent,source_model" }, { "(google.longrunning.operation_info)": { - "response_type": "ExportModelResponse", - "metadata_type": "ExportModelOperationMetadata" + "response_type": "CopyModelResponse", + "metadata_type": "CopyModelOperationMetadata" } } ] @@ -12612,6 +13348,79 @@ "ExportModelResponse": { "fields": {} }, + "CopyModelRequest": { + "oneofs": { + "destinationModel": { + "oneof": [ + "modelId", + "parentModel" + ] + } + }, + "fields": { + "modelId": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "parentModel": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "sourceModel": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 3 + } + } + }, + "CopyModelOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "CopyModelResponse": { + "fields": { + "model": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "modelVersionId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, "ImportModelEvaluationRequest": { "fields": { "parent": { @@ -13141,7 +13950,6 @@ "type": "CustomJobDetail", "id": 2, "options": { - "deprecated": true, "(google.api.field_behavior)": "OUTPUT_ONLY" } } @@ -13184,9 +13992,6 @@ } }, "CustomJobDetail": { - "options": { - "deprecated": true - }, "fields": { "job": { "type": "string", @@ -13195,6 +14000,14 @@ "(google.api.field_behavior)": "OUTPUT_ONLY", "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" } + }, + "failedJobs": { + "rule": "repeated", + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } } @@ -20069,6 +20882,13 @@ "(google.api.field_behavior)": "OUTPUT_ONLY" } }, + "originalModelInfo": { + "type": "OriginalModelInfo", + "id": 34, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "metadataArtifact": { "type": "string", "id": 44, @@ -20106,6 +20926,18 @@ } } }, + "OriginalModelInfo": { + "fields": { + "model": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + } + } + }, "DeploymentResourcesType": { "values": { "DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED": 0, @@ -22186,6 +23018,7 @@ "type": "string", "id": 13, "options": { + "(google.api.field_behavior)": "OPTIONAL", "(google.api.resource_reference).type": "compute.googleapis.com/Network" } }, @@ -22273,6 +23106,10 @@ "type": "ExplanationSpec", "id": 9 }, + "disableExplanations": { + "type": "bool", + "id": 19 + }, "serviceAccount": { "type": "string", "id": 11 @@ -25399,6 +26236,13 @@ }, "nested": { "MetricSpec": { + "oneofs": { + "_safetyConfig": { + "oneof": [ + "safetyConfig" + ] + } + }, "fields": { "metricId": { "type": "string", @@ -25413,9 +26257,38 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "safetyConfig": { + "type": "SafetyMetricConfig", + "id": 3, + "options": { + "proto3_optional": true + } } }, "nested": { + "SafetyMetricConfig": { + "oneofs": { + "_desiredMinSafeTrialsFraction": { + "oneof": [ + "desiredMinSafeTrialsFraction" + ] + } + }, + "fields": { + "safetyThreshold": { + "type": "double", + "id": 1 + }, + "desiredMinSafeTrialsFraction": { + "type": "double", + "id": 2, + "options": { + "proto3_optional": true + } + } + } + }, "GoalType": { "values": { "GOAL_TYPE_UNSPECIFIED": 0, @@ -26073,6 +26946,13 @@ "deprecated": true, "(google.api.field_behavior)": "OPTIONAL" } + }, + "privateServiceConnectConfig": { + "type": "PrivateServiceConnectConfig", + "id": 12, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } } }, @@ -26205,6 +27085,22 @@ } } }, + "PrivateServiceConnectConfig": { + "fields": { + "enablePrivateServiceConnect": { + "type": "bool", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "projectAllowlist": { + "rule": "repeated", + "type": "string", + "id": 2 + } + } + }, "IndexEndpointService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", @@ -27035,7 +27931,7 @@ "JobService": { "options": { "(google.api.default_host)": "aiplatform.googleapis.com", - "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only" }, "methods": { "CreateCustomJob": { @@ -27226,14 +28122,116 @@ "requestType": "CancelDataLabelingJobRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}:cancel", + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}:cancel", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}:cancel", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "CreateHyperparameterTuningJob": { + "requestType": "CreateHyperparameterTuningJobRequest", + "responseType": "HyperparameterTuningJob", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/hyperparameterTuningJobs", + "(google.api.http).body": "hyperparameter_tuning_job", + "(google.api.method_signature)": "parent,hyperparameter_tuning_job" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*}/hyperparameterTuningJobs", + "body": "hyperparameter_tuning_job" + } + }, + { + "(google.api.method_signature)": "parent,hyperparameter_tuning_job" + } + ] + }, + "GetHyperparameterTuningJob": { + "requestType": "GetHyperparameterTuningJobRequest", + "responseType": "HyperparameterTuningJob", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListHyperparameterTuningJobs": { + "requestType": "ListHyperparameterTuningJobsRequest", + "responseType": "ListHyperparameterTuningJobsResponse", + "options": { + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/hyperparameterTuningJobs", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*}/hyperparameterTuningJobs" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, + "DeleteHyperparameterTuningJob": { + "requestType": "DeleteHyperparameterTuningJobRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteOperationMetadata" + } + } + ] + }, + "CancelHyperparameterTuningJob": { + "requestType": "CancelHyperparameterTuningJobRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}:cancel", "(google.api.http).body": "*", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}:cancel", + "post": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}:cancel", "body": "*" } }, @@ -27242,37 +28240,37 @@ } ] }, - "CreateHyperparameterTuningJob": { - "requestType": "CreateHyperparameterTuningJobRequest", - "responseType": "HyperparameterTuningJob", + "CreateNasJob": { + "requestType": "CreateNasJobRequest", + "responseType": "NasJob", "options": { - "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/hyperparameterTuningJobs", - "(google.api.http).body": "hyperparameter_tuning_job", - "(google.api.method_signature)": "parent,hyperparameter_tuning_job" + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/nasJobs", + "(google.api.http).body": "nas_job", + "(google.api.method_signature)": "parent,nas_job" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{parent=projects/*/locations/*}/hyperparameterTuningJobs", - "body": "hyperparameter_tuning_job" + "post": "/v1beta1/{parent=projects/*/locations/*}/nasJobs", + "body": "nas_job" } }, { - "(google.api.method_signature)": "parent,hyperparameter_tuning_job" + "(google.api.method_signature)": "parent,nas_job" } ] }, - "GetHyperparameterTuningJob": { - "requestType": "GetHyperparameterTuningJobRequest", - "responseType": "HyperparameterTuningJob", + "GetNasJob": { + "requestType": "GetNasJobRequest", + "responseType": "NasJob", "options": { - "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}", + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/nasJobs/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}" + "get": "/v1beta1/{name=projects/*/locations/*/nasJobs/*}" } }, { @@ -27280,17 +28278,17 @@ } ] }, - "ListHyperparameterTuningJobs": { - "requestType": "ListHyperparameterTuningJobsRequest", - "responseType": "ListHyperparameterTuningJobsResponse", + "ListNasJobs": { + "requestType": "ListNasJobsRequest", + "responseType": "ListNasJobsResponse", "options": { - "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/hyperparameterTuningJobs", + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*}/nasJobs", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { - "get": "/v1beta1/{parent=projects/*/locations/*}/hyperparameterTuningJobs" + "get": "/v1beta1/{parent=projects/*/locations/*}/nasJobs" } }, { @@ -27298,11 +28296,11 @@ } ] }, - "DeleteHyperparameterTuningJob": { - "requestType": "DeleteHyperparameterTuningJobRequest", + "DeleteNasJob": { + "requestType": "DeleteNasJobRequest", "responseType": "google.longrunning.Operation", "options": { - "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}", + "(google.api.http).delete": "/v1beta1/{name=projects/*/locations/*/nasJobs/*}", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" @@ -27310,7 +28308,7 @@ "parsedOptions": [ { "(google.api.http)": { - "delete": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}" + "delete": "/v1beta1/{name=projects/*/locations/*/nasJobs/*}" } }, { @@ -27324,18 +28322,18 @@ } ] }, - "CancelHyperparameterTuningJob": { - "requestType": "CancelHyperparameterTuningJobRequest", + "CancelNasJob": { + "requestType": "CancelNasJobRequest", "responseType": "google.protobuf.Empty", "options": { - "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}:cancel", + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/nasJobs/*}:cancel", "(google.api.http).body": "*", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { - "post": "/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}:cancel", + "post": "/v1beta1/{name=projects/*/locations/*/nasJobs/*}:cancel", "body": "*" } }, @@ -27344,6 +28342,42 @@ } ] }, + "GetNasTrialDetail": { + "requestType": "GetNasTrialDetailRequest", + "responseType": "NasTrialDetail", + "options": { + "(google.api.http).get": "/v1beta1/{name=projects/*/locations/*/nasJobs/*/nasTrialDetails/*}", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{name=projects/*/locations/*/nasJobs/*/nasTrialDetails/*}" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ListNasTrialDetails": { + "requestType": "ListNasTrialDetailsRequest", + "responseType": "ListNasTrialDetailsResponse", + "options": { + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/nasJobs/*}/nasTrialDetails", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*/nasJobs/*}/nasTrialDetails" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, "CreateBatchPredictionJob": { "requestType": "CreateBatchPredictionJobRequest", "responseType": "BatchPredictionJob", @@ -27576,49 +28610,245 @@ } ] }, - "PauseModelDeploymentMonitoringJob": { - "requestType": "PauseModelDeploymentMonitoringJobRequest", - "responseType": "google.protobuf.Empty", + "PauseModelDeploymentMonitoringJob": { + "requestType": "PauseModelDeploymentMonitoringJobRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:pause", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:pause", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "ResumeModelDeploymentMonitoringJob": { + "requestType": "ResumeModelDeploymentMonitoringJobRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:resume", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:resume", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + } + } + }, + "CreateCustomJobRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "customJob": { + "type": "CustomJob", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetCustomJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + } + } + } + }, + "ListCustomJobsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 5 + } + } + }, + "ListCustomJobsResponse": { + "fields": { + "customJobs": { + "rule": "repeated", + "type": "CustomJob", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteCustomJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + } + } + } + }, + "CancelCustomJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + } + } + } + }, + "CreateDataLabelingJobRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "dataLabelingJob": { + "type": "DataLabelingJob", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "GetDataLabelingJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/DataLabelingJob" + } + } + } + }, + "ListDataLabelingJobsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 5 + }, + "orderBy": { + "type": "string", + "id": 6 + } + } + }, + "ListDataLabelingJobsResponse": { + "fields": { + "dataLabelingJobs": { + "rule": "repeated", + "type": "DataLabelingJob", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "DeleteDataLabelingJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, "options": { - "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:pause", - "(google.api.http).body": "*", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:pause", - "body": "*" - } - }, - { - "(google.api.method_signature)": "name" - } - ] - }, - "ResumeModelDeploymentMonitoringJob": { - "requestType": "ResumeModelDeploymentMonitoringJobRequest", - "responseType": "google.protobuf.Empty", + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/DataLabelingJob" + } + } + } + }, + "CancelDataLabelingJobRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, "options": { - "(google.api.http).post": "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:resume", - "(google.api.http).body": "*", - "(google.api.method_signature)": "name" - }, - "parsedOptions": [ - { - "(google.api.http)": { - "post": "/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}:resume", - "body": "*" - } - }, - { - "(google.api.method_signature)": "name" - } - ] + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/DataLabelingJob" + } } } }, - "CreateCustomJobRequest": { + "CreateHyperparameterTuningJobRequest": { "fields": { "parent": { "type": "string", @@ -27628,8 +28858,8 @@ "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "customJob": { - "type": "CustomJob", + "hyperparameterTuningJob": { + "type": "HyperparameterTuningJob", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -27637,19 +28867,19 @@ } } }, - "GetCustomJobRequest": { + "GetHyperparameterTuningJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" } } } }, - "ListCustomJobsRequest": { + "ListHyperparameterTuningJobsRequest": { "fields": { "parent": { "type": "string", @@ -27677,11 +28907,11 @@ } } }, - "ListCustomJobsResponse": { + "ListHyperparameterTuningJobsResponse": { "fields": { - "customJobs": { + "hyperparameterTuningJobs": { "rule": "repeated", - "type": "CustomJob", + "type": "HyperparameterTuningJob", "id": 1 }, "nextPageToken": { @@ -27690,31 +28920,31 @@ } } }, - "DeleteCustomJobRequest": { + "DeleteHyperparameterTuningJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" } } } }, - "CancelCustomJobRequest": { + "CancelHyperparameterTuningJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" } } } }, - "CreateDataLabelingJobRequest": { + "CreateNasJobRequest": { "fields": { "parent": { "type": "string", @@ -27724,8 +28954,8 @@ "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "dataLabelingJob": { - "type": "DataLabelingJob", + "nasJob": { + "type": "NasJob", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -27733,19 +28963,19 @@ } } }, - "GetDataLabelingJobRequest": { + "GetNasJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/DataLabelingJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasJob" } } } }, - "ListDataLabelingJobsRequest": { + "ListNasJobsRequest": { "fields": { "parent": { "type": "string", @@ -27770,18 +29000,14 @@ "readMask": { "type": "google.protobuf.FieldMask", "id": 5 - }, - "orderBy": { - "type": "string", - "id": 6 } } }, - "ListDataLabelingJobsResponse": { + "ListNasJobsResponse": { "fields": { - "dataLabelingJobs": { + "nasJobs": { "rule": "repeated", - "type": "DataLabelingJob", + "type": "NasJob", "id": 1 }, "nextPageToken": { @@ -27790,31 +29016,76 @@ } } }, - "DeleteDataLabelingJobRequest": { + "DeleteNasJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/DataLabelingJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasJob" } } } }, - "CancelDataLabelingJobRequest": { + "CancelNasJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/DataLabelingJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasJob" } } } }, - "CreateHyperparameterTuningJobRequest": { + "GetNasTrialDetailRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasTrialDetail" + } + } + } + }, + "ListNasTrialDetailsRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/NasJob" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + } + } + }, + "ListNasTrialDetailsResponse": { + "fields": { + "nasTrialDetails": { + "rule": "repeated", + "type": "NasTrialDetail", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "CreateBatchPredictionJobRequest": { "fields": { "parent": { "type": "string", @@ -27824,8 +29095,8 @@ "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "hyperparameterTuningJob": { - "type": "HyperparameterTuningJob", + "batchPredictionJob": { + "type": "BatchPredictionJob", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" @@ -27833,19 +29104,19 @@ } } }, - "GetHyperparameterTuningJobRequest": { + "GetBatchPredictionJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" } } } }, - "ListHyperparameterTuningJobsRequest": { + "ListBatchPredictionJobsRequest": { "fields": { "parent": { "type": "string", @@ -27873,11 +29144,11 @@ } } }, - "ListHyperparameterTuningJobsResponse": { + "ListBatchPredictionJobsResponse": { "fields": { - "hyperparameterTuningJobs": { + "batchPredictionJobs": { "rule": "repeated", - "type": "HyperparameterTuningJob", + "type": "BatchPredictionJob", "id": 1 }, "nextPageToken": { @@ -27886,31 +29157,31 @@ } } }, - "DeleteHyperparameterTuningJobRequest": { + "DeleteBatchPredictionJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" } } } }, - "CancelHyperparameterTuningJobRequest": { + "CancelBatchPredictionJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/HyperparameterTuningJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" } } } }, - "CreateBatchPredictionJobRequest": { + "CreateModelDeploymentMonitoringJobRequest": { "fields": { "parent": { "type": "string", @@ -27920,28 +29191,102 @@ "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, - "batchPredictionJob": { - "type": "BatchPredictionJob", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" - } + "modelDeploymentMonitoringJob": { + "type": "ModelDeploymentMonitoringJob", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "SearchModelDeploymentMonitoringStatsAnomaliesRequest": { + "fields": { + "modelDeploymentMonitoringJob": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + } + }, + "deployedModelId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "featureDisplayName": { + "type": "string", + "id": 3 + }, + "objectives": { + "rule": "repeated", + "type": "StatsAnomaliesObjective", + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "pageSize": { + "type": "int32", + "id": 5 + }, + "pageToken": { + "type": "string", + "id": 6 + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 7 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 8 + } + }, + "nested": { + "StatsAnomaliesObjective": { + "fields": { + "type": { + "type": "ModelDeploymentMonitoringObjectiveType", + "id": 1 + }, + "topFeatureCount": { + "type": "int32", + "id": 4 + } + } + } + } + }, + "SearchModelDeploymentMonitoringStatsAnomaliesResponse": { + "fields": { + "monitoringStats": { + "rule": "repeated", + "type": "ModelMonitoringStatsAnomalies", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 } } }, - "GetBatchPredictionJobRequest": { + "GetModelDeploymentMonitoringJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" } } } }, - "ListBatchPredictionJobsRequest": { + "ListModelDeploymentMonitoringJobsRequest": { "fields": { "parent": { "type": "string", @@ -27969,11 +29314,11 @@ } } }, - "ListBatchPredictionJobsResponse": { + "ListModelDeploymentMonitoringJobsResponse": { "fields": { - "batchPredictionJobs": { + "modelDeploymentMonitoringJobs": { "rule": "repeated", - "type": "BatchPredictionJob", + "type": "ModelDeploymentMonitoringJob", "id": 1 }, "nextPageToken": { @@ -27982,235 +29327,415 @@ } } }, - "DeleteBatchPredictionJobRequest": { + "UpdateModelDeploymentMonitoringJobRequest": { + "fields": { + "modelDeploymentMonitoringJob": { + "type": "ModelDeploymentMonitoringJob", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "updateMask": { + "type": "google.protobuf.FieldMask", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "DeleteModelDeploymentMonitoringJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" } } } }, - "CancelBatchPredictionJobRequest": { + "PauseModelDeploymentMonitoringJobRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/BatchPredictionJob" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" } } } }, - "CreateModelDeploymentMonitoringJobRequest": { + "ResumeModelDeploymentMonitoringJobRequest": { "fields": { - "parent": { + "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" - } - }, - "modelDeploymentMonitoringJob": { - "type": "ModelDeploymentMonitoringJob", - "id": 2, - "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" } } } }, - "SearchModelDeploymentMonitoringStatsAnomaliesRequest": { + "UpdateModelDeploymentMonitoringJobOperationMetadata": { "fields": { - "modelDeploymentMonitoringJob": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "NasJob": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/NasJob", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/nasJobs/{nas_job}" + }, + "fields": { + "name": { "type": "string", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "deployedModelId": { + "displayName": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "featureDisplayName": { - "type": "string", - "id": 3 - }, - "objectives": { - "rule": "repeated", - "type": "StatsAnomaliesObjective", + "nasJobSpec": { + "type": "NasJobSpec", "id": 4, "options": { "(google.api.field_behavior)": "REQUIRED" } }, - "pageSize": { - "type": "int32", - "id": 5 + "nasJobOutput": { + "type": "NasJobOutput", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, - "pageToken": { - "type": "string", - "id": 6 + "state": { + "type": "JobState", + "id": 6, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 7, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "startTime": { "type": "google.protobuf.Timestamp", - "id": 7 + "id": 8, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "endTime": { "type": "google.protobuf.Timestamp", - "id": 8 + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "error": { + "type": "google.rpc.Status", + "id": 11, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 12 + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 13 + }, + "enableRestrictedImageTraining": { + "type": "bool", + "id": 14, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + } + } + }, + "NasTrialDetail": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/NasTrialDetail", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "parameters": { + "type": "string", + "id": 2 + }, + "searchTrial": { + "type": "NasTrial", + "id": 3 + }, + "trainTrial": { + "type": "NasTrial", + "id": 4 + } + } + }, + "NasJobSpec": { + "oneofs": { + "nasAlgorithmSpec": { + "oneof": [ + "multiTrialAlgorithmSpec" + ] + } + }, + "fields": { + "multiTrialAlgorithmSpec": { + "type": "MultiTrialAlgorithmSpec", + "id": 2 + }, + "resumeNasJobId": { + "type": "string", + "id": 3 + }, + "searchSpaceSpec": { + "type": "string", + "id": 1 } }, "nested": { - "StatsAnomaliesObjective": { + "MultiTrialAlgorithmSpec": { "fields": { - "type": { - "type": "ModelDeploymentMonitoringObjectiveType", + "multiTrialAlgorithm": { + "type": "MultiTrialAlgorithm", "id": 1 }, - "topFeatureCount": { - "type": "int32", - "id": 4 + "metric": { + "type": "MetricSpec", + "id": 2 + }, + "searchTrialSpec": { + "type": "SearchTrialSpec", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "trainTrialSpec": { + "type": "TrainTrialSpec", + "id": 4 + } + }, + "nested": { + "MetricSpec": { + "fields": { + "metricId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "goal": { + "type": "GoalType", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + }, + "nested": { + "GoalType": { + "values": { + "GOAL_TYPE_UNSPECIFIED": 0, + "MAXIMIZE": 1, + "MINIMIZE": 2 + } + } + } + }, + "SearchTrialSpec": { + "fields": { + "searchTrialJobSpec": { + "type": "CustomJobSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxTrialCount": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxParallelTrialCount": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxFailedTrialCount": { + "type": "int32", + "id": 4 + } + } + }, + "TrainTrialSpec": { + "fields": { + "trainTrialJobSpec": { + "type": "CustomJobSpec", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "maxParallelTrialCount": { + "type": "int32", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "frequency": { + "type": "int32", + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "MultiTrialAlgorithm": { + "values": { + "MULTI_TRIAL_ALGORITHM_UNSPECIFIED": 0, + "REINFORCEMENT_LEARNING": 1, + "GRID_SEARCH": 2 + } } } } } }, - "SearchModelDeploymentMonitoringStatsAnomaliesResponse": { - "fields": { - "monitoringStats": { - "rule": "repeated", - "type": "ModelMonitoringStatsAnomalies", - "id": 1 - }, - "nextPageToken": { - "type": "string", - "id": 2 + "NasJobOutput": { + "oneofs": { + "output": { + "oneof": [ + "multiTrialJobOutput" + ] } - } - }, - "GetModelDeploymentMonitoringJobRequest": { + }, "fields": { - "name": { - "type": "string", + "multiTrialJobOutput": { + "type": "MultiTrialJobOutput", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + "(google.api.field_behavior)": "OUTPUT_ONLY" } } - } - }, - "ListModelDeploymentMonitoringJobsRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1, - "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "locations.googleapis.com/Location" + }, + "nested": { + "MultiTrialJobOutput": { + "fields": { + "searchTrials": { + "rule": "repeated", + "type": "NasTrial", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "trainTrials": { + "rule": "repeated", + "type": "NasTrial", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } } - }, - "filter": { - "type": "string", - "id": 2 - }, - "pageSize": { - "type": "int32", - "id": 3 - }, - "pageToken": { - "type": "string", - "id": 4 - }, - "readMask": { - "type": "google.protobuf.FieldMask", - "id": 5 } } }, - "ListModelDeploymentMonitoringJobsResponse": { + "NasTrial": { "fields": { - "modelDeploymentMonitoringJobs": { - "rule": "repeated", - "type": "ModelDeploymentMonitoringJob", - "id": 1 - }, - "nextPageToken": { + "id": { "type": "string", - "id": 2 - } - } - }, - "UpdateModelDeploymentMonitoringJobRequest": { - "fields": { - "modelDeploymentMonitoringJob": { - "type": "ModelDeploymentMonitoringJob", "id": 1, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } }, - "updateMask": { - "type": "google.protobuf.FieldMask", + "state": { + "type": "State", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "DeleteModelDeploymentMonitoringJobRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + }, + "finalMeasurement": { + "type": "Measurement", + "id": 3, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "PauseModelDeploymentMonitoringJobRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + }, + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 4, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + "(google.api.field_behavior)": "OUTPUT_ONLY" } - } - } - }, - "ResumeModelDeploymentMonitoringJobRequest": { - "fields": { - "name": { - "type": "string", - "id": 1, + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 5, "options": { - "(google.api.field_behavior)": "REQUIRED", - "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelDeploymentMonitoringJob" + "(google.api.field_behavior)": "OUTPUT_ONLY" } } - } - }, - "UpdateModelDeploymentMonitoringJobOperationMetadata": { - "fields": { - "genericMetadata": { - "type": "GenericOperationMetadata", - "id": 1 + }, + "nested": { + "State": { + "values": { + "STATE_UNSPECIFIED": 0, + "REQUESTED": 1, + "ACTIVE": 2, + "STOPPING": 3, + "SUCCEEDED": 4, + "INFEASIBLE": 5 + } } } }, @@ -30681,6 +32206,34 @@ } ] }, + "CopyModel": { + "requestType": "CopyModelRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*}/models:copy", + "(google.api.http).body": "*", + "(google.api.method_signature)": "parent,source_model", + "(google.longrunning.operation_info).response_type": "CopyModelResponse", + "(google.longrunning.operation_info).metadata_type": "CopyModelOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*}/models:copy", + "body": "*" + } + }, + { + "(google.api.method_signature)": "parent,source_model" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "CopyModelResponse", + "metadata_type": "CopyModelOperationMetadata" + } + } + ] + }, "ImportModelEvaluation": { "requestType": "ImportModelEvaluationRequest", "responseType": "ModelEvaluation", @@ -31123,6 +32676,79 @@ "ExportModelResponse": { "fields": {} }, + "CopyModelRequest": { + "oneofs": { + "destinationModel": { + "oneof": [ + "modelId", + "parentModel" + ] + } + }, + "fields": { + "modelId": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "parentModel": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "locations.googleapis.com/Location" + } + }, + "sourceModel": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "encryptionSpec": { + "type": "EncryptionSpec", + "id": 3 + } + } + }, + "CopyModelOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "CopyModelResponse": { + "fields": { + "model": { + "type": "string", + "id": 1, + "options": { + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "modelVersionId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, "ImportModelEvaluationRequest": { "fields": { "parent": { @@ -31652,7 +33278,6 @@ "type": "CustomJobDetail", "id": 2, "options": { - "deprecated": true, "(google.api.field_behavior)": "OUTPUT_ONLY" } } @@ -31695,9 +33320,6 @@ } }, "CustomJobDetail": { - "options": { - "deprecated": true - }, "fields": { "job": { "type": "string", @@ -31706,6 +33328,14 @@ "(google.api.field_behavior)": "OUTPUT_ONLY", "(google.api.resource_reference).type": "aiplatform.googleapis.com/CustomJob" } + }, + "failedJobs": { + "rule": "repeated", + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } } diff --git a/packages/google-cloud-aiplatform/samples/README.md b/packages/google-cloud-aiplatform/samples/README.md index 9b084614003..16f54ddf6e1 100644 --- a/packages/google-cloud-aiplatform/samples/README.md +++ b/packages/google-cloud-aiplatform/samples/README.md @@ -73,26 +73,33 @@ * [Job_service.cancel_custom_job](#job_service.cancel_custom_job) * [Job_service.cancel_data_labeling_job](#job_service.cancel_data_labeling_job) * [Job_service.cancel_hyperparameter_tuning_job](#job_service.cancel_hyperparameter_tuning_job) + * [Job_service.cancel_nas_job](#job_service.cancel_nas_job) * [Job_service.create_batch_prediction_job](#job_service.create_batch_prediction_job) * [Job_service.create_custom_job](#job_service.create_custom_job) * [Job_service.create_data_labeling_job](#job_service.create_data_labeling_job) * [Job_service.create_hyperparameter_tuning_job](#job_service.create_hyperparameter_tuning_job) * [Job_service.create_model_deployment_monitoring_job](#job_service.create_model_deployment_monitoring_job) + * [Job_service.create_nas_job](#job_service.create_nas_job) * [Job_service.delete_batch_prediction_job](#job_service.delete_batch_prediction_job) * [Job_service.delete_custom_job](#job_service.delete_custom_job) * [Job_service.delete_data_labeling_job](#job_service.delete_data_labeling_job) * [Job_service.delete_hyperparameter_tuning_job](#job_service.delete_hyperparameter_tuning_job) * [Job_service.delete_model_deployment_monitoring_job](#job_service.delete_model_deployment_monitoring_job) + * [Job_service.delete_nas_job](#job_service.delete_nas_job) * [Job_service.get_batch_prediction_job](#job_service.get_batch_prediction_job) * [Job_service.get_custom_job](#job_service.get_custom_job) * [Job_service.get_data_labeling_job](#job_service.get_data_labeling_job) * [Job_service.get_hyperparameter_tuning_job](#job_service.get_hyperparameter_tuning_job) * [Job_service.get_model_deployment_monitoring_job](#job_service.get_model_deployment_monitoring_job) + * [Job_service.get_nas_job](#job_service.get_nas_job) + * [Job_service.get_nas_trial_detail](#job_service.get_nas_trial_detail) * [Job_service.list_batch_prediction_jobs](#job_service.list_batch_prediction_jobs) * [Job_service.list_custom_jobs](#job_service.list_custom_jobs) * [Job_service.list_data_labeling_jobs](#job_service.list_data_labeling_jobs) * [Job_service.list_hyperparameter_tuning_jobs](#job_service.list_hyperparameter_tuning_jobs) * [Job_service.list_model_deployment_monitoring_jobs](#job_service.list_model_deployment_monitoring_jobs) + * [Job_service.list_nas_jobs](#job_service.list_nas_jobs) + * [Job_service.list_nas_trial_details](#job_service.list_nas_trial_details) * [Job_service.pause_model_deployment_monitoring_job](#job_service.pause_model_deployment_monitoring_job) * [Job_service.resume_model_deployment_monitoring_job](#job_service.resume_model_deployment_monitoring_job) * [Job_service.search_model_deployment_monitoring_stats_anomalies](#job_service.search_model_deployment_monitoring_stats_anomalies) @@ -132,6 +139,7 @@ * [Migration_service.batch_migrate_resources](#migration_service.batch_migrate_resources) * [Migration_service.search_migratable_resources](#migration_service.search_migratable_resources) * [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) * [Model_service.delete_model_version](#model_service.delete_model_version) * [Model_service.export_model](#model_service.export_model) @@ -275,26 +283,33 @@ * [Job_service.cancel_custom_job](#job_service.cancel_custom_job) * [Job_service.cancel_data_labeling_job](#job_service.cancel_data_labeling_job) * [Job_service.cancel_hyperparameter_tuning_job](#job_service.cancel_hyperparameter_tuning_job) + * [Job_service.cancel_nas_job](#job_service.cancel_nas_job) * [Job_service.create_batch_prediction_job](#job_service.create_batch_prediction_job) * [Job_service.create_custom_job](#job_service.create_custom_job) * [Job_service.create_data_labeling_job](#job_service.create_data_labeling_job) * [Job_service.create_hyperparameter_tuning_job](#job_service.create_hyperparameter_tuning_job) * [Job_service.create_model_deployment_monitoring_job](#job_service.create_model_deployment_monitoring_job) + * [Job_service.create_nas_job](#job_service.create_nas_job) * [Job_service.delete_batch_prediction_job](#job_service.delete_batch_prediction_job) * [Job_service.delete_custom_job](#job_service.delete_custom_job) * [Job_service.delete_data_labeling_job](#job_service.delete_data_labeling_job) * [Job_service.delete_hyperparameter_tuning_job](#job_service.delete_hyperparameter_tuning_job) * [Job_service.delete_model_deployment_monitoring_job](#job_service.delete_model_deployment_monitoring_job) + * [Job_service.delete_nas_job](#job_service.delete_nas_job) * [Job_service.get_batch_prediction_job](#job_service.get_batch_prediction_job) * [Job_service.get_custom_job](#job_service.get_custom_job) * [Job_service.get_data_labeling_job](#job_service.get_data_labeling_job) * [Job_service.get_hyperparameter_tuning_job](#job_service.get_hyperparameter_tuning_job) * [Job_service.get_model_deployment_monitoring_job](#job_service.get_model_deployment_monitoring_job) + * [Job_service.get_nas_job](#job_service.get_nas_job) + * [Job_service.get_nas_trial_detail](#job_service.get_nas_trial_detail) * [Job_service.list_batch_prediction_jobs](#job_service.list_batch_prediction_jobs) * [Job_service.list_custom_jobs](#job_service.list_custom_jobs) * [Job_service.list_data_labeling_jobs](#job_service.list_data_labeling_jobs) * [Job_service.list_hyperparameter_tuning_jobs](#job_service.list_hyperparameter_tuning_jobs) * [Job_service.list_model_deployment_monitoring_jobs](#job_service.list_model_deployment_monitoring_jobs) + * [Job_service.list_nas_jobs](#job_service.list_nas_jobs) + * [Job_service.list_nas_trial_details](#job_service.list_nas_trial_details) * [Job_service.pause_model_deployment_monitoring_job](#job_service.pause_model_deployment_monitoring_job) * [Job_service.resume_model_deployment_monitoring_job](#job_service.resume_model_deployment_monitoring_job) * [Job_service.search_model_deployment_monitoring_stats_anomalies](#job_service.search_model_deployment_monitoring_stats_anomalies) @@ -334,6 +349,7 @@ * [Migration_service.batch_migrate_resources](#migration_service.batch_migrate_resources) * [Migration_service.search_migratable_resources](#migration_service.search_migratable_resources) * [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) * [Model_service.delete_model_version](#model_service.delete_model_version) * [Model_service.export_model](#model_service.export_model) @@ -1466,6 +1482,23 @@ __Usage:__ +### Job_service.cancel_nas_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_nas_job.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/job_service.cancel_nas_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_nas_job.js` + + +----- + + + + ### Job_service.create_batch_prediction_job View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_batch_prediction_job.js). @@ -1551,6 +1584,23 @@ __Usage:__ +### Job_service.create_nas_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_nas_job.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/job_service.create_nas_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_nas_job.js` + + +----- + + + + ### Job_service.delete_batch_prediction_job View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_batch_prediction_job.js). @@ -1636,6 +1686,23 @@ __Usage:__ +### Job_service.delete_nas_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_nas_job.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/job_service.delete_nas_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_nas_job.js` + + +----- + + + + ### Job_service.get_batch_prediction_job View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_batch_prediction_job.js). @@ -1721,6 +1788,40 @@ __Usage:__ +### Job_service.get_nas_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_job.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/job_service.get_nas_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_job.js` + + +----- + + + + +### Job_service.get_nas_trial_detail + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_trial_detail.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/job_service.get_nas_trial_detail.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_trial_detail.js` + + +----- + + + + ### Job_service.list_batch_prediction_jobs View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_batch_prediction_jobs.js). @@ -1806,6 +1907,40 @@ __Usage:__ +### Job_service.list_nas_jobs + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_jobs.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/job_service.list_nas_jobs.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_jobs.js` + + +----- + + + + +### Job_service.list_nas_trial_details + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_trial_details.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/job_service.list_nas_trial_details.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_trial_details.js` + + +----- + + + + ### Job_service.pause_model_deployment_monitoring_job View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/job_service.pause_model_deployment_monitoring_job.js). @@ -2469,6 +2604,23 @@ __Usage:__ +### Model_service.copy_model + +View the [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) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1/model_service.copy_model.js` + + +----- + + + + ### Model_service.delete_model View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1/model_service.delete_model.js). @@ -4900,6 +5052,23 @@ __Usage:__ +### Job_service.cancel_nas_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_nas_job.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/job_service.cancel_nas_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_nas_job.js` + + +----- + + + + ### Job_service.create_batch_prediction_job View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_batch_prediction_job.js). @@ -4985,6 +5154,23 @@ __Usage:__ +### Job_service.create_nas_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_nas_job.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/job_service.create_nas_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_nas_job.js` + + +----- + + + + ### Job_service.delete_batch_prediction_job View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_batch_prediction_job.js). @@ -5070,6 +5256,23 @@ __Usage:__ +### Job_service.delete_nas_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_nas_job.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/job_service.delete_nas_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_nas_job.js` + + +----- + + + + ### Job_service.get_batch_prediction_job View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_batch_prediction_job.js). @@ -5155,6 +5358,40 @@ __Usage:__ +### Job_service.get_nas_job + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_job.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/job_service.get_nas_job.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_job.js` + + +----- + + + + +### Job_service.get_nas_trial_detail + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_trial_detail.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/job_service.get_nas_trial_detail.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_trial_detail.js` + + +----- + + + + ### Job_service.list_batch_prediction_jobs View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js). @@ -5240,6 +5477,40 @@ __Usage:__ +### Job_service.list_nas_jobs + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_jobs.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/job_service.list_nas_jobs.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_jobs.js` + + +----- + + + + +### Job_service.list_nas_trial_details + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_trial_details.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/job_service.list_nas_trial_details.js,samples/README.md) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_trial_details.js` + + +----- + + + + ### Job_service.pause_model_deployment_monitoring_job View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.pause_model_deployment_monitoring_job.js). @@ -5903,6 +6174,23 @@ __Usage:__ +### Model_service.copy_model + +View the [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) + +__Usage:__ + + +`node packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.copy_model.js` + + +----- + + + + ### Model_service.delete_model View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.delete_model.js). diff --git a/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_nas_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_nas_job.js new file mode 100644 index 00000000000..548f98a1715 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.cancel_nas_job.js @@ -0,0 +1,63 @@ +// 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(name) { + // [START aiplatform_v1_generated_JobService_CancelNasJob_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 NasJob to cancel. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callCancelNasJob() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.cancelNasJob(request); + console.log(response); + } + + callCancelNasJob(); + // [END aiplatform_v1_generated_JobService_CancelNasJob_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/job_service.create_nas_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_nas_job.js new file mode 100644 index 00000000000..4f32ae2dc94 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.create_nas_job.js @@ -0,0 +1,67 @@ +// 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, nasJob) { + // [START aiplatform_v1_generated_JobService_CreateNasJob_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 resource name of the Location to create the NasJob in. + * Format: `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * Required. The NasJob to create. + */ + // const nasJob = {} + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callCreateNasJob() { + // Construct request + const request = { + parent, + nasJob, + }; + + // Run request + const response = await aiplatformClient.createNasJob(request); + console.log(response); + } + + callCreateNasJob(); + // [END aiplatform_v1_generated_JobService_CreateNasJob_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/job_service.delete_nas_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_nas_job.js new file mode 100644 index 00000000000..2058f9d5c88 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.delete_nas_job.js @@ -0,0 +1,64 @@ +// 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(name) { + // [START aiplatform_v1_generated_JobService_DeleteNasJob_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 NasJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callDeleteNasJob() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await aiplatformClient.deleteNasJob(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteNasJob(); + // [END aiplatform_v1_generated_JobService_DeleteNasJob_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/job_service.get_nas_job.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_job.js new file mode 100644 index 00000000000..e036438f215 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_job.js @@ -0,0 +1,63 @@ +// 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(name) { + // [START aiplatform_v1_generated_JobService_GetNasJob_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 NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callGetNasJob() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.getNasJob(request); + console.log(response); + } + + callGetNasJob(); + // [END aiplatform_v1_generated_JobService_GetNasJob_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/job_service.get_nas_trial_detail.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_trial_detail.js new file mode 100644 index 00000000000..2a523f74b23 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.get_nas_trial_detail.js @@ -0,0 +1,63 @@ +// 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(name) { + // [START aiplatform_v1_generated_JobService_GetNasTrialDetail_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 NasTrialDetail resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callGetNasTrialDetail() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.getNasTrialDetail(request); + console.log(response); + } + + callGetNasTrialDetail(); + // [END aiplatform_v1_generated_JobService_GetNasTrialDetail_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/job_service.list_nas_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_jobs.js new file mode 100644 index 00000000000..85465e89e38 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_jobs.js @@ -0,0 +1,100 @@ +// 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) { + // [START aiplatform_v1_generated_JobService_ListNasJobs_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 resource name of the Location to list the NasJobs + * from. Format: `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * The standard list filter. + * Supported fields: + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * Some examples of using the filter are: + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + */ + // const filter = 'abc123' + /** + * The standard list page size. + */ + // const pageSize = 1234 + /** + * The standard list page token. + * Typically obtained via + * ListNasJobsResponse.next_page_token google.cloud.aiplatform.v1.ListNasJobsResponse.next_page_token + * of the previous + * JobService.ListNasJobs google.cloud.aiplatform.v1.JobService.ListNasJobs + * call. + */ + // const pageToken = 'abc123' + /** + * Mask specifying which fields to read. + */ + // const readMask = {} + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callListNasJobs() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await aiplatformClient.listNasJobsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListNasJobs(); + // [END aiplatform_v1_generated_JobService_ListNasJobs_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/job_service.list_nas_trial_details.js b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_trial_details.js new file mode 100644 index 00000000000..fe30d2bcdc9 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/job_service.list_nas_trial_details.js @@ -0,0 +1,78 @@ +// 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) { + // [START aiplatform_v1_generated_JobService_ListNasTrialDetails_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 NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + */ + // const parent = 'abc123' + /** + * The standard list page size. + */ + // const pageSize = 1234 + /** + * The standard list page token. + * Typically obtained via + * ListNasTrialDetailsResponse.next_page_token google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.next_page_token + * of the previous + * JobService.ListNasTrialDetails google.cloud.aiplatform.v1.JobService.ListNasTrialDetails + * call. + */ + // const pageToken = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callListNasTrialDetails() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await aiplatformClient.listNasTrialDetailsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListNasTrialDetails(); + // [END aiplatform_v1_generated_JobService_ListNasTrialDetails_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.copy_model.js b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.copy_model.js new file mode 100644 index 00000000000..bf986522f5b --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1/model_service.copy_model.js @@ -0,0 +1,88 @@ +// 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, sourceModel) { + // [START aiplatform_v1_generated_ModelService_CopyModel_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. + */ + /** + * Optional. Copy source_model into a new Model with this ID. The ID will + * become the final component of the model resource name. + * This value may be up to 63 characters, and valid characters are + * `[a-z0-9_-]`. The first character cannot be a number or hyphen. + */ + // const modelId = 'abc123' + /** + * Optional. Specify this field to copy source_model into this existing + * Model as a new version. Format: + * `projects/{project}/locations/{location}/models/{model}` + */ + // const parentModel = 'abc123' + /** + * Required. The resource name of the Location into which to copy the Model. + * Format: `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * Required. The resource name of the Model to copy. That Model must be in the + * same Project. Format: + * `projects/{project}/locations/{location}/models/{model}` + */ + // const sourceModel = 'abc123' + /** + * Customer-managed encryption key options. If this is set, + * then the Model copy will be encrypted with the provided encryption key. + */ + // const encryptionSpec = {} + + // Imports the Aiplatform library + const {ModelServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new ModelServiceClient(); + + async function callCopyModel() { + // Construct request + const request = { + parent, + sourceModel, + }; + + // Run request + const [operation] = await aiplatformClient.copyModel(request); + const [response] = await operation.promise(); + console.log(response); + } + + callCopyModel(); + // [END aiplatform_v1_generated_ModelService_CopyModel_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 7445286f1ae..bf82ad27f41 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 @@ -3451,6 +3451,314 @@ } } }, + { + "regionTag": "aiplatform_v1_generated_JobService_CreateNasJob_async", + "title": "DatasetService createNasJob Sample", + "origin": "API_DEFINITION", + "description": " Creates a NasJob", + "canonical": true, + "file": "job_service.create_nas_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateNasJob", + "fullName": "google.cloud.aiplatform.v1.JobService.CreateNasJob", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "nas_job", + "type": ".google.cloud.aiplatform.v1.NasJob" + } + ], + "resultType": ".google.cloud.aiplatform.v1.NasJob", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1.JobServiceClient" + }, + "method": { + "shortName": "CreateNasJob", + "fullName": "google.cloud.aiplatform.v1.JobService.CreateNasJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_JobService_GetNasJob_async", + "title": "DatasetService getNasJob Sample", + "origin": "API_DEFINITION", + "description": " Gets a NasJob", + "canonical": true, + "file": "job_service.get_nas_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetNasJob", + "fullName": "google.cloud.aiplatform.v1.JobService.GetNasJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1.NasJob", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1.JobServiceClient" + }, + "method": { + "shortName": "GetNasJob", + "fullName": "google.cloud.aiplatform.v1.JobService.GetNasJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_JobService_ListNasJobs_async", + "title": "DatasetService listNasJobs Sample", + "origin": "API_DEFINITION", + "description": " Lists NasJobs in a Location.", + "canonical": true, + "file": "job_service.list_nas_jobs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 92, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNasJobs", + "fullName": "google.cloud.aiplatform.v1.JobService.ListNasJobs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "read_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.aiplatform.v1.ListNasJobsResponse", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1.JobServiceClient" + }, + "method": { + "shortName": "ListNasJobs", + "fullName": "google.cloud.aiplatform.v1.JobService.ListNasJobs", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_JobService_DeleteNasJob_async", + "title": "DatasetService deleteNasJob Sample", + "origin": "API_DEFINITION", + "description": " Deletes a NasJob.", + "canonical": true, + "file": "job_service.delete_nas_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteNasJob", + "fullName": "google.cloud.aiplatform.v1.JobService.DeleteNasJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1.JobServiceClient" + }, + "method": { + "shortName": "DeleteNasJob", + "fullName": "google.cloud.aiplatform.v1.JobService.DeleteNasJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_JobService_CancelNasJob_async", + "title": "DatasetService cancelNasJob Sample", + "origin": "API_DEFINITION", + "description": " Cancels a NasJob. Starts asynchronous cancellation on the NasJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetNasJob][google.cloud.aiplatform.v1.JobService.GetNasJob] or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the NasJob is not deleted; instead it becomes a job with a [NasJob.error][google.cloud.aiplatform.v1.NasJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`, and [NasJob.state][google.cloud.aiplatform.v1.NasJob.state] is set to `CANCELLED`.", + "canonical": true, + "file": "job_service.cancel_nas_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CancelNasJob", + "fullName": "google.cloud.aiplatform.v1.JobService.CancelNasJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1.JobServiceClient" + }, + "method": { + "shortName": "CancelNasJob", + "fullName": "google.cloud.aiplatform.v1.JobService.CancelNasJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_JobService_GetNasTrialDetail_async", + "title": "DatasetService getNasTrialDetail Sample", + "origin": "API_DEFINITION", + "description": " Gets a NasTrialDetail.", + "canonical": true, + "file": "job_service.get_nas_trial_detail.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetNasTrialDetail", + "fullName": "google.cloud.aiplatform.v1.JobService.GetNasTrialDetail", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1.NasTrialDetail", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1.JobServiceClient" + }, + "method": { + "shortName": "GetNasTrialDetail", + "fullName": "google.cloud.aiplatform.v1.JobService.GetNasTrialDetail", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_JobService_ListNasTrialDetails_async", + "title": "DatasetService listNasTrialDetails Sample", + "origin": "API_DEFINITION", + "description": " List top NasTrialDetails of a NasJob.", + "canonical": true, + "file": "job_service.list_nas_trial_details.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNasTrialDetails", + "fullName": "google.cloud.aiplatform.v1.JobService.ListNasTrialDetails", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1.ListNasTrialDetailsResponse", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1.JobServiceClient" + }, + "method": { + "shortName": "ListNasTrialDetails", + "fullName": "google.cloud.aiplatform.v1.JobService.ListNasTrialDetails", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1.JobService" + } + } + } + }, { "regionTag": "aiplatform_v1_generated_JobService_CreateBatchPredictionJob_async", "title": "DatasetService createBatchPredictionJob Sample", @@ -6051,6 +6359,62 @@ } } }, + { + "regionTag": "aiplatform_v1_generated_ModelService_CopyModel_async", + "title": "DatasetService copyModel Sample", + "origin": "API_DEFINITION", + "description": " Copies an already existing Vertex AI Model into the specified Location. The source Model must exist in the same Project. When copying custom Models, the users themselves are responsible for [Model.metadata][google.cloud.aiplatform.v1.Model.metadata] content to be region-agnostic, as well as making sure that any resources (e.g. files) it depends on remain accessible.", + "canonical": true, + "file": "model_service.copy_model.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 80, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CopyModel", + "fullName": "google.cloud.aiplatform.v1.ModelService.CopyModel", + "async": true, + "parameters": [ + { + "name": "model_id", + "type": "TYPE_STRING" + }, + { + "name": "parent_model", + "type": "TYPE_STRING" + }, + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "source_model", + "type": "TYPE_STRING" + }, + { + "name": "encryption_spec", + "type": ".google.cloud.aiplatform.v1.EncryptionSpec" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "ModelServiceClient", + "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" + }, + "method": { + "shortName": "CopyModel", + "fullName": "google.cloud.aiplatform.v1.ModelService.CopyModel", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.aiplatform.v1.ModelService" + } + } + } + }, { "regionTag": "aiplatform_v1_generated_ModelService_ImportModelEvaluation_async", "title": "DatasetService importModelEvaluation Sample", diff --git a/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_nas_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_nas_job.js new file mode 100644 index 00000000000..bae9b3dbd72 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.cancel_nas_job.js @@ -0,0 +1,63 @@ +// 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(name) { + // [START aiplatform_v1beta1_generated_JobService_CancelNasJob_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 NasJob to cancel. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callCancelNasJob() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.cancelNasJob(request); + console.log(response); + } + + callCancelNasJob(); + // [END aiplatform_v1beta1_generated_JobService_CancelNasJob_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/job_service.create_nas_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_nas_job.js new file mode 100644 index 00000000000..f615ea3bfa7 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.create_nas_job.js @@ -0,0 +1,67 @@ +// 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, nasJob) { + // [START aiplatform_v1beta1_generated_JobService_CreateNasJob_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 resource name of the Location to create the NasJob in. + * Format: `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * Required. The NasJob to create. + */ + // const nasJob = {} + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callCreateNasJob() { + // Construct request + const request = { + parent, + nasJob, + }; + + // Run request + const response = await aiplatformClient.createNasJob(request); + console.log(response); + } + + callCreateNasJob(); + // [END aiplatform_v1beta1_generated_JobService_CreateNasJob_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/job_service.delete_nas_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_nas_job.js new file mode 100644 index 00000000000..b46633706a5 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.delete_nas_job.js @@ -0,0 +1,64 @@ +// 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(name) { + // [START aiplatform_v1beta1_generated_JobService_DeleteNasJob_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 NasJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callDeleteNasJob() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await aiplatformClient.deleteNasJob(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteNasJob(); + // [END aiplatform_v1beta1_generated_JobService_DeleteNasJob_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/job_service.get_nas_job.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_job.js new file mode 100644 index 00000000000..f6e064700dd --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_job.js @@ -0,0 +1,63 @@ +// 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(name) { + // [START aiplatform_v1beta1_generated_JobService_GetNasJob_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 NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callGetNasJob() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.getNasJob(request); + console.log(response); + } + + callGetNasJob(); + // [END aiplatform_v1beta1_generated_JobService_GetNasJob_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/job_service.get_nas_trial_detail.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_trial_detail.js new file mode 100644 index 00000000000..d87f1ee1a9e --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.get_nas_trial_detail.js @@ -0,0 +1,63 @@ +// 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(name) { + // [START aiplatform_v1beta1_generated_JobService_GetNasTrialDetail_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 NasTrialDetail resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callGetNasTrialDetail() { + // Construct request + const request = { + name, + }; + + // Run request + const response = await aiplatformClient.getNasTrialDetail(request); + console.log(response); + } + + callGetNasTrialDetail(); + // [END aiplatform_v1beta1_generated_JobService_GetNasTrialDetail_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/job_service.list_nas_jobs.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_jobs.js new file mode 100644 index 00000000000..46ead708cc3 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_jobs.js @@ -0,0 +1,100 @@ +// 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) { + // [START aiplatform_v1beta1_generated_JobService_ListNasJobs_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 resource name of the Location to list the NasJobs + * from. Format: `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * The standard list filter. + * Supported fields: + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * Some examples of using the filter are: + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + */ + // const filter = 'abc123' + /** + * The standard list page size. + */ + // const pageSize = 1234 + /** + * The standard list page token. + * Typically obtained via + * ListNasJobsResponse.next_page_token google.cloud.aiplatform.v1beta1.ListNasJobsResponse.next_page_token + * of the previous + * JobService.ListNasJobs google.cloud.aiplatform.v1beta1.JobService.ListNasJobs + * call. + */ + // const pageToken = 'abc123' + /** + * Mask specifying which fields to read. + */ + // const readMask = {} + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callListNasJobs() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await aiplatformClient.listNasJobsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListNasJobs(); + // [END aiplatform_v1beta1_generated_JobService_ListNasJobs_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/job_service.list_nas_trial_details.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_trial_details.js new file mode 100644 index 00000000000..7a957d48caf --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/job_service.list_nas_trial_details.js @@ -0,0 +1,78 @@ +// 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) { + // [START aiplatform_v1beta1_generated_JobService_ListNasTrialDetails_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 NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + */ + // const parent = 'abc123' + /** + * The standard list page size. + */ + // const pageSize = 1234 + /** + * The standard list page token. + * Typically obtained via + * ListNasTrialDetailsResponse.next_page_token google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.next_page_token + * of the previous + * JobService.ListNasTrialDetails google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails + * call. + */ + // const pageToken = 'abc123' + + // Imports the Aiplatform library + const {JobServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new JobServiceClient(); + + async function callListNasTrialDetails() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await aiplatformClient.listNasTrialDetailsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListNasTrialDetails(); + // [END aiplatform_v1beta1_generated_JobService_ListNasTrialDetails_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/model_service.copy_model.js b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.copy_model.js new file mode 100644 index 00000000000..05dab340313 --- /dev/null +++ b/packages/google-cloud-aiplatform/samples/generated/v1beta1/model_service.copy_model.js @@ -0,0 +1,88 @@ +// 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, sourceModel) { + // [START aiplatform_v1beta1_generated_ModelService_CopyModel_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. + */ + /** + * Optional. Copy source_model into a new Model with this ID. The ID will + * become the final component of the model resource name. + * This value may be up to 63 characters, and valid characters are + * `[a-z0-9_-]`. The first character cannot be a number or hyphen. + */ + // const modelId = 'abc123' + /** + * Optional. Specify this field to copy source_model into this existing + * Model as a new version. Format: + * `projects/{project}/locations/{location}/models/{model}` + */ + // const parentModel = 'abc123' + /** + * Required. The resource name of the Location into which to copy the Model. + * Format: `projects/{project}/locations/{location}` + */ + // const parent = 'abc123' + /** + * Required. The resource name of the Model to copy. That Model must be in the + * same Project. Format: + * `projects/{project}/locations/{location}/models/{model}` + */ + // const sourceModel = 'abc123' + /** + * Customer-managed encryption key options. If this is set, + * then the Model copy will be encrypted with the provided encryption key. + */ + // const encryptionSpec = {} + + // Imports the Aiplatform library + const {ModelServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new ModelServiceClient(); + + async function callCopyModel() { + // Construct request + const request = { + parent, + sourceModel, + }; + + // Run request + const [operation] = await aiplatformClient.copyModel(request); + const [response] = await operation.promise(); + console.log(response); + } + + callCopyModel(); + // [END aiplatform_v1beta1_generated_ModelService_CopyModel_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 d1dc57a2f17..2e8ffa5b5d9 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 @@ -3719,6 +3719,314 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_generated_JobService_CreateNasJob_async", + "title": "DatasetService createNasJob Sample", + "origin": "API_DEFINITION", + "description": " Creates a NasJob", + "canonical": true, + "file": "job_service.create_nas_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 59, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateNasJob", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.CreateNasJob", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "nas_job", + "type": ".google.cloud.aiplatform.v1beta1.NasJob" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.NasJob", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" + }, + "method": { + "shortName": "CreateNasJob", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.CreateNasJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1beta1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_JobService_GetNasJob_async", + "title": "DatasetService getNasJob Sample", + "origin": "API_DEFINITION", + "description": " Gets a NasJob", + "canonical": true, + "file": "job_service.get_nas_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetNasJob", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetNasJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.NasJob", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" + }, + "method": { + "shortName": "GetNasJob", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetNasJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1beta1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_JobService_ListNasJobs_async", + "title": "DatasetService listNasJobs Sample", + "origin": "API_DEFINITION", + "description": " Lists NasJobs in a Location.", + "canonical": true, + "file": "job_service.list_nas_jobs.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 92, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNasJobs", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListNasJobs", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "read_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.ListNasJobsResponse", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" + }, + "method": { + "shortName": "ListNasJobs", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListNasJobs", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1beta1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_JobService_DeleteNasJob_async", + "title": "DatasetService deleteNasJob Sample", + "origin": "API_DEFINITION", + "description": " Deletes a NasJob.", + "canonical": true, + "file": "job_service.delete_nas_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteNasJob", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.DeleteNasJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" + }, + "method": { + "shortName": "DeleteNasJob", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.DeleteNasJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1beta1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_JobService_CancelNasJob_async", + "title": "DatasetService cancelNasJob Sample", + "origin": "API_DEFINITION", + "description": " Cancels a NasJob. Starts asynchronous cancellation on the NasJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetNasJob][google.cloud.aiplatform.v1beta1.JobService.GetNasJob] or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the NasJob is not deleted; instead it becomes a job with a [NasJob.error][google.cloud.aiplatform.v1beta1.NasJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`, and [NasJob.state][google.cloud.aiplatform.v1beta1.NasJob.state] is set to `CANCELLED`.", + "canonical": true, + "file": "job_service.cancel_nas_job.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CancelNasJob", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.CancelNasJob", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" + }, + "method": { + "shortName": "CancelNasJob", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.CancelNasJob", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1beta1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_JobService_GetNasTrialDetail_async", + "title": "DatasetService getNasTrialDetail Sample", + "origin": "API_DEFINITION", + "description": " Gets a NasTrialDetail.", + "canonical": true, + "file": "job_service.get_nas_trial_detail.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetNasTrialDetail", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetNasTrialDetail", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.NasTrialDetail", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" + }, + "method": { + "shortName": "GetNasTrialDetail", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.GetNasTrialDetail", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1beta1.JobService" + } + } + } + }, + { + "regionTag": "aiplatform_v1beta1_generated_JobService_ListNasTrialDetails_async", + "title": "DatasetService listNasTrialDetails Sample", + "origin": "API_DEFINITION", + "description": " List top NasTrialDetails of a NasJob.", + "canonical": true, + "file": "job_service.list_nas_trial_details.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 70, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNasTrialDetails", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse", + "client": { + "shortName": "JobServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.JobServiceClient" + }, + "method": { + "shortName": "ListNasTrialDetails", + "fullName": "google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails", + "service": { + "shortName": "JobService", + "fullName": "google.cloud.aiplatform.v1beta1.JobService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_JobService_CreateBatchPredictionJob_async", "title": "DatasetService createBatchPredictionJob Sample", @@ -6359,6 +6667,62 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_generated_ModelService_CopyModel_async", + "title": "DatasetService copyModel Sample", + "origin": "API_DEFINITION", + "description": " Copies an already existing Vertex AI Model into the specified Location. The source Model must exist in the same Project. When copying custom Models, the users themselves are responsible for [Model.metadata][google.cloud.aiplatform.v1beta1.Model.metadata] content to be region-agnostic, as well as making sure that any resources (e.g. files) it depends on remain accessible.", + "canonical": true, + "file": "model_service.copy_model.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 80, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CopyModel", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService.CopyModel", + "async": true, + "parameters": [ + { + "name": "model_id", + "type": "TYPE_STRING" + }, + { + "name": "parent_model", + "type": "TYPE_STRING" + }, + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "source_model", + "type": "TYPE_STRING" + }, + { + "name": "encryption_spec", + "type": ".google.cloud.aiplatform.v1beta1.EncryptionSpec" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "ModelServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" + }, + "method": { + "shortName": "CopyModel", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService.CopyModel", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_ModelService_ImportModelEvaluation_async", "title": "DatasetService importModelEvaluation Sample", 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 cea58dfc27d..5549c79372d 100644 --- a/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/dataset_service_client.ts @@ -264,6 +264,12 @@ export class DatasetServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -5543,6 +5549,130 @@ export class DatasetServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 d82a7a8b413..44918848766 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 @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.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 3b0e57e8178..c1436a4184e 100644 --- a/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/endpoint_service_client.ts @@ -263,6 +263,12 @@ export class EndpointServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4468,6 +4474,130 @@ export class EndpointServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 d82a7a8b413..44918848766 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 @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_client.ts b/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_client.ts index 1aafccd6e4f..37908392b9c 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_online_serving_service_client.ts @@ -256,6 +256,12 @@ export class FeaturestoreOnlineServingServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -2411,6 +2417,130 @@ export class FeaturestoreOnlineServingServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 d82a7a8b413..44918848766 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 @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.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 c81949c74f1..8e6b504d7af 100644 --- a/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/featurestore_service_client.ts @@ -263,6 +263,12 @@ export class FeaturestoreServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -7081,6 +7087,130 @@ export class FeaturestoreServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 d82a7a8b413..44918848766 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 @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json index 6797724fbe1..15ee64fb9e9 100644 --- a/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1/gapic_metadata.json @@ -752,6 +752,26 @@ "cancelHyperparameterTuningJob" ] }, + "CreateNasJob": { + "methods": [ + "createNasJob" + ] + }, + "GetNasJob": { + "methods": [ + "getNasJob" + ] + }, + "CancelNasJob": { + "methods": [ + "cancelNasJob" + ] + }, + "GetNasTrialDetail": { + "methods": [ + "getNasTrialDetail" + ] + }, "CreateBatchPredictionJob": { "methods": [ "createBatchPredictionJob" @@ -802,6 +822,11 @@ "deleteHyperparameterTuningJob" ] }, + "DeleteNasJob": { + "methods": [ + "deleteNasJob" + ] + }, "DeleteBatchPredictionJob": { "methods": [ "deleteBatchPredictionJob" @@ -838,6 +863,20 @@ "listHyperparameterTuningJobsAsync" ] }, + "ListNasJobs": { + "methods": [ + "listNasJobs", + "listNasJobsStream", + "listNasJobsAsync" + ] + }, + "ListNasTrialDetails": { + "methods": [ + "listNasTrialDetails", + "listNasTrialDetailsStream", + "listNasTrialDetailsAsync" + ] + }, "ListBatchPredictionJobs": { "methods": [ "listBatchPredictionJobs", @@ -909,6 +948,26 @@ "cancelHyperparameterTuningJob" ] }, + "CreateNasJob": { + "methods": [ + "createNasJob" + ] + }, + "GetNasJob": { + "methods": [ + "getNasJob" + ] + }, + "CancelNasJob": { + "methods": [ + "cancelNasJob" + ] + }, + "GetNasTrialDetail": { + "methods": [ + "getNasTrialDetail" + ] + }, "CreateBatchPredictionJob": { "methods": [ "createBatchPredictionJob" @@ -959,6 +1018,11 @@ "deleteHyperparameterTuningJob" ] }, + "DeleteNasJob": { + "methods": [ + "deleteNasJob" + ] + }, "DeleteBatchPredictionJob": { "methods": [ "deleteBatchPredictionJob" @@ -995,6 +1059,20 @@ "listHyperparameterTuningJobsAsync" ] }, + "ListNasJobs": { + "methods": [ + "listNasJobs", + "listNasJobsStream", + "listNasJobsAsync" + ] + }, + "ListNasTrialDetails": { + "methods": [ + "listNasTrialDetails", + "listNasTrialDetailsStream", + "listNasTrialDetailsAsync" + ] + }, "ListBatchPredictionJobs": { "methods": [ "listBatchPredictionJobs", @@ -1472,6 +1550,11 @@ "exportModel" ] }, + "CopyModel": { + "methods": [ + "copyModel" + ] + }, "ListModels": { "methods": [ "listModels", @@ -1560,6 +1643,11 @@ "exportModel" ] }, + "CopyModel": { + "methods": [ + "copyModel" + ] + }, "ListModels": { "methods": [ "listModels", 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 bf60beb7684..f1b5a5877d5 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 @@ -263,6 +263,12 @@ export class IndexEndpointServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4577,6 +4583,130 @@ export class IndexEndpointServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 d82a7a8b413..44918848766 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 @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.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 e3f05248335..213ea48d200 100644 --- a/packages/google-cloud-aiplatform/src/v1/index_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/index_service_client.ts @@ -263,6 +263,12 @@ export class IndexServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4298,6 +4304,130 @@ export class IndexServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 d82a7a8b413..44918848766 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 @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.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 99dc8ba806c..b34dfda7e12 100644 --- a/packages/google-cloud-aiplatform/src/v1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/job_service_client.ts @@ -263,6 +263,12 @@ export class JobServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -314,6 +320,16 @@ export class JobServiceClient { 'nextPageToken', 'hyperparameterTuningJobs' ), + listNasJobs: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'nasJobs' + ), + listNasTrialDetails: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'nasTrialDetails' + ), listBatchPredictionJobs: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -1323,6 +1339,12 @@ export class JobServiceClient { const deleteHyperparameterTuningJobMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.DeleteOperationMetadata' ) as gax.protobuf.Type; + const deleteNasJobResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteNasJobMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.DeleteOperationMetadata' + ) as gax.protobuf.Type; const deleteBatchPredictionJobResponse = protoFilesRoot.lookup( '.google.protobuf.Empty' ) as gax.protobuf.Type; @@ -1364,6 +1386,11 @@ export class JobServiceClient { deleteHyperparameterTuningJobMetadata ) ), + deleteNasJob: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteNasJobResponse.decode.bind(deleteNasJobResponse), + deleteNasJobMetadata.decode.bind(deleteNasJobMetadata) + ), deleteBatchPredictionJob: new this._gaxModule.LongrunningDescriptor( this.operationsClient, deleteBatchPredictionJobResponse.decode.bind( @@ -1460,6 +1487,13 @@ export class JobServiceClient { 'listHyperparameterTuningJobs', 'deleteHyperparameterTuningJob', 'cancelHyperparameterTuningJob', + 'createNasJob', + 'getNasJob', + 'listNasJobs', + 'deleteNasJob', + 'cancelNasJob', + 'getNasTrialDetail', + 'listNasTrialDetails', 'createBatchPredictionJob', 'getBatchPredictionJob', 'listBatchPredictionJobs', @@ -1537,7 +1571,10 @@ export class JobServiceClient { * @returns {string[]} List of default scopes. */ static get scopes() { - return ['https://www.googleapis.com/auth/cloud-platform']; + return [ + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/cloud-platform.read-only', + ]; } getProjectId(): Promise; @@ -2463,85 +2500,72 @@ export class JobServiceClient { ); } /** - * Creates a BatchPredictionJob. A BatchPredictionJob once created will - * right away be attempted to start. + * Creates a NasJob * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to create the - * BatchPredictionJob in. Format: `projects/{project}/locations/{location}` - * @param {google.cloud.aiplatform.v1.BatchPredictionJob} request.batchPredictionJob - * Required. The BatchPredictionJob to create. + * Required. The resource name of the Location to create the NasJob in. + * Format: `projects/{project}/locations/{location}` + * @param {google.cloud.aiplatform.v1.NasJob} request.nasJob + * Required. The NasJob to create. * @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 [BatchPredictionJob]{@link google.cloud.aiplatform.v1.BatchPredictionJob}. + * The first element of the array is an object representing [NasJob]{@link google.cloud.aiplatform.v1.NasJob}. * 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/job_service.create_batch_prediction_job.js - * region_tag:aiplatform_v1_generated_JobService_CreateBatchPredictionJob_async + * @example include:samples/generated/v1/job_service.create_nas_job.js + * region_tag:aiplatform_v1_generated_JobService_CreateNasJob_async */ - createBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, + createNasJob( + request?: protos.google.cloud.aiplatform.v1.ICreateNasJobRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - ( - | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.ICreateNasJobRequest | undefined, {} | undefined ] >; - createBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, + createNasJob( + request: protos.google.cloud.aiplatform.v1.ICreateNasJobRequest, options: CallOptions, callback: Callback< - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.ICreateNasJobRequest | null | undefined, {} | null | undefined > ): void; - createBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, + createNasJob( + request: protos.google.cloud.aiplatform.v1.ICreateNasJobRequest, callback: Callback< - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.ICreateNasJobRequest | null | undefined, {} | null | undefined > ): void; - createBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, + createNasJob( + request?: protos.google.cloud.aiplatform.v1.ICreateNasJobRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1.INasJob, + | protos.google.cloud.aiplatform.v1.ICreateNasJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.ICreateNasJobRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - ( - | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.ICreateNasJobRequest | undefined, {} | undefined ] > | void { @@ -2561,90 +2585,74 @@ export class JobServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.createBatchPredictionJob( - request, - options, - callback - ); + return this.innerApiCalls.createNasJob(request, options, callback); } /** - * Gets a BatchPredictionJob + * Gets a NasJob * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the BatchPredictionJob resource. + * Required. The name of the NasJob resource. * Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @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 [BatchPredictionJob]{@link google.cloud.aiplatform.v1.BatchPredictionJob}. + * The first element of the array is an object representing [NasJob]{@link google.cloud.aiplatform.v1.NasJob}. * 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/job_service.get_batch_prediction_job.js - * region_tag:aiplatform_v1_generated_JobService_GetBatchPredictionJob_async + * @example include:samples/generated/v1/job_service.get_nas_job.js + * region_tag:aiplatform_v1_generated_JobService_GetNasJob_async */ - getBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, + getNasJob( + request?: protos.google.cloud.aiplatform.v1.IGetNasJobRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - ( - | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.IGetNasJobRequest | undefined, {} | undefined ] >; - getBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, + getNasJob( + request: protos.google.cloud.aiplatform.v1.IGetNasJobRequest, options: CallOptions, callback: Callback< - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.IGetNasJobRequest | null | undefined, {} | null | undefined > ): void; - getBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, + getNasJob( + request: protos.google.cloud.aiplatform.v1.IGetNasJobRequest, callback: Callback< - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.IGetNasJobRequest | null | undefined, {} | null | undefined > ): void; - getBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, + getNasJob( + request?: protos.google.cloud.aiplatform.v1.IGetNasJobRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1.INasJob, + | protos.google.cloud.aiplatform.v1.IGetNasJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.IGetNasJobRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.aiplatform.v1.IBatchPredictionJob, - ( - | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1.INasJob, + protos.google.cloud.aiplatform.v1.IGetNasJobRequest | undefined, {} | undefined ] > | void { @@ -2664,28 +2672,29 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.getBatchPredictionJob(request, options, callback); + return this.innerApiCalls.getNasJob(request, options, callback); } /** - * Cancels a BatchPredictionJob. - * - * Starts asynchronous cancellation on the BatchPredictionJob. The server - * makes the best effort to cancel the job, but success is not + * Cancels a NasJob. + * Starts asynchronous cancellation on the NasJob. The server + * makes a best effort to cancel the job, but success is not * guaranteed. Clients can use - * {@link google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob|JobService.GetBatchPredictionJob} - * or other methods to check whether the cancellation succeeded or whether the - * job completed despite cancellation. On a successful cancellation, - * the BatchPredictionJob is not deleted;instead its - * {@link google.cloud.aiplatform.v1.BatchPredictionJob.state|BatchPredictionJob.state} - * is set to `CANCELLED`. Any files already outputted by the job are not - * deleted. + * {@link google.cloud.aiplatform.v1.JobService.GetNasJob|JobService.GetNasJob} or + * other methods to check whether the cancellation succeeded or whether the + * job completed despite cancellation. On successful cancellation, + * the NasJob is not deleted; instead it becomes a job with + * a {@link google.cloud.aiplatform.v1.NasJob.error|NasJob.error} value with a + * {@link google.rpc.Status.code|google.rpc.Status.code} of 1, corresponding to + * `Code.CANCELLED`, and + * {@link google.cloud.aiplatform.v1.NasJob.state|NasJob.state} is set to + * `CANCELLED`. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the BatchPredictionJob to cancel. + * Required. The name of the NasJob to cancel. * Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @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. @@ -2693,68 +2702,56 @@ export class JobServiceClient { * 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/job_service.cancel_batch_prediction_job.js - * region_tag:aiplatform_v1_generated_JobService_CancelBatchPredictionJob_async + * @example include:samples/generated/v1/job_service.cancel_nas_job.js + * region_tag:aiplatform_v1_generated_JobService_CancelNasJob_async */ - cancelBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, + cancelNasJob( + request?: protos.google.cloud.aiplatform.v1.ICancelNasJobRequest, options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, - ( - | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1.ICancelNasJobRequest | undefined, {} | undefined ] >; - cancelBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, + cancelNasJob( + request: protos.google.cloud.aiplatform.v1.ICancelNasJobRequest, options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.ICancelNasJobRequest | null | undefined, {} | null | undefined > ): void; - cancelBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, + cancelNasJob( + request: protos.google.cloud.aiplatform.v1.ICancelNasJobRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.ICancelNasJobRequest | null | undefined, {} | null | undefined > ): void; - cancelBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, + cancelNasJob( + request?: protos.google.cloud.aiplatform.v1.ICancelNasJobRequest, optionsOrCallback?: | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest + | protos.google.cloud.aiplatform.v1.ICancelNasJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest - | null - | undefined, + protos.google.cloud.aiplatform.v1.ICancelNasJobRequest | null | undefined, {} | null | undefined > ): Promise< [ protos.google.protobuf.IEmpty, - ( - | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1.ICancelNasJobRequest | undefined, {} | undefined ] > | void { @@ -2774,92 +2771,80 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.cancelBatchPredictionJob( - request, - options, - callback - ); + return this.innerApiCalls.cancelNasJob(request, options, callback); } /** - * Creates a ModelDeploymentMonitoringJob. It will run periodically on a - * configured interval. + * Gets a NasTrialDetail. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The parent of the ModelDeploymentMonitoringJob. - * Format: `projects/{project}/locations/{location}` - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} request.modelDeploymentMonitoringJob - * Required. The ModelDeploymentMonitoringJob to create + * @param {string} request.name + * Required. The name of the NasTrialDetail resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` * @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 [ModelDeploymentMonitoringJob]{@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob}. + * The first element of the array is an object representing [NasTrialDetail]{@link google.cloud.aiplatform.v1.NasTrialDetail}. * 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/job_service.create_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1_generated_JobService_CreateModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1/job_service.get_nas_trial_detail.js + * region_tag:aiplatform_v1_generated_JobService_GetNasTrialDetail_async */ - createModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, + getNasTrialDetail( + request?: protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - ( - | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1.INasTrialDetail, + protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest | undefined, {} | undefined ] >; - createModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, + getNasTrialDetail( + request: protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest, options: CallOptions, callback: Callback< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.INasTrialDetail, + | protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest | null | undefined, {} | null | undefined > ): void; - createModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, + getNasTrialDetail( + request: protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest, callback: Callback< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.INasTrialDetail, + | protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest | null | undefined, {} | null | undefined > ): void; - createModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, + getNasTrialDetail( + request?: protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.INasTrialDetail, + | protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.INasTrialDetail, + | protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - ( - | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1.INasTrialDetail, + protos.google.cloud.aiplatform.v1.IGetNasTrialDetailRequest | undefined, {} | undefined ] > | void { @@ -2876,91 +2861,89 @@ export class JobServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.createModelDeploymentMonitoringJob( - request, - options, - callback - ); + return this.innerApiCalls.getNasTrialDetail(request, options, callback); } /** - * Gets a ModelDeploymentMonitoringJob. + * Creates a BatchPredictionJob. A BatchPredictionJob once created will + * right away be attempted to start. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the ModelDeploymentMonitoringJob. - * Format: - * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @param {string} request.parent + * Required. The resource name of the Location to create the + * BatchPredictionJob in. Format: `projects/{project}/locations/{location}` + * @param {google.cloud.aiplatform.v1.BatchPredictionJob} request.batchPredictionJob + * Required. The BatchPredictionJob to create. * @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 [ModelDeploymentMonitoringJob]{@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob}. + * The first element of the array is an object representing [BatchPredictionJob]{@link google.cloud.aiplatform.v1.BatchPredictionJob}. * 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/job_service.get_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1_generated_JobService_GetModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1/job_service.create_batch_prediction_job.js + * region_tag:aiplatform_v1_generated_JobService_CreateBatchPredictionJob_async */ - getModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, + createBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, ( - | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest | undefined ), {} | undefined ] >; - getModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, + createBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, options: CallOptions, callback: Callback< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - getModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, + createBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, callback: Callback< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - getModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, + createBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, ( - | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.ICreateBatchPredictionJobRequest | undefined ), {} | undefined @@ -2979,94 +2962,91 @@ export class JobServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.getModelDeploymentMonitoringJob( + return this.innerApiCalls.createBatchPredictionJob( request, options, callback ); } /** - * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server - * makes a best effort to cancel the job. Will mark - * {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.state|ModelDeploymentMonitoringJob.state} - * to 'PAUSED'. + * Gets a BatchPredictionJob * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the ModelDeploymentMonitoringJob to pause. + * Required. The name of the BatchPredictionJob resource. * Format: - * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @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 [Empty]{@link google.protobuf.Empty}. + * The first element of the array is an object representing [BatchPredictionJob]{@link google.cloud.aiplatform.v1.BatchPredictionJob}. * 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/job_service.pause_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1_generated_JobService_PauseModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1/job_service.get_batch_prediction_job.js + * region_tag:aiplatform_v1_generated_JobService_GetBatchPredictionJob_async */ - pauseModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, + getBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, options?: CallOptions ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, ( - | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest | undefined ), {} | undefined ] >; - pauseModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, + getBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, options: CallOptions, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - pauseModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, + getBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - pauseModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, + getBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IBatchPredictionJob, ( - | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.IGetBatchPredictionJobRequest | undefined ), {} | undefined @@ -3088,23 +3068,28 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.pauseModelDeploymentMonitoringJob( - request, - options, - callback - ); + return this.innerApiCalls.getBatchPredictionJob(request, options, callback); } /** - * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from - * next scheduled time. A deleted ModelDeploymentMonitoringJob can't be - * resumed. + * Cancels a BatchPredictionJob. + * + * Starts asynchronous cancellation on the BatchPredictionJob. The server + * makes the best effort to cancel the job, but success is not + * guaranteed. Clients can use + * {@link google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob|JobService.GetBatchPredictionJob} + * or other methods to check whether the cancellation succeeded or whether the + * job completed despite cancellation. On a successful cancellation, + * the BatchPredictionJob is not deleted;instead its + * {@link google.cloud.aiplatform.v1.BatchPredictionJob.state|BatchPredictionJob.state} + * is set to `CANCELLED`. Any files already outputted by the job are not + * deleted. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the ModelDeploymentMonitoringJob to resume. + * Required. The name of the BatchPredictionJob to cancel. * Format: - * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @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. @@ -3112,57 +3097,57 @@ export class JobServiceClient { * 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/job_service.resume_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1_generated_JobService_ResumeModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1/job_service.cancel_batch_prediction_job.js + * region_tag:aiplatform_v1_generated_JobService_CancelBatchPredictionJob_async */ - resumeModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, + cancelBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, ( - | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest | undefined ), {} | undefined ] >; - resumeModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, + cancelBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - resumeModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, + cancelBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - resumeModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, + cancelBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest, optionsOrCallback?: | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest | null | undefined, {} | null | undefined @@ -3171,7 +3156,7 @@ export class JobServiceClient { [ protos.google.protobuf.IEmpty, ( - | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1.ICancelBatchPredictionJobRequest | undefined ), {} | undefined @@ -3193,97 +3178,92 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.resumeModelDeploymentMonitoringJob( + return this.innerApiCalls.cancelBatchPredictionJob( request, options, callback ); } - /** - * Deletes a CustomJob. + * Creates a ModelDeploymentMonitoringJob. It will run periodically on a + * configured interval. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The name of the CustomJob resource to be deleted. - * Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @param {string} request.parent + * Required. The parent of the ModelDeploymentMonitoringJob. + * Format: `projects/{project}/locations/{location}` + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} request.modelDeploymentMonitoringJob + * Required. The ModelDeploymentMonitoringJob to create * @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. + * The first element of the array is an object representing [ModelDeploymentMonitoringJob]{@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/job_service.delete_custom_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteCustomJob_async + * @example include:samples/generated/v1/job_service.create_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1_generated_JobService_CreateModelDeploymentMonitoringJob_async */ - deleteCustomJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteCustomJobRequest, + createModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + ( + | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] >; - deleteCustomJob( - request: protos.google.cloud.aiplatform.v1.IDeleteCustomJobRequest, + createModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteCustomJob( - request: protos.google.cloud.aiplatform.v1.IDeleteCustomJobRequest, + createModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteCustomJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteCustomJobRequest, + createModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + ( + | protos.google.cloud.aiplatform.v1.ICreateModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] > | void { @@ -3300,130 +3280,93 @@ export class JobServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.deleteCustomJob(request, options, callback); - } - /** - * Check the status of the long running operation returned by `deleteCustomJob()`. - * @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/job_service.delete_custom_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteCustomJob_async - */ - async checkDeleteCustomJobProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.DeleteOperationMetadata - > - > { - 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.deleteCustomJob, - this._gaxModule.createDefaultBackoffSettings() + return this.innerApiCalls.createModelDeploymentMonitoringJob( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.DeleteOperationMetadata - >; } /** - * Deletes a DataLabelingJob. + * Gets a ModelDeploymentMonitoringJob. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the DataLabelingJob to be deleted. + * Required. The resource name of the ModelDeploymentMonitoringJob. * Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` * @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. + * The first element of the array is an object representing [ModelDeploymentMonitoringJob]{@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/job_service.delete_data_labeling_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteDataLabelingJob_async + * @example include:samples/generated/v1/job_service.get_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1_generated_JobService_GetModelDeploymentMonitoringJob_async */ - deleteDataLabelingJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest, + getModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + ( + | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] >; - deleteDataLabelingJob( - request: protos.google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest, + getModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteDataLabelingJob( - request: protos.google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest, + getModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteDataLabelingJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest, + getModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + ( + | protos.google.cloud.aiplatform.v1.IGetModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] > | void { @@ -3443,127 +3386,93 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.deleteDataLabelingJob(request, options, callback); - } - /** - * Check the status of the long running operation returned by `deleteDataLabelingJob()`. - * @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/job_service.delete_data_labeling_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteDataLabelingJob_async - */ - async checkDeleteDataLabelingJobProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.DeleteOperationMetadata - > - > { - 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.deleteDataLabelingJob, - this._gaxModule.createDefaultBackoffSettings() + return this.innerApiCalls.getModelDeploymentMonitoringJob( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.DeleteOperationMetadata - >; } /** - * Deletes a HyperparameterTuningJob. + * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server + * makes a best effort to cancel the job. Will mark + * {@link google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.state|ModelDeploymentMonitoringJob.state} + * to 'PAUSED'. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the HyperparameterTuningJob resource to be deleted. + * Required. The resource name of the ModelDeploymentMonitoringJob to pause. * Format: - * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` * @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. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteHyperparameterTuningJob_async + * @example include:samples/generated/v1/job_service.pause_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1_generated_JobService_PauseModelDeploymentMonitoringJob_async */ - deleteHyperparameterTuningJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest, + pauseModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] >; - deleteHyperparameterTuningJob( - request: protos.google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest, + pauseModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteHyperparameterTuningJob( - request: protos.google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest, + pauseModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteHyperparameterTuningJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest, + pauseModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.aiplatform.v1.IPauseModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] > | void { @@ -3583,57 +3492,127 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.deleteHyperparameterTuningJob( + return this.innerApiCalls.pauseModelDeploymentMonitoringJob( request, options, callback ); } /** - * Check the status of the long running operation returned by `deleteHyperparameterTuningJob()`. - * @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. + * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from + * next scheduled time. A deleted ModelDeploymentMonitoringJob can't be + * resumed. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the ModelDeploymentMonitoringJob to resume. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @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 [Empty]{@link google.protobuf.Empty}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteHyperparameterTuningJob_async + * @example include:samples/generated/v1/job_service.resume_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1_generated_JobService_ResumeModelDeploymentMonitoringJob_async */ - async checkDeleteHyperparameterTuningJobProgress( - name: string + resumeModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, + options?: CallOptions ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.DeleteOperationMetadata - > - > { - 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.deleteHyperparameterTuningJob, - this._gaxModule.createDefaultBackoffSettings() + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | undefined + ), + {} | undefined + ] + >; + resumeModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | null + | undefined, + {} | null | undefined + > + ): void; + resumeModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | null + | undefined, + {} | null | undefined + > + ): void; + resumeModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.aiplatform.v1.IResumeModelDeploymentMonitoringJobRequest + | 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({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.resumeModelDeploymentMonitoringJob( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.DeleteOperationMetadata - >; } + /** - * Deletes a BatchPredictionJob. Can only be called on jobs that already - * finished. + * Deletes a CustomJob. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the BatchPredictionJob resource to be deleted. + * Required. The name of the CustomJob resource to be deleted. * Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/customJobs/{custom_job}` * @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. @@ -3643,11 +3622,11 @@ export class JobServiceClient { * 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/job_service.delete_batch_prediction_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteBatchPredictionJob_async + * @example include:samples/generated/v1/job_service.delete_custom_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteCustomJob_async */ - deleteBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, + deleteCustomJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteCustomJobRequest, options?: CallOptions ): Promise< [ @@ -3659,8 +3638,8 @@ export class JobServiceClient { {} | undefined ] >; - deleteBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, + deleteCustomJob( + request: protos.google.cloud.aiplatform.v1.IDeleteCustomJobRequest, options: CallOptions, callback: Callback< LROperation< @@ -3671,8 +3650,8 @@ export class JobServiceClient { {} | null | undefined > ): void; - deleteBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, + deleteCustomJob( + request: protos.google.cloud.aiplatform.v1.IDeleteCustomJobRequest, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -3682,8 +3661,8 @@ export class JobServiceClient { {} | null | undefined > ): void; - deleteBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, + deleteCustomJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteCustomJobRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3728,14 +3707,10 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.deleteBatchPredictionJob( - request, - options, - callback - ); + return this.innerApiCalls.deleteCustomJob(request, options, callback); } /** - * Check the status of the long running operation returned by `deleteBatchPredictionJob()`. + * Check the status of the long running operation returned by `deleteCustomJob()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. @@ -3743,10 +3718,10 @@ export class JobServiceClient { * 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/job_service.delete_batch_prediction_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteBatchPredictionJob_async + * @example include:samples/generated/v1/job_service.delete_custom_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteCustomJob_async */ - async checkDeleteBatchPredictionJobProgress( + async checkDeleteCustomJobProgress( name: string ): Promise< LROperation< @@ -3761,7 +3736,7 @@ export class JobServiceClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.deleteBatchPredictionJob, + this.descriptors.longrunning.deleteCustomJob, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< @@ -3770,40 +3745,14 @@ export class JobServiceClient { >; } /** - * Updates a ModelDeploymentMonitoringJob. + * Deletes a DataLabelingJob. * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} request.modelDeploymentMonitoringJob - * Required. The model monitoring configuration which replaces the resource on - * the server. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The update mask is used to specify the fields to be overwritten - * in the ModelDeploymentMonitoringJob resource by the update. The fields - * specified in the update_mask are relative to the resource, not the full - * request. A field will be overwritten if it is in the mask. If the user does - * not provide a mask then only the non-empty fields present in the request - * will be overwritten. Set the update_mask to `*` to override all fields. For - * the objective config, the user can either provide the update mask for - * model_deployment_monitoring_objective_configs or any combination of its - * nested fields, such as: - * model_deployment_monitoring_objective_configs.objective_config.training_dataset. - * - * Updatable fields: - * - * * `display_name` - * * `model_deployment_monitoring_schedule_config` - * * `model_monitoring_alert_config` - * * `logging_sampling_strategy` - * * `labels` - * * `log_ttl` - * * `enable_monitoring_pipeline_logs` - * . and - * * `model_deployment_monitoring_objective_configs` - * . or - * * `model_deployment_monitoring_objective_configs.objective_config.training_dataset` - * * `model_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config` - * * `model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config` + * @param {string} request.name + * Required. The name of the DataLabelingJob to be deleted. + * Format: + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @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. @@ -3813,61 +3762,61 @@ export class JobServiceClient { * 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/job_service.update_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1_generated_JobService_UpdateModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1/job_service.delete_data_labeling_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteDataLabelingJob_async */ - updateModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, + deleteDataLabelingJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined ] >; - updateModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, + deleteDataLabelingJob( + request: protos.google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - updateModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, + deleteDataLabelingJob( + request: protos.google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest, callback: Callback< LROperation< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - updateModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, + deleteDataLabelingJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteDataLabelingJobRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined >, callback?: Callback< LROperation< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined @@ -3875,8 +3824,8 @@ export class JobServiceClient { ): Promise< [ LROperation< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined @@ -3895,18 +3844,13 @@ export class JobServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'model_deployment_monitoring_job.name': - request.modelDeploymentMonitoringJob!.name ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.updateModelDeploymentMonitoringJob( - request, - options, - callback - ); + return this.innerApiCalls.deleteDataLabelingJob(request, options, callback); } /** - * Check the status of the long running operation returned by `updateModelDeploymentMonitoringJob()`. + * Check the status of the long running operation returned by `deleteDataLabelingJob()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. @@ -3914,15 +3858,15 @@ export class JobServiceClient { * 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/job_service.update_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1_generated_JobService_UpdateModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1/job_service.delete_data_labeling_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteDataLabelingJob_async */ - async checkUpdateModelDeploymentMonitoringJobProgress( + async checkDeleteDataLabelingJobProgress( name: string ): Promise< LROperation< - protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { const request = @@ -3932,23 +3876,23 @@ export class JobServiceClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.updateModelDeploymentMonitoringJob, + this.descriptors.longrunning.deleteDataLabelingJob, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata >; } /** - * Deletes a ModelDeploymentMonitoringJob. + * Deletes a HyperparameterTuningJob. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the model monitoring job to delete. + * Required. The name of the HyperparameterTuningJob resource to be deleted. * Format: - * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` * @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. @@ -3958,11 +3902,11 @@ export class JobServiceClient { * 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/job_service.delete_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteHyperparameterTuningJob_async */ - deleteModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, + deleteHyperparameterTuningJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest, options?: CallOptions ): Promise< [ @@ -3974,8 +3918,8 @@ export class JobServiceClient { {} | undefined ] >; - deleteModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, + deleteHyperparameterTuningJob( + request: protos.google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest, options: CallOptions, callback: Callback< LROperation< @@ -3986,8 +3930,8 @@ export class JobServiceClient { {} | null | undefined > ): void; - deleteModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, + deleteHyperparameterTuningJob( + request: protos.google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -3997,8 +3941,152 @@ export class JobServiceClient { {} | null | undefined > ): void; - deleteModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, + deleteHyperparameterTuningJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteHyperparameterTuningJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + 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({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteHyperparameterTuningJob( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `deleteHyperparameterTuningJob()`. + * @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/job_service.delete_hyperparameter_tuning_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteHyperparameterTuningJob_async + */ + async checkDeleteHyperparameterTuningJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + > + > { + 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.deleteHyperparameterTuningJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + >; + } + /** + * Deletes a NasJob. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the NasJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * @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/job_service.delete_nas_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteNasJob_async + */ + deleteNasJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteNasJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteNasJob( + request: protos.google.cloud.aiplatform.v1.IDeleteNasJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteNasJob( + request: protos.google.cloud.aiplatform.v1.IDeleteNasJobRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteNasJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteNasJobRequest, optionsOrCallback?: | CallOptions | Callback< @@ -4028,70 +4116,1085 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } + 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({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteNasJob(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteNasJob()`. + * @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/job_service.delete_nas_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteNasJob_async + */ + async checkDeleteNasJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + > + > { + 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.deleteNasJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + >; + } + /** + * Deletes a BatchPredictionJob. Can only be called on jobs that already + * finished. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the BatchPredictionJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * @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/job_service.delete_batch_prediction_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteBatchPredictionJob_async + */ + deleteBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteBatchPredictionJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + 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({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteBatchPredictionJob( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `deleteBatchPredictionJob()`. + * @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/job_service.delete_batch_prediction_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteBatchPredictionJob_async + */ + async checkDeleteBatchPredictionJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + > + > { + 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.deleteBatchPredictionJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + >; + } + /** + * Updates a ModelDeploymentMonitoringJob. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob} request.modelDeploymentMonitoringJob + * Required. The model monitoring configuration which replaces the resource on + * the server. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The update mask is used to specify the fields to be overwritten + * in the ModelDeploymentMonitoringJob resource by the update. The fields + * specified in the update_mask are relative to the resource, not the full + * request. A field will be overwritten if it is in the mask. If the user does + * not provide a mask then only the non-empty fields present in the request + * will be overwritten. Set the update_mask to `*` to override all fields. For + * the objective config, the user can either provide the update mask for + * model_deployment_monitoring_objective_configs or any combination of its + * nested fields, such as: + * model_deployment_monitoring_objective_configs.objective_config.training_dataset. + * + * Updatable fields: + * + * * `display_name` + * * `model_deployment_monitoring_schedule_config` + * * `model_monitoring_alert_config` + * * `logging_sampling_strategy` + * * `labels` + * * `log_ttl` + * * `enable_monitoring_pipeline_logs` + * . and + * * `model_deployment_monitoring_objective_configs` + * . or + * * `model_deployment_monitoring_objective_configs.objective_config.training_dataset` + * * `model_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config` + * * `model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config` + * @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/job_service.update_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1_generated_JobService_UpdateModelDeploymentMonitoringJob_async + */ + updateModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + updateModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + 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({ + 'model_deployment_monitoring_job.name': + request.modelDeploymentMonitoringJob!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateModelDeploymentMonitoringJob( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `updateModelDeploymentMonitoringJob()`. + * @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/job_service.update_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1_generated_JobService_UpdateModelDeploymentMonitoringJob_async + */ + async checkUpdateModelDeploymentMonitoringJobProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + > + > { + 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.updateModelDeploymentMonitoringJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobOperationMetadata + >; + } + /** + * Deletes a ModelDeploymentMonitoringJob. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the model monitoring job to delete. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @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/job_service.delete_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteModelDeploymentMonitoringJob_async + */ + deleteModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1.IDeleteModelDeploymentMonitoringJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >, + 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({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteModelDeploymentMonitoringJob( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `deleteModelDeploymentMonitoringJob()`. + * @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/job_service.delete_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1_generated_JobService_DeleteModelDeploymentMonitoringJob_async + */ + async checkDeleteModelDeploymentMonitoringJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + > + > { + 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.deleteModelDeploymentMonitoringJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata + >; + } + /** + * Lists CustomJobs in a Location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the CustomJobs from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * call. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @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 Array of [CustomJob]{@link google.cloud.aiplatform.v1.CustomJob}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listCustomJobsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listCustomJobs( + request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ICustomJob[], + protos.google.cloud.aiplatform.v1.IListCustomJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + ] + >; + listCustomJobs( + request: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + | protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.ICustomJob + > + ): void; + listCustomJobs( + request: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + | protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.ICustomJob + > + ): void; + listCustomJobs( + request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + | protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.ICustomJob + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + | protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.ICustomJob + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ICustomJob[], + protos.google.cloud.aiplatform.v1.IListCustomJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + ] + > | 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.listCustomJobs(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the CustomJobs from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * call. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [CustomJob]{@link google.cloud.aiplatform.v1.CustomJob} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listCustomJobsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listCustomJobsStream( + request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + 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 ?? '', + }); + const defaultCallSettings = this._defaults['listCustomJobs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listCustomJobs.createStream( + this.innerApiCalls.listCustomJobs as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listCustomJobs`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the CustomJobs from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * call. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [CustomJob]{@link google.cloud.aiplatform.v1.CustomJob}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/job_service.list_custom_jobs.js + * region_tag:aiplatform_v1_generated_JobService_ListCustomJobs_async + */ + listCustomJobsAsync( + request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + 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 ?? '', + }); + const defaultCallSettings = this._defaults['listCustomJobs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listCustomJobs.asyncIterate( + this.innerApiCalls['listCustomJobs'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists DataLabelingJobs in a Location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent of the DataLabelingJob. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. FieldMask represents a set of + * symbolic field paths. For example, the mask can be `paths: "name"`. The + * "name" here is a field in DataLabelingJob. + * If this field is not set, all fields of the DataLabelingJob are returned. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order by + * default. + * Use `desc` after a field name for descending. + * @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 Array of [DataLabelingJob]{@link google.cloud.aiplatform.v1.DataLabelingJob}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listDataLabelingJobsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDataLabelingJobs( + request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IDataLabelingJob[], + protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + ] + >; + listDataLabelingJobs( + request: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + | protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IDataLabelingJob + > + ): void; + listDataLabelingJobs( + request: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + | protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IDataLabelingJob + > + ): void; + listDataLabelingJobs( + request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + | protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IDataLabelingJob + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + | protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IDataLabelingJob + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IDataLabelingJob[], + protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + ] + > | 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.listDataLabelingJobs(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent of the DataLabelingJob. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. FieldMask represents a set of + * symbolic field paths. For example, the mask can be `paths: "name"`. The + * "name" here is a field in DataLabelingJob. + * If this field is not set, all fields of the DataLabelingJob are returned. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order by + * default. + * Use `desc` after a field name for descending. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [DataLabelingJob]{@link google.cloud.aiplatform.v1.DataLabelingJob} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listDataLabelingJobsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDataLabelingJobsStream( + request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + 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 ?? '', + }); + const defaultCallSettings = this._defaults['listDataLabelingJobs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listDataLabelingJobs.createStream( + this.innerApiCalls.listDataLabelingJobs as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listDataLabelingJobs`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent of the DataLabelingJob. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. FieldMask represents a set of + * symbolic field paths. For example, the mask can be `paths: "name"`. The + * "name" here is a field in DataLabelingJob. + * If this field is not set, all fields of the DataLabelingJob are returned. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order by + * default. + * Use `desc` after a field name for descending. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [DataLabelingJob]{@link google.cloud.aiplatform.v1.DataLabelingJob}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/job_service.list_data_labeling_jobs.js + * region_tag:aiplatform_v1_generated_JobService_ListDataLabelingJobs_async + */ + listDataLabelingJobsAsync( + request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); + const defaultCallSettings = this._defaults['listDataLabelingJobs']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.innerApiCalls.deleteModelDeploymentMonitoringJob( - request, - options, - callback - ); - } - /** - * Check the status of the long running operation returned by `deleteModelDeploymentMonitoringJob()`. - * @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/job_service.delete_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1_generated_JobService_DeleteModelDeploymentMonitoringJob_async - */ - async checkDeleteModelDeploymentMonitoringJobProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.DeleteOperationMetadata - > - > { - 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.deleteModelDeploymentMonitoringJob, - this._gaxModule.createDefaultBackoffSettings() - ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1.DeleteOperationMetadata - >; + return this.descriptors.page.listDataLabelingJobs.asyncIterate( + this.innerApiCalls['listDataLabelingJobs'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; } /** - * Lists CustomJobs in a Location. + * Lists HyperparameterTuningJobs in a Location. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the CustomJobs from. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the + * HyperparameterTuningJobs from. Format: + * `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4118,79 +5221,79 @@ export class JobServiceClient { * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * {@link google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} * call. * @param {google.protobuf.FieldMask} request.readMask * Mask specifying which fields to read. * @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 Array of [CustomJob]{@link google.cloud.aiplatform.v1.CustomJob}. + * The first element of the array is Array of [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1.HyperparameterTuningJob}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listCustomJobsAsync()` + * We recommend using `listHyperparameterTuningJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listCustomJobs( - request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + listHyperparameterTuningJobs( + request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1.ICustomJob[], - protos.google.cloud.aiplatform.v1.IListCustomJobsRequest | null, - protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[], + protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse ] >; - listCustomJobs( - request: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + listHyperparameterTuningJobs( + request: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, - | protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + | protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.ICustomJob + protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob > ): void; - listCustomJobs( - request: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + listHyperparameterTuningJobs( + request: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, - | protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + | protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.ICustomJob + protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob > ): void; - listCustomJobs( - request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + listHyperparameterTuningJobs( + request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, - | protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + | protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.ICustomJob + protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob >, callback?: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, - | protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + | protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.ICustomJob + protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob > ): Promise< [ - protos.google.cloud.aiplatform.v1.ICustomJob[], - protos.google.cloud.aiplatform.v1.IListCustomJobsRequest | null, - protos.google.cloud.aiplatform.v1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[], + protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse ] > | void { request = request || {}; @@ -4209,7 +5312,11 @@ export class JobServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listCustomJobs(request, options, callback); + return this.innerApiCalls.listHyperparameterTuningJobs( + request, + options, + callback + ); } /** @@ -4217,8 +5324,9 @@ export class JobServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the CustomJobs from. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the + * HyperparameterTuningJobs from. Format: + * `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4245,26 +5353,26 @@ export class JobServiceClient { * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * {@link google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} * call. * @param {google.protobuf.FieldMask} request.readMask * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [CustomJob]{@link google.cloud.aiplatform.v1.CustomJob} on 'data' event. + * An object stream which emits an object representing [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1.HyperparameterTuningJob} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listCustomJobsAsync()` + * We recommend using `listHyperparameterTuningJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listCustomJobsStream( - request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + listHyperparameterTuningJobsStream( + request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -4275,25 +5383,26 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listCustomJobs']; + const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCustomJobs.createStream( - this.innerApiCalls.listCustomJobs as GaxCall, + return this.descriptors.page.listHyperparameterTuningJobs.createStream( + this.innerApiCalls.listHyperparameterTuningJobs as GaxCall, request, callSettings ); } /** - * Equivalent to `listCustomJobs`, but returns an iterable object. + * Equivalent to `listHyperparameterTuningJobs`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the CustomJobs from. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the + * HyperparameterTuningJobs from. Format: + * `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4320,9 +5429,9 @@ export class JobServiceClient { * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * {@link google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} * call. * @param {google.protobuf.FieldMask} request.readMask * Mask specifying which fields to read. @@ -4331,18 +5440,18 @@ export class JobServiceClient { * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [CustomJob]{@link google.cloud.aiplatform.v1.CustomJob}. The API will be called under the hood as needed, once per the page, + * [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1.HyperparameterTuningJob}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1/job_service.list_custom_jobs.js - * region_tag:aiplatform_v1_generated_JobService_ListCustomJobs_async + * @example include:samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js + * region_tag:aiplatform_v1_generated_JobService_ListHyperparameterTuningJobs_async */ - listCustomJobsAsync( - request?: protos.google.cloud.aiplatform.v1.IListCustomJobsRequest, + listHyperparameterTuningJobsAsync( + request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -4351,23 +5460,23 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listCustomJobs']; + const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCustomJobs.asyncIterate( - this.innerApiCalls['listCustomJobs'] as GaxCall, + return this.descriptors.page.listHyperparameterTuningJobs.asyncIterate( + this.innerApiCalls['listHyperparameterTuningJobs'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists DataLabelingJobs in a Location. + * Lists NasJobs in a Location. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent of the DataLabelingJob. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the NasJobs + * from. Format: `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4393,82 +5502,74 @@ export class JobServiceClient { * The standard list page size. * @param {string} request.pageToken * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListNasJobsResponse.next_page_token|ListNasJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1.JobService.ListNasJobs|JobService.ListNasJobs} + * call. * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. FieldMask represents a set of - * symbolic field paths. For example, the mask can be `paths: "name"`. The - * "name" here is a field in DataLabelingJob. - * If this field is not set, all fields of the DataLabelingJob are returned. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order by - * default. - * Use `desc` after a field name for descending. + * Mask specifying which fields to read. * @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 Array of [DataLabelingJob]{@link google.cloud.aiplatform.v1.DataLabelingJob}. + * The first element of the array is Array of [NasJob]{@link google.cloud.aiplatform.v1.NasJob}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listDataLabelingJobsAsync()` + * We recommend using `listNasJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDataLabelingJobs( - request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + listNasJobs( + request?: protos.google.cloud.aiplatform.v1.IListNasJobsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1.IDataLabelingJob[], - protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest | null, - protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + protos.google.cloud.aiplatform.v1.INasJob[], + protos.google.cloud.aiplatform.v1.IListNasJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListNasJobsResponse ] >; - listDataLabelingJobs( - request: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + listNasJobs( + request: protos.google.cloud.aiplatform.v1.IListNasJobsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, - | protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse - | null - | undefined, - protos.google.cloud.aiplatform.v1.IDataLabelingJob + protos.google.cloud.aiplatform.v1.IListNasJobsRequest, + protos.google.cloud.aiplatform.v1.IListNasJobsResponse | null | undefined, + protos.google.cloud.aiplatform.v1.INasJob > ): void; - listDataLabelingJobs( - request: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + listNasJobs( + request: protos.google.cloud.aiplatform.v1.IListNasJobsRequest, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, - | protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse - | null - | undefined, - protos.google.cloud.aiplatform.v1.IDataLabelingJob + protos.google.cloud.aiplatform.v1.IListNasJobsRequest, + protos.google.cloud.aiplatform.v1.IListNasJobsResponse | null | undefined, + protos.google.cloud.aiplatform.v1.INasJob > ): void; - listDataLabelingJobs( - request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + listNasJobs( + request?: protos.google.cloud.aiplatform.v1.IListNasJobsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, - | protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + protos.google.cloud.aiplatform.v1.IListNasJobsRequest, + | protos.google.cloud.aiplatform.v1.IListNasJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.IDataLabelingJob + protos.google.cloud.aiplatform.v1.INasJob >, callback?: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, - | protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse - | null - | undefined, - protos.google.cloud.aiplatform.v1.IDataLabelingJob + protos.google.cloud.aiplatform.v1.IListNasJobsRequest, + protos.google.cloud.aiplatform.v1.IListNasJobsResponse | null | undefined, + protos.google.cloud.aiplatform.v1.INasJob > - ): Promise< - [ - protos.google.cloud.aiplatform.v1.IDataLabelingJob[], - protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest | null, - protos.google.cloud.aiplatform.v1.IListDataLabelingJobsResponse + ): Promise< + [ + protos.google.cloud.aiplatform.v1.INasJob[], + protos.google.cloud.aiplatform.v1.IListNasJobsRequest | null, + protos.google.cloud.aiplatform.v1.IListNasJobsResponse ] > | void { request = request || {}; @@ -4487,7 +5588,7 @@ export class JobServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listDataLabelingJobs(request, options, callback); + return this.innerApiCalls.listNasJobs(request, options, callback); } /** @@ -4495,8 +5596,8 @@ export class JobServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent of the DataLabelingJob. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the NasJobs + * from. Format: `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4522,29 +5623,27 @@ export class JobServiceClient { * The standard list page size. * @param {string} request.pageToken * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListNasJobsResponse.next_page_token|ListNasJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1.JobService.ListNasJobs|JobService.ListNasJobs} + * call. * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. FieldMask represents a set of - * symbolic field paths. For example, the mask can be `paths: "name"`. The - * "name" here is a field in DataLabelingJob. - * If this field is not set, all fields of the DataLabelingJob are returned. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order by - * default. - * Use `desc` after a field name for descending. + * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [DataLabelingJob]{@link google.cloud.aiplatform.v1.DataLabelingJob} on 'data' event. + * An object stream which emits an object representing [NasJob]{@link google.cloud.aiplatform.v1.NasJob} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listDataLabelingJobsAsync()` + * We recommend using `listNasJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDataLabelingJobsStream( - request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + listNasJobsStream( + request?: protos.google.cloud.aiplatform.v1.IListNasJobsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -4555,25 +5654,25 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listDataLabelingJobs']; + const defaultCallSettings = this._defaults['listNasJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDataLabelingJobs.createStream( - this.innerApiCalls.listDataLabelingJobs as GaxCall, + return this.descriptors.page.listNasJobs.createStream( + this.innerApiCalls.listNasJobs as GaxCall, request, callSettings ); } /** - * Equivalent to `listDataLabelingJobs`, but returns an iterable object. + * Equivalent to `listNasJobs`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent of the DataLabelingJob. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the NasJobs + * from. Format: `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4599,32 +5698,30 @@ export class JobServiceClient { * The standard list page size. * @param {string} request.pageToken * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListNasJobsResponse.next_page_token|ListNasJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1.JobService.ListNasJobs|JobService.ListNasJobs} + * call. * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. FieldMask represents a set of - * symbolic field paths. For example, the mask can be `paths: "name"`. The - * "name" here is a field in DataLabelingJob. - * If this field is not set, all fields of the DataLabelingJob are returned. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order by - * default. - * Use `desc` after a field name for descending. + * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [DataLabelingJob]{@link google.cloud.aiplatform.v1.DataLabelingJob}. The API will be called under the hood as needed, once per the page, + * [NasJob]{@link google.cloud.aiplatform.v1.NasJob}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1/job_service.list_data_labeling_jobs.js - * region_tag:aiplatform_v1_generated_JobService_ListDataLabelingJobs_async + * @example include:samples/generated/v1/job_service.list_nas_jobs.js + * region_tag:aiplatform_v1_generated_JobService_ListNasJobs_async */ - listDataLabelingJobsAsync( - request?: protos.google.cloud.aiplatform.v1.IListDataLabelingJobsRequest, + listNasJobsAsync( + request?: protos.google.cloud.aiplatform.v1.IListNasJobsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -4633,123 +5730,100 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listDataLabelingJobs']; + const defaultCallSettings = this._defaults['listNasJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDataLabelingJobs.asyncIterate( - this.innerApiCalls['listDataLabelingJobs'] as GaxCall, + return this.descriptors.page.listNasJobs.asyncIterate( + this.innerApiCalls['listNasJobs'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists HyperparameterTuningJobs in a Location. + * List top NasTrialDetails of a NasJob. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the - * HyperparameterTuningJobs from. Format: - * `projects/{project}/locations/{location}` - * @param {string} request.filter - * The standard list filter. - * - * Supported fields: - * - * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. - * * `state` supports `=`, `!=` comparisons. - * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. - * `create_time` must be in RFC 3339 format. - * * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality - * `labels.key:* - key existence - * - * Some examples of using the filter are: - * - * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` - * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` - * * `NOT display_name="my_job"` - * * `create_time>"2021-05-18T00:00:00Z"` - * * `labels.keyA=valueA` - * * `labels.keyB:*` + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.next_page_token|ListNasTrialDetailsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} + * {@link google.cloud.aiplatform.v1.JobService.ListNasTrialDetails|JobService.ListNasTrialDetails} * call. - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. * @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 Array of [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1.HyperparameterTuningJob}. + * The first element of the array is Array of [NasTrialDetail]{@link google.cloud.aiplatform.v1.NasTrialDetail}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listHyperparameterTuningJobsAsync()` + * We recommend using `listNasTrialDetailsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listHyperparameterTuningJobs( - request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + listNasTrialDetails( + request?: protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[], - protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest | null, - protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1.INasTrialDetail[], + protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest | null, + protos.google.cloud.aiplatform.v1.IListNasTrialDetailsResponse ] >; - listHyperparameterTuningJobs( - request: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + listNasTrialDetails( + request: protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, - | protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, + | protos.google.cloud.aiplatform.v1.IListNasTrialDetailsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob + protos.google.cloud.aiplatform.v1.INasTrialDetail > ): void; - listHyperparameterTuningJobs( - request: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + listNasTrialDetails( + request: protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, - | protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, + | protos.google.cloud.aiplatform.v1.IListNasTrialDetailsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob + protos.google.cloud.aiplatform.v1.INasTrialDetail > ): void; - listHyperparameterTuningJobs( - request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + listNasTrialDetails( + request?: protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, - | protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, + | protos.google.cloud.aiplatform.v1.IListNasTrialDetailsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob + protos.google.cloud.aiplatform.v1.INasTrialDetail >, callback?: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, - | protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, + | protos.google.cloud.aiplatform.v1.IListNasTrialDetailsResponse | null | undefined, - protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob + protos.google.cloud.aiplatform.v1.INasTrialDetail > ): Promise< [ - protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[], - protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest | null, - protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1.INasTrialDetail[], + protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest | null, + protos.google.cloud.aiplatform.v1.IListNasTrialDetailsResponse ] > | void { request = request || {}; @@ -4768,11 +5842,7 @@ export class JobServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listHyperparameterTuningJobs( - request, - options, - callback - ); + return this.innerApiCalls.listNasTrialDetails(request, options, callback); } /** @@ -4780,55 +5850,32 @@ export class JobServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the - * HyperparameterTuningJobs from. Format: - * `projects/{project}/locations/{location}` - * @param {string} request.filter - * The standard list filter. - * - * Supported fields: - * - * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. - * * `state` supports `=`, `!=` comparisons. - * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. - * `create_time` must be in RFC 3339 format. - * * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality - * `labels.key:* - key existence - * - * Some examples of using the filter are: - * - * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` - * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` - * * `NOT display_name="my_job"` - * * `create_time>"2021-05-18T00:00:00Z"` - * * `labels.keyA=valueA` - * * `labels.keyB:*` + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.next_page_token|ListNasTrialDetailsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} + * {@link google.cloud.aiplatform.v1.JobService.ListNasTrialDetails|JobService.ListNasTrialDetails} * call. - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1.HyperparameterTuningJob} on 'data' event. + * An object stream which emits an object representing [NasTrialDetail]{@link google.cloud.aiplatform.v1.NasTrialDetail} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listHyperparameterTuningJobsAsync()` + * We recommend using `listNasTrialDetailsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listHyperparameterTuningJobsStream( - request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + listNasTrialDetailsStream( + request?: protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -4839,75 +5886,52 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; + const defaultCallSettings = this._defaults['listNasTrialDetails']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listHyperparameterTuningJobs.createStream( - this.innerApiCalls.listHyperparameterTuningJobs as GaxCall, + return this.descriptors.page.listNasTrialDetails.createStream( + this.innerApiCalls.listNasTrialDetails as GaxCall, request, callSettings ); } /** - * Equivalent to `listHyperparameterTuningJobs`, but returns an iterable object. + * Equivalent to `listNasTrialDetails`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the - * HyperparameterTuningJobs from. Format: - * `projects/{project}/locations/{location}` - * @param {string} request.filter - * The standard list filter. - * - * Supported fields: - * - * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. - * * `state` supports `=`, `!=` comparisons. - * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. - * `create_time` must be in RFC 3339 format. - * * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality - * `labels.key:* - key existence - * - * Some examples of using the filter are: - * - * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` - * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` - * * `NOT display_name="my_job"` - * * `create_time>"2021-05-18T00:00:00Z"` - * * `labels.keyA=valueA` - * * `labels.keyB:*` + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1.ListNasTrialDetailsResponse.next_page_token|ListNasTrialDetailsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} + * {@link google.cloud.aiplatform.v1.JobService.ListNasTrialDetails|JobService.ListNasTrialDetails} * call. - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1.HyperparameterTuningJob}. The API will be called under the hood as needed, once per the page, + * [NasTrialDetail]{@link google.cloud.aiplatform.v1.NasTrialDetail}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js - * region_tag:aiplatform_v1_generated_JobService_ListHyperparameterTuningJobs_async + * @example include:samples/generated/v1/job_service.list_nas_trial_details.js + * region_tag:aiplatform_v1_generated_JobService_ListNasTrialDetails_async */ - listHyperparameterTuningJobsAsync( - request?: protos.google.cloud.aiplatform.v1.IListHyperparameterTuningJobsRequest, + listNasTrialDetailsAsync( + request?: protos.google.cloud.aiplatform.v1.IListNasTrialDetailsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -4916,14 +5940,14 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; + const defaultCallSettings = this._defaults['listNasTrialDetails']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listHyperparameterTuningJobs.asyncIterate( - this.innerApiCalls['listHyperparameterTuningJobs'] as GaxCall, + return this.descriptors.page.listNasTrialDetails.asyncIterate( + this.innerApiCalls['listNasTrialDetails'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** * Lists BatchPredictionJobs in a Location. @@ -7660,6 +8684,130 @@ export class JobServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1/job_service_client_config.json b/packages/google-cloud-aiplatform/src/v1/job_service_client_config.json index 0d72482c702..32e7535ad87 100644 --- a/packages/google-cloud-aiplatform/src/v1/job_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1/job_service_client_config.json @@ -80,6 +80,34 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "CreateNasJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetNasJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListNasJobs": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteNasJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CancelNasJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetNasTrialDetail": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListNasTrialDetails": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "CreateBatchPredictionJob": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" 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 d82a7a8b413..44918848766 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 @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.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 7835902f5c7..639944bd16e 100644 --- a/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/metadata_service_client.ts @@ -263,6 +263,12 @@ export class MetadataServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -8026,6 +8032,130 @@ export class MetadataServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 d82a7a8b413..44918848766 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 @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.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 b37f8f2dbdb..49e3b79d350 100644 --- a/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/migration_service_client.ts @@ -264,6 +264,12 @@ export class MigrationServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -3750,6 +3756,130 @@ export class MigrationServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 d82a7a8b413..44918848766 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 @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.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 6dc04c5d9a3..5dac4b83f74 100644 --- a/packages/google-cloud-aiplatform/src/v1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/model_service_client.ts @@ -263,6 +263,12 @@ export class ModelServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -1318,6 +1324,12 @@ export class ModelServiceClient { const exportModelMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.ExportModelOperationMetadata' ) as gax.protobuf.Type; + const copyModelResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.CopyModelResponse' + ) as gax.protobuf.Type; + const copyModelMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.CopyModelOperationMetadata' + ) as gax.protobuf.Type; this.descriptors.longrunning = { uploadModel: new this._gaxModule.LongrunningDescriptor( @@ -1340,6 +1352,11 @@ export class ModelServiceClient { exportModelResponse.decode.bind(exportModelResponse), exportModelMetadata.decode.bind(exportModelMetadata) ), + copyModel: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + copyModelResponse.decode.bind(copyModelResponse), + copyModelMetadata.decode.bind(copyModelMetadata) + ), }; // Put together the default options sent with requests. @@ -1401,6 +1418,7 @@ export class ModelServiceClient { 'deleteModelVersion', 'mergeVersionAliases', 'exportModel', + 'copyModel', 'importModelEvaluation', 'batchImportModelEvaluationSlices', 'getModelEvaluation', @@ -2797,6 +2815,167 @@ export class ModelServiceClient { protos.google.cloud.aiplatform.v1.ExportModelOperationMetadata >; } + /** + * Copies an already existing Vertex AI Model into the specified Location. + * The source Model must exist in the same Project. + * When copying custom Models, the users themselves are responsible for + * {@link google.cloud.aiplatform.v1.Model.metadata|Model.metadata} content to be + * region-agnostic, as well as making sure that any resources (e.g. files) it + * depends on remain accessible. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} [request.modelId] + * Optional. Copy source_model into a new Model with this ID. The ID will + * become the final component of the model resource name. + * + * This value may be up to 63 characters, and valid characters are + * `[a-z0-9_-]`. The first character cannot be a number or hyphen. + * @param {string} [request.parentModel] + * Optional. Specify this field to copy source_model into this existing + * Model as a new version. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @param {string} request.parent + * Required. The resource name of the Location into which to copy the Model. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.sourceModel + * Required. The resource name of the Model to copy. That Model must be in the + * same Project. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @param {google.cloud.aiplatform.v1.EncryptionSpec} request.encryptionSpec + * Customer-managed encryption key options. If this is set, + * then the Model copy will be encrypted with the provided encryption key. + * @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/model_service.copy_model.js + * region_tag:aiplatform_v1_generated_ModelService_CopyModel_async + */ + copyModel( + request?: protos.google.cloud.aiplatform.v1.ICopyModelRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + copyModel( + request: protos.google.cloud.aiplatform.v1.ICopyModelRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + copyModel( + request: protos.google.cloud.aiplatform.v1.ICopyModelRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + copyModel( + request?: protos.google.cloud.aiplatform.v1.ICopyModelRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1.ICopyModelOperationMetadata + >, + 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({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.copyModel(request, options, callback); + } + /** + * Check the status of the long running operation returned by `copyModel()`. + * @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/model_service.copy_model.js + * region_tag:aiplatform_v1_generated_ModelService_CopyModel_async + */ + async checkCopyModelProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1.CopyModelResponse, + protos.google.cloud.aiplatform.v1.CopyModelOperationMetadata + > + > { + 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.copyModel, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1.CopyModelResponse, + protos.google.cloud.aiplatform.v1.CopyModelOperationMetadata + >; + } /** * Lists Models in a Location. * @@ -5730,6 +5909,130 @@ export class ModelServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 c067ea1433e..1f3e41c0e93 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 @@ -56,6 +56,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "CopyModel": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "ImportModelEvaluation": { "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 d82a7a8b413..44918848766 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 @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.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 4ba198c3aab..bd53cd56e95 100644 --- a/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/pipeline_service_client.ts @@ -265,6 +265,12 @@ export class PipelineServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4920,6 +4926,130 @@ export class PipelineServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 d82a7a8b413..44918848766 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 @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts b/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts index f19f38cc582..9caef2eae8c 100644 --- a/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/prediction_service_client.ts @@ -255,6 +255,12 @@ export class PredictionServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -2470,6 +2476,130 @@ export class PredictionServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 d82a7a8b413..44918848766 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 @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.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 2a8ffdafdbf..ca749510958 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 @@ -269,6 +269,12 @@ export class SpecialistPoolServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4119,6 +4125,130 @@ export class SpecialistPoolServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 d82a7a8b413..44918848766 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 @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.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 3dc7d83c7b2..fbdb5269993 100644 --- a/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/tensorboard_service_client.ts @@ -263,6 +263,12 @@ export class TensorboardServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -7414,6 +7420,130 @@ export class TensorboardServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 d82a7a8b413..44918848766 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 @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.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 084a3323c5a..42ed367f7c7 100644 --- a/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1/vizier_service_client.ts @@ -267,6 +267,12 @@ export class VizierServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -5064,6 +5070,130 @@ export class VizierServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 d82a7a8b413..44918848766 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 @@ -51,6 +51,7 @@ "../../protos/google/cloud/aiplatform/v1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1/operation.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_job.proto", @@ -94,6 +95,7 @@ "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1/study.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 5513e78f9e9..00a57e51319 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/dataset_service_client.ts @@ -267,6 +267,12 @@ export class DatasetServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -5700,6 +5706,130 @@ export class DatasetServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 574e74be7e5..9bd0ad172e5 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 @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.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 68482cc4787..891ba62eece 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 @@ -267,6 +267,12 @@ export class DeploymentResourcePoolServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4360,6 +4366,130 @@ export class DeploymentResourcePoolServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 574e74be7e5..9bd0ad172e5 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 @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.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 24334929640..05e4250d3d7 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/endpoint_service_client.ts @@ -266,6 +266,12 @@ export class EndpointServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4592,6 +4598,130 @@ export class EndpointServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 574e74be7e5..9bd0ad172e5 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 @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_client.ts index 0c596380408..fa1dd48e39f 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_online_serving_service_client.ts @@ -259,6 +259,12 @@ export class FeaturestoreOnlineServingServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -2491,6 +2497,130 @@ export class FeaturestoreOnlineServingServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 574e74be7e5..9bd0ad172e5 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 @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.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 c0da42d46df..7a9d80a7dfa 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/featurestore_service_client.ts @@ -266,6 +266,12 @@ export class FeaturestoreServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -7411,6 +7417,130 @@ export class FeaturestoreServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 574e74be7e5..9bd0ad172e5 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 @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json b/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json index 69243ea4e5e..46c4a0d0801 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/gapic_metadata.json @@ -834,6 +834,26 @@ "cancelHyperparameterTuningJob" ] }, + "CreateNasJob": { + "methods": [ + "createNasJob" + ] + }, + "GetNasJob": { + "methods": [ + "getNasJob" + ] + }, + "CancelNasJob": { + "methods": [ + "cancelNasJob" + ] + }, + "GetNasTrialDetail": { + "methods": [ + "getNasTrialDetail" + ] + }, "CreateBatchPredictionJob": { "methods": [ "createBatchPredictionJob" @@ -884,6 +904,11 @@ "deleteHyperparameterTuningJob" ] }, + "DeleteNasJob": { + "methods": [ + "deleteNasJob" + ] + }, "DeleteBatchPredictionJob": { "methods": [ "deleteBatchPredictionJob" @@ -920,6 +945,20 @@ "listHyperparameterTuningJobsAsync" ] }, + "ListNasJobs": { + "methods": [ + "listNasJobs", + "listNasJobsStream", + "listNasJobsAsync" + ] + }, + "ListNasTrialDetails": { + "methods": [ + "listNasTrialDetails", + "listNasTrialDetailsStream", + "listNasTrialDetailsAsync" + ] + }, "ListBatchPredictionJobs": { "methods": [ "listBatchPredictionJobs", @@ -991,6 +1030,26 @@ "cancelHyperparameterTuningJob" ] }, + "CreateNasJob": { + "methods": [ + "createNasJob" + ] + }, + "GetNasJob": { + "methods": [ + "getNasJob" + ] + }, + "CancelNasJob": { + "methods": [ + "cancelNasJob" + ] + }, + "GetNasTrialDetail": { + "methods": [ + "getNasTrialDetail" + ] + }, "CreateBatchPredictionJob": { "methods": [ "createBatchPredictionJob" @@ -1041,6 +1100,11 @@ "deleteHyperparameterTuningJob" ] }, + "DeleteNasJob": { + "methods": [ + "deleteNasJob" + ] + }, "DeleteBatchPredictionJob": { "methods": [ "deleteBatchPredictionJob" @@ -1077,6 +1141,20 @@ "listHyperparameterTuningJobsAsync" ] }, + "ListNasJobs": { + "methods": [ + "listNasJobs", + "listNasJobsStream", + "listNasJobsAsync" + ] + }, + "ListNasTrialDetails": { + "methods": [ + "listNasTrialDetails", + "listNasTrialDetailsStream", + "listNasTrialDetailsAsync" + ] + }, "ListBatchPredictionJobs": { "methods": [ "listBatchPredictionJobs", @@ -1559,6 +1637,11 @@ "exportModel" ] }, + "CopyModel": { + "methods": [ + "copyModel" + ] + }, "ListModels": { "methods": [ "listModels", @@ -1652,6 +1735,11 @@ "exportModel" ] }, + "CopyModel": { + "methods": [ + "copyModel" + ] + }, "ListModels": { "methods": [ "listModels", 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 70f6cfa68f5..3af3fb14f33 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 @@ -266,6 +266,12 @@ export class IndexEndpointServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4735,6 +4741,130 @@ export class IndexEndpointServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 574e74be7e5..9bd0ad172e5 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 @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.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 aaceaca57f3..d8b5f7731e7 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/index_service_client.ts @@ -266,6 +266,12 @@ export class IndexServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4469,6 +4475,130 @@ export class IndexServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 574e74be7e5..9bd0ad172e5 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 @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.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 288adb5dfcb..28c78c8d915 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client.ts @@ -266,6 +266,12 @@ export class JobServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -317,6 +323,16 @@ export class JobServiceClient { 'nextPageToken', 'hyperparameterTuningJobs' ), + listNasJobs: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'nasJobs' + ), + listNasTrialDetails: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'nasTrialDetails' + ), listBatchPredictionJobs: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -1403,6 +1419,12 @@ export class JobServiceClient { const deleteHyperparameterTuningJobMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata' ) as gax.protobuf.Type; + const deleteNasJobResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteNasJobMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata' + ) as gax.protobuf.Type; const deleteBatchPredictionJobResponse = protoFilesRoot.lookup( '.google.protobuf.Empty' ) as gax.protobuf.Type; @@ -1444,6 +1466,11 @@ export class JobServiceClient { deleteHyperparameterTuningJobMetadata ) ), + deleteNasJob: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteNasJobResponse.decode.bind(deleteNasJobResponse), + deleteNasJobMetadata.decode.bind(deleteNasJobMetadata) + ), deleteBatchPredictionJob: new this._gaxModule.LongrunningDescriptor( this.operationsClient, deleteBatchPredictionJobResponse.decode.bind( @@ -1540,6 +1567,13 @@ export class JobServiceClient { 'listHyperparameterTuningJobs', 'deleteHyperparameterTuningJob', 'cancelHyperparameterTuningJob', + 'createNasJob', + 'getNasJob', + 'listNasJobs', + 'deleteNasJob', + 'cancelNasJob', + 'getNasTrialDetail', + 'listNasTrialDetails', 'createBatchPredictionJob', 'getBatchPredictionJob', 'listBatchPredictionJobs', @@ -1617,7 +1651,10 @@ export class JobServiceClient { * @returns {string[]} List of default scopes. */ static get scopes() { - return ['https://www.googleapis.com/auth/cloud-platform']; + return [ + 'https://www.googleapis.com/auth/cloud-platform', + 'https://www.googleapis.com/auth/cloud-platform.read-only', + ]; } getProjectId(): Promise; @@ -2567,85 +2604,78 @@ export class JobServiceClient { ); } /** - * Creates a BatchPredictionJob. A BatchPredictionJob once created will - * right away be attempted to start. + * Creates a NasJob * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to create the - * BatchPredictionJob in. Format: `projects/{project}/locations/{location}` - * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} request.batchPredictionJob - * Required. The BatchPredictionJob to create. + * Required. The resource name of the Location to create the NasJob in. + * Format: `projects/{project}/locations/{location}` + * @param {google.cloud.aiplatform.v1beta1.NasJob} request.nasJob + * Required. The NasJob to create. * @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 [BatchPredictionJob]{@link google.cloud.aiplatform.v1beta1.BatchPredictionJob}. + * The first element of the array is an object representing [NasJob]{@link google.cloud.aiplatform.v1beta1.NasJob}. * 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/job_service.create_batch_prediction_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_CreateBatchPredictionJob_async + * @example include:samples/generated/v1beta1/job_service.create_nas_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_CreateNasJob_async */ - createBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, + createNasJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - ( - | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1beta1.INasJob, + protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest | undefined, {} | undefined ] >; - createBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, + createNasJob( + request: protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest, options: CallOptions, callback: Callback< - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1beta1.INasJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest | null | undefined, {} | null | undefined > ): void; - createBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, + createNasJob( + request: protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest, callback: Callback< - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1beta1.INasJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest | null | undefined, {} | null | undefined > ): void; - createBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, + createNasJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1beta1.INasJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1beta1.INasJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - ( - | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1beta1.INasJob, + protos.google.cloud.aiplatform.v1beta1.ICreateNasJobRequest | undefined, {} | undefined ] > | void { @@ -2665,90 +2695,80 @@ export class JobServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.createBatchPredictionJob( - request, - options, - callback - ); + return this.innerApiCalls.createNasJob(request, options, callback); } /** - * Gets a BatchPredictionJob + * Gets a NasJob * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the BatchPredictionJob resource. + * Required. The name of the NasJob resource. * Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @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 [BatchPredictionJob]{@link google.cloud.aiplatform.v1beta1.BatchPredictionJob}. + * The first element of the array is an object representing [NasJob]{@link google.cloud.aiplatform.v1beta1.NasJob}. * 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/job_service.get_batch_prediction_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_GetBatchPredictionJob_async + * @example include:samples/generated/v1beta1/job_service.get_nas_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_GetNasJob_async */ - getBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, + getNasJob( + request?: protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - ( - | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1beta1.INasJob, + protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest | undefined, {} | undefined ] >; - getBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, + getNasJob( + request: protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest, options: CallOptions, callback: Callback< - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1beta1.INasJob, + | protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest | null | undefined, {} | null | undefined > ): void; - getBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, + getNasJob( + request: protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest, callback: Callback< - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1beta1.INasJob, + | protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest | null | undefined, {} | null | undefined > ): void; - getBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, + getNasJob( + request?: protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1beta1.INasJob, + | protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest + protos.google.cloud.aiplatform.v1beta1.INasJob, + | protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, - ( - | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1beta1.INasJob, + protos.google.cloud.aiplatform.v1beta1.IGetNasJobRequest | undefined, {} | undefined ] > | void { @@ -2768,28 +2788,29 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.getBatchPredictionJob(request, options, callback); + return this.innerApiCalls.getNasJob(request, options, callback); } /** - * Cancels a BatchPredictionJob. - * - * Starts asynchronous cancellation on the BatchPredictionJob. The server - * makes the best effort to cancel the job, but success is not + * Cancels a NasJob. + * Starts asynchronous cancellation on the NasJob. The server + * makes a best effort to cancel the job, but success is not * guaranteed. Clients can use - * {@link google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJob|JobService.GetBatchPredictionJob} + * {@link google.cloud.aiplatform.v1beta1.JobService.GetNasJob|JobService.GetNasJob} * or other methods to check whether the cancellation succeeded or whether the - * job completed despite cancellation. On a successful cancellation, - * the BatchPredictionJob is not deleted;instead its - * {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.state|BatchPredictionJob.state} - * is set to `CANCELLED`. Any files already outputted by the job are not - * deleted. + * job completed despite cancellation. On successful cancellation, + * the NasJob is not deleted; instead it becomes a job with + * a {@link google.cloud.aiplatform.v1beta1.NasJob.error|NasJob.error} value with a + * {@link google.rpc.Status.code|google.rpc.Status.code} of 1, corresponding to + * `Code.CANCELLED`, and + * {@link google.cloud.aiplatform.v1beta1.NasJob.state|NasJob.state} is set to + * `CANCELLED`. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the BatchPredictionJob to cancel. + * Required. The name of the NasJob to cancel. * Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @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. @@ -2797,57 +2818,54 @@ export class JobServiceClient { * 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/job_service.cancel_batch_prediction_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_CancelBatchPredictionJob_async + * @example include:samples/generated/v1beta1/job_service.cancel_nas_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_CancelNasJob_async */ - cancelBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, + cancelNasJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest, options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, - ( - | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest | undefined, {} | undefined ] >; - cancelBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, + cancelNasJob( + request: protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest, options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest | null | undefined, {} | null | undefined > ): void; - cancelBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, + cancelNasJob( + request: protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest | null | undefined, {} | null | undefined > ): void; - cancelBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, + cancelNasJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest, optionsOrCallback?: | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest | null | undefined, {} | null | undefined @@ -2855,10 +2873,7 @@ export class JobServiceClient { ): Promise< [ protos.google.protobuf.IEmpty, - ( - | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest - | undefined - ), + protos.google.cloud.aiplatform.v1beta1.ICancelNasJobRequest | undefined, {} | undefined ] > | void { @@ -2878,90 +2893,84 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.cancelBatchPredictionJob( - request, - options, - callback - ); + return this.innerApiCalls.cancelNasJob(request, options, callback); } /** - * Creates a ModelDeploymentMonitoringJob. It will run periodically on a - * configured interval. + * Gets a NasTrialDetail. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The parent of the ModelDeploymentMonitoringJob. - * Format: `projects/{project}/locations/{location}` - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} request.modelDeploymentMonitoringJob - * Required. The ModelDeploymentMonitoringJob to create + * @param {string} request.name + * Required. The name of the NasTrialDetail resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}` * @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 [ModelDeploymentMonitoringJob]{@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob}. + * The first element of the array is an object representing [NasTrialDetail]{@link google.cloud.aiplatform.v1beta1.NasTrialDetail}. * 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/job_service.create_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_CreateModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1beta1/job_service.get_nas_trial_detail.js + * region_tag:aiplatform_v1beta1_generated_JobService_GetNasTrialDetail_async */ - createModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, + getNasTrialDetail( + request?: protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail, ( - | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest | undefined ), {} | undefined ] >; - createModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, + getNasTrialDetail( + request: protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest, options: CallOptions, callback: Callback< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail, + | protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest | null | undefined, {} | null | undefined > ): void; - createModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, + getNasTrialDetail( + request: protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest, callback: Callback< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail, + | protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest | null | undefined, {} | null | undefined > ): void; - createModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, + getNasTrialDetail( + request?: protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail, + | protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail, + | protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail, ( - | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.IGetNasTrialDetailRequest | undefined ), {} | undefined @@ -2980,91 +2989,89 @@ export class JobServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.createModelDeploymentMonitoringJob( - request, - options, - callback - ); + return this.innerApiCalls.getNasTrialDetail(request, options, callback); } /** - * Gets a ModelDeploymentMonitoringJob. + * Creates a BatchPredictionJob. A BatchPredictionJob once created will + * right away be attempted to start. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the ModelDeploymentMonitoringJob. - * Format: - * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @param {string} request.parent + * Required. The resource name of the Location to create the + * BatchPredictionJob in. Format: `projects/{project}/locations/{location}` + * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} request.batchPredictionJob + * Required. The BatchPredictionJob to create. * @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 [ModelDeploymentMonitoringJob]{@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob}. + * The first element of the array is an object representing [BatchPredictionJob]{@link google.cloud.aiplatform.v1beta1.BatchPredictionJob}. * 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/job_service.get_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_GetModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1beta1/job_service.create_batch_prediction_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_CreateBatchPredictionJob_async */ - getModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, + createBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, ( - | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest | undefined ), {} | undefined ] >; - getModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, + createBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, options: CallOptions, callback: Callback< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - getModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, + createBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, callback: Callback< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - getModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, + createBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, ( - | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest | undefined ), {} | undefined @@ -3083,94 +3090,91 @@ export class JobServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.getModelDeploymentMonitoringJob( + return this.innerApiCalls.createBatchPredictionJob( request, options, callback ); } /** - * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server - * makes a best effort to cancel the job. Will mark - * {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state|ModelDeploymentMonitoringJob.state} - * to 'PAUSED'. + * Gets a BatchPredictionJob * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the ModelDeploymentMonitoringJob to pause. + * Required. The name of the BatchPredictionJob resource. * Format: - * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @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 [Empty]{@link google.protobuf.Empty}. + * The first element of the array is an object representing [BatchPredictionJob]{@link google.cloud.aiplatform.v1beta1.BatchPredictionJob}. * 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/job_service.pause_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_PauseModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1beta1/job_service.get_batch_prediction_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_GetBatchPredictionJob_async */ - pauseModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, + getBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, options?: CallOptions ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, ( - | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest | undefined ), {} | undefined ] >; - pauseModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, + getBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, options: CallOptions, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - pauseModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, + getBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - pauseModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, + getBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, optionsOrCallback?: | CallOptions | Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, + | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): Promise< [ - protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob, ( - | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest | undefined ), {} | undefined @@ -3192,23 +3196,28 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.pauseModelDeploymentMonitoringJob( - request, - options, - callback - ); + return this.innerApiCalls.getBatchPredictionJob(request, options, callback); } /** - * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from - * next scheduled time. A deleted ModelDeploymentMonitoringJob can't be - * resumed. + * Cancels a BatchPredictionJob. + * + * Starts asynchronous cancellation on the BatchPredictionJob. The server + * makes the best effort to cancel the job, but success is not + * guaranteed. Clients can use + * {@link google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJob|JobService.GetBatchPredictionJob} + * or other methods to check whether the cancellation succeeded or whether the + * job completed despite cancellation. On a successful cancellation, + * the BatchPredictionJob is not deleted;instead its + * {@link google.cloud.aiplatform.v1beta1.BatchPredictionJob.state|BatchPredictionJob.state} + * is set to `CANCELLED`. Any files already outputted by the job are not + * deleted. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the ModelDeploymentMonitoringJob to resume. + * Required. The name of the BatchPredictionJob to cancel. * Format: - * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` * @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. @@ -3216,57 +3225,57 @@ export class JobServiceClient { * 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/job_service.resume_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_ResumeModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1beta1/job_service.cancel_batch_prediction_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_CancelBatchPredictionJob_async */ - resumeModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, + cancelBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, ( - | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest | undefined ), {} | undefined ] >; - resumeModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, + cancelBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - resumeModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, + cancelBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, callback: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest | null | undefined, {} | null | undefined > ): void; - resumeModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, + cancelBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, optionsOrCallback?: | CallOptions | Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest | null | undefined, {} | null | undefined >, callback?: Callback< protos.google.protobuf.IEmpty, - | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest | null | undefined, {} | null | undefined @@ -3275,7 +3284,7 @@ export class JobServiceClient { [ protos.google.protobuf.IEmpty, ( - | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | protos.google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest | undefined ), {} | undefined @@ -3297,97 +3306,92 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.resumeModelDeploymentMonitoringJob( + return this.innerApiCalls.cancelBatchPredictionJob( request, options, callback ); } - /** - * Deletes a CustomJob. + * Creates a ModelDeploymentMonitoringJob. It will run periodically on a + * configured interval. * * @param {Object} request * The request object that will be sent. - * @param {string} request.name - * Required. The name of the CustomJob resource to be deleted. - * Format: - * `projects/{project}/locations/{location}/customJobs/{custom_job}` + * @param {string} request.parent + * Required. The parent of the ModelDeploymentMonitoringJob. + * Format: `projects/{project}/locations/{location}` + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} request.modelDeploymentMonitoringJob + * Required. The ModelDeploymentMonitoringJob to create * @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. + * The first element of the array is an object representing [ModelDeploymentMonitoringJob]{@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.delete_custom_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteCustomJob_async + * @example include:samples/generated/v1beta1/job_service.create_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_CreateModelDeploymentMonitoringJob_async */ - deleteCustomJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, + createModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + ( + | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] >; - deleteCustomJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, + createModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteCustomJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, + createModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteCustomJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, + createModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + ( + | protos.google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] > | void { @@ -3404,130 +3408,93 @@ export class JobServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.deleteCustomJob(request, options, callback); - } - /** - * Check the status of the long running operation returned by `deleteCustomJob()`. - * @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/v1beta1/job_service.delete_custom_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteCustomJob_async - */ - async checkDeleteCustomJobProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - > - > { - 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.deleteCustomJob, - this._gaxModule.createDefaultBackoffSettings() + return this.innerApiCalls.createModelDeploymentMonitoringJob( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - >; } /** - * Deletes a DataLabelingJob. + * Gets a ModelDeploymentMonitoringJob. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the DataLabelingJob to be deleted. + * Required. The resource name of the ModelDeploymentMonitoringJob. * Format: - * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` * @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. + * The first element of the array is an object representing [ModelDeploymentMonitoringJob]{@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.delete_data_labeling_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteDataLabelingJob_async + * @example include:samples/generated/v1beta1/job_service.get_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_GetModelDeploymentMonitoringJob_async */ - deleteDataLabelingJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, + getModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + ( + | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] >; - deleteDataLabelingJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, + getModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteDataLabelingJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, + getModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteDataLabelingJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, + getModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + ( + | protos.google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] > | void { @@ -3547,127 +3514,93 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.deleteDataLabelingJob(request, options, callback); - } - /** - * Check the status of the long running operation returned by `deleteDataLabelingJob()`. - * @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/v1beta1/job_service.delete_data_labeling_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteDataLabelingJob_async - */ - async checkDeleteDataLabelingJobProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - > - > { - 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.deleteDataLabelingJob, - this._gaxModule.createDefaultBackoffSettings() + return this.innerApiCalls.getModelDeploymentMonitoringJob( + request, + options, + callback ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - >; } /** - * Deletes a HyperparameterTuningJob. + * Pauses a ModelDeploymentMonitoringJob. If the job is running, the server + * makes a best effort to cancel the job. Will mark + * {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.state|ModelDeploymentMonitoringJob.state} + * to 'PAUSED'. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the HyperparameterTuningJob resource to be deleted. + * Required. The resource name of the ModelDeploymentMonitoringJob to pause. * Format: - * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` * @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. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteHyperparameterTuningJob_async + * @example include:samples/generated/v1beta1/job_service.pause_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_PauseModelDeploymentMonitoringJob_async */ - deleteHyperparameterTuningJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, + pauseModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] >; - deleteHyperparameterTuningJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, + pauseModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteHyperparameterTuningJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, + pauseModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteHyperparameterTuningJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, + pauseModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] > | void { @@ -3687,132 +3620,92 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.deleteHyperparameterTuningJob( + return this.innerApiCalls.pauseModelDeploymentMonitoringJob( request, options, callback ); } /** - * Check the status of the long running operation returned by `deleteHyperparameterTuningJob()`. - * @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/v1beta1/job_service.delete_hyperparameter_tuning_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteHyperparameterTuningJob_async - */ - async checkDeleteHyperparameterTuningJobProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - > - > { - 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.deleteHyperparameterTuningJob, - this._gaxModule.createDefaultBackoffSettings() - ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - >; - } - /** - * Deletes a BatchPredictionJob. Can only be called on jobs that already - * finished. + * Resumes a paused ModelDeploymentMonitoringJob. It will start to run from + * next scheduled time. A deleted ModelDeploymentMonitoringJob can't be + * resumed. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The name of the BatchPredictionJob resource to be deleted. + * Required. The resource name of the ModelDeploymentMonitoringJob to resume. * Format: - * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` * @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. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.delete_batch_prediction_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteBatchPredictionJob_async + * @example include:samples/generated/v1beta1/job_service.resume_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_ResumeModelDeploymentMonitoringJob_async */ - deleteBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, + resumeModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, options?: CallOptions ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, - {} | undefined - ] - >; - deleteBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | undefined + ), + {} | undefined + ] + >; + resumeModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, options: CallOptions, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteBatchPredictionJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, + resumeModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, callback: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): void; - deleteBatchPredictionJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, + resumeModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, optionsOrCallback?: | CallOptions | Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined >, callback?: Callback< - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, + protos.google.protobuf.IEmpty, + | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | null + | undefined, {} | null | undefined > ): Promise< [ - LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, + protos.google.protobuf.IEmpty, + ( + | protos.google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest + | undefined + ), {} | undefined ] > | void { @@ -3832,82 +3725,22 @@ export class JobServiceClient { name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.deleteBatchPredictionJob( + return this.innerApiCalls.resumeModelDeploymentMonitoringJob( request, options, callback ); } + /** - * Check the status of the long running operation returned by `deleteBatchPredictionJob()`. - * @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/v1beta1/job_service.delete_batch_prediction_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteBatchPredictionJob_async - */ - async checkDeleteBatchPredictionJobProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - > - > { - 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.deleteBatchPredictionJob, - this._gaxModule.createDefaultBackoffSettings() - ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - >; - } - /** - * Updates a ModelDeploymentMonitoringJob. + * Deletes a CustomJob. * * @param {Object} request * The request object that will be sent. - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} request.modelDeploymentMonitoringJob - * Required. The model monitoring configuration which replaces the resource on - * the server. - * @param {google.protobuf.FieldMask} request.updateMask - * Required. The update mask is used to specify the fields to be overwritten - * in the ModelDeploymentMonitoringJob resource by the update. The fields - * specified in the update_mask are relative to the resource, not the full - * request. A field will be overwritten if it is in the mask. If the user does - * not provide a mask then only the non-empty fields present in the request - * will be overwritten. Set the update_mask to `*` to override all fields. For - * the objective config, the user can either provide the update mask for - * model_deployment_monitoring_objective_configs or any combination of its - * nested fields, such as: - * model_deployment_monitoring_objective_configs.objective_config.training_dataset. - * - * Updatable fields: - * - * * `display_name` - * * `model_deployment_monitoring_schedule_config` - * * `model_monitoring_alert_config` - * * `logging_sampling_strategy` - * * `labels` - * * `log_ttl` - * * `enable_monitoring_pipeline_logs` - * . and - * * `model_deployment_monitoring_objective_configs` - * . or - * * `model_deployment_monitoring_objective_configs.objective_config.training_dataset` - * * `model_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config` - * * `model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config` + * @param {string} request.name + * Required. The name of the CustomJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/customJobs/{custom_job}` * @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. @@ -3917,61 +3750,61 @@ export class JobServiceClient { * 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/v1beta1/job_service.update_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_UpdateModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1beta1/job_service.delete_custom_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteCustomJob_async */ - updateModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, + deleteCustomJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined ] >; - updateModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, + deleteCustomJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - updateModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, + deleteCustomJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, callback: Callback< LROperation< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - updateModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, + deleteCustomJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined >, callback?: Callback< LROperation< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined @@ -3979,8 +3812,8 @@ export class JobServiceClient { ): Promise< [ LROperation< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined @@ -3999,18 +3832,13 @@ export class JobServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - 'model_deployment_monitoring_job.name': - request.modelDeploymentMonitoringJob!.name ?? '', + name: request.name ?? '', }); this.initialize(); - return this.innerApiCalls.updateModelDeploymentMonitoringJob( - request, - options, - callback - ); + return this.innerApiCalls.deleteCustomJob(request, options, callback); } /** - * Check the status of the long running operation returned by `updateModelDeploymentMonitoringJob()`. + * Check the status of the long running operation returned by `deleteCustomJob()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. @@ -4018,15 +3846,15 @@ export class JobServiceClient { * 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/v1beta1/job_service.update_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_UpdateModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1beta1/job_service.delete_custom_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteCustomJob_async */ - async checkUpdateModelDeploymentMonitoringJobProgress( + async checkDeleteCustomJobProgress( name: string ): Promise< LROperation< - protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata > > { const request = @@ -4036,23 +3864,23 @@ export class JobServiceClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new this._gaxModule.Operation( operation, - this.descriptors.longrunning.updateModelDeploymentMonitoringJob, + this.descriptors.longrunning.deleteCustomJob, this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata >; } /** - * Deletes a ModelDeploymentMonitoringJob. + * Deletes a DataLabelingJob. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the model monitoring job to delete. + * Required. The name of the DataLabelingJob to be deleted. * Format: - * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}` * @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. @@ -4062,11 +3890,11 @@ export class JobServiceClient { * 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/v1beta1/job_service.delete_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteModelDeploymentMonitoringJob_async + * @example include:samples/generated/v1beta1/job_service.delete_data_labeling_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteDataLabelingJob_async */ - deleteModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, + deleteDataLabelingJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, options?: CallOptions ): Promise< [ @@ -4078,8 +3906,8 @@ export class JobServiceClient { {} | undefined ] >; - deleteModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, + deleteDataLabelingJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, options: CallOptions, callback: Callback< LROperation< @@ -4090,8 +3918,8 @@ export class JobServiceClient { {} | null | undefined > ): void; - deleteModelDeploymentMonitoringJob( - request: protos.google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, + deleteDataLabelingJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, callback: Callback< LROperation< protos.google.protobuf.IEmpty, @@ -4101,8 +3929,8 @@ export class JobServiceClient { {} | null | undefined > ): void; - deleteModelDeploymentMonitoringJob( - request?: protos.google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, + deleteDataLabelingJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, optionsOrCallback?: | CallOptions | Callback< @@ -4132,70 +3960,1369 @@ export class JobServiceClient { ] > | void { request = request || {}; - let options: CallOptions; - if (typeof optionsOrCallback === 'function' && callback === undefined) { - callback = optionsOrCallback; - options = {}; - } else { - options = optionsOrCallback as CallOptions; - } + 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({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteDataLabelingJob(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteDataLabelingJob()`. + * @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/v1beta1/job_service.delete_data_labeling_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteDataLabelingJob_async + */ + async checkDeleteDataLabelingJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + > + > { + 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.deleteDataLabelingJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + >; + } + /** + * Deletes a HyperparameterTuningJob. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the HyperparameterTuningJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}` + * @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/v1beta1/job_service.delete_hyperparameter_tuning_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteHyperparameterTuningJob_async + */ + deleteHyperparameterTuningJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteHyperparameterTuningJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteHyperparameterTuningJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteHyperparameterTuningJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + 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({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteHyperparameterTuningJob( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `deleteHyperparameterTuningJob()`. + * @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/v1beta1/job_service.delete_hyperparameter_tuning_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteHyperparameterTuningJob_async + */ + async checkDeleteHyperparameterTuningJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + > + > { + 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.deleteHyperparameterTuningJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + >; + } + /** + * Deletes a NasJob. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the NasJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` + * @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/v1beta1/job_service.delete_nas_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteNasJob_async + */ + deleteNasJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteNasJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteNasJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteNasJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteNasJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + 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({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteNasJob(request, options, callback); + } + /** + * Check the status of the long running operation returned by `deleteNasJob()`. + * @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/v1beta1/job_service.delete_nas_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteNasJob_async + */ + async checkDeleteNasJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + > + > { + 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.deleteNasJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + >; + } + /** + * Deletes a BatchPredictionJob. Can only be called on jobs that already + * finished. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the BatchPredictionJob resource to be deleted. + * Format: + * `projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}` + * @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/v1beta1/job_service.delete_batch_prediction_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteBatchPredictionJob_async + */ + deleteBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteBatchPredictionJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteBatchPredictionJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + 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({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteBatchPredictionJob( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `deleteBatchPredictionJob()`. + * @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/v1beta1/job_service.delete_batch_prediction_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteBatchPredictionJob_async + */ + async checkDeleteBatchPredictionJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + > + > { + 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.deleteBatchPredictionJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + >; + } + /** + * Updates a ModelDeploymentMonitoringJob. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} request.modelDeploymentMonitoringJob + * Required. The model monitoring configuration which replaces the resource on + * the server. + * @param {google.protobuf.FieldMask} request.updateMask + * Required. The update mask is used to specify the fields to be overwritten + * in the ModelDeploymentMonitoringJob resource by the update. The fields + * specified in the update_mask are relative to the resource, not the full + * request. A field will be overwritten if it is in the mask. If the user does + * not provide a mask then only the non-empty fields present in the request + * will be overwritten. Set the update_mask to `*` to override all fields. For + * the objective config, the user can either provide the update mask for + * model_deployment_monitoring_objective_configs or any combination of its + * nested fields, such as: + * model_deployment_monitoring_objective_configs.objective_config.training_dataset. + * + * Updatable fields: + * + * * `display_name` + * * `model_deployment_monitoring_schedule_config` + * * `model_monitoring_alert_config` + * * `logging_sampling_strategy` + * * `labels` + * * `log_ttl` + * * `enable_monitoring_pipeline_logs` + * . and + * * `model_deployment_monitoring_objective_configs` + * . or + * * `model_deployment_monitoring_objective_configs.objective_config.training_dataset` + * * `model_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config` + * * `model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config` + * @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/v1beta1/job_service.update_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_UpdateModelDeploymentMonitoringJob_async + */ + updateModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + updateModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + updateModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >, + 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({ + 'model_deployment_monitoring_job.name': + request.modelDeploymentMonitoringJob!.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.updateModelDeploymentMonitoringJob( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `updateModelDeploymentMonitoringJob()`. + * @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/v1beta1/job_service.update_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_UpdateModelDeploymentMonitoringJob_async + */ + async checkUpdateModelDeploymentMonitoringJobProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + > + > { + 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.updateModelDeploymentMonitoringJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + >; + } + /** + * Deletes a ModelDeploymentMonitoringJob. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the model monitoring job to delete. + * Format: + * `projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}` + * @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/v1beta1/job_service.delete_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteModelDeploymentMonitoringJob_async + */ + deleteModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + deleteModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteModelDeploymentMonitoringJob( + request: protos.google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, + callback: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + deleteModelDeploymentMonitoringJob( + request?: protos.google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >, + 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({ + name: request.name ?? '', + }); + this.initialize(); + return this.innerApiCalls.deleteModelDeploymentMonitoringJob( + request, + options, + callback + ); + } + /** + * Check the status of the long running operation returned by `deleteModelDeploymentMonitoringJob()`. + * @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/v1beta1/job_service.delete_model_deployment_monitoring_job.js + * region_tag:aiplatform_v1beta1_generated_JobService_DeleteModelDeploymentMonitoringJob_async + */ + async checkDeleteModelDeploymentMonitoringJobProgress( + name: string + ): Promise< + LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + > + > { + 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.deleteModelDeploymentMonitoringJob, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + >; + } + /** + * Lists CustomJobs in a Location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the CustomJobs from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * call. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @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 Array of [CustomJob]{@link google.cloud.aiplatform.v1beta1.CustomJob}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listCustomJobsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listCustomJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.ICustomJob[], + protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + ] + >; + listCustomJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.ICustomJob + > + ): void; + listCustomJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.ICustomJob + > + ): void; + listCustomJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.ICustomJob + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.ICustomJob + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.ICustomJob[], + protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + ] + > | 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.listCustomJobs(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the CustomJobs from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * call. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [CustomJob]{@link google.cloud.aiplatform.v1beta1.CustomJob} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listCustomJobsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listCustomJobsStream( + request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + 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 ?? '', + }); + const defaultCallSettings = this._defaults['listCustomJobs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listCustomJobs.createStream( + this.innerApiCalls.listCustomJobs as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listCustomJobs`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the CustomJobs from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * call. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [CustomJob]{@link google.cloud.aiplatform.v1beta1.CustomJob}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta1/job_service.list_custom_jobs.js + * region_tag:aiplatform_v1beta1_generated_JobService_ListCustomJobs_async + */ + listCustomJobsAsync( + request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + 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 ?? '', + }); + const defaultCallSettings = this._defaults['listCustomJobs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listCustomJobs.asyncIterate( + this.innerApiCalls['listCustomJobs'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; + } + /** + * Lists DataLabelingJobs in a Location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent of the DataLabelingJob. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. FieldMask represents a set of + * symbolic field paths. For example, the mask can be `paths: "name"`. The + * "name" here is a field in DataLabelingJob. + * If this field is not set, all fields of the DataLabelingJob are returned. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order by + * default. + * Use `desc` after a field name for descending. + * @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 Array of [DataLabelingJob]{@link google.cloud.aiplatform.v1beta1.DataLabelingJob}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listDataLabelingJobsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDataLabelingJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[], + protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + ] + >; + listDataLabelingJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob + > + ): void; + listDataLabelingJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob + > + ): void; + listDataLabelingJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[], + protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + ] + > | 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.listDataLabelingJobs(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent of the DataLabelingJob. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. FieldMask represents a set of + * symbolic field paths. For example, the mask can be `paths: "name"`. The + * "name" here is a field in DataLabelingJob. + * If this field is not set, all fields of the DataLabelingJob are returned. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order by + * default. + * Use `desc` after a field name for descending. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [DataLabelingJob]{@link google.cloud.aiplatform.v1beta1.DataLabelingJob} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listDataLabelingJobsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listDataLabelingJobsStream( + request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + 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 ?? '', + }); + const defaultCallSettings = this._defaults['listDataLabelingJobs']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listDataLabelingJobs.createStream( + this.innerApiCalls.listDataLabelingJobs as GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listDataLabelingJobs`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The parent of the DataLabelingJob. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * The standard list filter. + * + * Supported fields: + * + * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. + * * `state` supports `=`, `!=` comparisons. + * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. + * `create_time` must be in RFC 3339 format. + * * `labels` supports general map functions that is: + * `labels.key=value` - key:value equality + * `labels.key:* - key existence + * + * Some examples of using the filter are: + * + * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` + * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` + * * `NOT display_name="my_job"` + * * `create_time>"2021-05-18T00:00:00Z"` + * * `labels.keyA=valueA` + * * `labels.keyB:*` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. FieldMask represents a set of + * symbolic field paths. For example, the mask can be `paths: "name"`. The + * "name" here is a field in DataLabelingJob. + * If this field is not set, all fields of the DataLabelingJob are returned. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order by + * default. + * Use `desc` after a field name for descending. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [DataLabelingJob]{@link google.cloud.aiplatform.v1beta1.DataLabelingJob}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta1/job_service.list_data_labeling_jobs.js + * region_tag:aiplatform_v1beta1_generated_JobService_ListDataLabelingJobs_async + */ + listDataLabelingJobsAsync( + request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name ?? '', + parent: request.parent ?? '', }); + const defaultCallSettings = this._defaults['listDataLabelingJobs']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.innerApiCalls.deleteModelDeploymentMonitoringJob( - request, - options, - callback - ); - } - /** - * Check the status of the long running operation returned by `deleteModelDeploymentMonitoringJob()`. - * @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/v1beta1/job_service.delete_model_deployment_monitoring_job.js - * region_tag:aiplatform_v1beta1_generated_JobService_DeleteModelDeploymentMonitoringJob_async - */ - async checkDeleteModelDeploymentMonitoringJobProgress( - name: string - ): Promise< - LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - > - > { - 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.deleteModelDeploymentMonitoringJob, - this._gaxModule.createDefaultBackoffSettings() - ); - return decodeOperation as LROperation< - protos.google.protobuf.Empty, - protos.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata - >; + return this.descriptors.page.listDataLabelingJobs.asyncIterate( + this.innerApiCalls['listDataLabelingJobs'] as GaxCall, + request as {}, + callSettings + ) as AsyncIterable; } /** - * Lists CustomJobs in a Location. + * Lists HyperparameterTuningJobs in a Location. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the CustomJobs from. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the + * HyperparameterTuningJobs from. Format: + * `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4222,79 +5349,79 @@ export class JobServiceClient { * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * {@link google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} * call. * @param {google.protobuf.FieldMask} request.readMask * Mask specifying which fields to read. * @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 Array of [CustomJob]{@link google.cloud.aiplatform.v1beta1.CustomJob}. + * The first element of the array is Array of [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listCustomJobsAsync()` + * We recommend using `listHyperparameterTuningJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listCustomJobs( - request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + listHyperparameterTuningJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.ICustomJob[], - protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest | null, - protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[], + protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse ] >; - listCustomJobs( - request: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + listHyperparameterTuningJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.ICustomJob + protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob > ): void; - listCustomJobs( - request: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + listHyperparameterTuningJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.ICustomJob + protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob > ): void; - listCustomJobs( - request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + listHyperparameterTuningJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.ICustomJob + protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob >, callback?: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.ICustomJob + protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob > ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.ICustomJob[], - protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest | null, - protos.google.cloud.aiplatform.v1beta1.IListCustomJobsResponse + protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[], + protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse ] > | void { request = request || {}; @@ -4313,7 +5440,11 @@ export class JobServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listCustomJobs(request, options, callback); + return this.innerApiCalls.listHyperparameterTuningJobs( + request, + options, + callback + ); } /** @@ -4321,8 +5452,9 @@ export class JobServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the CustomJobs from. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the + * HyperparameterTuningJobs from. Format: + * `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4349,26 +5481,26 @@ export class JobServiceClient { * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * {@link google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} * call. * @param {google.protobuf.FieldMask} request.readMask * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [CustomJob]{@link google.cloud.aiplatform.v1beta1.CustomJob} on 'data' event. + * An object stream which emits an object representing [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listCustomJobsAsync()` + * We recommend using `listHyperparameterTuningJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listCustomJobsStream( - request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + listHyperparameterTuningJobsStream( + request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -4379,25 +5511,26 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listCustomJobs']; + const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCustomJobs.createStream( - this.innerApiCalls.listCustomJobs as GaxCall, + return this.descriptors.page.listHyperparameterTuningJobs.createStream( + this.innerApiCalls.listHyperparameterTuningJobs as GaxCall, request, callSettings ); } /** - * Equivalent to `listCustomJobs`, but returns an iterable object. + * Equivalent to `listHyperparameterTuningJobs`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the CustomJobs from. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the + * HyperparameterTuningJobs from. Format: + * `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4424,9 +5557,9 @@ export class JobServiceClient { * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.next_page_token|ListCustomJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1beta1.JobService.ListCustomJobs|JobService.ListCustomJobs} + * {@link google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} * call. * @param {google.protobuf.FieldMask} request.readMask * Mask specifying which fields to read. @@ -4435,18 +5568,18 @@ export class JobServiceClient { * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [CustomJob]{@link google.cloud.aiplatform.v1beta1.CustomJob}. The API will be called under the hood as needed, once per the page, + * [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.list_custom_jobs.js - * region_tag:aiplatform_v1beta1_generated_JobService_ListCustomJobs_async + * @example include:samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js + * region_tag:aiplatform_v1beta1_generated_JobService_ListHyperparameterTuningJobs_async */ - listCustomJobsAsync( - request?: protos.google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, + listHyperparameterTuningJobsAsync( + request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -4455,23 +5588,23 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listCustomJobs']; + const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listCustomJobs.asyncIterate( - this.innerApiCalls['listCustomJobs'] as GaxCall, + return this.descriptors.page.listHyperparameterTuningJobs.asyncIterate( + this.innerApiCalls['listHyperparameterTuningJobs'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists DataLabelingJobs in a Location. + * Lists NasJobs in a Location. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent of the DataLabelingJob. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the NasJobs + * from. Format: `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4497,82 +5630,80 @@ export class JobServiceClient { * The standard list page size. * @param {string} request.pageToken * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1beta1.ListNasJobsResponse.next_page_token|ListNasJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1beta1.JobService.ListNasJobs|JobService.ListNasJobs} + * call. * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. FieldMask represents a set of - * symbolic field paths. For example, the mask can be `paths: "name"`. The - * "name" here is a field in DataLabelingJob. - * If this field is not set, all fields of the DataLabelingJob are returned. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order by - * default. - * Use `desc` after a field name for descending. + * Mask specifying which fields to read. * @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 Array of [DataLabelingJob]{@link google.cloud.aiplatform.v1beta1.DataLabelingJob}. + * The first element of the array is Array of [NasJob]{@link google.cloud.aiplatform.v1beta1.NasJob}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listDataLabelingJobsAsync()` + * We recommend using `listNasJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDataLabelingJobs( - request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + listNasJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[], - protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest | null, - protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + protos.google.cloud.aiplatform.v1beta1.INasJob[], + protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListNasJobsResponse ] >; - listDataLabelingJobs( - request: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + listNasJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListNasJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob + protos.google.cloud.aiplatform.v1beta1.INasJob > ): void; - listDataLabelingJobs( - request: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + listNasJobs( + request: protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListNasJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob + protos.google.cloud.aiplatform.v1beta1.INasJob > ): void; - listDataLabelingJobs( - request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + listNasJobs( + request?: protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListNasJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob + protos.google.cloud.aiplatform.v1beta1.INasJob >, callback?: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListNasJobsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob + protos.google.cloud.aiplatform.v1beta1.INasJob > - ): Promise< - [ - protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[], - protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest | null, - protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.INasJob[], + protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListNasJobsResponse ] > | void { request = request || {}; @@ -4591,7 +5722,7 @@ export class JobServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listDataLabelingJobs(request, options, callback); + return this.innerApiCalls.listNasJobs(request, options, callback); } /** @@ -4599,8 +5730,8 @@ export class JobServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent of the DataLabelingJob. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the NasJobs + * from. Format: `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4626,29 +5757,27 @@ export class JobServiceClient { * The standard list page size. * @param {string} request.pageToken * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1beta1.ListNasJobsResponse.next_page_token|ListNasJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1beta1.JobService.ListNasJobs|JobService.ListNasJobs} + * call. * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. FieldMask represents a set of - * symbolic field paths. For example, the mask can be `paths: "name"`. The - * "name" here is a field in DataLabelingJob. - * If this field is not set, all fields of the DataLabelingJob are returned. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order by - * default. - * Use `desc` after a field name for descending. + * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [DataLabelingJob]{@link google.cloud.aiplatform.v1beta1.DataLabelingJob} on 'data' event. + * An object stream which emits an object representing [NasJob]{@link google.cloud.aiplatform.v1beta1.NasJob} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listDataLabelingJobsAsync()` + * We recommend using `listNasJobsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listDataLabelingJobsStream( - request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + listNasJobsStream( + request?: protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -4659,25 +5788,25 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listDataLabelingJobs']; + const defaultCallSettings = this._defaults['listNasJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDataLabelingJobs.createStream( - this.innerApiCalls.listDataLabelingJobs as GaxCall, + return this.descriptors.page.listNasJobs.createStream( + this.innerApiCalls.listNasJobs as GaxCall, request, callSettings ); } /** - * Equivalent to `listDataLabelingJobs`, but returns an iterable object. + * Equivalent to `listNasJobs`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The parent of the DataLabelingJob. - * Format: `projects/{project}/locations/{location}` + * Required. The resource name of the Location to list the NasJobs + * from. Format: `projects/{project}/locations/{location}` * @param {string} request.filter * The standard list filter. * @@ -4703,32 +5832,30 @@ export class JobServiceClient { * The standard list page size. * @param {string} request.pageToken * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1beta1.ListNasJobsResponse.next_page_token|ListNasJobsResponse.next_page_token} + * of the previous + * {@link google.cloud.aiplatform.v1beta1.JobService.ListNasJobs|JobService.ListNasJobs} + * call. * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. FieldMask represents a set of - * symbolic field paths. For example, the mask can be `paths: "name"`. The - * "name" here is a field in DataLabelingJob. - * If this field is not set, all fields of the DataLabelingJob are returned. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order by - * default. - * Use `desc` after a field name for descending. + * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [DataLabelingJob]{@link google.cloud.aiplatform.v1beta1.DataLabelingJob}. The API will be called under the hood as needed, once per the page, + * [NasJob]{@link google.cloud.aiplatform.v1beta1.NasJob}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.list_data_labeling_jobs.js - * region_tag:aiplatform_v1beta1_generated_JobService_ListDataLabelingJobs_async + * @example include:samples/generated/v1beta1/job_service.list_nas_jobs.js + * region_tag:aiplatform_v1beta1_generated_JobService_ListNasJobs_async */ - listDataLabelingJobsAsync( - request?: protos.google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, + listNasJobsAsync( + request?: protos.google.cloud.aiplatform.v1beta1.IListNasJobsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -4737,123 +5864,100 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listDataLabelingJobs']; + const defaultCallSettings = this._defaults['listNasJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listDataLabelingJobs.asyncIterate( - this.innerApiCalls['listDataLabelingJobs'] as GaxCall, + return this.descriptors.page.listNasJobs.asyncIterate( + this.innerApiCalls['listNasJobs'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** - * Lists HyperparameterTuningJobs in a Location. + * List top NasTrialDetails of a NasJob. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the - * HyperparameterTuningJobs from. Format: - * `projects/{project}/locations/{location}` - * @param {string} request.filter - * The standard list filter. - * - * Supported fields: - * - * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. - * * `state` supports `=`, `!=` comparisons. - * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. - * `create_time` must be in RFC 3339 format. - * * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality - * `labels.key:* - key existence - * - * Some examples of using the filter are: - * - * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` - * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` - * * `NOT display_name="my_job"` - * * `create_time>"2021-05-18T00:00:00Z"` - * * `labels.keyA=valueA` - * * `labels.keyB:*` + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.next_page_token|ListNasTrialDetailsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} + * {@link google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails|JobService.ListNasTrialDetails} * call. - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. * @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 Array of [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob}. + * The first element of the array is Array of [NasTrialDetail]{@link google.cloud.aiplatform.v1beta1.NasTrialDetail}. * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. * Note that it can affect your quota. - * We recommend using `listHyperparameterTuningJobsAsync()` + * We recommend using `listNasTrialDetailsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listHyperparameterTuningJobs( - request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + listNasTrialDetails( + request?: protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, options?: CallOptions ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[], - protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest | null, - protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail[], + protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse ] >; - listHyperparameterTuningJobs( - request: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + listNasTrialDetails( + request: protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, options: CallOptions, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail > ): void; - listHyperparameterTuningJobs( - request: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + listNasTrialDetails( + request: protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail > ): void; - listHyperparameterTuningJobs( - request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + listNasTrialDetails( + request?: protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail >, callback?: PaginationCallback< - protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, - | protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, + | protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse | null | undefined, - protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail > ): Promise< [ - protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[], - protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest | null, - protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse + protos.google.cloud.aiplatform.v1beta1.INasTrialDetail[], + protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsResponse ] > | void { request = request || {}; @@ -4872,11 +5976,7 @@ export class JobServiceClient { parent: request.parent ?? '', }); this.initialize(); - return this.innerApiCalls.listHyperparameterTuningJobs( - request, - options, - callback - ); + return this.innerApiCalls.listNasTrialDetails(request, options, callback); } /** @@ -4884,55 +5984,32 @@ export class JobServiceClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the - * HyperparameterTuningJobs from. Format: - * `projects/{project}/locations/{location}` - * @param {string} request.filter - * The standard list filter. - * - * Supported fields: - * - * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. - * * `state` supports `=`, `!=` comparisons. - * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. - * `create_time` must be in RFC 3339 format. - * * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality - * `labels.key:* - key existence - * - * Some examples of using the filter are: - * - * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` - * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` - * * `NOT display_name="my_job"` - * * `create_time>"2021-05-18T00:00:00Z"` - * * `labels.keyA=valueA` - * * `labels.keyB:*` + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.next_page_token|ListNasTrialDetailsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} + * {@link google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails|JobService.ListNasTrialDetails} * call. - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} - * An object stream which emits an object representing [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} on 'data' event. + * An object stream which emits an object representing [NasTrialDetail]{@link google.cloud.aiplatform.v1beta1.NasTrialDetail} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listHyperparameterTuningJobsAsync()` + * We recommend using `listNasTrialDetailsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listHyperparameterTuningJobsStream( - request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + listNasTrialDetailsStream( + request?: protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -4943,75 +6020,52 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; + const defaultCallSettings = this._defaults['listNasTrialDetails']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listHyperparameterTuningJobs.createStream( - this.innerApiCalls.listHyperparameterTuningJobs as GaxCall, + return this.descriptors.page.listNasTrialDetails.createStream( + this.innerApiCalls.listNasTrialDetails as GaxCall, request, callSettings ); } /** - * Equivalent to `listHyperparameterTuningJobs`, but returns an iterable object. + * Equivalent to `listNasTrialDetails`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * Required. The resource name of the Location to list the - * HyperparameterTuningJobs from. Format: - * `projects/{project}/locations/{location}` - * @param {string} request.filter - * The standard list filter. - * - * Supported fields: - * - * * `display_name` supports `=`, `!=` comparisons, and `:` wildcard. - * * `state` supports `=`, `!=` comparisons. - * * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons. - * `create_time` must be in RFC 3339 format. - * * `labels` supports general map functions that is: - * `labels.key=value` - key:value equality - * `labels.key:* - key existence - * - * Some examples of using the filter are: - * - * * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"` - * * `state!="JOB_STATE_FAILED" OR display_name="my_job"` - * * `NOT display_name="my_job"` - * * `create_time>"2021-05-18T00:00:00Z"` - * * `labels.keyA=valueA` - * * `labels.keyB:*` + * Required. The name of the NasJob resource. + * Format: + * `projects/{project}/locations/{location}/nasJobs/{nas_job}` * @param {number} request.pageSize * The standard list page size. * @param {string} request.pageToken * The standard list page token. * Typically obtained via - * {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.next_page_token|ListHyperparameterTuningJobsResponse.next_page_token} + * {@link google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse.next_page_token|ListNasTrialDetailsResponse.next_page_token} * of the previous - * {@link google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobs|JobService.ListHyperparameterTuningJobs} + * {@link google.cloud.aiplatform.v1beta1.JobService.ListNasTrialDetails|JobService.ListNasTrialDetails} * call. - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). * When you iterate the returned iterable, each element will be an object representing - * [HyperparameterTuningJob]{@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob}. The API will be called under the hood as needed, once per the page, + * [NasTrialDetail]{@link google.cloud.aiplatform.v1beta1.NasTrialDetail}. The API will be called under the hood as needed, once per the page, * so you can stop the iteration when you don't need more results. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js - * region_tag:aiplatform_v1beta1_generated_JobService_ListHyperparameterTuningJobs_async + * @example include:samples/generated/v1beta1/job_service.list_nas_trial_details.js + * region_tag:aiplatform_v1beta1_generated_JobService_ListNasTrialDetails_async */ - listHyperparameterTuningJobsAsync( - request?: protos.google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, + listNasTrialDetailsAsync( + request?: protos.google.cloud.aiplatform.v1beta1.IListNasTrialDetailsRequest, options?: CallOptions - ): AsyncIterable { + ): AsyncIterable { request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -5020,14 +6074,14 @@ export class JobServiceClient { this._gaxModule.routingHeader.fromParams({ parent: request.parent ?? '', }); - const defaultCallSettings = this._defaults['listHyperparameterTuningJobs']; + const defaultCallSettings = this._defaults['listNasTrialDetails']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listHyperparameterTuningJobs.asyncIterate( - this.innerApiCalls['listHyperparameterTuningJobs'] as GaxCall, + return this.descriptors.page.listNasTrialDetails.asyncIterate( + this.innerApiCalls['listNasTrialDetails'] as GaxCall, request as {}, callSettings - ) as AsyncIterable; + ) as AsyncIterable; } /** * Lists BatchPredictionJobs in a Location. @@ -7829,6 +8883,130 @@ export class JobServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * diff --git a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client_config.json b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client_config.json index 8c3c6dd47e5..4e60f4b5ff8 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/job_service_client_config.json +++ b/packages/google-cloud-aiplatform/src/v1beta1/job_service_client_config.json @@ -95,6 +95,34 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "CreateNasJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetNasJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListNasJobs": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteNasJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CancelNasJob": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetNasTrialDetail": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "ListNasTrialDetails": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "CreateBatchPredictionJob": { "timeout_millis": 5000, "retry_codes_name": "non_idempotent", 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 574e74be7e5..9bd0ad172e5 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 @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.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 558e262b0c3..cdb9f69c69f 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/metadata_service_client.ts @@ -266,6 +266,12 @@ export class MetadataServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -8228,6 +8234,130 @@ export class MetadataServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 574e74be7e5..9bd0ad172e5 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 @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.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 c14264c57a5..b3d60c41989 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/migration_service_client.ts @@ -267,6 +267,12 @@ export class MigrationServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -3899,6 +3905,130 @@ export class MigrationServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 574e74be7e5..9bd0ad172e5 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 @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.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 e1836c8ebee..ac8358af635 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/model_service_client.ts @@ -266,6 +266,12 @@ export class ModelServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -1404,6 +1410,12 @@ export class ModelServiceClient { const exportModelMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata' ) as gax.protobuf.Type; + const copyModelResponse = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.CopyModelResponse' + ) as gax.protobuf.Type; + const copyModelMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata' + ) as gax.protobuf.Type; this.descriptors.longrunning = { uploadModel: new this._gaxModule.LongrunningDescriptor( @@ -1435,6 +1447,11 @@ export class ModelServiceClient { exportModelResponse.decode.bind(exportModelResponse), exportModelMetadata.decode.bind(exportModelMetadata) ), + copyModel: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + copyModelResponse.decode.bind(copyModelResponse), + copyModelMetadata.decode.bind(copyModelMetadata) + ), }; // Put together the default options sent with requests. @@ -1497,6 +1514,7 @@ export class ModelServiceClient { 'deleteModelVersion', 'mergeVersionAliases', 'exportModel', + 'copyModel', 'importModelEvaluation', 'batchImportModelEvaluationSlices', 'getModelEvaluation', @@ -3064,6 +3082,167 @@ export class ModelServiceClient { protos.google.cloud.aiplatform.v1beta1.ExportModelOperationMetadata >; } + /** + * Copies an already existing Vertex AI Model into the specified Location. + * The source Model must exist in the same Project. + * When copying custom Models, the users themselves are responsible for + * {@link google.cloud.aiplatform.v1beta1.Model.metadata|Model.metadata} content to + * be region-agnostic, as well as making sure that any resources (e.g. files) + * it depends on remain accessible. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} [request.modelId] + * Optional. Copy source_model into a new Model with this ID. The ID will + * become the final component of the model resource name. + * + * This value may be up to 63 characters, and valid characters are + * `[a-z0-9_-]`. The first character cannot be a number or hyphen. + * @param {string} [request.parentModel] + * Optional. Specify this field to copy source_model into this existing + * Model as a new version. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @param {string} request.parent + * Required. The resource name of the Location into which to copy the Model. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.sourceModel + * Required. The resource name of the Model to copy. That Model must be in the + * same Project. Format: + * `projects/{project}/locations/{location}/models/{model}` + * @param {google.cloud.aiplatform.v1beta1.EncryptionSpec} request.encryptionSpec + * Customer-managed encryption key options. If this is set, + * then the Model copy will be encrypted with the provided encryption key. + * @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/v1beta1/model_service.copy_model.js + * region_tag:aiplatform_v1beta1_generated_ModelService_CopyModel_async + */ + copyModel( + request?: protos.google.cloud.aiplatform.v1beta1.ICopyModelRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1beta1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + copyModel( + request: protos.google.cloud.aiplatform.v1beta1.ICopyModelRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + copyModel( + request: protos.google.cloud.aiplatform.v1beta1.ICopyModelRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + copyModel( + request?: protos.google.cloud.aiplatform.v1beta1.ICopyModelRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1beta1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1beta1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata + >, + 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({ + parent: request.parent ?? '', + }); + this.initialize(); + return this.innerApiCalls.copyModel(request, options, callback); + } + /** + * Check the status of the long running operation returned by `copyModel()`. + * @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/v1beta1/model_service.copy_model.js + * region_tag:aiplatform_v1beta1_generated_ModelService_CopyModel_async + */ + async checkCopyModelProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1beta1.CopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + > + > { + 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.copyModel, + this._gaxModule.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1beta1.CopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata + >; + } /** * Lists Models in a Location. * @@ -6038,6 +6217,130 @@ export class ModelServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 e467c45b9b0..adb9f815031 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 @@ -66,6 +66,11 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "CopyModel": { + "timeout_millis": 5000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "ImportModelEvaluation": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" 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 574e74be7e5..9bd0ad172e5 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 @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.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 66d925df593..f8509e909cd 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/pipeline_service_client.ts @@ -268,6 +268,12 @@ export class PipelineServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -5083,6 +5089,130 @@ export class PipelineServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 574e74be7e5..9bd0ad172e5 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 @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts index b4fc7c19446..51422ec4d49 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/prediction_service_client.ts @@ -258,6 +258,12 @@ export class PredictionServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -2551,6 +2557,130 @@ export class PredictionServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 574e74be7e5..9bd0ad172e5 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 @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.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 3c442e2a31b..8970c28f644 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 @@ -272,6 +272,12 @@ export class SpecialistPoolServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -4270,6 +4276,130 @@ export class SpecialistPoolServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 574e74be7e5..9bd0ad172e5 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 @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.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 cbba2f5875f..2a55d642073 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/tensorboard_service_client.ts @@ -266,6 +266,12 @@ export class TensorboardServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -7563,6 +7569,130 @@ export class TensorboardServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 574e74be7e5..9bd0ad172e5 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 @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.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 7bfa1a807b6..b94a51116dd 100644 --- a/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts +++ b/packages/google-cloud-aiplatform/src/v1beta1/vizier_service_client.ts @@ -270,6 +270,12 @@ export class VizierServiceClient { modelEvaluationSlicePathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}' ), + nasJobPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}' + ), + nasTrialDetailPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}' + ), pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), @@ -5285,6 +5291,130 @@ export class VizierServiceClient { ).slice; } + /** + * Return a fully-qualified nasJob resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @returns {string} Resource name string. + */ + nasJobPath(project: string, location: string, nasJob: string) { + return this.pathTemplates.nasJobPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + }); + } + + /** + * Parse the project from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).project; + } + + /** + * Parse the location from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).location; + } + + /** + * Parse the nas_job from NasJob resource. + * + * @param {string} nasJobName + * A fully-qualified path representing NasJob resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasJobName(nasJobName: string) { + return this.pathTemplates.nasJobPathTemplate.match(nasJobName).nas_job; + } + + /** + * Return a fully-qualified nasTrialDetail resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} nas_job + * @param {string} nas_trial_detail + * @returns {string} Resource name string. + */ + nasTrialDetailPath( + project: string, + location: string, + nasJob: string, + nasTrialDetail: string + ) { + return this.pathTemplates.nasTrialDetailPathTemplate.render({ + project: project, + location: location, + nas_job: nasJob, + nas_trial_detail: nasTrialDetail, + }); + } + + /** + * Parse the project from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the project. + */ + matchProjectFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).project; + } + + /** + * Parse the location from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the location. + */ + matchLocationFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).location; + } + + /** + * Parse the nas_job from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_job. + */ + matchNasJobFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_job; + } + + /** + * Parse the nas_trial_detail from NasTrialDetail resource. + * + * @param {string} nasTrialDetailName + * A fully-qualified path representing NasTrialDetail resource. + * @returns {string} A string representing the nas_trial_detail. + */ + matchNasTrialDetailFromNasTrialDetailName(nasTrialDetailName: string) { + return this.pathTemplates.nasTrialDetailPathTemplate.match( + nasTrialDetailName + ).nas_trial_detail; + } + /** * Return a fully-qualified pipelineJob resource name string. * 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 574e74be7e5..9bd0ad172e5 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 @@ -53,6 +53,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/model_evaluation_slice.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto", "../../protos/google/cloud/aiplatform/v1beta1/model_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/nas_job.proto", "../../protos/google/cloud/aiplatform/v1beta1/operation.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_failure_policy.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_job.proto", @@ -103,6 +104,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_classification.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/automl_video_object_tracking.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/trainingjob/definition/export_evaluated_data_items_config.proto", + "../../protos/google/cloud/aiplatform/v1beta1/service_networking.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool.proto", "../../protos/google/cloud/aiplatform/v1beta1/specialist_pool_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/study.proto", diff --git a/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts index 752e010af9a..2240aceedc3 100644 --- a/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1.ts @@ -5593,6 +5593,147 @@ describe('v1.DatasetServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1beta1.ts index 45930386df4..6fb8226fe02 100644 --- a/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_dataset_service_v1beta1.ts @@ -5737,6 +5737,147 @@ describe('v1beta1.DatasetServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_deployment_resource_pool_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_deployment_resource_pool_service_v1beta1.ts index 3aae22614e3..33b1f89b092 100644 --- a/packages/google-cloud-aiplatform/test/gapic_deployment_resource_pool_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_deployment_resource_pool_service_v1beta1.ts @@ -4420,6 +4420,153 @@ describe('v1beta1.DeploymentResourcePoolServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts index 1182cf36dc5..48cb5ff11e3 100644 --- a/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1.ts @@ -4189,6 +4189,147 @@ describe('v1.EndpointServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1beta1.ts index 5188a097bdb..b29fedcb69c 100644 --- a/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_endpoint_service_v1beta1.ts @@ -4295,6 +4295,147 @@ describe('v1beta1.EndpointServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1.ts index 9e7d0549d6d..a36817e1005 100644 --- a/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1.ts @@ -3003,6 +3003,153 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1beta1.ts index f17c7f21348..4060c80d35f 100644 --- a/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_featurestore_online_serving_service_v1beta1.ts @@ -3087,6 +3087,153 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { 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 782c306f4af..fb6aa73addd 100644 --- a/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1.ts @@ -7244,6 +7244,151 @@ describe('v1.FeaturestoreServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1beta1.ts index 7de3d5bd9c7..ce218b151fa 100644 --- a/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_featurestore_service_v1beta1.ts @@ -7416,6 +7416,149 @@ describe('v1beta1.FeaturestoreServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1.ts index 8dfc689d72d..dda6d47bd05 100644 --- a/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1.ts @@ -4512,6 +4512,149 @@ describe('v1.IndexEndpointServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1beta1.ts index d2d74b2431b..b22cc82d9a3 100644 --- a/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_index_endpoint_service_v1beta1.ts @@ -4601,6 +4601,149 @@ describe('v1beta1.IndexEndpointServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_index_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_index_service_v1.ts index 18907fd42e3..4a8b430c650 100644 --- a/packages/google-cloud-aiplatform/test/gapic_index_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_index_service_v1.ts @@ -4116,6 +4116,147 @@ describe('v1.IndexServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_index_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_index_service_v1beta1.ts index 661d87a6863..096675f6ab6 100644 --- a/packages/google-cloud-aiplatform/test/gapic_index_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_index_service_v1beta1.ts @@ -4223,6 +4223,147 @@ describe('v1beta1.IndexServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts index ff6cae173bc..79e1d5d14b5 100644 --- a/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_job_service_v1.ts @@ -1469,65 +1469,64 @@ describe('v1.JobServiceClient', () => { }); }); - describe('createBatchPredictionJob', () => { - it('invokes createBatchPredictionJob without error', async () => { + describe('createNasJob', () => { + it('invokes createNasJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.CreateNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CreateNasJobRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.BatchPredictionJob() + new protos.google.cloud.aiplatform.v1.NasJob() ); - client.innerApiCalls.createBatchPredictionJob = - stubSimpleCall(expectedResponse); - const [response] = await client.createBatchPredictionJob(request); + client.innerApiCalls.createNasJob = stubSimpleCall(expectedResponse); + const [response] = await client.createNasJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createBatchPredictionJob without error using callback', async () => { + it('invokes createNasJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.CreateNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CreateNasJobRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.BatchPredictionJob() + new protos.google.cloud.aiplatform.v1.NasJob() ); - client.innerApiCalls.createBatchPredictionJob = + client.innerApiCalls.createNasJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createBatchPredictionJob( + client.createNasJob( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1.IBatchPredictionJob | null + result?: protos.google.cloud.aiplatform.v1.INasJob | null ) => { if (err) { reject(err); @@ -1540,131 +1539,124 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createBatchPredictionJob with error', async () => { + it('invokes createNasJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.CreateNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CreateNasJobRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createBatchPredictionJob = stubSimpleCall( + client.innerApiCalls.createNasJob = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.createBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.createNasJob(request), expectedError); const actualRequest = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createBatchPredictionJob with closed client', async () => { + it('invokes createNasJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.CreateNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CreateNasJobRequest', ['parent'] ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.createBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.createNasJob(request), expectedError); }); }); - describe('getBatchPredictionJob', () => { - it('invokes getBatchPredictionJob without error', async () => { + describe('getNasJob', () => { + it('invokes getNasJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.GetNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.GetNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.BatchPredictionJob() + new protos.google.cloud.aiplatform.v1.NasJob() ); - client.innerApiCalls.getBatchPredictionJob = - stubSimpleCall(expectedResponse); - const [response] = await client.getBatchPredictionJob(request); + client.innerApiCalls.getNasJob = stubSimpleCall(expectedResponse); + const [response] = await client.getNasJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getBatchPredictionJob without error using callback', async () => { + it('invokes getNasJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.GetNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.GetNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.BatchPredictionJob() + new protos.google.cloud.aiplatform.v1.NasJob() ); - client.innerApiCalls.getBatchPredictionJob = + client.innerApiCalls.getNasJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getBatchPredictionJob( + client.getNasJob( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1.IBatchPredictionJob | null + result?: protos.google.cloud.aiplatform.v1.INasJob | null ) => { if (err) { reject(err); @@ -1677,84 +1669,75 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getBatchPredictionJob with error', async () => { + it('invokes getNasJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.GetNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.GetNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getBatchPredictionJob = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.getBatchPredictionJob(request), - expectedError - ); + client.innerApiCalls.getNasJob = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getNasJob(request), expectedError); const actualRequest = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getBatchPredictionJob with closed client', async () => { + it('invokes getNasJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.GetNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.GetNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.getBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.getNasJob(request), expectedError); }); }); - describe('cancelBatchPredictionJob', () => { - it('invokes cancelBatchPredictionJob without error', async () => { + describe('cancelNasJob', () => { + it('invokes cancelNasJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.CancelNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CancelNasJobRequest', ['name'] ); request.name = defaultValue1; @@ -1762,31 +1745,30 @@ describe('v1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.cancelBatchPredictionJob = - stubSimpleCall(expectedResponse); - const [response] = await client.cancelBatchPredictionJob(request); + client.innerApiCalls.cancelNasJob = stubSimpleCall(expectedResponse); + const [response] = await client.cancelNasJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes cancelBatchPredictionJob without error using callback', async () => { + it('invokes cancelNasJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.CancelNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CancelNasJobRequest', ['name'] ); request.name = defaultValue1; @@ -1794,10 +1776,10 @@ describe('v1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.cancelBatchPredictionJob = + client.innerApiCalls.cancelNasJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.cancelBatchPredictionJob( + client.cancelNasJob( request, ( err?: Error | null, @@ -1814,133 +1796,124 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes cancelBatchPredictionJob with error', async () => { + it('invokes cancelNasJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.CancelNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CancelNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.cancelBatchPredictionJob = stubSimpleCall( + client.innerApiCalls.cancelNasJob = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.cancelBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.cancelNasJob(request), expectedError); const actualRequest = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes cancelBatchPredictionJob with closed client', async () => { + it('invokes cancelNasJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.CancelNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.CancelNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.cancelBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.cancelNasJob(request), expectedError); }); }); - describe('createModelDeploymentMonitoringJob', () => { - it('invokes createModelDeploymentMonitoringJob without error', async () => { + describe('getNasTrialDetail', () => { + it('invokes getNasTrialDetail without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.GetNasTrialDetailRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', - ['parent'] + '.google.cloud.aiplatform.v1.GetNasTrialDetailRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob() - ); - client.innerApiCalls.createModelDeploymentMonitoringJob = - stubSimpleCall(expectedResponse); - const [response] = await client.createModelDeploymentMonitoringJob( - request + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ); + client.innerApiCalls.getNasTrialDetail = stubSimpleCall(expectedResponse); + const [response] = await client.getNasTrialDetail(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes getNasTrialDetail without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.GetNasTrialDetailRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', - ['parent'] + '.google.cloud.aiplatform.v1.GetNasTrialDetailRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ); - client.innerApiCalls.createModelDeploymentMonitoringJob = + client.innerApiCalls.getNasTrialDetail = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createModelDeploymentMonitoringJob( + client.getNasTrialDetail( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob | null + result?: protos.google.cloud.aiplatform.v1.INasTrialDetail | null ) => { if (err) { reject(err); @@ -1953,131 +1926,125 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createModelDeploymentMonitoringJob with error', async () => { + it('invokes getNasTrialDetail with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.GetNasTrialDetailRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', - ['parent'] + '.google.cloud.aiplatform.v1.GetNasTrialDetailRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createModelDeploymentMonitoringJob = stubSimpleCall( + client.innerApiCalls.getNasTrialDetail = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.createModelDeploymentMonitoringJob(request), - expectedError - ); + await assert.rejects(client.getNasTrialDetail(request), expectedError); const actualRequest = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createModelDeploymentMonitoringJob with closed client', async () => { + it('invokes getNasTrialDetail with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.GetNasTrialDetailRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', - ['parent'] + '.google.cloud.aiplatform.v1.GetNasTrialDetailRequest', + ['name'] ); - request.parent = defaultValue1; + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.createModelDeploymentMonitoringJob(request), - expectedError - ); + await assert.rejects(client.getNasTrialDetail(request), expectedError); }); }); - describe('getModelDeploymentMonitoringJob', () => { - it('invokes getModelDeploymentMonitoringJob without error', async () => { + describe('createBatchPredictionJob', () => { + it('invokes createBatchPredictionJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', - ['name'] + '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob() + new protos.google.cloud.aiplatform.v1.BatchPredictionJob() ); - client.innerApiCalls.getModelDeploymentMonitoringJob = + client.innerApiCalls.createBatchPredictionJob = stubSimpleCall(expectedResponse); - const [response] = await client.getModelDeploymentMonitoringJob(request); + const [response] = await client.createBatchPredictionJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes createBatchPredictionJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', - ['name'] + '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob() + new protos.google.cloud.aiplatform.v1.BatchPredictionJob() ); - client.innerApiCalls.getModelDeploymentMonitoringJob = + client.innerApiCalls.createBatchPredictionJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getModelDeploymentMonitoringJob( + client.createBatchPredictionJob( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob | null + result?: protos.google.cloud.aiplatform.v1.IBatchPredictionJob | null ) => { if (err) { reject(err); @@ -2090,133 +2057,131 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getModelDeploymentMonitoringJob with error', async () => { + it('invokes createBatchPredictionJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', - ['name'] + '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getModelDeploymentMonitoringJob = stubSimpleCall( + client.innerApiCalls.createBatchPredictionJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.getModelDeploymentMonitoringJob(request), + client.createBatchPredictionJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getModelDeploymentMonitoringJob with closed client', async () => { + it('invokes createBatchPredictionJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', - ['name'] + '.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest', + ['parent'] ); - request.name = defaultValue1; + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.getModelDeploymentMonitoringJob(request), + client.createBatchPredictionJob(request), expectedError ); }); }); - describe('pauseModelDeploymentMonitoringJob', () => { - it('invokes pauseModelDeploymentMonitoringJob without error', async () => { + describe('getBatchPredictionJob', () => { + it('invokes getBatchPredictionJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.aiplatform.v1.BatchPredictionJob() ); - client.innerApiCalls.pauseModelDeploymentMonitoringJob = + client.innerApiCalls.getBatchPredictionJob = stubSimpleCall(expectedResponse); - const [response] = await client.pauseModelDeploymentMonitoringJob( - request - ); + const [response] = await client.getBatchPredictionJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pauseModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes getBatchPredictionJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.aiplatform.v1.BatchPredictionJob() ); - client.innerApiCalls.pauseModelDeploymentMonitoringJob = + client.innerApiCalls.getBatchPredictionJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.pauseModelDeploymentMonitoringJob( + client.getBatchPredictionJob( request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.cloud.aiplatform.v1.IBatchPredictionJob | null ) => { if (err) { reject(err); @@ -2229,84 +2194,84 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pauseModelDeploymentMonitoringJob with error', async () => { + it('invokes getBatchPredictionJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.pauseModelDeploymentMonitoringJob = stubSimpleCall( + client.innerApiCalls.getBatchPredictionJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.pauseModelDeploymentMonitoringJob(request), + client.getBatchPredictionJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pauseModelDeploymentMonitoringJob with closed client', async () => { + it('invokes getBatchPredictionJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.pauseModelDeploymentMonitoringJob(request), + client.getBatchPredictionJob(request), expectedError ); }); }); - describe('resumeModelDeploymentMonitoringJob', () => { - it('invokes resumeModelDeploymentMonitoringJob without error', async () => { + describe('cancelBatchPredictionJob', () => { + it('invokes cancelBatchPredictionJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -2314,33 +2279,31 @@ describe('v1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.resumeModelDeploymentMonitoringJob = + client.innerApiCalls.cancelBatchPredictionJob = stubSimpleCall(expectedResponse); - const [response] = await client.resumeModelDeploymentMonitoringJob( - request - ); + const [response] = await client.cancelBatchPredictionJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resumeModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes cancelBatchPredictionJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -2348,10 +2311,10 @@ describe('v1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.resumeModelDeploymentMonitoringJob = + client.innerApiCalls.cancelBatchPredictionJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.resumeModelDeploymentMonitoringJob( + client.cancelBatchPredictionJob( request, ( err?: Error | null, @@ -2368,135 +2331,133 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resumeModelDeploymentMonitoringJob with error', async () => { + it('invokes cancelBatchPredictionJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.resumeModelDeploymentMonitoringJob = stubSimpleCall( + client.innerApiCalls.cancelBatchPredictionJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.resumeModelDeploymentMonitoringJob(request), + client.cancelBatchPredictionJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resumeModelDeploymentMonitoringJob with closed client', async () => { + it('invokes cancelBatchPredictionJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.resumeModelDeploymentMonitoringJob(request), + client.cancelBatchPredictionJob(request), expectedError ); }); }); - describe('deleteCustomJob', () => { - it('invokes deleteCustomJob without error', async () => { + describe('createModelDeploymentMonitoringJob', () => { + it('invokes createModelDeploymentMonitoringJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() + new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', - ['name'] + '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob() + ); + client.innerApiCalls.createModelDeploymentMonitoringJob = + stubSimpleCall(expectedResponse); + const [response] = await client.createModelDeploymentMonitoringJob( + request ); - client.innerApiCalls.deleteCustomJob = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteCustomJob(request); - const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteCustomJob without error using callback', async () => { + it('invokes createModelDeploymentMonitoringJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() + new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', - ['name'] + '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob() ); - client.innerApiCalls.deleteCustomJob = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.createModelDeploymentMonitoringJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteCustomJob( + client.createModelDeploymentMonitoringJob( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - > | null + result?: protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob | null ) => { if (err) { reject(err); @@ -2506,191 +2467,273 @@ describe('v1.JobServiceClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteCustomJob with call error', async () => { + it('invokes createModelDeploymentMonitoringJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() + new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', - ['name'] + '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteCustomJob = stubLongRunningCall( + client.innerApiCalls.createModelDeploymentMonitoringJob = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.deleteCustomJob(request), expectedError); + await assert.rejects( + client.createModelDeploymentMonitoringJob(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteCustomJob with LRO error', async () => { + it('invokes createModelDeploymentMonitoringJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() + new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', + '.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createModelDeploymentMonitoringJob(request), + expectedError + ); + }); + }); + + describe('getModelDeploymentMonitoringJob', () => { + it('invokes getModelDeploymentMonitoringJob without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteCustomJob = stubLongRunningCall( - undefined, - undefined, - expectedError + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob() ); - const [operation] = await client.deleteCustomJob(request); - await assert.rejects(operation.promise(), expectedError); + client.innerApiCalls.getModelDeploymentMonitoringJob = + stubSimpleCall(expectedResponse); + const [response] = await client.getModelDeploymentMonitoringJob(request); + assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteCustomJobProgress without error', async () => { + it('invokes getModelDeploymentMonitoringJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() ); - 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.checkDeleteCustomJobProgress( - expectedResponse.name + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', + ['name'] ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob() + ); + client.innerApiCalls.getModelDeploymentMonitoringJob = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getModelDeploymentMonitoringJob( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteCustomJobProgress with error', async () => { + it('invokes getModelDeploymentMonitoringJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( + client.innerApiCalls.getModelDeploymentMonitoringJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.checkDeleteCustomJobProgress(''), + client.getModelDeploymentMonitoringJob(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getModelDeploymentMonitoringJob with closed client', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getModelDeploymentMonitoringJob(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteDataLabelingJob', () => { - it('invokes deleteDataLabelingJob without error', async () => { + describe('pauseModelDeploymentMonitoringJob', () => { + it('invokes pauseModelDeploymentMonitoringJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() + new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.pauseModelDeploymentMonitoringJob = + stubSimpleCall(expectedResponse); + const [response] = await client.pauseModelDeploymentMonitoringJob( + request ); - client.innerApiCalls.deleteDataLabelingJob = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteDataLabelingJob(request); - const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteDataLabelingJob without error using callback', async () => { + it('invokes pauseModelDeploymentMonitoringJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() + new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteDataLabelingJob = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.pauseModelDeploymentMonitoringJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteDataLabelingJob( + client.pauseModelDeploymentMonitoringJob( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - > | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -2700,194 +2743,136 @@ describe('v1.JobServiceClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteDataLabelingJob with call error', async () => { + it('invokes pauseModelDeploymentMonitoringJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() + new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall( + client.innerApiCalls.pauseModelDeploymentMonitoringJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.deleteDataLabelingJob(request), + client.pauseModelDeploymentMonitoringJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteDataLabelingJob with LRO error', async () => { + it('invokes pauseModelDeploymentMonitoringJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() + new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.deleteDataLabelingJob(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkDeleteDataLabelingJobProgress without error', async () => { - const client = new jobserviceModule.v1.JobServiceClient({ - 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.checkDeleteDataLabelingJobProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkDeleteDataLabelingJobProgress with error', async () => { - const client = new jobserviceModule.v1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); + const expectedError = new Error('The client has already been closed.'); + client.close(); await assert.rejects( - client.checkDeleteDataLabelingJobProgress(''), + client.pauseModelDeploymentMonitoringJob(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteHyperparameterTuningJob', () => { - it('invokes deleteHyperparameterTuningJob without error', async () => { + describe('resumeModelDeploymentMonitoringJob', () => { + it('invokes resumeModelDeploymentMonitoringJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() + new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.resumeModelDeploymentMonitoringJob = + stubSimpleCall(expectedResponse); + const [response] = await client.resumeModelDeploymentMonitoringJob( + request ); - client.innerApiCalls.deleteHyperparameterTuningJob = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteHyperparameterTuningJob(request); - const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteHyperparameterTuningJob without error using callback', async () => { + it('invokes resumeModelDeploymentMonitoringJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() + new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteHyperparameterTuningJob = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.resumeModelDeploymentMonitoringJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteHyperparameterTuningJob( + client.resumeModelDeploymentMonitoringJob( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - > | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -2897,144 +2882,87 @@ describe('v1.JobServiceClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteHyperparameterTuningJob with call error', async () => { + it('invokes resumeModelDeploymentMonitoringJob with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() + new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall( + client.innerApiCalls.resumeModelDeploymentMonitoringJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.deleteHyperparameterTuningJob(request), + client.resumeModelDeploymentMonitoringJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteHyperparameterTuningJob with LRO error', async () => { + it('invokes resumeModelDeploymentMonitoringJob with closed client', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() + new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.deleteHyperparameterTuningJob(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkDeleteHyperparameterTuningJobProgress without error', async () => { - const client = new jobserviceModule.v1.JobServiceClient({ - 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.checkDeleteHyperparameterTuningJobProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkDeleteHyperparameterTuningJobProgress with error', async () => { - const client = new jobserviceModule.v1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); + const expectedError = new Error('The client has already been closed.'); + client.close(); await assert.rejects( - client.checkDeleteHyperparameterTuningJobProgress(''), + client.resumeModelDeploymentMonitoringJob(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteBatchPredictionJob', () => { - it('invokes deleteBatchPredictionJob without error', async () => { + describe('deleteCustomJob', () => { + it('invokes deleteCustomJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', ['name'] ); request.name = defaultValue1; @@ -3042,32 +2970,32 @@ describe('v1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteBatchPredictionJob = + client.innerApiCalls.deleteCustomJob = stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteBatchPredictionJob(request); + const [operation] = await client.deleteCustomJob(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteBatchPredictionJob without error using callback', async () => { + it('invokes deleteCustomJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', ['name'] ); request.name = defaultValue1; @@ -3075,10 +3003,10 @@ describe('v1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteBatchPredictionJob = + client.innerApiCalls.deleteCustomJob = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteBatchPredictionJob( + client.deleteCustomJob( request, ( err?: Error | null, @@ -3102,83 +3030,80 @@ describe('v1.JobServiceClient', () => { const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteBatchPredictionJob with call error', async () => { + it('invokes deleteCustomJob with call error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteBatchPredictionJob = stubLongRunningCall( + client.innerApiCalls.deleteCustomJob = stubLongRunningCall( undefined, expectedError ); - await assert.rejects( - client.deleteBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.deleteCustomJob(request), expectedError); const actualRequest = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteBatchPredictionJob with LRO error', async () => { + it('invokes deleteCustomJob with LRO error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteCustomJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1.DeleteCustomJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteBatchPredictionJob = stubLongRunningCall( + client.innerApiCalls.deleteCustomJob = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.deleteBatchPredictionJob(request); + const [operation] = await client.deleteCustomJob(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteBatchPredictionJobProgress without error', async () => { + it('invokes checkDeleteCustomJobProgress without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3192,16 +3117,15 @@ describe('v1.JobServiceClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = - await client.checkDeleteBatchPredictionJobProgress( - expectedResponse.name - ); + const decodedOperation = await client.checkDeleteCustomJobProgress( + expectedResponse.name + ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); assert(decodedOperation.metadata); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkDeleteBatchPredictionJobProgress with error', async () => { + it('invokes checkDeleteCustomJobProgress with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3214,79 +3138,75 @@ describe('v1.JobServiceClient', () => { expectedError ); await assert.rejects( - client.checkDeleteBatchPredictionJobProgress(''), + client.checkDeleteCustomJobProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('updateModelDeploymentMonitoringJob', () => { - it('invokes updateModelDeploymentMonitoringJob without error', async () => { + describe('deleteDataLabelingJob', () => { + it('invokes deleteDataLabelingJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() ); - request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', - ['modelDeploymentMonitoringJob', 'name'] + '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', + ['name'] ); - request.modelDeploymentMonitoringJob.name = defaultValue1; - const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updateModelDeploymentMonitoringJob = + client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall(expectedResponse); - const [operation] = await client.updateModelDeploymentMonitoringJob( - request - ); + const [operation] = await client.deleteDataLabelingJob(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes deleteDataLabelingJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() ); - request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', - ['modelDeploymentMonitoringJob', 'name'] + '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', + ['name'] ); - request.modelDeploymentMonitoringJob.name = defaultValue1; - const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updateModelDeploymentMonitoringJob = + client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateModelDeploymentMonitoringJob( + client.deleteDataLabelingJob( request, ( err?: Error | null, result?: LROperation< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata > | null ) => { if (err) { @@ -3298,88 +3218,89 @@ describe('v1.JobServiceClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateModelDeploymentMonitoringJob with call error', async () => { + it('invokes deleteDataLabelingJob with call error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() ); - request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', - ['modelDeploymentMonitoringJob', 'name'] + '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', + ['name'] ); - request.modelDeploymentMonitoringJob.name = defaultValue1; - const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateModelDeploymentMonitoringJob = - stubLongRunningCall(undefined, expectedError); + client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall( + undefined, + expectedError + ); await assert.rejects( - client.updateModelDeploymentMonitoringJob(request), + client.deleteDataLabelingJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateModelDeploymentMonitoringJob with LRO error', async () => { + it('invokes deleteDataLabelingJob with LRO error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest() ); - request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', - ['modelDeploymentMonitoringJob', 'name'] + '.google.cloud.aiplatform.v1.DeleteDataLabelingJobRequest', + ['name'] ); - request.modelDeploymentMonitoringJob.name = defaultValue1; - const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateModelDeploymentMonitoringJob = - stubLongRunningCall(undefined, undefined, expectedError); - const [operation] = await client.updateModelDeploymentMonitoringJob( - request + client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall( + undefined, + undefined, + expectedError ); + const [operation] = await client.deleteDataLabelingJob(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkUpdateModelDeploymentMonitoringJobProgress without error', async () => { + it('invokes checkDeleteDataLabelingJobProgress without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3393,16 +3314,15 @@ describe('v1.JobServiceClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = - await client.checkUpdateModelDeploymentMonitoringJobProgress( - expectedResponse.name - ); + const decodedOperation = await client.checkDeleteDataLabelingJobProgress( + expectedResponse.name + ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); assert(decodedOperation.metadata); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkUpdateModelDeploymentMonitoringJobProgress with error', async () => { + it('invokes checkDeleteDataLabelingJobProgress with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3415,25 +3335,25 @@ describe('v1.JobServiceClient', () => { expectedError ); await assert.rejects( - client.checkUpdateModelDeploymentMonitoringJobProgress(''), + client.checkDeleteDataLabelingJobProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteModelDeploymentMonitoringJob', () => { - it('invokes deleteModelDeploymentMonitoringJob without error', async () => { + describe('deleteHyperparameterTuningJob', () => { + it('invokes deleteHyperparameterTuningJob without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -3441,34 +3361,32 @@ describe('v1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteModelDeploymentMonitoringJob = + client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteModelDeploymentMonitoringJob( - request - ); + const [operation] = await client.deleteHyperparameterTuningJob(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes deleteHyperparameterTuningJob without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -3476,10 +3394,10 @@ describe('v1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteModelDeploymentMonitoringJob = + client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteModelDeploymentMonitoringJob( + client.deleteHyperparameterTuningJob( request, ( err?: Error | null, @@ -3503,80 +3421,83 @@ describe('v1.JobServiceClient', () => { const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteModelDeploymentMonitoringJob with call error', async () => { + it('invokes deleteHyperparameterTuningJob with call error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteModelDeploymentMonitoringJob = - stubLongRunningCall(undefined, expectedError); + client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall( + undefined, + expectedError + ); await assert.rejects( - client.deleteModelDeploymentMonitoringJob(request), + client.deleteHyperparameterTuningJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteModelDeploymentMonitoringJob with LRO error', async () => { + it('invokes deleteHyperparameterTuningJob with LRO error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteModelDeploymentMonitoringJob = - stubLongRunningCall(undefined, undefined, expectedError); - const [operation] = await client.deleteModelDeploymentMonitoringJob( - request + client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall( + undefined, + undefined, + expectedError ); + const [operation] = await client.deleteHyperparameterTuningJob(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteModelDeploymentMonitoringJobProgress without error', async () => { + it('invokes checkDeleteHyperparameterTuningJobProgress without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3591,7 +3512,7 @@ describe('v1.JobServiceClient', () => { client.operationsClient.getOperation = stubSimpleCall(expectedResponse); const decodedOperation = - await client.checkDeleteModelDeploymentMonitoringJobProgress( + await client.checkDeleteHyperparameterTuningJobProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -3599,7 +3520,7 @@ describe('v1.JobServiceClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkDeleteModelDeploymentMonitoringJobProgress with error', async () => { + it('invokes checkDeleteHyperparameterTuningJobProgress with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3611,88 +3532,1532 @@ describe('v1.JobServiceClient', () => { undefined, expectedError ); - await assert.rejects( - client.checkDeleteModelDeploymentMonitoringJobProgress(''), - expectedError + await assert.rejects( + client.checkDeleteHyperparameterTuningJobProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteNasJob', () => { + it('invokes deleteNasJob without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteNasJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteNasJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteNasJob = stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteNasJob(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNasJob without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteNasJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteNasJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteNasJob = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteNasJob( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNasJob with call error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteNasJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteNasJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteNasJob = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteNasJob(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNasJob with LRO error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteNasJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteNasJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteNasJob = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteNasJob(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteNasJobProgress without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + 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.checkDeleteNasJobProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteNasJobProgress with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + 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.checkDeleteNasJobProgress(''), expectedError); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteBatchPredictionJob', () => { + it('invokes deleteBatchPredictionJob without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteBatchPredictionJob = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteBatchPredictionJob(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteBatchPredictionJob without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteBatchPredictionJob = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteBatchPredictionJob( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteBatchPredictionJob with call error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteBatchPredictionJob = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteBatchPredictionJob(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteBatchPredictionJob with LRO error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteBatchPredictionJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteBatchPredictionJob = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteBatchPredictionJob(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteBatchPredictionJobProgress without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + 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.checkDeleteBatchPredictionJobProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteBatchPredictionJobProgress with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + 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.checkDeleteBatchPredictionJobProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateModelDeploymentMonitoringJob', () => { + it('invokes updateModelDeploymentMonitoringJob without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest() + ); + request.modelDeploymentMonitoringJob ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', + ['modelDeploymentMonitoringJob', 'name'] + ); + request.modelDeploymentMonitoringJob.name = defaultValue1; + const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateModelDeploymentMonitoringJob = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateModelDeploymentMonitoringJob( + request + ); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateModelDeploymentMonitoringJob without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest() + ); + request.modelDeploymentMonitoringJob ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', + ['modelDeploymentMonitoringJob', 'name'] + ); + request.modelDeploymentMonitoringJob.name = defaultValue1; + const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateModelDeploymentMonitoringJob = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateModelDeploymentMonitoringJob( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateModelDeploymentMonitoringJob with call error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest() + ); + request.modelDeploymentMonitoringJob ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', + ['modelDeploymentMonitoringJob', 'name'] + ); + request.modelDeploymentMonitoringJob.name = defaultValue1; + const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateModelDeploymentMonitoringJob = + stubLongRunningCall(undefined, expectedError); + await assert.rejects( + client.updateModelDeploymentMonitoringJob(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateModelDeploymentMonitoringJob with LRO error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest() + ); + request.modelDeploymentMonitoringJob ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.UpdateModelDeploymentMonitoringJobRequest', + ['modelDeploymentMonitoringJob', 'name'] + ); + request.modelDeploymentMonitoringJob.name = defaultValue1; + const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateModelDeploymentMonitoringJob = + stubLongRunningCall(undefined, undefined, expectedError); + const [operation] = await client.updateModelDeploymentMonitoringJob( + request + ); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdateModelDeploymentMonitoringJobProgress without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + 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.checkUpdateModelDeploymentMonitoringJobProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateModelDeploymentMonitoringJobProgress with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + 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.checkUpdateModelDeploymentMonitoringJobProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteModelDeploymentMonitoringJob', () => { + it('invokes deleteModelDeploymentMonitoringJob without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteModelDeploymentMonitoringJob = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteModelDeploymentMonitoringJob( + request + ); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteModelDeploymentMonitoringJob without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteModelDeploymentMonitoringJob = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteModelDeploymentMonitoringJob( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteModelDeploymentMonitoringJob with call error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteModelDeploymentMonitoringJob = + stubLongRunningCall(undefined, expectedError); + await assert.rejects( + client.deleteModelDeploymentMonitoringJob(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteModelDeploymentMonitoringJob with LRO error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.DeleteModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteModelDeploymentMonitoringJob = + stubLongRunningCall(undefined, undefined, expectedError); + const [operation] = await client.deleteModelDeploymentMonitoringJob( + request + ); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteModelDeploymentMonitoringJobProgress without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + 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.checkDeleteModelDeploymentMonitoringJobProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteModelDeploymentMonitoringJobProgress with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + 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.checkDeleteModelDeploymentMonitoringJobProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('listCustomJobs', () => { + it('invokes listCustomJobs without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + ]; + client.innerApiCalls.listCustomJobs = stubSimpleCall(expectedResponse); + const [response] = await client.listCustomJobs(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listCustomJobs without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + ]; + client.innerApiCalls.listCustomJobs = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listCustomJobs( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.ICustomJob[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listCustomJobs with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listCustomJobs = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listCustomJobs(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listCustomJobsStream without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + ]; + client.descriptors.page.listCustomJobs.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listCustomJobsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.CustomJob[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.CustomJob) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listCustomJobs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listCustomJobs, request) + ); + assert( + (client.descriptors.page.listCustomJobs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listCustomJobsStream with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listCustomJobs.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listCustomJobsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.CustomJob[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.CustomJob) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listCustomJobs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listCustomJobs, request) + ); + assert( + (client.descriptors.page.listCustomJobs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listCustomJobs without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.CustomJob() + ), + ]; + client.descriptors.page.listCustomJobs.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1.ICustomJob[] = []; + const iterable = client.listCustomJobsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listCustomJobs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listCustomJobs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listCustomJobs with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listCustomJobs.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listCustomJobsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1.ICustomJob[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listCustomJobs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listCustomJobs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listDataLabelingJobs', () => { + it('invokes listDataLabelingJobs without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + ]; + client.innerApiCalls.listDataLabelingJobs = + stubSimpleCall(expectedResponse); + const [response] = await client.listDataLabelingJobs(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDataLabelingJobs without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + ]; + client.innerApiCalls.listDataLabelingJobs = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listDataLabelingJobs( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IDataLabelingJob[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDataLabelingJobs with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listDataLabelingJobs = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listDataLabelingJobs(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDataLabelingJobsStream without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + ]; + client.descriptors.page.listDataLabelingJobs.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listDataLabelingJobsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.DataLabelingJob[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.DataLabelingJob) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDataLabelingJobs, request) + ); + assert( + (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listDataLabelingJobsStream with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listDataLabelingJobs.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listDataLabelingJobsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.DataLabelingJob[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.DataLabelingJob) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDataLabelingJobs, request) + ); + assert( + (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDataLabelingJobs without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.DataLabelingJob() + ), + ]; + client.descriptors.page.listDataLabelingJobs.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1.IDataLabelingJob[] = + []; + const iterable = client.listDataLabelingJobsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDataLabelingJobs with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listDataLabelingJobs.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listDataLabelingJobsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1.IDataLabelingJob[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('listCustomJobs', () => { - it('invokes listCustomJobs without error', async () => { + describe('listHyperparameterTuningJobs', () => { + it('invokes listHyperparameterTuningJobs without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), ]; - client.innerApiCalls.listCustomJobs = stubSimpleCall(expectedResponse); - const [response] = await client.listCustomJobs(request); + client.innerApiCalls.listHyperparameterTuningJobs = + stubSimpleCall(expectedResponse); + const [response] = await client.listHyperparameterTuningJobs(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomJobs without error using callback', async () => { + it('invokes listHyperparameterTuningJobs without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), ]; - client.innerApiCalls.listCustomJobs = + client.innerApiCalls.listHyperparameterTuningJobs = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listCustomJobs( + client.listHyperparameterTuningJobs( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1.ICustomJob[] | null + result?: + | protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[] + | null ) => { if (err) { reject(err); @@ -3705,80 +5070,86 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomJobs with error', async () => { + it('invokes listHyperparameterTuningJobs with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listCustomJobs = stubSimpleCall( + client.innerApiCalls.listHyperparameterTuningJobs = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listCustomJobs(request), expectedError); + await assert.rejects( + client.listHyperparameterTuningJobs(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomJobsStream without error', async () => { + it('invokes listHyperparameterTuningJobsStream without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), ]; - client.descriptors.page.listCustomJobs.createStream = + client.descriptors.page.listHyperparameterTuningJobs.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listCustomJobsStream(request); + const stream = client.listHyperparameterTuningJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.CustomJob[] = []; + const responses: protos.google.cloud.aiplatform.v1.HyperparameterTuningJob[] = + []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1.CustomJob) => { + ( + response: protos.google.cloud.aiplatform.v1.HyperparameterTuningJob + ) => { responses.push(response); } ); @@ -3792,12 +5163,21 @@ describe('v1.JobServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listCustomJobs.createStream as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listCustomJobs, request) + .calledWith( + client.innerApiCalls.listHyperparameterTuningJobs, + request + ) ); assert( - (client.descriptors.page.listCustomJobs.createStream as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3805,30 +5185,33 @@ describe('v1.JobServiceClient', () => { ); }); - it('invokes listCustomJobsStream with error', async () => { + it('invokes listHyperparameterTuningJobsStream with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCustomJobs.createStream = + client.descriptors.page.listHyperparameterTuningJobs.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listCustomJobsStream(request); + const stream = client.listHyperparameterTuningJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.CustomJob[] = []; + const responses: protos.google.cloud.aiplatform.v1.HyperparameterTuningJob[] = + []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1.CustomJob) => { + ( + response: protos.google.cloud.aiplatform.v1.HyperparameterTuningJob + ) => { responses.push(response); } ); @@ -3841,12 +5224,21 @@ describe('v1.JobServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listCustomJobs.createStream as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listCustomJobs, request) + .calledWith( + client.innerApiCalls.listHyperparameterTuningJobs, + request + ) ); assert( - (client.descriptors.page.listCustomJobs.createStream as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3854,48 +5246,53 @@ describe('v1.JobServiceClient', () => { ); }); - it('uses async iteration with listCustomJobs without error', async () => { + it('uses async iteration with listHyperparameterTuningJobs without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.CustomJob() + new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() ), ]; - client.descriptors.page.listCustomJobs.asyncIterate = + client.descriptors.page.listHyperparameterTuningJobs.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1.ICustomJob[] = []; - const iterable = client.listCustomJobsAsync(request); + const responses: protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[] = + []; + const iterable = client.listHyperparameterTuningJobsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listCustomJobs.asyncIterate as SinonStub + client.descriptors.page.listHyperparameterTuningJobs + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCustomJobs.asyncIterate as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3903,39 +5300,44 @@ describe('v1.JobServiceClient', () => { ); }); - it('uses async iteration with listCustomJobs with error', async () => { + it('uses async iteration with listHyperparameterTuningJobs with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCustomJobs.asyncIterate = + client.descriptors.page.listHyperparameterTuningJobs.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listCustomJobsAsync(request); + const iterable = client.listHyperparameterTuningJobsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1.ICustomJob[] = []; + const responses: protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listCustomJobs.asyncIterate as SinonStub + client.descriptors.page.listHyperparameterTuningJobs + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCustomJobs.asyncIterate as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3944,81 +5346,68 @@ describe('v1.JobServiceClient', () => { }); }); - describe('listDataLabelingJobs', () => { - it('invokes listDataLabelingJobs without error', async () => { + describe('listNasJobs', () => { + it('invokes listNasJobs without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), ]; - client.innerApiCalls.listDataLabelingJobs = - stubSimpleCall(expectedResponse); - const [response] = await client.listDataLabelingJobs(request); + client.innerApiCalls.listNasJobs = stubSimpleCall(expectedResponse); + const [response] = await client.listNasJobs(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataLabelingJobs without error using callback', async () => { + it('invokes listNasJobs without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), ]; - client.innerApiCalls.listDataLabelingJobs = + client.innerApiCalls.listNasJobs = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listDataLabelingJobs( + client.listNasJobs( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1.IDataLabelingJob[] | null + result?: protos.google.cloud.aiplatform.v1.INasJob[] | null ) => { if (err) { reject(err); @@ -4031,81 +5420,74 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataLabelingJobs with error', async () => { + it('invokes listNasJobs with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listDataLabelingJobs = stubSimpleCall( + client.innerApiCalls.listNasJobs = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listDataLabelingJobs(request), expectedError); + await assert.rejects(client.listNasJobs(request), expectedError); const actualRequest = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataLabelingJobsStream without error', async () => { + it('invokes listNasJobsStream without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), ]; - client.descriptors.page.listDataLabelingJobs.createStream = + client.descriptors.page.listNasJobs.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listDataLabelingJobsStream(request); + const stream = client.listNasJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.DataLabelingJob[] = - []; + const responses: protos.google.cloud.aiplatform.v1.NasJob[] = []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1.DataLabelingJob) => { + (response: protos.google.cloud.aiplatform.v1.NasJob) => { responses.push(response); } ); @@ -4119,12 +5501,12 @@ describe('v1.JobServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + (client.descriptors.page.listNasJobs.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listDataLabelingJobs, request) + .calledWith(client.innerApiCalls.listNasJobs, request) ); assert( - (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + (client.descriptors.page.listNasJobs.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4132,31 +5514,32 @@ describe('v1.JobServiceClient', () => { ); }); - it('invokes listDataLabelingJobsStream with error', async () => { + it('invokes listNasJobsStream with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDataLabelingJobs.createStream = - stubPageStreamingCall(undefined, expectedError); - const stream = client.listDataLabelingJobsStream(request); + client.descriptors.page.listNasJobs.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listNasJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.DataLabelingJob[] = - []; + const responses: protos.google.cloud.aiplatform.v1.NasJob[] = []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1.DataLabelingJob) => { + (response: protos.google.cloud.aiplatform.v1.NasJob) => { responses.push(response); } ); @@ -4169,12 +5552,12 @@ describe('v1.JobServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + (client.descriptors.page.listNasJobs.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listDataLabelingJobs, request) + .calledWith(client.innerApiCalls.listNasJobs, request) ); assert( - (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + (client.descriptors.page.listNasJobs.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4182,49 +5565,42 @@ describe('v1.JobServiceClient', () => { ); }); - it('uses async iteration with listDataLabelingJobs without error', async () => { + it('uses async iteration with listNasJobs without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.DataLabelingJob() - ), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.NasJob()), ]; - client.descriptors.page.listDataLabelingJobs.asyncIterate = + client.descriptors.page.listNasJobs.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1.IDataLabelingJob[] = - []; - const iterable = client.listDataLabelingJobsAsync(request); + const responses: protos.google.cloud.aiplatform.v1.INasJob[] = []; + const iterable = client.listNasJobsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - ( - client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub - ).getCall(0).args[1], + (client.descriptors.page.listNasJobs.asyncIterate as SinonStub).getCall( + 0 + ).args[1], request ); assert( - (client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub) + (client.descriptors.page.listNasJobs.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4232,40 +5608,41 @@ describe('v1.JobServiceClient', () => { ); }); - it('uses async iteration with listDataLabelingJobs with error', async () => { + it('uses async iteration with listNasJobs with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDataLabelingJobs.asyncIterate = - stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listDataLabelingJobsAsync(request); + client.descriptors.page.listNasJobs.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listNasJobsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1.IDataLabelingJob[] = - []; + const responses: protos.google.cloud.aiplatform.v1.INasJob[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - ( - client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub - ).getCall(0).args[1], + (client.descriptors.page.listNasJobs.asyncIterate as SinonStub).getCall( + 0 + ).args[1], request ); assert( - (client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub) + (client.descriptors.page.listNasJobs.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4274,83 +5651,81 @@ describe('v1.JobServiceClient', () => { }); }); - describe('listHyperparameterTuningJobs', () => { - it('invokes listHyperparameterTuningJobs without error', async () => { + describe('listNasTrialDetails', () => { + it('invokes listNasTrialDetails without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), ]; - client.innerApiCalls.listHyperparameterTuningJobs = + client.innerApiCalls.listNasTrialDetails = stubSimpleCall(expectedResponse); - const [response] = await client.listHyperparameterTuningJobs(request); + const [response] = await client.listNasTrialDetails(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listHyperparameterTuningJobs without error using callback', async () => { + it('invokes listNasTrialDetails without error using callback', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), ]; - client.innerApiCalls.listHyperparameterTuningJobs = + client.innerApiCalls.listNasTrialDetails = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listHyperparameterTuningJobs( + client.listNasTrialDetails( request, ( err?: Error | null, - result?: - | protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[] - | null + result?: protos.google.cloud.aiplatform.v1.INasTrialDetail[] | null ) => { if (err) { reject(err); @@ -4363,86 +5738,81 @@ describe('v1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listHyperparameterTuningJobs with error', async () => { + it('invokes listNasTrialDetails with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listHyperparameterTuningJobs = stubSimpleCall( + client.innerApiCalls.listNasTrialDetails = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listHyperparameterTuningJobs(request), - expectedError - ); + await assert.rejects(client.listNasTrialDetails(request), expectedError); const actualRequest = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listHyperparameterTuningJobsStream without error', async () => { + it('invokes listNasTrialDetailsStream without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), ]; - client.descriptors.page.listHyperparameterTuningJobs.createStream = + client.descriptors.page.listNasTrialDetails.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listHyperparameterTuningJobsStream(request); + const stream = client.listNasTrialDetailsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.HyperparameterTuningJob[] = + const responses: protos.google.cloud.aiplatform.v1.NasTrialDetail[] = []; stream.on( 'data', - ( - response: protos.google.cloud.aiplatform.v1.HyperparameterTuningJob - ) => { + (response: protos.google.cloud.aiplatform.v1.NasTrialDetail) => { responses.push(response); } ); @@ -4456,21 +5826,12 @@ describe('v1.JobServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .createStream as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listHyperparameterTuningJobs, - request - ) + .calledWith(client.innerApiCalls.listNasTrialDetails, request) ); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .createStream as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4478,33 +5839,31 @@ describe('v1.JobServiceClient', () => { ); }); - it('invokes listHyperparameterTuningJobsStream with error', async () => { + it('invokes listNasTrialDetailsStream with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listHyperparameterTuningJobs.createStream = + client.descriptors.page.listNasTrialDetails.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listHyperparameterTuningJobsStream(request); + const stream = client.listNasTrialDetailsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.HyperparameterTuningJob[] = + const responses: protos.google.cloud.aiplatform.v1.NasTrialDetail[] = []; stream.on( 'data', - ( - response: protos.google.cloud.aiplatform.v1.HyperparameterTuningJob - ) => { + (response: protos.google.cloud.aiplatform.v1.NasTrialDetail) => { responses.push(response); } ); @@ -4517,21 +5876,12 @@ describe('v1.JobServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .createStream as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listHyperparameterTuningJobs, - request - ) + .calledWith(client.innerApiCalls.listNasTrialDetails, request) ); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .createStream as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4539,53 +5889,48 @@ describe('v1.JobServiceClient', () => { ); }); - it('uses async iteration with listHyperparameterTuningJobs without error', async () => { + it('uses async iteration with listNasTrialDetails without error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1.NasTrialDetail() ), ]; - client.descriptors.page.listHyperparameterTuningJobs.asyncIterate = + client.descriptors.page.listNasTrialDetails.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[] = - []; - const iterable = client.listHyperparameterTuningJobsAsync(request); + const responses: protos.google.cloud.aiplatform.v1.INasTrialDetail[] = []; + const iterable = client.listNasTrialDetailsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listHyperparameterTuningJobs - .asyncIterate as SinonStub + client.descriptors.page.listNasTrialDetails.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .asyncIterate as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4593,27 +5938,27 @@ describe('v1.JobServiceClient', () => { ); }); - it('uses async iteration with listHyperparameterTuningJobs with error', async () => { + it('uses async iteration with listNasTrialDetails with error', async () => { const client = new jobserviceModule.v1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listHyperparameterTuningJobs.asyncIterate = + client.descriptors.page.listNasTrialDetails.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listHyperparameterTuningJobsAsync(request); + const iterable = client.listNasTrialDetailsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1.IHyperparameterTuningJob[] = + const responses: protos.google.cloud.aiplatform.v1.INasTrialDetail[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -4621,16 +5966,12 @@ describe('v1.JobServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listHyperparameterTuningJobs - .asyncIterate as SinonStub + client.descriptors.page.listNasTrialDetails.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .asyncIterate as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -8322,6 +9663,147 @@ describe('v1.JobServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_job_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_job_service_v1beta1.ts index e48659eb07e..5a5005799ca 100644 --- a/packages/google-cloud-aiplatform/test/gapic_job_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_job_service_v1beta1.ts @@ -1469,65 +1469,64 @@ describe('v1beta1.JobServiceClient', () => { }); }); - describe('createBatchPredictionJob', () => { - it('invokes createBatchPredictionJob without error', async () => { + describe('createNasJob', () => { + it('invokes createNasJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateNasJobRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.BatchPredictionJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ); - client.innerApiCalls.createBatchPredictionJob = - stubSimpleCall(expectedResponse); - const [response] = await client.createBatchPredictionJob(request); + client.innerApiCalls.createNasJob = stubSimpleCall(expectedResponse); + const [response] = await client.createNasJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createBatchPredictionJob without error using callback', async () => { + it('invokes createNasJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateNasJobRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.BatchPredictionJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ); - client.innerApiCalls.createBatchPredictionJob = + client.innerApiCalls.createNasJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createBatchPredictionJob( + client.createNasJob( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob | null + result?: protos.google.cloud.aiplatform.v1beta1.INasJob | null ) => { if (err) { reject(err); @@ -1540,131 +1539,124 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createBatchPredictionJob with error', async () => { + it('invokes createNasJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateNasJobRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createBatchPredictionJob = stubSimpleCall( + client.innerApiCalls.createNasJob = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.createBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.createNasJob(request), expectedError); const actualRequest = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createBatchPredictionJob as SinonStub + client.innerApiCalls.createNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createBatchPredictionJob with closed client', async () => { + it('invokes createNasJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateNasJobRequest', ['parent'] ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.createBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.createNasJob(request), expectedError); }); }); - describe('getBatchPredictionJob', () => { - it('invokes getBatchPredictionJob without error', async () => { + describe('getNasJob', () => { + it('invokes getNasJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.GetNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.BatchPredictionJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ); - client.innerApiCalls.getBatchPredictionJob = - stubSimpleCall(expectedResponse); - const [response] = await client.getBatchPredictionJob(request); + client.innerApiCalls.getNasJob = stubSimpleCall(expectedResponse); + const [response] = await client.getNasJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getBatchPredictionJob without error using callback', async () => { + it('invokes getNasJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.GetNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.BatchPredictionJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ); - client.innerApiCalls.getBatchPredictionJob = + client.innerApiCalls.getNasJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getBatchPredictionJob( + client.getNasJob( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob | null + result?: protos.google.cloud.aiplatform.v1beta1.INasJob | null ) => { if (err) { reject(err); @@ -1677,84 +1669,75 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getBatchPredictionJob with error', async () => { + it('invokes getNasJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.GetNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getBatchPredictionJob = stubSimpleCall( - undefined, - expectedError - ); - await assert.rejects( - client.getBatchPredictionJob(request), - expectedError - ); + client.innerApiCalls.getNasJob = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.getNasJob(request), expectedError); const actualRequest = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getBatchPredictionJob as SinonStub + client.innerApiCalls.getNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getBatchPredictionJob with closed client', async () => { + it('invokes getNasJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.GetNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.getBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.getNasJob(request), expectedError); }); }); - describe('cancelBatchPredictionJob', () => { - it('invokes cancelBatchPredictionJob without error', async () => { + describe('cancelNasJob', () => { + it('invokes cancelNasJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CancelNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelNasJobRequest', ['name'] ); request.name = defaultValue1; @@ -1762,31 +1745,30 @@ describe('v1beta1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.cancelBatchPredictionJob = - stubSimpleCall(expectedResponse); - const [response] = await client.cancelBatchPredictionJob(request); + client.innerApiCalls.cancelNasJob = stubSimpleCall(expectedResponse); + const [response] = await client.cancelNasJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes cancelBatchPredictionJob without error using callback', async () => { + it('invokes cancelNasJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CancelNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelNasJobRequest', ['name'] ); request.name = defaultValue1; @@ -1794,10 +1776,10 @@ describe('v1beta1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.cancelBatchPredictionJob = + client.innerApiCalls.cancelNasJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.cancelBatchPredictionJob( + client.cancelNasJob( request, ( err?: Error | null, @@ -1814,133 +1796,124 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes cancelBatchPredictionJob with error', async () => { + it('invokes cancelNasJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CancelNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.cancelBatchPredictionJob = stubSimpleCall( + client.innerApiCalls.cancelNasJob = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.cancelBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.cancelNasJob(request), expectedError); const actualRequest = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.cancelBatchPredictionJob as SinonStub + client.innerApiCalls.cancelNasJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes cancelBatchPredictionJob with closed client', async () => { + it('invokes cancelNasJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CancelNasJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelNasJobRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.cancelBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.cancelNasJob(request), expectedError); }); }); - describe('createModelDeploymentMonitoringJob', () => { - it('invokes createModelDeploymentMonitoringJob without error', async () => { + describe('getNasTrialDetail', () => { + it('invokes getNasTrialDetail without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', - ['parent'] + '.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob() - ); - client.innerApiCalls.createModelDeploymentMonitoringJob = - stubSimpleCall(expectedResponse); - const [response] = await client.createModelDeploymentMonitoringJob( - request + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ); + client.innerApiCalls.getNasTrialDetail = stubSimpleCall(expectedResponse); + const [response] = await client.getNasTrialDetail(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes getNasTrialDetail without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', - ['parent'] + '.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ); - client.innerApiCalls.createModelDeploymentMonitoringJob = + client.innerApiCalls.getNasTrialDetail = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.createModelDeploymentMonitoringJob( + client.getNasTrialDetail( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob | null + result?: protos.google.cloud.aiplatform.v1beta1.INasTrialDetail | null ) => { if (err) { reject(err); @@ -1953,131 +1926,125 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createModelDeploymentMonitoringJob with error', async () => { + it('invokes getNasTrialDetail with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', - ['parent'] + '.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest', + ['name'] ); - request.parent = defaultValue1; - const expectedHeaderRequestParams = `parent=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.createModelDeploymentMonitoringJob = stubSimpleCall( + client.innerApiCalls.getNasTrialDetail = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.createModelDeploymentMonitoringJob(request), - expectedError - ); + await assert.rejects(client.getNasTrialDetail(request), expectedError); const actualRequest = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getNasTrialDetail as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes createModelDeploymentMonitoringJob with closed client', async () => { + it('invokes getNasTrialDetail with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', - ['parent'] + '.google.cloud.aiplatform.v1beta1.GetNasTrialDetailRequest', + ['name'] ); - request.parent = defaultValue1; + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); - await assert.rejects( - client.createModelDeploymentMonitoringJob(request), - expectedError - ); + await assert.rejects(client.getNasTrialDetail(request), expectedError); }); }); - describe('getModelDeploymentMonitoringJob', () => { - it('invokes getModelDeploymentMonitoringJob without error', async () => { + describe('createBatchPredictionJob', () => { + it('invokes createBatchPredictionJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob() + new protos.google.cloud.aiplatform.v1beta1.BatchPredictionJob() ); - client.innerApiCalls.getModelDeploymentMonitoringJob = + client.innerApiCalls.createBatchPredictionJob = stubSimpleCall(expectedResponse); - const [response] = await client.getModelDeploymentMonitoringJob(request); + const [response] = await client.createBatchPredictionJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes createBatchPredictionJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob() + new protos.google.cloud.aiplatform.v1beta1.BatchPredictionJob() ); - client.innerApiCalls.getModelDeploymentMonitoringJob = + client.innerApiCalls.createBatchPredictionJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.getModelDeploymentMonitoringJob( + client.createBatchPredictionJob( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob | null + result?: protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob | null ) => { if (err) { reject(err); @@ -2090,133 +2057,131 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getModelDeploymentMonitoringJob with error', async () => { + it('invokes createBatchPredictionJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.getModelDeploymentMonitoringJob = stubSimpleCall( + client.innerApiCalls.createBatchPredictionJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.getModelDeploymentMonitoringJob(request), + client.createBatchPredictionJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.createBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes getModelDeploymentMonitoringJob with closed client', async () => { + it('invokes createBatchPredictionJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest', + ['parent'] ); - request.name = defaultValue1; + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.getModelDeploymentMonitoringJob(request), + client.createBatchPredictionJob(request), expectedError ); }); }); - describe('pauseModelDeploymentMonitoringJob', () => { - it('invokes pauseModelDeploymentMonitoringJob without error', async () => { + describe('getBatchPredictionJob', () => { + it('invokes getBatchPredictionJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.aiplatform.v1beta1.BatchPredictionJob() ); - client.innerApiCalls.pauseModelDeploymentMonitoringJob = + client.innerApiCalls.getBatchPredictionJob = stubSimpleCall(expectedResponse); - const [response] = await client.pauseModelDeploymentMonitoringJob( - request - ); + const [response] = await client.getBatchPredictionJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pauseModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes getBatchPredictionJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.protobuf.Empty() + new protos.google.cloud.aiplatform.v1beta1.BatchPredictionJob() ); - client.innerApiCalls.pauseModelDeploymentMonitoringJob = + client.innerApiCalls.getBatchPredictionJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.pauseModelDeploymentMonitoringJob( + client.getBatchPredictionJob( request, ( err?: Error | null, - result?: protos.google.protobuf.IEmpty | null + result?: protos.google.cloud.aiplatform.v1beta1.IBatchPredictionJob | null ) => { if (err) { reject(err); @@ -2229,84 +2194,84 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pauseModelDeploymentMonitoringJob with error', async () => { + it('invokes getBatchPredictionJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.pauseModelDeploymentMonitoringJob = stubSimpleCall( + client.innerApiCalls.getBatchPredictionJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.pauseModelDeploymentMonitoringJob(request), + client.getBatchPredictionJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.getBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes pauseModelDeploymentMonitoringJob with closed client', async () => { + it('invokes getBatchPredictionJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.pauseModelDeploymentMonitoringJob(request), + client.getBatchPredictionJob(request), expectedError ); }); }); - describe('resumeModelDeploymentMonitoringJob', () => { - it('invokes resumeModelDeploymentMonitoringJob without error', async () => { + describe('cancelBatchPredictionJob', () => { + it('invokes cancelBatchPredictionJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -2314,33 +2279,31 @@ describe('v1beta1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.resumeModelDeploymentMonitoringJob = + client.innerApiCalls.cancelBatchPredictionJob = stubSimpleCall(expectedResponse); - const [response] = await client.resumeModelDeploymentMonitoringJob( - request - ); + const [response] = await client.cancelBatchPredictionJob(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resumeModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes cancelBatchPredictionJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; @@ -2348,10 +2311,10 @@ describe('v1beta1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.resumeModelDeploymentMonitoringJob = + client.innerApiCalls.cancelBatchPredictionJob = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.resumeModelDeploymentMonitoringJob( + client.cancelBatchPredictionJob( request, ( err?: Error | null, @@ -2368,135 +2331,133 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resumeModelDeploymentMonitoringJob with error', async () => { + it('invokes cancelBatchPredictionJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.resumeModelDeploymentMonitoringJob = stubSimpleCall( + client.innerApiCalls.cancelBatchPredictionJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.resumeModelDeploymentMonitoringJob(request), + client.cancelBatchPredictionJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.cancelBatchPredictionJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes resumeModelDeploymentMonitoringJob with closed client', async () => { + it('invokes cancelBatchPredictionJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest', ['name'] ); request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( - client.resumeModelDeploymentMonitoringJob(request), + client.cancelBatchPredictionJob(request), expectedError ); }); }); - describe('deleteCustomJob', () => { - it('invokes deleteCustomJob without error', async () => { + describe('createModelDeploymentMonitoringJob', () => { + it('invokes createModelDeploymentMonitoringJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob() + ); + client.innerApiCalls.createModelDeploymentMonitoringJob = + stubSimpleCall(expectedResponse); + const [response] = await client.createModelDeploymentMonitoringJob( + request ); - client.innerApiCalls.deleteCustomJob = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteCustomJob(request); - const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteCustomJob without error using callback', async () => { + it('invokes createModelDeploymentMonitoringJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob() ); - client.innerApiCalls.deleteCustomJob = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.createModelDeploymentMonitoringJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteCustomJob( + client.createModelDeploymentMonitoringJob( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - > | null + result?: protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob | null ) => { if (err) { reject(err); @@ -2506,191 +2467,273 @@ describe('v1beta1.JobServiceClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteCustomJob with call error', async () => { + it('invokes createModelDeploymentMonitoringJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', - ['name'] + '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', + ['parent'] ); - request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteCustomJob = stubLongRunningCall( + client.innerApiCalls.createModelDeploymentMonitoringJob = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.deleteCustomJob(request), expectedError); + await assert.rejects( + client.createModelDeploymentMonitoringJob(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.createModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteCustomJob with LRO error', async () => { + it('invokes createModelDeploymentMonitoringJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() + new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', + '.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.createModelDeploymentMonitoringJob(request), + expectedError + ); + }); + }); + + describe('getModelDeploymentMonitoringJob', () => { + it('invokes getModelDeploymentMonitoringJob without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteCustomJob = stubLongRunningCall( - undefined, - undefined, - expectedError + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob() ); - const [operation] = await client.deleteCustomJob(request); - await assert.rejects(operation.promise(), expectedError); + client.innerApiCalls.getModelDeploymentMonitoringJob = + stubSimpleCall(expectedResponse); + const [response] = await client.getModelDeploymentMonitoringJob(request); + assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteCustomJob as SinonStub + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteCustomJobProgress without error', async () => { + it('invokes getModelDeploymentMonitoringJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - const expectedResponse = generateSampleMessage( - new operationsProtos.google.longrunning.Operation() + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() ); - 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.checkDeleteCustomJobProgress( - expectedResponse.name + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', + ['name'] ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob() + ); + client.innerApiCalls.getModelDeploymentMonitoringJob = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getModelDeploymentMonitoringJob( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteCustomJobProgress with error', async () => { + it('invokes getModelDeploymentMonitoringJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( + client.innerApiCalls.getModelDeploymentMonitoringJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.checkDeleteCustomJobProgress(''), + client.getModelDeploymentMonitoringJob(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes getModelDeploymentMonitoringJob with closed client', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.getModelDeploymentMonitoringJob(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteDataLabelingJob', () => { - it('invokes deleteDataLabelingJob without error', async () => { + describe('pauseModelDeploymentMonitoringJob', () => { + it('invokes pauseModelDeploymentMonitoringJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() + new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.pauseModelDeploymentMonitoringJob = + stubSimpleCall(expectedResponse); + const [response] = await client.pauseModelDeploymentMonitoringJob( + request ); - client.innerApiCalls.deleteDataLabelingJob = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteDataLabelingJob(request); - const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteDataLabelingJob without error using callback', async () => { + it('invokes pauseModelDeploymentMonitoringJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() + new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteDataLabelingJob = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.pauseModelDeploymentMonitoringJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteDataLabelingJob( + client.pauseModelDeploymentMonitoringJob( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - > | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -2700,194 +2743,136 @@ describe('v1beta1.JobServiceClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteDataLabelingJob with call error', async () => { + it('invokes pauseModelDeploymentMonitoringJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() + new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall( + client.innerApiCalls.pauseModelDeploymentMonitoringJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.deleteDataLabelingJob(request), + client.pauseModelDeploymentMonitoringJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub + client.innerApiCalls.pauseModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteDataLabelingJob with LRO error', async () => { + it('invokes pauseModelDeploymentMonitoringJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() + new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', + '.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.deleteDataLabelingJob(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deleteDataLabelingJob as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkDeleteDataLabelingJobProgress without error', async () => { - const client = new jobserviceModule.v1beta1.JobServiceClient({ - 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.checkDeleteDataLabelingJobProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkDeleteDataLabelingJobProgress with error', async () => { - const client = new jobserviceModule.v1beta1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); + const expectedError = new Error('The client has already been closed.'); + client.close(); await assert.rejects( - client.checkDeleteDataLabelingJobProgress(''), + client.pauseModelDeploymentMonitoringJob(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteHyperparameterTuningJob', () => { - it('invokes deleteHyperparameterTuningJob without error', async () => { + describe('resumeModelDeploymentMonitoringJob', () => { + it('invokes resumeModelDeploymentMonitoringJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() + new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.resumeModelDeploymentMonitoringJob = + stubSimpleCall(expectedResponse); + const [response] = await client.resumeModelDeploymentMonitoringJob( + request ); - client.innerApiCalls.deleteHyperparameterTuningJob = - stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteHyperparameterTuningJob(request); - const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteHyperparameterTuningJob without error using callback', async () => { + it('invokes resumeModelDeploymentMonitoringJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() + new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( - new protos.google.longrunning.Operation() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.deleteHyperparameterTuningJob = - stubLongRunningCallWithCallback(expectedResponse); + client.innerApiCalls.resumeModelDeploymentMonitoringJob = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteHyperparameterTuningJob( + client.resumeModelDeploymentMonitoringJob( request, ( err?: Error | null, - result?: LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - > | null + result?: protos.google.protobuf.IEmpty | null ) => { if (err) { reject(err); @@ -2897,144 +2882,87 @@ describe('v1beta1.JobServiceClient', () => { } ); }); - const operation = (await promise) as LROperation< - protos.google.protobuf.IEmpty, - protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata - >; - const [response] = await operation.promise(); + const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteHyperparameterTuningJob with call error', async () => { + it('invokes resumeModelDeploymentMonitoringJob with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() + new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall( + client.innerApiCalls.resumeModelDeploymentMonitoringJob = stubSimpleCall( undefined, expectedError ); await assert.rejects( - client.deleteHyperparameterTuningJob(request), + client.resumeModelDeploymentMonitoringJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub + client.innerApiCalls.resumeModelDeploymentMonitoringJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteHyperparameterTuningJob with LRO error', async () => { + it('invokes resumeModelDeploymentMonitoringJob with closed client', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() + new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', + '.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest', ['name'] ); request.name = defaultValue1; - const expectedHeaderRequestParams = `name=${defaultValue1}`; - const expectedError = new Error('expected'); - client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall( - undefined, - undefined, - expectedError - ); - const [operation] = await client.deleteHyperparameterTuningJob(request); - await assert.rejects(operation.promise(), expectedError); - const actualRequest = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub - ).getCall(0).args[0]; - assert.deepStrictEqual(actualRequest, request); - const actualHeaderRequestParams = ( - client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub - ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; - assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); - }); - - it('invokes checkDeleteHyperparameterTuningJobProgress without error', async () => { - const client = new jobserviceModule.v1beta1.JobServiceClient({ - 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.checkDeleteHyperparameterTuningJobProgress( - expectedResponse.name - ); - assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); - assert(decodedOperation.metadata); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); - }); - - it('invokes checkDeleteHyperparameterTuningJobProgress with error', async () => { - const client = new jobserviceModule.v1beta1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError - ); + const expectedError = new Error('The client has already been closed.'); + client.close(); await assert.rejects( - client.checkDeleteHyperparameterTuningJobProgress(''), + client.resumeModelDeploymentMonitoringJob(request), expectedError ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteBatchPredictionJob', () => { - it('invokes deleteBatchPredictionJob without error', async () => { + describe('deleteCustomJob', () => { + it('invokes deleteCustomJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', ['name'] ); request.name = defaultValue1; @@ -3042,32 +2970,32 @@ describe('v1beta1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteBatchPredictionJob = + client.innerApiCalls.deleteCustomJob = stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteBatchPredictionJob(request); + const [operation] = await client.deleteCustomJob(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteBatchPredictionJob without error using callback', async () => { + it('invokes deleteCustomJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', ['name'] ); request.name = defaultValue1; @@ -3075,10 +3003,10 @@ describe('v1beta1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteBatchPredictionJob = + client.innerApiCalls.deleteCustomJob = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteBatchPredictionJob( + client.deleteCustomJob( request, ( err?: Error | null, @@ -3102,83 +3030,80 @@ describe('v1beta1.JobServiceClient', () => { const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteBatchPredictionJob with call error', async () => { + it('invokes deleteCustomJob with call error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteBatchPredictionJob = stubLongRunningCall( + client.innerApiCalls.deleteCustomJob = stubLongRunningCall( undefined, expectedError ); - await assert.rejects( - client.deleteBatchPredictionJob(request), - expectedError - ); + await assert.rejects(client.deleteCustomJob(request), expectedError); const actualRequest = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteBatchPredictionJob with LRO error', async () => { + it('invokes deleteCustomJob with LRO error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteBatchPredictionJob = stubLongRunningCall( + client.innerApiCalls.deleteCustomJob = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.deleteBatchPredictionJob(request); + const [operation] = await client.deleteCustomJob(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteBatchPredictionJob as SinonStub + client.innerApiCalls.deleteCustomJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteBatchPredictionJobProgress without error', async () => { + it('invokes checkDeleteCustomJobProgress without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3192,16 +3117,15 @@ describe('v1beta1.JobServiceClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = - await client.checkDeleteBatchPredictionJobProgress( - expectedResponse.name - ); + const decodedOperation = await client.checkDeleteCustomJobProgress( + expectedResponse.name + ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); assert(decodedOperation.metadata); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkDeleteBatchPredictionJobProgress with error', async () => { + it('invokes checkDeleteCustomJobProgress with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3214,79 +3138,75 @@ describe('v1beta1.JobServiceClient', () => { expectedError ); await assert.rejects( - client.checkDeleteBatchPredictionJobProgress(''), + client.checkDeleteCustomJobProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('updateModelDeploymentMonitoringJob', () => { - it('invokes updateModelDeploymentMonitoringJob without error', async () => { + describe('deleteDataLabelingJob', () => { + it('invokes deleteDataLabelingJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() ); - request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', - ['modelDeploymentMonitoringJob', 'name'] + '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', + ['name'] ); - request.modelDeploymentMonitoringJob.name = defaultValue1; - const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updateModelDeploymentMonitoringJob = + client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall(expectedResponse); - const [operation] = await client.updateModelDeploymentMonitoringJob( - request - ); + const [operation] = await client.deleteDataLabelingJob(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes deleteDataLabelingJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() ); - request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', - ['modelDeploymentMonitoringJob', 'name'] + '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', + ['name'] ); - request.modelDeploymentMonitoringJob.name = defaultValue1; - const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.updateModelDeploymentMonitoringJob = + client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.updateModelDeploymentMonitoringJob( + client.deleteDataLabelingJob( request, ( err?: Error | null, result?: LROperation< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata > | null ) => { if (err) { @@ -3298,88 +3218,89 @@ describe('v1beta1.JobServiceClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, - protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateModelDeploymentMonitoringJob with call error', async () => { + it('invokes deleteDataLabelingJob with call error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() ); - request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', - ['modelDeploymentMonitoringJob', 'name'] + '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', + ['name'] ); - request.modelDeploymentMonitoringJob.name = defaultValue1; - const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateModelDeploymentMonitoringJob = - stubLongRunningCall(undefined, expectedError); + client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall( + undefined, + expectedError + ); await assert.rejects( - client.updateModelDeploymentMonitoringJob(request), + client.deleteDataLabelingJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes updateModelDeploymentMonitoringJob with LRO error', async () => { + it('invokes deleteDataLabelingJob with LRO error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest() ); - request.modelDeploymentMonitoringJob ??= {}; const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', - ['modelDeploymentMonitoringJob', 'name'] + '.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest', + ['name'] ); - request.modelDeploymentMonitoringJob.name = defaultValue1; - const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.updateModelDeploymentMonitoringJob = - stubLongRunningCall(undefined, undefined, expectedError); - const [operation] = await client.updateModelDeploymentMonitoringJob( - request + client.innerApiCalls.deleteDataLabelingJob = stubLongRunningCall( + undefined, + undefined, + expectedError ); + const [operation] = await client.deleteDataLabelingJob(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteDataLabelingJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkUpdateModelDeploymentMonitoringJobProgress without error', async () => { + it('invokes checkDeleteDataLabelingJobProgress without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3393,16 +3314,15 @@ describe('v1beta1.JobServiceClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = - await client.checkUpdateModelDeploymentMonitoringJobProgress( - expectedResponse.name - ); + const decodedOperation = await client.checkDeleteDataLabelingJobProgress( + expectedResponse.name + ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); assert(decodedOperation.metadata); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkUpdateModelDeploymentMonitoringJobProgress with error', async () => { + it('invokes checkDeleteDataLabelingJobProgress with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3415,25 +3335,25 @@ describe('v1beta1.JobServiceClient', () => { expectedError ); await assert.rejects( - client.checkUpdateModelDeploymentMonitoringJobProgress(''), + client.checkDeleteDataLabelingJobProgress(''), expectedError ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('deleteModelDeploymentMonitoringJob', () => { - it('invokes deleteModelDeploymentMonitoringJob without error', async () => { + describe('deleteHyperparameterTuningJob', () => { + it('invokes deleteHyperparameterTuningJob without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -3441,34 +3361,32 @@ describe('v1beta1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteModelDeploymentMonitoringJob = + client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall(expectedResponse); - const [operation] = await client.deleteModelDeploymentMonitoringJob( - request - ); + const [operation] = await client.deleteHyperparameterTuningJob(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteModelDeploymentMonitoringJob without error using callback', async () => { + it('invokes deleteHyperparameterTuningJob without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; @@ -3476,10 +3394,10 @@ describe('v1beta1.JobServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.deleteModelDeploymentMonitoringJob = + client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.deleteModelDeploymentMonitoringJob( + client.deleteHyperparameterTuningJob( request, ( err?: Error | null, @@ -3503,80 +3421,83 @@ describe('v1beta1.JobServiceClient', () => { const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteModelDeploymentMonitoringJob with call error', async () => { + it('invokes deleteHyperparameterTuningJob with call error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteModelDeploymentMonitoringJob = - stubLongRunningCall(undefined, expectedError); + client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall( + undefined, + expectedError + ); await assert.rejects( - client.deleteModelDeploymentMonitoringJob(request), + client.deleteHyperparameterTuningJob(request), expectedError ); const actualRequest = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes deleteModelDeploymentMonitoringJob with LRO error', async () => { + it('invokes deleteHyperparameterTuningJob with LRO error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() + new protos.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', + '.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest', ['name'] ); request.name = defaultValue1; const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.deleteModelDeploymentMonitoringJob = - stubLongRunningCall(undefined, undefined, expectedError); - const [operation] = await client.deleteModelDeploymentMonitoringJob( - request + client.innerApiCalls.deleteHyperparameterTuningJob = stubLongRunningCall( + undefined, + undefined, + expectedError ); + const [operation] = await client.deleteHyperparameterTuningJob(request); await assert.rejects(operation.promise(), expectedError); const actualRequest = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + client.innerApiCalls.deleteHyperparameterTuningJob as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes checkDeleteModelDeploymentMonitoringJobProgress without error', async () => { + it('invokes checkDeleteHyperparameterTuningJobProgress without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -3591,7 +3512,7 @@ describe('v1beta1.JobServiceClient', () => { client.operationsClient.getOperation = stubSimpleCall(expectedResponse); const decodedOperation = - await client.checkDeleteModelDeploymentMonitoringJobProgress( + await client.checkDeleteHyperparameterTuningJobProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -3599,100 +3520,1553 @@ describe('v1beta1.JobServiceClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkDeleteModelDeploymentMonitoringJobProgress with error', async () => { + it('invokes checkDeleteHyperparameterTuningJobProgress with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + 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.checkDeleteHyperparameterTuningJobProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteNasJob', () => { + it('invokes deleteNasJob without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteNasJob = stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteNasJob(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNasJob without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteNasJob = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteNasJob( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNasJob with call error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteNasJob = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.deleteNasJob(request), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteNasJob with LRO error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteNasJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteNasJob = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteNasJob(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNasJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteNasJobProgress without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + 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.checkDeleteNasJobProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteNasJobProgress with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + 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.checkDeleteNasJobProgress(''), expectedError); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteBatchPredictionJob', () => { + it('invokes deleteBatchPredictionJob without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteBatchPredictionJob = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteBatchPredictionJob(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteBatchPredictionJob without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteBatchPredictionJob = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteBatchPredictionJob( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteBatchPredictionJob with call error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteBatchPredictionJob = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects( + client.deleteBatchPredictionJob(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteBatchPredictionJob with LRO error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteBatchPredictionJob = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.deleteBatchPredictionJob(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteBatchPredictionJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteBatchPredictionJobProgress without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + 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.checkDeleteBatchPredictionJobProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteBatchPredictionJobProgress with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + 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.checkDeleteBatchPredictionJobProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('updateModelDeploymentMonitoringJob', () => { + it('invokes updateModelDeploymentMonitoringJob without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest() + ); + request.modelDeploymentMonitoringJob ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', + ['modelDeploymentMonitoringJob', 'name'] + ); + request.modelDeploymentMonitoringJob.name = defaultValue1; + const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateModelDeploymentMonitoringJob = + stubLongRunningCall(expectedResponse); + const [operation] = await client.updateModelDeploymentMonitoringJob( + request + ); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateModelDeploymentMonitoringJob without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest() + ); + request.modelDeploymentMonitoringJob ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', + ['modelDeploymentMonitoringJob', 'name'] + ); + request.modelDeploymentMonitoringJob.name = defaultValue1; + const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.updateModelDeploymentMonitoringJob = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.updateModelDeploymentMonitoringJob( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, + protos.google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateModelDeploymentMonitoringJob with call error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest() + ); + request.modelDeploymentMonitoringJob ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', + ['modelDeploymentMonitoringJob', 'name'] + ); + request.modelDeploymentMonitoringJob.name = defaultValue1; + const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateModelDeploymentMonitoringJob = + stubLongRunningCall(undefined, expectedError); + await assert.rejects( + client.updateModelDeploymentMonitoringJob(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes updateModelDeploymentMonitoringJob with LRO error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest() + ); + request.modelDeploymentMonitoringJob ??= {}; + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest', + ['modelDeploymentMonitoringJob', 'name'] + ); + request.modelDeploymentMonitoringJob.name = defaultValue1; + const expectedHeaderRequestParams = `model_deployment_monitoring_job.name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.updateModelDeploymentMonitoringJob = + stubLongRunningCall(undefined, undefined, expectedError); + const [operation] = await client.updateModelDeploymentMonitoringJob( + request + ); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkUpdateModelDeploymentMonitoringJobProgress without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + 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.checkUpdateModelDeploymentMonitoringJobProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkUpdateModelDeploymentMonitoringJobProgress with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + 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.checkUpdateModelDeploymentMonitoringJobProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('deleteModelDeploymentMonitoringJob', () => { + it('invokes deleteModelDeploymentMonitoringJob without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteModelDeploymentMonitoringJob = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteModelDeploymentMonitoringJob( + request + ); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteModelDeploymentMonitoringJob without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.deleteModelDeploymentMonitoringJob = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.deleteModelDeploymentMonitoringJob( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteModelDeploymentMonitoringJob with call error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteModelDeploymentMonitoringJob = + stubLongRunningCall(undefined, expectedError); + await assert.rejects( + client.deleteModelDeploymentMonitoringJob(request), + expectedError + ); + const actualRequest = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes deleteModelDeploymentMonitoringJob with LRO error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteModelDeploymentMonitoringJob = + stubLongRunningCall(undefined, undefined, expectedError); + const [operation] = await client.deleteModelDeploymentMonitoringJob( + request + ); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteModelDeploymentMonitoringJob as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkDeleteModelDeploymentMonitoringJobProgress without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + 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.checkDeleteModelDeploymentMonitoringJobProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkDeleteModelDeploymentMonitoringJobProgress with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + 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.checkDeleteModelDeploymentMonitoringJobProgress(''), + expectedError + ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('listCustomJobs', () => { + it('invokes listCustomJobs without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + ]; + client.innerApiCalls.listCustomJobs = stubSimpleCall(expectedResponse); + const [response] = await client.listCustomJobs(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listCustomJobs without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + ]; + client.innerApiCalls.listCustomJobs = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listCustomJobs( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.ICustomJob[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listCustomJobs with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listCustomJobs = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listCustomJobs(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listCustomJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listCustomJobsStream without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + ]; + client.descriptors.page.listCustomJobs.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listCustomJobsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.CustomJob[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1beta1.CustomJob) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listCustomJobs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listCustomJobs, request) + ); + assert( + (client.descriptors.page.listCustomJobs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listCustomJobsStream with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listCustomJobs.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listCustomJobsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.CustomJob[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1beta1.CustomJob) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listCustomJobs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listCustomJobs, request) + ); + assert( + (client.descriptors.page.listCustomJobs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listCustomJobs without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.CustomJob() + ), + ]; + client.descriptors.page.listCustomJobs.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1beta1.ICustomJob[] = []; + const iterable = client.listCustomJobsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listCustomJobs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listCustomJobs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listCustomJobs with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listCustomJobs.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listCustomJobsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1beta1.ICustomJob[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listCustomJobs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listCustomJobs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + }); + + describe('listDataLabelingJobs', () => { + it('invokes listDataLabelingJobs without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + ]; + client.innerApiCalls.listDataLabelingJobs = + stubSimpleCall(expectedResponse); + const [response] = await client.listDataLabelingJobs(request); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDataLabelingJobs without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + ]; + client.innerApiCalls.listDataLabelingJobs = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listDataLabelingJobs( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDataLabelingJobs with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.listDataLabelingJobs = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listDataLabelingJobs(request), expectedError); + const actualRequest = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listDataLabelingJobs as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes listDataLabelingJobsStream without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + ]; + client.descriptors.page.listDataLabelingJobs.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listDataLabelingJobsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.DataLabelingJob[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.aiplatform.v1beta1.DataLabelingJob + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDataLabelingJobs, request) + ); + assert( + (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('invokes listDataLabelingJobsStream with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.descriptors.page.listDataLabelingJobs.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listDataLabelingJobsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.DataLabelingJob[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.aiplatform.v1beta1.DataLabelingJob + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listDataLabelingJobs, request) + ); + assert( + (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDataLabelingJobs without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + ), + ]; + client.descriptors.page.listDataLabelingJobs.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[] = + []; + const iterable = client.listDataLabelingJobsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert( + (client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) + ); + }); + + it('uses async iteration with listDataLabelingJobs with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - - client.operationsClient.getOperation = stubSimpleCall( - undefined, - expectedError + client.descriptors.page.listDataLabelingJobs.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listDataLabelingJobsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub + ).getCall(0).args[1], + request ); - await assert.rejects( - client.checkDeleteModelDeploymentMonitoringJobProgress(''), - expectedError + assert( + (client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); - assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('listCustomJobs', () => { - it('invokes listCustomJobs without error', async () => { + describe('listHyperparameterTuningJobs', () => { + it('invokes listHyperparameterTuningJobs without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), ]; - client.innerApiCalls.listCustomJobs = stubSimpleCall(expectedResponse); - const [response] = await client.listCustomJobs(request); + client.innerApiCalls.listHyperparameterTuningJobs = + stubSimpleCall(expectedResponse); + const [response] = await client.listHyperparameterTuningJobs(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomJobs without error using callback', async () => { + it('invokes listHyperparameterTuningJobs without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), ]; - client.innerApiCalls.listCustomJobs = + client.innerApiCalls.listHyperparameterTuningJobs = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listCustomJobs( + client.listHyperparameterTuningJobs( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1beta1.ICustomJob[] | null + result?: + | protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[] + | null ) => { if (err) { reject(err); @@ -3705,81 +5079,86 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomJobs with error', async () => { + it('invokes listHyperparameterTuningJobs with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listCustomJobs = stubSimpleCall( + client.innerApiCalls.listHyperparameterTuningJobs = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listCustomJobs(request), expectedError); + await assert.rejects( + client.listHyperparameterTuningJobs(request), + expectedError + ); const actualRequest = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listCustomJobs as SinonStub + client.innerApiCalls.listHyperparameterTuningJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listCustomJobsStream without error', async () => { + it('invokes listHyperparameterTuningJobsStream without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), ]; - client.descriptors.page.listCustomJobs.createStream = + client.descriptors.page.listHyperparameterTuningJobs.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listCustomJobsStream(request); + const stream = client.listHyperparameterTuningJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.CustomJob[] = + const responses: protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob[] = []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1beta1.CustomJob) => { + ( + response: protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + ) => { responses.push(response); } ); @@ -3793,12 +5172,21 @@ describe('v1beta1.JobServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listCustomJobs.createStream as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listCustomJobs, request) + .calledWith( + client.innerApiCalls.listHyperparameterTuningJobs, + request + ) ); assert( - (client.descriptors.page.listCustomJobs.createStream as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3806,31 +5194,33 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('invokes listCustomJobsStream with error', async () => { + it('invokes listHyperparameterTuningJobsStream with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCustomJobs.createStream = + client.descriptors.page.listHyperparameterTuningJobs.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listCustomJobsStream(request); + const stream = client.listHyperparameterTuningJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.CustomJob[] = + const responses: protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob[] = []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1beta1.CustomJob) => { + ( + response: protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + ) => { responses.push(response); } ); @@ -3843,12 +5233,21 @@ describe('v1beta1.JobServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listCustomJobs.createStream as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .createStream as SinonStub + ) .getCall(0) - .calledWith(client.innerApiCalls.listCustomJobs, request) + .calledWith( + client.innerApiCalls.listHyperparameterTuningJobs, + request + ) ); assert( - (client.descriptors.page.listCustomJobs.createStream as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .createStream as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3856,48 +5255,53 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('uses async iteration with listCustomJobs without error', async () => { + it('uses async iteration with listHyperparameterTuningJobs without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.CustomJob() + new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() ), ]; - client.descriptors.page.listCustomJobs.asyncIterate = + client.descriptors.page.listHyperparameterTuningJobs.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1beta1.ICustomJob[] = []; - const iterable = client.listCustomJobsAsync(request); + const responses: protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[] = + []; + const iterable = client.listHyperparameterTuningJobsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listCustomJobs.asyncIterate as SinonStub + client.descriptors.page.listHyperparameterTuningJobs + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCustomJobs.asyncIterate as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3905,27 +5309,27 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('uses async iteration with listCustomJobs with error', async () => { + it('uses async iteration with listHyperparameterTuningJobs with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listCustomJobs.asyncIterate = + client.descriptors.page.listHyperparameterTuningJobs.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listCustomJobsAsync(request); + const iterable = client.listHyperparameterTuningJobsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1beta1.ICustomJob[] = + const responses: protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -3933,12 +5337,16 @@ describe('v1beta1.JobServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listCustomJobs.asyncIterate as SinonStub + client.descriptors.page.listHyperparameterTuningJobs + .asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - (client.descriptors.page.listCustomJobs.asyncIterate as SinonStub) + ( + client.descriptors.page.listHyperparameterTuningJobs + .asyncIterate as SinonStub + ) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -3947,83 +5355,80 @@ describe('v1beta1.JobServiceClient', () => { }); }); - describe('listDataLabelingJobs', () => { - it('invokes listDataLabelingJobs without error', async () => { + describe('listNasJobs', () => { + it('invokes listNasJobs without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), ]; - client.innerApiCalls.listDataLabelingJobs = - stubSimpleCall(expectedResponse); - const [response] = await client.listDataLabelingJobs(request); + client.innerApiCalls.listNasJobs = stubSimpleCall(expectedResponse); + const [response] = await client.listNasJobs(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataLabelingJobs without error using callback', async () => { + it('invokes listNasJobs without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), ]; - client.innerApiCalls.listDataLabelingJobs = + client.innerApiCalls.listNasJobs = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listDataLabelingJobs( + client.listNasJobs( request, ( err?: Error | null, - result?: - | protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[] - | null + result?: protos.google.cloud.aiplatform.v1beta1.INasJob[] | null ) => { if (err) { reject(err); @@ -4036,83 +5441,80 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataLabelingJobs with error', async () => { + it('invokes listNasJobs with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listDataLabelingJobs = stubSimpleCall( + client.innerApiCalls.listNasJobs = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listDataLabelingJobs(request), expectedError); + await assert.rejects(client.listNasJobs(request), expectedError); const actualRequest = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listDataLabelingJobs as SinonStub + client.innerApiCalls.listNasJobs as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listDataLabelingJobsStream without error', async () => { + it('invokes listNasJobsStream without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), ]; - client.descriptors.page.listDataLabelingJobs.createStream = + client.descriptors.page.listNasJobs.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listDataLabelingJobsStream(request); + const stream = client.listNasJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.DataLabelingJob[] = - []; + const responses: protos.google.cloud.aiplatform.v1beta1.NasJob[] = []; stream.on( 'data', - ( - response: protos.google.cloud.aiplatform.v1beta1.DataLabelingJob - ) => { + (response: protos.google.cloud.aiplatform.v1beta1.NasJob) => { responses.push(response); } ); @@ -4126,12 +5528,12 @@ describe('v1beta1.JobServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + (client.descriptors.page.listNasJobs.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listDataLabelingJobs, request) + .calledWith(client.innerApiCalls.listNasJobs, request) ); assert( - (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + (client.descriptors.page.listNasJobs.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4139,33 +5541,32 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('invokes listDataLabelingJobsStream with error', async () => { + it('invokes listNasJobsStream with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDataLabelingJobs.createStream = - stubPageStreamingCall(undefined, expectedError); - const stream = client.listDataLabelingJobsStream(request); + client.descriptors.page.listNasJobs.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listNasJobsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.DataLabelingJob[] = - []; + const responses: protos.google.cloud.aiplatform.v1beta1.NasJob[] = []; stream.on( 'data', - ( - response: protos.google.cloud.aiplatform.v1beta1.DataLabelingJob - ) => { + (response: protos.google.cloud.aiplatform.v1beta1.NasJob) => { responses.push(response); } ); @@ -4178,12 +5579,12 @@ describe('v1beta1.JobServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + (client.descriptors.page.listNasJobs.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listDataLabelingJobs, request) + .calledWith(client.innerApiCalls.listNasJobs, request) ); assert( - (client.descriptors.page.listDataLabelingJobs.createStream as SinonStub) + (client.descriptors.page.listNasJobs.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4191,49 +5592,48 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('uses async iteration with listDataLabelingJobs without error', async () => { + it('uses async iteration with listNasJobs without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.DataLabelingJob() + new protos.google.cloud.aiplatform.v1beta1.NasJob() ), ]; - client.descriptors.page.listDataLabelingJobs.asyncIterate = + client.descriptors.page.listNasJobs.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[] = - []; - const iterable = client.listDataLabelingJobsAsync(request); + const responses: protos.google.cloud.aiplatform.v1beta1.INasJob[] = []; + const iterable = client.listNasJobsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - ( - client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub - ).getCall(0).args[1], + (client.descriptors.page.listNasJobs.asyncIterate as SinonStub).getCall( + 0 + ).args[1], request ); assert( - (client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub) + (client.descriptors.page.listNasJobs.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4241,40 +5641,41 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('uses async iteration with listDataLabelingJobs with error', async () => { + it('uses async iteration with listNasJobs with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasJobsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasJobsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listDataLabelingJobs.asyncIterate = - stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listDataLabelingJobsAsync(request); + client.descriptors.page.listNasJobs.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listNasJobsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1beta1.IDataLabelingJob[] = - []; + const responses: protos.google.cloud.aiplatform.v1beta1.INasJob[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( - ( - client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub - ).getCall(0).args[1], + (client.descriptors.page.listNasJobs.asyncIterate as SinonStub).getCall( + 0 + ).args[1], request ); assert( - (client.descriptors.page.listDataLabelingJobs.asyncIterate as SinonStub) + (client.descriptors.page.listNasJobs.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4283,82 +5684,82 @@ describe('v1beta1.JobServiceClient', () => { }); }); - describe('listHyperparameterTuningJobs', () => { - it('invokes listHyperparameterTuningJobs without error', async () => { + describe('listNasTrialDetails', () => { + it('invokes listNasTrialDetails without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), ]; - client.innerApiCalls.listHyperparameterTuningJobs = + client.innerApiCalls.listNasTrialDetails = stubSimpleCall(expectedResponse); - const [response] = await client.listHyperparameterTuningJobs(request); + const [response] = await client.listNasTrialDetails(request); assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listHyperparameterTuningJobs without error using callback', async () => { + it('invokes listNasTrialDetails without error using callback', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), ]; - client.innerApiCalls.listHyperparameterTuningJobs = + client.innerApiCalls.listNasTrialDetails = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listHyperparameterTuningJobs( + client.listNasTrialDetails( request, ( err?: Error | null, result?: - | protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[] + | protos.google.cloud.aiplatform.v1beta1.INasTrialDetail[] | null ) => { if (err) { @@ -4372,86 +5773,81 @@ describe('v1beta1.JobServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); const actualRequest = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listHyperparameterTuningJobs with error', async () => { + it('invokes listNasTrialDetails with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.innerApiCalls.listHyperparameterTuningJobs = stubSimpleCall( + client.innerApiCalls.listNasTrialDetails = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listHyperparameterTuningJobs(request), - expectedError - ); + await assert.rejects(client.listNasTrialDetails(request), expectedError); const actualRequest = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[0]; assert.deepStrictEqual(actualRequest, request); const actualHeaderRequestParams = ( - client.innerApiCalls.listHyperparameterTuningJobs as SinonStub + client.innerApiCalls.listNasTrialDetails as SinonStub ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); - it('invokes listHyperparameterTuningJobsStream without error', async () => { + it('invokes listNasTrialDetailsStream without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), ]; - client.descriptors.page.listHyperparameterTuningJobs.createStream = + client.descriptors.page.listNasTrialDetails.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listHyperparameterTuningJobsStream(request); + const stream = client.listNasTrialDetailsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob[] = + const responses: protos.google.cloud.aiplatform.v1beta1.NasTrialDetail[] = []; stream.on( 'data', - ( - response: protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - ) => { + (response: protos.google.cloud.aiplatform.v1beta1.NasTrialDetail) => { responses.push(response); } ); @@ -4465,21 +5861,12 @@ describe('v1beta1.JobServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .createStream as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listHyperparameterTuningJobs, - request - ) + .calledWith(client.innerApiCalls.listNasTrialDetails, request) ); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .createStream as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4487,33 +5874,31 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('invokes listHyperparameterTuningJobsStream with error', async () => { + it('invokes listNasTrialDetailsStream with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listHyperparameterTuningJobs.createStream = + client.descriptors.page.listNasTrialDetails.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listHyperparameterTuningJobsStream(request); + const stream = client.listNasTrialDetailsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob[] = + const responses: protos.google.cloud.aiplatform.v1beta1.NasTrialDetail[] = []; stream.on( 'data', - ( - response: protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - ) => { + (response: protos.google.cloud.aiplatform.v1beta1.NasTrialDetail) => { responses.push(response); } ); @@ -4526,21 +5911,12 @@ describe('v1beta1.JobServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .createStream as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.createStream as SinonStub) .getCall(0) - .calledWith( - client.innerApiCalls.listHyperparameterTuningJobs, - request - ) + .calledWith(client.innerApiCalls.listNasTrialDetails, request) ); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .createStream as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.createStream as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4548,53 +5924,49 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('uses async iteration with listHyperparameterTuningJobs without error', async () => { + it('uses async iteration with listNasTrialDetails without error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob() + new protos.google.cloud.aiplatform.v1beta1.NasTrialDetail() ), ]; - client.descriptors.page.listHyperparameterTuningJobs.asyncIterate = + client.descriptors.page.listNasTrialDetails.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[] = + const responses: protos.google.cloud.aiplatform.v1beta1.INasTrialDetail[] = []; - const iterable = client.listHyperparameterTuningJobsAsync(request); + const iterable = client.listNasTrialDetailsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listHyperparameterTuningJobs - .asyncIterate as SinonStub + client.descriptors.page.listNasTrialDetails.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .asyncIterate as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -4602,27 +5974,27 @@ describe('v1beta1.JobServiceClient', () => { ); }); - it('uses async iteration with listHyperparameterTuningJobs with error', async () => { + it('uses async iteration with listNasTrialDetails with error', async () => { const client = new jobserviceModule.v1beta1.JobServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest() + new protos.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest() ); const defaultValue1 = getTypeDefaultValue( - '.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest', + '.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest', ['parent'] ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); - client.descriptors.page.listHyperparameterTuningJobs.asyncIterate = + client.descriptors.page.listNasTrialDetails.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listHyperparameterTuningJobsAsync(request); + const iterable = client.listNasTrialDetailsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[] = + const responses: protos.google.cloud.aiplatform.v1beta1.INasTrialDetail[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -4630,16 +6002,12 @@ describe('v1beta1.JobServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listHyperparameterTuningJobs - .asyncIterate as SinonStub + client.descriptors.page.listNasTrialDetails.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert( - ( - client.descriptors.page.listHyperparameterTuningJobs - .asyncIterate as SinonStub - ) + (client.descriptors.page.listNasTrialDetails.asyncIterate as SinonStub) .getCall(0) .args[2].otherArgs.headers['x-goog-request-params'].includes( expectedHeaderRequestParams @@ -8416,6 +9784,147 @@ describe('v1beta1.JobServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1.ts index e14f0184ccf..9a3c5d32f9f 100644 --- a/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1.ts @@ -8509,6 +8509,147 @@ describe('v1.MetadataServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1beta1.ts index 8ad599a0c09..0c9a13adfaf 100644 --- a/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_metadata_service_v1beta1.ts @@ -8650,6 +8650,147 @@ describe('v1beta1.MetadataServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts index 9a88853b770..0a903f9889a 100644 --- a/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_migration_service_v1.ts @@ -3404,6 +3404,147 @@ describe('v1.MigrationServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_migration_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_migration_service_v1beta1.ts index 65049fdf9dc..6683ce39ae3 100644 --- a/packages/google-cloud-aiplatform/test/gapic_migration_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_migration_service_v1beta1.ts @@ -3490,6 +3490,147 @@ describe('v1beta1.MigrationServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { 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 43afd6ae104..416b13c42cb 100644 --- a/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_model_service_v1.ts @@ -1961,6 +1961,196 @@ describe('v1.ModelServiceClient', () => { }); }); + describe('copyModel', () => { + it('invokes copyModel 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.CopyModelRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CopyModelRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.copyModel = stubLongRunningCall(expectedResponse); + const [operation] = await client.copyModel(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes copyModel 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.CopyModelRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CopyModelRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.copyModel = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.copyModel( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1.ICopyModelOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1.ICopyModelOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes copyModel with call 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.CopyModelRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CopyModelRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.copyModel = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.copyModel(request), expectedError); + const actualRequest = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes copyModel with LRO 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.CopyModelRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1.CopyModelRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.copyModel = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.copyModel(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCopyModelProgress without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + 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.checkCopyModelProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCopyModelProgress with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + 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.checkCopyModelProgress(''), expectedError); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + describe('listModels', () => { it('invokes listModels without error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ @@ -5843,6 +6033,147 @@ describe('v1.ModelServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { 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 49e1bb4551c..6a099986884 100644 --- a/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_model_service_v1beta1.ts @@ -2161,6 +2161,196 @@ describe('v1beta1.ModelServiceClient', () => { }); }); + describe('copyModel', () => { + it('invokes copyModel 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.CopyModelRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CopyModelRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.copyModel = stubLongRunningCall(expectedResponse); + const [operation] = await client.copyModel(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes copyModel 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.CopyModelRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CopyModelRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.copyModel = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.copyModel( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1beta1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1beta1.ICopyModelResponse, + protos.google.cloud.aiplatform.v1beta1.ICopyModelOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + const actualRequest = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes copyModel with call 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.CopyModelRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CopyModelRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.copyModel = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.copyModel(request), expectedError); + const actualRequest = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes copyModel with LRO 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.CopyModelRequest() + ); + const defaultValue1 = getTypeDefaultValue( + '.google.cloud.aiplatform.v1beta1.CopyModelRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; + const expectedError = new Error('expected'); + client.innerApiCalls.copyModel = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.copyModel(request); + await assert.rejects(operation.promise(), expectedError); + const actualRequest = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.copyModel as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); + }); + + it('invokes checkCopyModelProgress without error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + 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.checkCopyModelProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkCopyModelProgress with error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + 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.checkCopyModelProgress(''), expectedError); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + describe('listModels', () => { it('invokes listModels without error', async () => { const client = new modelserviceModule.v1beta1.ModelServiceClient({ @@ -6178,6 +6368,147 @@ describe('v1beta1.ModelServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts index 5393114b02e..a8f1cd8812b 100644 --- a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1.ts @@ -4718,6 +4718,147 @@ describe('v1.PipelineServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts index e156d17cf2b..072bc3bf66e 100644 --- a/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_pipeline_service_v1beta1.ts @@ -4809,6 +4809,147 @@ describe('v1beta1.PipelineServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts index d290db674dd..104a4ca0c44 100644 --- a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1.ts @@ -2801,6 +2801,147 @@ describe('v1.PredictionServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts index 45c0ce2e9c8..43d8051423f 100644 --- a/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_prediction_service_v1beta1.ts @@ -2939,6 +2939,149 @@ describe('v1beta1.PredictionServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1.ts index 6d52146da73..0c61b51e9f9 100644 --- a/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1.ts @@ -3983,6 +3983,149 @@ describe('v1.SpecialistPoolServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1beta1.ts index b727ba22eef..cb03f349e35 100644 --- a/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_specialist_pool_service_v1beta1.ts @@ -4070,6 +4070,149 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1.ts index db37fdeb064..7071e9acb93 100644 --- a/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1.ts @@ -8219,6 +8219,147 @@ describe('v1.TensorboardServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1beta1.ts index 43ce533242a..a74e510dd93 100644 --- a/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_tensorboard_service_v1beta1.ts @@ -8513,6 +8513,149 @@ describe('v1beta1.TensorboardServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts b/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts index 036860b56aa..0fe87b2a791 100644 --- a/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1.ts @@ -5276,6 +5276,147 @@ describe('v1.VizierServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = { diff --git a/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1beta1.ts b/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1beta1.ts index 21323ddcb46..31a34db895b 100644 --- a/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1beta1.ts +++ b/packages/google-cloud-aiplatform/test/gapic_vizier_service_v1beta1.ts @@ -5405,6 +5405,147 @@ describe('v1beta1.VizierServiceClient', () => { }); }); + describe('nasJob', () => { + const fakePath = '/rendered/path/nasJob'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + }; + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasJobPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasJobPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasJobPath', () => { + const result = client.nasJobPath( + 'projectValue', + 'locationValue', + 'nasJobValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasJobPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasJobName', () => { + const result = client.matchProjectFromNasJobName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasJobName', () => { + const result = client.matchLocationFromNasJobName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasJobName', () => { + const result = client.matchNasJobFromNasJobName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasJobPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('nasTrialDetail', () => { + const fakePath = '/rendered/path/nasTrialDetail'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + nas_job: 'nasJobValue', + nas_trial_detail: 'nasTrialDetailValue', + }; + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.nasTrialDetailPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.nasTrialDetailPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('nasTrialDetailPath', () => { + const result = client.nasTrialDetailPath( + 'projectValue', + 'locationValue', + 'nasJobValue', + 'nasTrialDetailValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromNasTrialDetailName', () => { + const result = client.matchProjectFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromNasTrialDetailName', () => { + const result = client.matchLocationFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasJobFromNasTrialDetailName', () => { + const result = client.matchNasJobFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasJobValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchNasTrialDetailFromNasTrialDetailName', () => { + const result = + client.matchNasTrialDetailFromNasTrialDetailName(fakePath); + assert.strictEqual(result, 'nasTrialDetailValue'); + assert( + (client.pathTemplates.nasTrialDetailPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('pipelineJob', () => { const fakePath = '/rendered/path/pipelineJob'; const expectedParameters = {